Yearly Archives: 2010
10 PHP usefull functions for MySQLi stuff (mysql improved)
I’ve modified the previous post to use mysqli instead of mysql. Was it necessary? I think it was good step…
10 PHP usefull functions for MySQL stuff
Here is my personal collection of 10 php function that I always include in my database function library. I think…
Using REPLACE in an UPDATE statement to fix data on MSSQL and MySQL
Sometimes it’s necessary fix data on the database. I had to fix on a Microsoft database: I had to fix…
New version of Mini Bots PHP Class (v.1.4)
I’ve added three more bots to the Mini Bots Php Class, now the version number is 1.4 and it has…
PHP to get enum/set values from mysql field
This function returns an array with the elements allowed in a ENUM or SET mysql field. This can be usefull…
Recursive chmod on files and directory
It has happened to me that files uploaded with a small CMS cannot be downloaded with a FTP client for…
Posting to Facebook from website with Facebook Connect
This post is part of the Facebook Connect Tutorial and it will show how to add “post to wall” function…
PHP Web page to text function
I’ve found this nice small bot on the www.php.net site, thanks to the author of the script on the preg_replace…
Copying remote files on your server with PHP
UPDATE: This function has been inserted in the Mini Bots PHP Class Here is a function that let you copy…
Bot that retrieves url meta data and other infos
From a given url this function retrieves page title, meta description, keywords, favicon, and an array of 5 images to…
Sending HTML emails with attachment with PHP
This function allows you to send an HTML email with a file attachment. To do this it’s necessary to read…
Test if a remote url exists with PHP and CURL
If you have to test if a local file exists you will probably use the php file_exists function, but if…