[PHP-WIN] PHP / Apache on XP

2002-03-11 Thread Paul Wallace
Hi, I am trying to setup PHP 4.* on XP. Whenever I access a PHP page from IE using Apache, I am prompted to either download the file or the page can't be found. In the Apache httpd.conf file I have uncommented: AddType application/x-httpd-php .php AddType application/x-httpd-php-sourc

[PHP-WIN] PHP Mail / PHP.ini

2002-01-16 Thread Paul Wallace
Hello, I have recently installed PHP 4 (c:\PHP) with Apache. I have successfully run multiple PHP scripts with some quite complex code. Except for MAIL! Upon installing PHP I had 3 PHP.? files with a search for 'php.ini': c:\PHP\pear\tests\php - with 2 line content: ; php.ini for PEAR te

[PHP-WIN] unescape

2002-01-11 Thread Paul Wallace
Hello, To read a database field with space characters in it from a MySQL database, and out put that result in HTML I have the PHP: $topic_description I get the HTML output as: about%20this%20forum And so on for subsequent space characters. In the past I have had to remove '%20' output usi

[PHP-WIN] syntax, 3 or 4?

2002-01-10 Thread Paul Wallace
Hello, Can anyone clarify if this code below is indeed PHP v4 or 3? It will save significant rigmarole. Where can I find online documentation for v3? I have this 'PHP 4 Bible' by IDG Books, but it's for the version the name suggests. Many thanks Paul. > What version of PHP do you have?

[PHP-WIN] remote DB access

2002-01-10 Thread Paul Wallace
Hello, I have the code: #11 $db = mysql_connect("100.110.120.130", "root", ""); #12 mysql_select_db("DBname",$db); #13 $result = mysql_query("select * from gmember where gmember_id = '$login' and gmember_password = '$password'",$db); #14 $nrow=mysql_num_rows($result); #15

[PHP-WIN] PHP header

2002-01-09 Thread Paul Wallace
pathname telling the server it is a PHP page, and if so, what is the syntax and where it is embedded in the HTML? Many thanks Paul Wallace Concerto Developer/Support Consultant ProSolutions Asia Pacific Co., Ltd. Tel +66 2 583 6161-5 Fax +662 583 6535 www.ProSolutions-ap.com -- PHP Windows