Current location: Hot Scripts Forums » Programming Languages » PHP » PHP help...


PHP help...

Reply
  #1 (permalink)  
Old 09-23-04, 11:38 PM
Orchidsdance Orchidsdance is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
PHP help...

I just changed my hosting to a new server and my PHP worked great on the old server and now it is giving me errors. I know its probably something simple, but right now I just cant see what it is. If someone could take a look at my website and give me some input that would be greatly appreciated!

http://www.orchidsdance.com

Thanks for any help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-23-04, 11:44 PM
rjwebgraphix rjwebgraphix is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Orchidsdance
I just changed my hosting to a new server and my PHP worked great on the old server and now it is giving me errors. I know its probably something simple, but right now I just cant see what it is. If someone could take a look at my website and give me some input that would be greatly appreciated!

http://www.orchidsdance.com

Thanks for any help!
it might help to see the code to identify what is going on between lines 66 - 193. With PHP you can view the source like you can with java.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-23-04, 11:54 PM
Orchidsdance Orchidsdance is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
This is starting from line 66 and going to 193...

if ($show=="main") {

include("main.inc");


} else if ($show=="blog") {

include ("newart.inc");

include ("blog.inc");


} else if ($show=="journal") {

include ("journal.inc");


} else if ($show=="profile") {

include ("profile.inc");


} else if ($show=="artlink") {

include ("artlink.inc");


} else if ($show=="misclink") {

include ("misclink.inc");


} else if ($show=="weblink") {

include ("weblink.inc");


} else if ($show=="reslink") {

include ("reslink.inc");


} else if ($show=="conlinks") {

include ("conlinks.inc");


} else if ($show=="rants") {

include ("rants.inc");


} else if ($show=="login") {

include ("login.php");


} else if ($show=="resume") {

include ("resume.inc");


} else if ($show=="bannercom") {

include ("bannercom.inc");


} else if ($show=="contact") {

include ("contact.inc");


} else if ($show=="links") {

include ("links1.inc");


} else if ($show=="c1") {

include ("c1.inc");


} else if ($show=="c2") {

include ("c2.inc");


} else if ($show=="c3") {

include ("c3.inc");


} else if ($show=="linkterms") {

include ("linkterms.inc");


} else if ($show=="mybanners") {

include ("mybanners.inc");


} else if ($show=="terms") {

include ("terms.inc");


} else if ($show=="thankyou") {

include ("thankyou.inc");


} else if ($show=="wallpapers") {

include ("wallpapers.inc");


} else if ($show=="weather") {

include ("weather.inc");


} else if ($show=="tagit") {

include ("tagit.inc");


} else if ($show=="portfolio") {


If any more info is needed please let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-24-04, 12:19 AM
Orchidsdance Orchidsdance is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I actually edited the index.php file... this is the new version of the PHP in that file.

<?php

if ($show=="main") {

include("main.inc");


} else if ($show=="blog") {

include ("newart.inc");

include ("blog.inc");


} else if ($show=="journal") {

include ("journal.inc");


} else if ($show=="profile") {

include ("profile.inc");


} else if ($show=="artlink") {

include ("artlink.inc");


} else if ($show=="misclink") {

include ("misclink.inc");


} else if ($show=="weblink") {

include ("weblink.inc");


} else if ($show=="reslink") {

include ("reslink.inc");


} else if ($show=="conlinks") {

include ("conlinks.inc");


} else if ($show=="rants") {

include ("rants.inc");


} else if ($show=="login") {

include ("login.php");


} else if ($show=="resume") {

include ("resume.inc");


} else if ($show=="contact") {

include ("contact.inc");


} else if ($show=="links") {

include ("links1.inc");


} else if ($show=="wallpapers") {

include ("wallpapers.inc");


} else if ($show=="portfolio") {

include ("portfolio.inc");


} else {

include("main.inc");

}

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 09-24-04, 02:39 AM
Bobbi Bobbi is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Your server might have registered globals in a different configuration than your old host ... try to replace $show with $_GET['main'] (in all instances), this could fix it.
__________________
Bobbi - Next-Gen ITsolutions
http://www.ngemu.com - http://www.ngits.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 09-24-04, 06:38 PM
Orchidsdance Orchidsdance is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Bobbi
Your server might have registered globals in a different configuration than your old host ... try to replace $show with $_GET['main'] (in all instances), this could fix it.
That didnt work either.. it shot back a parse error.

Parse error: parse error, unexpected T_VARIABLE, expecting '(' in C:\Domains\orchidsdance.com\wwwroot\index.php on line 64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 09-24-04, 06:53 PM
rjwebgraphix rjwebgraphix is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Orchidsdance
That didnt work either.. it shot back a parse error.

Parse error: parse error, unexpected T_VARIABLE, expecting '(' in C:\Domains\orchidsdance.com\wwwroot\index.php on line 64
I've been getting those errors ALLOT lately. Each and every time it's because the line above is missing a ; at the end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 09-25-04, 07:56 PM
Orchidsdance Orchidsdance is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rjwebgraphix
I've been getting those errors ALLOT lately. Each and every time it's because the line above is missing a ; at the end.
As far as I can tell, all of the lines on mine have the ;. I am so confused by this. Might it have something to do with changing the directory that everything is located in? Before the directory was orchidsdance, now its wwwroot. I really need to find a solution soon. I miss my site!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 09-25-04, 08:58 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
I don't see anything wrong with your code perhaps try using switch() instead of if statments, If you don't know how to here's an example:
PHP Code:

$show $_GET["page"]; //url like index.php?page=blah blah blah

switch($show){
case 
"main":
include(
"main.inc");
break;
case 
"about":
include(
"about.inc");
break;
case default:
include(
"home.inc");
break;

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
Mouseover with Single PHP page rjwebgraphix PHP 7 09-16-04 06:15 PM
trying to create my first simple (?) php script, need guidance HotShotPhoto PHP 1 09-06-04 09:12 PM
php with Apache in windows eDevil PHP 3 08-08-04 01:03 AM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 01:31 AM


All times are GMT -5. The time now is 11:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.