lemondsgn Posted October 16, 2007 Share Posted October 16, 2007 i'm a total newbie in php. i'm migrating the website to a newserver and i'm having problems because the website don't load. The url is: http://www.montgru.pt/cgi-bin/index.php but when the browser reach the page it doesn't load. The webserver is Windows NT IIS100 5.0 build . You can view all the php info here: http://www.montgru.pt/cgi-bin/i.php the code of the index file is #!/usr/local/bin/php <?php require_once('./common/common.php'); $res = $db->getAll("SELECT * FROM news"); foreach($res as $key => $item) { if(strpos($item['html'], ".php") !== false) { $res[$key]['link'] = $item['html']; }else { $res[$key]['link'] = "noticia.php?id={$item['id']}"; } } if(is_array($res) && count($res) >= 1) { $smarty->assign('news', $res); }else { $smarty->assign('statusMsg', "Não existem news disponíveis de momento!"); } $smarty->assign("paginaAux", "home.tpl"); $smarty->display('layout.tpl'); ?> Can someone help me please. I'm having a problem with my client. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/73455-problems-loading-the-index-file/ Share on other sites More sharing options...
kellz Posted October 16, 2007 Share Posted October 16, 2007 "!==" should be "!=" thats all i can see wrong but hey im half asleep^^ Quote Link to comment https://forums.phpfreaks.com/topic/73455-problems-loading-the-index-file/#findComment-370536 Share on other sites More sharing options...
marksie1988 Posted October 16, 2007 Share Posted October 16, 2007 try just do something simple like an echo helloworld and if that shows up you know its a coding issue if not you know that its a server issue Quote Link to comment https://forums.phpfreaks.com/topic/73455-problems-loading-the-index-file/#findComment-370538 Share on other sites More sharing options...
lemondsgn Posted October 16, 2007 Author Share Posted October 16, 2007 try just do something simple like an echo helloworld and if that shows up you know its a coding issue if not you know that its a server issue i put the echo helloworld in the second line and it show up.... what's happening? thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/73455-problems-loading-the-index-file/#findComment-370553 Share on other sites More sharing options...
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.