Frames Modems Help Home Page Chipsets Search No Frames
Diary Entries See also Site Info & Diary.
5 October 2001 Testing the include file (see 4 Oct)...
  Both files above were placed into the root of my copy webspace (see 18 Aug) on my personal computer then Apache launched - MySQL was not launched. Launching a browser with "127.0.0.1" (no quotes) in the address bar produced a listing of files (still no index.html file present). Clicking on the test.php file gave... a parse error!

Lay a concrete path & you must learn to expect dirty fingernails. Do some programming & you must learn to expect parse errors (something has been typed wrong). PHP was pretty good in this respect - although the file was included within a second file the parse error identified the correct line in the original file. All the parse errors have been fixed in the files above (I hope). After fixing them in the include file I eventually got the first error msg in the Include file (Cannot connect to the Database-server) - success.

Next, MySQL was launched (using mysqld.exe - the MySQL daemon) at a DOS prompt & the database given a wrong name within the include file. Clicking on it again now gave the second error msg (no database connection) - success.

Third & final - give the database it's correct name, connect again and - wah hey! we are connected, Jim. Triple success.