Jump to content

Problems loading the index file


lemondsgn

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/73455-problems-loading-the-index-file/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.