Rockonmetal
09-21-2008, 06:12 PM
I am having a problem with the php require function. With this piece of code:
if(isset($_GET['upload'])){
require("../forms/upload_pictures.php?number=" . $_GET['upload']);
}
Now I get this error
Warning: require(../forms/upload_pictures.php?number=5) [function.require]: failed to open stream: No error in C:\wamp\www\getaband.net\phpbin\edit_pictures_musician.php on line 23
Fatal error: require() [function.require]: Failed opening required '../forms/upload_pictures.php?number=5' (include_path='.;C:\php5\pear') in C:\wamp\www\getaband.net\phpbin\edit_pictures_musician.php on line 23
I have checked the link and it is the page I'm trying to reach because when I take the get variable part out ?number=" . $_GET['upload'] then it loads the page...
If someone could help me through this that would be great, thanks!
if(isset($_GET['upload'])){
require("../forms/upload_pictures.php?number=" . $_GET['upload']);
}
Now I get this error
Warning: require(../forms/upload_pictures.php?number=5) [function.require]: failed to open stream: No error in C:\wamp\www\getaband.net\phpbin\edit_pictures_musician.php on line 23
Fatal error: require() [function.require]: Failed opening required '../forms/upload_pictures.php?number=5' (include_path='.;C:\php5\pear') in C:\wamp\www\getaband.net\phpbin\edit_pictures_musician.php on line 23
I have checked the link and it is the page I'm trying to reach because when I take the get variable part out ?number=" . $_GET['upload'] then it loads the page...
If someone could help me through this that would be great, thanks!