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…

Gennaio 29, 2010

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…

Gennaio 25, 2010

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…

Gennaio 21, 2010

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…

Gennaio 20, 2010

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…

Gennaio 19, 2010

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…

Gennaio 17, 2010

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…

Gennaio 16, 2010

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…

Gennaio 12, 2010

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…

Gennaio 10, 2010

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…

Gennaio 6, 2010