Convert hex color to RGB values in PHP
Check out PHP’s hexdec() and dechex() functions: http://php.net/manual/en/function.hexdec.php Example:
Check out PHP’s hexdec() and dechex() functions: http://php.net/manual/en/function.hexdec.php Example:
If you want to add WordPress Header & Footer in a PHP script flow those stapes: Step-1: Upload Your PHP project in the WordPress root folder. Step-2: Added this code on the PHP script header: Well Done! Now you can use all wp functions in your PHP project, like wp_head(), wp_footer(), get_header(), get_footer(), and more.
777 is a permission in Unix based system with full read/write/execute permission to owner, group and everyone.. in general we give this permission to assets which are not much needed to be hidden from public on a web server, for example images.. You said I am using windows 7. if that means that your web server is Windows … Read more
You can store the array using serialize/unserialize. With that solution they cannot easily be used from other programming languages, so you may consider using json_encode/json_decode instead (which gives you a widely supported format). Avoid using implode/explode for this since you’ll probably end up with bugs or security flaws. To convert an array (or any object) into a string using PHP, call the … Read more
Use this Code Create Function for Difference Between Two Dates Using PHP: Call Function:
Use this code for the difference between two dates: Simple like that:
For Subtract 1 week use this code: Please replace your date with ‘2012-12-12‘. You Can Also Use This Code for Subtract 1 Week: Please replace your date with ‘2012-12-12‘.
For Subtract 1 day use this code: Please replace your date with ‘2012-12-12‘.
For Subtract 1 day use this code: please replace your date with ‘2012-12-12‘. For Subtract 7 days use this code: please replace your date with ‘2012-12-12‘. For Subtract 30 days use this code: please replace your date with ‘2012-12-12‘.
For Subtract 1 month use this code: Please replace your date with ‘2012-12-12‘.