I m PHP 5.2.0 / Apache and I can’t access php.ini I try to update .htaccess and added php_value upload_max_filesize “25M” php_value post_max_size “25M” However it will give me “Internal Server Error”
Category Archives: PHP
PHP regular expressions examples
A simple method of validating an IP address using PHP and regular expressions <? $string = “255.255.255.255”; if (preg_match( ‘/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/’, $string)) { echo “IP address is good.”; } ?>
PHP mysqli::set_charset
In connection file add the following lines $mysqli = new mysqli($hostname_###,$username_###,$password_###,$database_###); $mysqli->query(“SET NAMES ‘utf8′”);
install PEAR to PLESK over UBUNDU
#apt-get install lynx #lynx -source http://pear.php.net/go-pear | php press 1 and change the path to /usr/share
Mysqli Tutorial
Moving from a procedural system to object-oriented can be a daunting task. One feature to assist you is the MySQLi class, which allows for an object-oriented approach to database manipulation. This tutorial gives insight into the structure and basic usage of the MySQLi class. If PDO isn’t an option for you, then try MySQLi!
Grab website thumbnail images from other sites
Some websites, like http://www.digg.com, http://www.stumbleupon.com, etc. provide us with website snapshots. Special utility can be written in scripting language (like PHP, Perl, etc.) to grab website image from their search results. Website Thumb Generator can be used to create website thumbnails for your needs, or start your own website thumbnail generation service. Requirements: Windows hosting …
Continue reading “Grab website thumbnail images from other sites”