need help deciphering these codes :oops:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
newbiejoyce
Forum Newbie
Posts: 4
Joined: Mon Mar 01, 2004 9:54 pm
Location: Washington, DC

need help deciphering these codes :oops:

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
newbiejoyce
Forum Newbie
Posts: 4
Joined: Mon Mar 01, 2004 9:54 pm
Location: Washington, DC

more errors??

Post 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?
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post 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...
Post Reply