Web Hosting Talk







View Full Version : Php Problem


Revex Nation
04-16-2003, 10:22 AM
Hi,

When I visit my mate site I get this php error : Undefined variable: site in C:\Documents and Settings\Matthew\Desktop\Server\sash\main.php on line 102

Site : http://mythhosting.ods.org/sash/main.php

Please help if you can :cool:

Cheers in advance.

Matt

aingaran
04-16-2003, 10:26 AM
well, in the file main.php, what does it say on line 102?

Revex Nation
04-16-2003, 10:35 AM
<? if(!isset($p) && !$site) { $p="home"; include("news.htm"); } else { include("$site.$ext"); } ?>

tazzy
04-16-2003, 10:55 AM
Hello,

Can you provide the whole script itself please? Editing out any information that is private (example usernames and passwords) .

sasha
04-16-2003, 11:14 AM
What is says is

Notice: Undefined variable: site in C:\Documents and Settings\Matthew\Desktop\Server\sash\main.php on line 102


1. it says this because the $site var is not defined. No one can tell you why unless you provide all script

2. and this one is more important.
You have this reported to you because you have set E_NOTICE somewhere. It could be in function ( php.net/error_reporting ) or in php.ini ( http://www.php.net/manual/en/ref.errorfunc.php#ini.error-reporting )

Revex Nation
04-16-2003, 11:32 AM
Its ok guys Ive sorted it. :)

Thanks