Returning XML with PHP

Some times (when working with Ajax requests or serving data for other sites) we need to generate XML output. Sending the well formed XML code only will not be interpreted as XML or will be very hard to parse. For external applications and Ajax will be available as simple text. In order to serve it […]

Read more...

Prestashop magic quotes fix

This one requires some PHP knowledge. This is a core hack. Today i installed Prestashop and i’ve got a lot of trouble with lots of backslashes in an otherwise valid SQL query. Somehow i’ve managed to get thru it by altering the installation code and removing the addslashes functions. I know it’s not the best way, but it […]

Read more...

Connecting to a MySQL database with PHP

In this tutorial, i will tell, how to connect to an existing MySQL database with an existing username and password. For the first, we need the database and the credentials for it. If you are using a free web hosting service with PHP and MySQL support, you already have this information. If you have a […]

Read more...