|
|
|
|
![]() ![]() |
Feb 2 2006, 09:52 AM
Post
#11
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 874 Joined: 30-July 04 Member No.: 246 |
Hmm, whilst that would work (provided no variables require global usage etc), I wouldn't recommend it. It basically requests the file from the server, which a) consumes bandwidth, b) is simply a poor coding practice, and c) severly limits the script's functionality and capability.
|
|
|
|
Feb 3 2006, 02:17 AM
Post
#12
|
|
|
-=Hybrid Bus=- ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 744 Joined: 2-November 05 From: My hybrid bus (in NYC), a computer Member No.: 13,709 ![]() |
Hmm, whilst that would work (provided no variables require global usage etc), I wouldn't recommend it. It basically requests the file from the server, which a) consumes bandwidth, Yeah, but it accomplishes what [I forgot his name who started this topic] wanted to do, passing a variable to the other script through a quertstring variable. |
|
|
|
Feb 3 2006, 10:52 AM
Post
#13
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 2-February 06 Member No.: 18,052 |
Isn't the correct use of include is
include("filename.php"); ? I allways get error when using include with parameter like : include("filename.php?get=1"); Because php read that as open a 'filename.php?get=1' file that you dont have. But you only have 'filename.php' |
|
|
|
May 3 2008, 04:46 PM
Post
#14
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 53 Joined: 6-August 06 Member No.: 27,912 |
Why you are trying to access include file with get variable. Include method fetches the full code of the file you are trying to access without its execution. Then the place where include function is implemented is replaced with the code fetched from the file.
Only after that, PHP Parser executes the file. So it is meaningless to use variables on include files. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 25th July 2008 - 09:50 PM |