Thursday, September 5, 2013

Set php.ini file Values Using .htaccess

Set php.ini file Values Using .htaccess

If are using PHP as an apache module, PHP allows us to modify php.ini using Apache Configuration. This can be done using the following directives: php_value name value  Sets the value of the specified directive. Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives. To clear a...
Check domain availability using cURL php

Check domain availability using cURL php

Here is a simple function for checking domain availability using cURL in php. <?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ function domain_checker($domain) { $data = 'http://'.$domain; // Create a curl handle to a non-existing location $ch = curl_init($data); // Execute curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); //...
WordPress Functions for functions.php File

WordPress Functions for functions.php File

Here are some of common functions in WordPress theme’s functions.php file that I would suggest you include in your functions.php file Get Ping/Trackback Count Here is an interesting one I used recently. This function returns the number of pings/trackbacks for a post. This can be useful if you only...
Month Number to Month Name PHP

Month Number to Month Name PHP

This is a simple code for you to convert a month number to a month name in PHP  Example: <?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ $monthNum = 11; $monthName = date("F", mktime(0, 0, 0, $monthNum, 10)); echo $monthName; //output: November ?> ...

 

© 2014 4everTutorials. All rights resevered.

Back To Top