T
The Annoyed Man
Guest
Boy, I hope somebody can help me in some concrete fashion....
First, the background: I am not an expert at installing these things, and I barely understand any of the discussions I've read here, or on other help forums. However, I have been doing simple coding in PHP and using MySQL for a few years now, and I've been running both PHP and MySQL on my home PC for quite a long time without difficulty. I'm not the sharpest programming knife in the drawer, but neither am I completely lost.
My work machine is a dual processor G5, running OS X 10.3.8 with the webserver that is native to the OS running. I have installed PHP version 5.0.3 (www.entropy.ch Release 1) and MySQL 4.0.23-standard. I have also installed phpMyAdmin 2.6.1, and it is running beautifully. I am able to use it to create databases, tables, and records, as well as to edit existing databases, tables, and records; so I know definitively that both PHP and MySQL are working on this machine. HOWEVER....
I cannot get PHP to talk to MySQL in the pages that I write when trying to execute those scripts on my local drive; nor can I get it to execute a simple script such as declaring a variable to equal such and so and then trying to echo the variable in the body, or trying to carry a variable forward from a form to the next page. But, those same pages function just fine when uploaded to the web and running on a hosting webserver.
When I run http://127.0.0.1/~MyComputerName/test.php (which performs the phpinfo() function), it appears to show that everything is running fine. All the PHP files I'm writing are located in subdirectories within the user/sites/ directory, which is where all the documentation I can find says they should be. The fact that phyMyAdmin is running just fine in that directory tells me that I'm doing the right thing.
It would be great if I didn't have to upload each script to check its validity each time I make an edit, and any constructive suggestions would be very much appreciated.
Thank you.
First, the background: I am not an expert at installing these things, and I barely understand any of the discussions I've read here, or on other help forums. However, I have been doing simple coding in PHP and using MySQL for a few years now, and I've been running both PHP and MySQL on my home PC for quite a long time without difficulty. I'm not the sharpest programming knife in the drawer, but neither am I completely lost.
My work machine is a dual processor G5, running OS X 10.3.8 with the webserver that is native to the OS running. I have installed PHP version 5.0.3 (www.entropy.ch Release 1) and MySQL 4.0.23-standard. I have also installed phpMyAdmin 2.6.1, and it is running beautifully. I am able to use it to create databases, tables, and records, as well as to edit existing databases, tables, and records; so I know definitively that both PHP and MySQL are working on this machine. HOWEVER....
I cannot get PHP to talk to MySQL in the pages that I write when trying to execute those scripts on my local drive; nor can I get it to execute a simple script such as declaring a variable to equal such and so and then trying to echo the variable in the body, or trying to carry a variable forward from a form to the next page. But, those same pages function just fine when uploaded to the web and running on a hosting webserver.
When I run http://127.0.0.1/~MyComputerName/test.php (which performs the phpinfo() function), it appears to show that everything is running fine. All the PHP files I'm writing are located in subdirectories within the user/sites/ directory, which is where all the documentation I can find says they should be. The fact that phyMyAdmin is running just fine in that directory tells me that I'm doing the right thing.
It would be great if I didn't have to upload each script to check its validity each time I make an edit, and any constructive suggestions would be very much appreciated.
Thank you.