DreamHost Web Hosting
Discussion Forum


Forums
   >> General Troubleshooting
Flat Mode*

Subject Re: PHP help please [re: matta]  
Posted byseiler (DH Grizzled Veteran)
Posted on11/08/06 10:01 PM


You can leave .ornek/ out of the path like this: /home/conceptourneys/conceptourneys

And you did verify that the domain directory is conceptourneys and not conceptourneys.com? It will default to the full domain name, unless you changed it when you added the domain.

The default format would be /home/username/domainname.com.


Anyway... $page is not being assigned a value, as shown in this error:

Warning: include(.html) [function.include]: failed to open stream

I'd add some code to check that $page is being set, and if it's not, assign a default value.

Something like:

if(!isset($page)) {
$page = 'whatever';
}

If $page is pulling from a GET variable, then you'll need to change it to $_GET['page'] instead of $page.

If that's not the problem, then you should post the code where $page is getting assigned a value.


--------------------------------------------------------
Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.


 
Entire thread
Subject  Posted byPosted on
*PHP help please  matta11/08/06 03:38 PM
.*Re: PHP help please  kchrist11/09/06 11:47 AM
.*Re: PHP help please  matta11/09/06 01:16 PM
.*Re: PHP help please  matta11/09/06 02:21 PM
.*Re: PHP help please  seiler11/09/06 02:40 PM
.*Re: PHP help please  matta11/09/06 03:07 PM
.*Re: PHP help please  seiler11/09/06 05:12 PM
.*Re: PHP help please  matta11/09/06 06:15 PM
.*Re: PHP help please  seiler11/09/06 08:31 PM
.*Re: PHP help please  matta11/09/06 08:56 PM
.*Re: PHP help please  seiler11/10/06 02:47 AM
.*Re: PHP help please  matta11/16/06 07:09 PM
.*Re: PHP help please  anonymous211/08/06 06:52 PM
.*Re: PHP help please  wholly11/08/06 06:54 PM
.*Re: PHP help please  anonymous211/08/06 07:10 PM
.*Re: PHP help please  matta11/08/06 07:29 PM
.*Re: PHP help please  scjessey11/09/06 03:21 AM
.*Re: PHP help please  matta11/09/06 05:58 AM
.*Re: PHP help please  seiler11/09/06 11:00 AM
.*Re: PHP help please  anonymous211/09/06 06:42 AM
..Re: PHP help please  seiler11/08/06 10:01 PM
.*Re: PHP help please  silkrooster11/08/06 08:51 PM
.*Re: PHP help please  schietschijf11/09/06 02:54 AM
.*Re: PHP help please  matta11/08/06 09:06 PM
.*Re: PHP help please  scjessey11/08/06 06:40 PM
Jump to