Page 1 of 1

need help deciphering these codes :oops:

Posted: Mon Mar 01, 2004 9:54 pm
by newbiejoyce
Hello ladies and gents...I'm a beginner in this cool world of PHP programming...I guess by force. I've just bought a website from a supposed web programmer on ebay and well, after transferring the website on my own host, having a hard time trying to figure out what certain error messages mean. Please help :(

I'm getting the following when I run the install.php which is saved in the correct folder on the host server:

Warning: main(_header.php): failed to open stream: No such file or directory in /home/matesear/public_html/webmaster/install.php on line 2

Fatal error: main(): Failed opening required '_header.php' (include_path='.:/usr/local/lib/php') in /home/matesear/public_html/webmaster/install.php on line 2

Like I said, all files are where they should be according to the seller of this website, and the "_header.php" is there....I have no idea why it's not populating the database and running through like it is supposed to. Anu suggestions?

Joyce

Posted: Mon Mar 01, 2004 11:09 pm
by m3mn0n
There is a chance that application has a configuration file that is setting the current directory. Now if you didn't change that to match where the application is now, then messages like that appear.

Make sure that if there is such a config file, that is has the right path to where the scripts are located on the server.

Hope this is the case, and it helps.

more errors??

Posted: Wed Mar 03, 2004 2:33 pm
by newbiejoyce
Well, thanks for the reply. It cleared a lot of the problems. However, still some last tweakings that I can't figure out. On http://www.matesearcher.com, there is an error in the middle of the page saying:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/matesear/public_html/lib/mysql.lib on line 29.

Also, when I click on the Classifieds button, it's suppose to go to a section with ads, and I've run the install.php on it already, but getting the error:
No Database Selected

Oh gosh, I'm so overwhelmed. What should I do?

Posted: Wed Mar 03, 2004 3:13 pm
by xisle
You should consider paying someone for an hour worth of setup time. Try Job Hunt at viewforum.php?f=17
Warnings need to be turned off and the database is not setup properly...