Posts Tagged PHP
How to create sliding feedback form using jQuery
In this tutorial we are going to learn how to create fancy looking feedback form which slides from the right/left side of your web page. I am sure there are many plugins available for CMS like Joomla, WordPress but it's always a good idea to code something of your own. Certainly, you require this co
Read Full PostShow your facebook fan page in multiple languages
While creating Facebook Fan Page apps, you might have experienced certain use case when you want to display the fan page in various languages ? I have noticed that many forums and blogs suggested to use <fb:restricted-to> FBML tag which apparently is deprecated. In this post, we are going
Read Full PostHow to : Create a new WordPress user using PHP function
It's pretty easy to manage users in WordPress when you are logged into WordPress Dashboard as an Administrator. But what if you want to create a user via a PHP function ? The method which we are going to discuss is useful when you are creating a plugin or if you want to create a user by simply execu
Read Full PostSet the User Agent With PHP cURL
cURL is a sleek way to grab contents from a URL. It's helpful in PHP where servers have banned using the function file_get_contents() . A while back I had shared a post which show on how to grab the contents of a URL using cURL. However, cURL is much more than just grabbing data. It can be used to m
Read Full PostBatch resize using ImageMagick
People who do not use or cannot use Adobe Photoshop ,whatever the reason maybe, processing large number of images could be a pain for them. And for those who use Photoshop, it could be a slow process. Using ImageMagick to resize images from Command Line is faster. It may not be as easy as click-cl
Read Full PostPNG Transparency with ImageMagick
I am sure it took you long to figure it out as to how do we change the Transparency of PNG images using ImageMagick. Same was the case with me and that is why I decided to write a post for the same. As you might be aware, ImageMagick is really awesome tool for image manipulation. It performs Imag
Read Full PostHow to pass data into Facebook iFrame application
While you are developing Facebook application you sometimes need to pass data to the application. As a matter of fact iFrame cannot access data from the parent window. Hence you cannot access certain parameters from the URL using $_GET as a usual process. Facebook provides a way to pass certain d
Read Full Postmysql.sock path in Mac OS X
In my last post I discuss how to enable PHP over Apache in Mac OS X lion and today I bumped into a new problem. The problem is that when you install MySQL on Mac OS X and try to connect it via PHP, you will get an error. This error is thrown due to the fact that the path of the MySQL sockets are dif
Read Full PostEnable Apache,PHP in Mac OS X
Mac OS X comes with Apache,PHP pre-installed but is not enabled by default. Just when you get on to your new Mac OS X you definitely want to enable these. The following steps should help you enable PHP over Apache and you can start rolling. Enable PHP module in httpd.conf We first need to enabl
Read Full PostWordPress : Run shortcode in PHP template file
WordPress shortcode is very useful while creating new posts or pages. It is a nifty way to perform certain tasks in the post. For instance, if you want to add a youtube video or image gallery then WordPress shortcodes are quite useful. Many plugins provide their own shortcodes for displaying cert
Read Full PostAdd default content for a new post in WordPress
Most of the bloggers write the blogs in a certain format or at-least have a common signature or a punch line in every post on their blog. For example in my blog posts I always end the posts with Stay Digified!! Sachin Khosla So what if we can automate that type of text such that it shows up aut
Read Full PostAdd PHP GD support to apache in Ubuntu Linux
PHP GD library is used to created images on the fly. This library is not installed or activated by default when you first install Apache on Linux. But GD library is used widely while developing websites. For eg. if you want to create a captcha image for a registration form, then you are going to use
Read Full PostCreating dynamic menu with re-order option in wordpress
WordPress is a powerful CMS for a website and it provides features which makes it easy to use CMS. Navigation or Menu is one of the key point of the website. People tend to change Menu names, links, reorder them ever now & then. In a normal website it is a tedious job to change menu every time y
Read Full PostWordPress wp_nav_menu separator and First Last Classes
wp_nav_menu is a wordpress built-in plugin that allows you to show navigation in the front-end. This simple function picks the menu defined in the wp-admin dashboard and displays it as the list. Just like other wordpress functions this is also powerful. It takes various parameters to customize the o
Read Full PostCheck if PHP is running in safe mode or no
Lately, I have been playing around with PHP configuration. And I realized that the runtime configurations do not change using ini_set function, if you are running PHP in the safe mode. A simple check in PHP can tell you this. Notice the code block below and which allows to check this.
Read Full Post