Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
emanabdullah is on a distinguished road
 
Posts: 2
Join Date: Apr 2012
Default 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?

Thank you

Last edited by d3iti; 04-25-2012 at 08:10 PM. Reason: inappropriate title according to forum rules
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
nevermore93's Avatar
Senior Member
nevermore93 is on a distinguished road
 
Posts: 298
Join Date: Dec 2011
Location: USA
Default 04-25-2012, 08:30 PM

Can you please post the URL or the code from your index.php so we can take a look? Not much anybody can do without that.


Reply With Quote
(#3 (permalink))
Old
Junior Member
emanabdullah is on a distinguished road
 
Posts: 2
Join Date: Apr 2012
Default 04-26-2012, 08:53 AM

Thank you nevermore93
I think the problem was just because the files were not updated on the server.
Now every thing is working well
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com