include is not working -
04-25-2012, 08:00 PM
I just have create my own website and upload it to the server using file manager to the public_html folder.
My website index named "index.php" and it use an include file named config.php which is located in a folder named include (in: \include\config.php).
I have upload my include folder to public_html but i receive an error message when opening my index:
Warning: include(include/config.php) [function.include]: failed to open stream: No such file or directory in /home/a4467105/public_html/index.php on line 2
Warning: include() [function.include]: Failed opening 'include/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4467105/public_html/index.php on line 2
Fatal error: Call to undefined function do_html_header() in /home/a4467105/public_html/index.php on line 3
Also my direct website name doesn't open my index directly, i have to enter "/index.php" to open it
can anyone help me in these two issues?
Last edited by d3iti; 04-25-2012 at 08:10 PM.
Reason: inappropriate title according to forum rules