Chuck \"PUP\" Payne wrote:

>Hi,
>
>I am trying to start using inc files. But I am this this error....
>
>Warning: Failed opening '/local/htdocs/movies/style.inc' for inclusion
>(include_path='.:/usr/share/php') in /local/htdocs/movies/lmenu.php on line
>3
>
>I have this in my lmenu.php
>
>Include ("/local/htdocs/movies/style.inc");
>
>So can't someone telling me what I am doing wrong. I thought .inc where
>easy.
>
>
>Chuck Payne
>
>
>
>  
>
PHP gets lost a lot with regards to where it is. Try
Include ("style.inc");

With what you have, assuming lmenu.php is in /local/htdocs/movies, it is 
likely looking for
/local/htdocs/movies/local/htdocs/movies/style.inc
It is finicky!

John Hinton





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to