php main error error

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
mikematyus
Forum Newbie
Posts: 3
Joined: Thu Aug 07, 2003 12:19 pm

php main error error

Post by mikematyus »

http://maty.us/taylor_dishwasher.php

I used the php require " "; code on my page and the content shows up correctly, but it still has the main(); error. does anyone know if this is a server problem or my problem?

I also tried the php include " "; code and it happened again.

matyus@maty.us contact if you can help, thanks.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

can we see the function that causes the error?
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post by pootergeist »

swap to an absolute root path to the included files -

include('/home/whatever/pub/folder/file.ext');

a leading slash / indicts root and thus removes the need for file seeking.
mikematyus
Forum Newbie
Posts: 3
Joined: Thu Aug 07, 2003 12:19 pm

Post by mikematyus »

so, type out "http://maty.us/other/links.php" ?
I did that and it still has the seeking error.


error causing code:

<?php require "http://maty.us/other/links.php"; ?>
mikematyus
Forum Newbie
Posts: 3
Joined: Thu Aug 07, 2003 12:19 pm

Post by mikematyus »

nevermind, I got it. thank you.
Post Reply