odivo1 Posted December 7, 2008 Posted December 7, 2008 I have a problem, I have done everything that I could do, I uploaded the files, installed the website, but when I try to view my store, on http://watchphone.heliohost.org/, I just get this error messages: Warning: include(../cont/cont.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 23 Warning: include(../cont/cont.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 23 Warning: include() [function.include]: Failed opening '../cont/cont.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 23 Warning: include(../cont/Control.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 25 Warning: include(../cont/Control.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 25 Warning: include() [function.include]: Failed opening '../cont/Control.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 25 Warning: include(../cont/Pages.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 27 Warning: include(../cont/Pages.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 27 Warning: include() [function.include]: Failed opening '../cont/Pages.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 27 Warning: include(../cont/Mysql.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 29 Warning: include(../cont/Mysql.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 29 Warning: include() [function.include]: Failed opening '../cont/Mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 29 Fatal error: Class 'DB' not found in /home/hamza87/public_html/index.php on line 33 I hope you guys can help me get this website start running Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 Since this is the index page, you don't need the "../" in the beginning, Try including it with simply "cont/file.php" Also to remove error messages so your viewers don't see them, you can put an @ symbol in front of the function (ex: <?php @include) to remove these error messages. Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: Since this is the index page, you don't need the "../" in the beginning, Try including it with simply "cont/file.php" Also to remove error messages so your viewers don't see them, you can put an @ symbol in front of the function (ex: <?php @include) to remove these error messages. I am sorry, but I did not undertsand, how do I and where do I but that "@" symbol? And what do you mean with try including it with simply "cont/file.php", I am very happy for the help you give me Unveiled Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 odivo1 said: I am sorry, but I did not undertsand, how do I and where do I but that "@" symbol? And what do you mean with try including it with simply "cont/file.php", I am very happy for the help you give me Unveiled The @ symbol won't fix your problem, just will hide the error messages but it won't work still. Forget about it for now.. See how you linked it with include(../cont/cont.php) ? Well try this instead: include(cont/cont.php). The reason for this is that it is your homepage and is not in any directory/folder. That means the "cont" folder is within the same directory and can be accessed at: http://watchphone.heliohost.org/cont/ . Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: odivo1 said: I am sorry, but I did not undertsand, how do I and where do I but that "@" symbol? And what do you mean with try including it with simply "cont/file.php", I am very happy for the help you give me Unveiled The @ symbol won't fix your problem, just will hide the error messages but it won't work still. Forget about it for now.. See how you linked it with include(../cont/cont.php) ? Well try this instead: include(cont/cont.php). The reason for this is that it is your homepage and is not in any directory/folder. That means the "cont" folder is within the same directory and can be accessed at: http://watchphone.heliohost.org/cont/ . Thanks, I did as you said, now the only thing that remains is this: Warning: include(.../cont/Control.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 25 Warning: include(.../cont/Control.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 25 Warning: include() [function.include]: Failed opening '.../cont/Control.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 25 Warning: include(.../cont/Pages.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 27 Warning: include(.../cont/Pages.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 27 Warning: include() [function.include]: Failed opening '.../cont/Pages.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 27 Warning: include(.../cont/Mysql.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 29 Warning: include(.../cont/Mysql.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 29 Warning: include() [function.include]: Failed opening '.../cont/Mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 29 Fatal error: Class 'DB' not found in /home/hamza87/public_html/index.php on line 33 Should I do the same with these too? Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 odivo1 said: Should I do the same with these too? Yup, exactly the same. Except I don't get what PHP function is the last one, the Class 'DB' one. Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: odivo1 said: Should I do the same with these too? Yup, exactly the same. Except I don't get what PHP function is the last one, the Class 'DB' one. Thanks again, but now we have new problems, this is the code: Warning: include(admin-header.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 635 Warning: include(admin-header.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 635 Warning: include() [function.include]: Failed opening 'admin-header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 635 Warning: include(admin-footer.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 639 Warning: include(admin-footer.php) [function.include]: failed to open stream: No such file or directory in /home/hamza87/public_html/index.php on line 639 Warning: include() [function.include]: Failed opening 'admin-footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hamza87/public_html/index.php on line 639 any idea? Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 Is admin-header.php in some sort of folder? Can you link the file here like I did with your cont folder. Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: Is admin-header.php in some sort of folder? Can you link the file here like I did with your cont folder. Yes it is, it is in a folder named admin if I link it, you will just end up on the admin site. This is how it is located: http://watchphone.heliohost.org/public_htm...dmin-header.php or http://watchphone.heliohost.org/admin/admin-header.php Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 odivo1 said: Unveiled said: Is admin-header.php in some sort of folder? Can you link the file here like I did with your cont folder. Yes it is, it is in a folder named admin if I link it, you will just end up on the admin site. This is how it is located: http://watchphone.heliohost.org/public_htm...dmin-header.php or http://watchphone.heliohost.org/admin/admin-header.php Oh then just do it this way: include(admin/admin-header.php) Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: odivo1 said: Unveiled said: Is admin-header.php in some sort of folder? Can you link the file here like I did with your cont folder. Yes it is, it is in a folder named admin if I link it, you will just end up on the admin site. This is how it is located: http://watchphone.heliohost.org/public_htm...dmin-header.php or http://watchphone.heliohost.org/admin/admin-header.php Oh then just do it this way: include(admin/admin-header.php) I did it the error messages are not there anymore, but the website, does not look like it was ment to look like. See for your self: http://watchphone.heliohost.org/ Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 odivo1 said: I did it the error messages are not there anymore, but the website, does not look like it was ment to look like. See for your self: http://watchphone.heliohost.org/ Well the main purpose was to fix all errors which we accomplished. But how IS it supposed to look like? Perhaps you didn't link any CSS files or something? Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Well the main purpose was to fix all errors which we accomplished. But how IS it supposed to look like? Perhaps you didn't link any CSS files or something? something like this Quote
Unveiled Posted December 7, 2008 Posted December 7, 2008 Are you sure you uploaded all the files and your main coding is correct? Were there instructions or an example page of how everything should be setup? Quote
odivo1 Posted December 7, 2008 Author Posted December 7, 2008 Unveiled said: Are you sure you uploaded all the files and your main coding is correct? Were there instructions or an example page of how everything should be setup? Yeah I have done everything right when it comes to install it, but it worked fine on hostgator server, I don't know why it does not work here. Maybe the Php is the problem? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.