Alessandro Lacava’s Blog

Google
 

March 20, 2007

DRCtalk: a great open-source Ajax/PHP-based web chat

Filed under: Computer, PHP, AJAX — alessandrolacava @ 9:54 pm

drctalk.png is a great open-source web chat developed using the Ajax technology and PHP as a server-side language. Download it here.


October 27, 2006

How to make a PHP script display the correct characters

Filed under: Computer, PHP — alessandrolacava @ 2:31 pm

In short, the problem is that your script doesn't display the retrieved data correctly. For example, they are replaced by question marks, ?.

Putting this line of code at the beginning of your script might solve your problem:

PHP:
  1. header("Content-Type: text/html; charset=iso-8859-1");

Of course you'll have to change the charset value to match your needs.  Furthermore this might not be enough, you might also have to change the charset of the system your web application run into.
I hope this helps!


Next Page »