I have a customer who purchased one of my products (a script based on php/mysql). I didn't write the script (I'm not very good at programming) - I had it written for me. My customer has moved to a new server and tried to re-install the script. But for some reason, when he tries to run setup.php, the page loads but has no content. Normally it's supposed to have a couple of buttons - "Create tables" and "Delete tables". When I look at the source code, it just has nothing in between the <body> tags.
Any clue how to start diagnosing this problem?
Vito
Studio64
02-10-2003, 11:11 AM
What does the source of the loaded page look like?
Is the new server properly configured (i.e. is PHP installed?)
Was there a PHP/MySQL version difference b/twn the new & the old server?
Were you directly copying the source code from the old to the new or are you re-installing it?
What type of script is it?
What's your favorite color? :D
What does the source of the loaded page look like?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Is the new server properly configured (i.e. is PHP installed?)
Yes. He actually has a db already set up and running properly. We just need to get my script tables set up in it. Since this is a "shared" db, should I be specifying a table prefix to recognize the db?
Was there a PHP/MySQL version difference b/twn the new & the old server?
No difference.
Were you directly copying the source code from the old to the new or are you re-installing it?
Re-installing it.
What type of script is it?
It is a script that runs my EyesOnTraffic.com traffic monitoring program.
What's your favorite color?
#003399 :D
Thanks for your help.
Vito
Studio64
02-10-2003, 12:04 PM
The only way for the server to pass the code you copied is if absolutley nothing is sent back to the browser but, the page does exist.
i.e.
<??>
Will return the code you pasted but,
a<??>
Will just return "a" with nothing else.
The page setup.php is returning literally nothing to the server. Check to make sure the FTP upload went properly and the file was not simply just created and never filled with content.
Also check to be sure the right code is in setup.php.
Aside from that, the source of your error is the fact that the page is returning zero (which is actually a starting point because it eliminates a few possible errors).
Thanks for your input, Studio64. I saw that the tables were already set up in the database but were not populating. I figured out that it was a matter of table prefixes. I changed that and it worked. :)
Vito