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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.