Page 1 of 1

php main error error

Posted: Thu Aug 07, 2003 12:19 pm
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.

Posted: Thu Aug 07, 2003 12:46 pm
by m3rajk
can we see the function that causes the error?

Posted: Thu Aug 07, 2003 4:46 pm
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.

Posted: Thu Aug 07, 2003 10:45 pm
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"; ?>

Posted: Thu Aug 07, 2003 11:01 pm
by mikematyus
nevermind, I got it. thank you.