PDA

View Full Version : PHP Include Not Working?


nuweb
06-06-2007, 05:03 PM
I have tried all this coding:
include("code/stage6.php?url=".$geturl);
<?
include("http://funshed.com/code/stage6.php?id=1");
include("code/stage6.php?id=1");
?>

None Work?

If I remove ?id=1 then theirs no problem, fist time ive seen this before.

UnlimitedMB
06-06-2007, 05:07 PM
You cannot pass variables with ?var=xxx with an include.

The proper way is
include("code/stage6.php");

Any variables must be declared in code.

eg.

$id = 1;
include("code/stage6.php");

nuweb
06-08-2007, 11:18 PM
Mah, Ive always done it that way.
---
You are correct tough, and i have managed to code my script fully now.
Just need to add a design, fix some bits, add some security then its out to the public.

Ill let you all know.