Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
error/warning on web pages
Old 11-28-2008, 10:38 AM error/warning on web pages
Novice Talker

Posts: 6
Trades: 0
Hi.
Ok, i have just changed servers and pointed my domain to the new server etc... all is well but now there is a warning/error message at the bottom of the pages.
Have a look http://www.jugglingpirate.com

I have not changed any code. The only thing i have changed is the server.

Any help? i am no master for writing websites but do know a little bit (i am an electronic engineer)

cheers

o yeh the first few lines of code:
<?php

$group = $_GET[group];
$page = $_GET[content];
$ext = "php";
$content = "$page.$ext";
if (!$page)
{
$content = "home.php";
}
?>

line 3 & 4 are the $group & $page lines

line 259 is
if (file_exists("$head"))
primetek is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-28-2008, 11:09 AM Re: error/warning on web pages
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Try changing the following lines:

PHP Code:
$group $_GET[group];
$page $_GET[content]

//to

//includes single quotes
$group $_GET['group'];
$page $_GET['content'
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 11-29-2008, 11:28 AM Re: error/warning on web pages
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Good Point above, but I would also try

PHP Code:
<?php

$group 
$_GET['group'];
$page $_GET['content'];
$ext "php";
$content $page.'.'.$ext;
if (!
$page)
{
$content "home.php";
}
?>

if (file_exists("$head")) // Does the var $head exist?
That last error is say that the var $head is not set yet and has no path.
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 12-03-2008, 09:57 AM Re: error/warning on web pages
Novice Talker

Posts: 5
Location: Chennai India
Trades: 0
Also try to print out the variable $head and also see whether the file has permissions etc
__________________
Chris, Director, Chrisranjana.com

Please login or register to view this content. Registration is FREE
chrisranjana is offline
Reply With Quote
View Public Profile Visit chrisranjana's homepage!
 
Reply     « Reply to error/warning on web pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20589 seconds with 12 queries