[PHP-DB] Incorrect encoding when data read from a mysql database

2010-12-03 Thread Neil Jackson
Hi, I am designing a website that requires storing data in 3 different languages, English, Portuguese and Tetum. When I read the data from the database the accented characters are displayed as a ? in Firefox and Opera, a square in IE and correctly in Chrome How can I convert it on the fly and d

[PHP-DB] unlink problems

2009-11-25 Thread Neil Jackson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I use the following to delete a file on a webserver if( unlink( "./$filename" ) ) { echo $filename." deleted "; $action=''; echo "document.location.href='$PHP_SELF?action=$action&code

[PHP-DB] Access a database on another domain

2009-08-02 Thread Neil Jackson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I host a number of running clubs websites. They are all hosted on different domains on a hosting service. They all share a common database table of fixtures. At present I have copied the database table to each domain but this time consuming. I wa

Re: [PHP-DB] user directory from a form

2006-10-01 Thread Neil Jackson
I understand the problem! Are you saying the path is being cut leaving only the filename, or you don't know how to extract the path? Niel -- Neil Jackson DipPharm DipData Tel: +27 31 7632795 Fax: +27 31 7632960 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] user directory from a form

2006-10-01 Thread Neil Jackson
;; echo ""; echo "File name (Any attachment)"; echo ""; echo ""; I pass this to another file. I am trying to read the directory that the users file is in. ie "/srv/www/htdocs/functions/email/file.txt", I want to read the "/srv/www/htdo