afebmunn Posted February 4, 2011 Share Posted February 4, 2011 :'( Hi guys im ben from Liverpool and im making an online store in php, and have been following a tutorial. the problem is my site so far is on wampserver. When i upload the database and php files to an online host my work just does not show. Has any1 got any advice or willing to help me? i would much appreciate it! Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/ Share on other sites More sharing options...
drisate Posted February 4, 2011 Share Posted February 4, 2011 If it does not show it may be because of a PHP Error. Try adding this: ini_set('display_errors', "1"); error_reporting(E_ALL & ~ E_NOTICE); Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169944 Share on other sites More sharing options...
afebmunn Posted February 4, 2011 Author Share Posted February 4, 2011 hi wehere shall i add this? is there any chnace someone cud look on my server for me? Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169949 Share on other sites More sharing options...
Pikachu2000 Posted February 4, 2011 Share Posted February 4, 2011 Create a script with only the following in it, save it, upload it to your server and call it into your browser. Do the same with your local environment, then compare the differences. <?php phpinfo(); ?> Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169958 Share on other sites More sharing options...
drisate Posted February 4, 2011 Share Posted February 4, 2011 hi wehere shall i add this? is there any chnace someone cud look on my server for me? Just add that on top of the index.php page just under the <?php line Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169968 Share on other sites More sharing options...
afebmunn Posted February 4, 2011 Author Share Posted February 4, 2011 ok i got the folowing which im sure i have stored on my server: Warning: include(views/layouts/shop/index.php) [function.include]: failed to open stream: No such file or directory in /home/vhosts/ink-crazy.orgfree.com/public_html/inkcrazy/views/layouts/shop.php on line 28 Warning: include() [function.include]: Failed opening 'views/layouts/shop/index.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/ink-crazy.orgfree.com/public_html/inkcrazy/views/layouts/shop.php on line 28 Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169973 Share on other sites More sharing options...
jcbones Posted February 4, 2011 Share Posted February 4, 2011 index.php in views/layouts/shop/ doesn't exist. Make sure all of your files and directories are uploaded, and named the same as your local server. Link to comment https://forums.phpfreaks.com/topic/226703-help-i-am-really-stuck/#findComment-1169988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.