unable to Include Files php using include -
i have page called index.php includes page new_display.php again includes 2 pages i.e. x.php , y.php
the include working fine on localhost not on hosting! error getting :-
warning: require(/interests/sketching/udis.php) [function.require]: failed open stream: no such file or directory in /hermes/bosweb/web054/b548/ipg.pingcampuscom/mysql/interests/sketching/new_display.php on line 154
fatal error: require() [function.require]: failed opening required '/interests/sketching/udis.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web054/b548/ipg.pingcampuscom/mysql/interests/sketching/new_display.php on line 154
the directories :
index.php -> localhost/mysql
new_display.php -> localhost/mysql/interests/sketching/new_display.php ( included in index.php /interests/sketching/new_display.php )
then in new_display x.php , y.php included
/interests/sketching/x.php
/interests/sketching/y.php
it works in localhost gives error when publish pages on domain
does has idea why isn't working?
/ indicates absolute path, meaning script looking in root of filesystem directory called interests.
instead, try removing / @ start of paths, or prepend $_server['document_root'] them.
Comments
Post a Comment