Page 1 of 1

*****I Have No Idea!*****

Posted: Sat Apr 11, 2009 3:16 pm
by zylkaa
So, I have this page, permanent.php that takes the uploaded file name from the file upload form. It creates a permanent page so the uploader can delete the file at any time (Permanent Delete Page). I have a problem on line 5. That is where I want to put the Permanent Delete Page in a variable ($cpage). I want to redirect to the page that was just created as you can see in Red, below.

permanent.php:
<?php
if(isset($_GET['file'])) $page=$_GET['file'];
else $page=rand();
$filename = $_GET["uploaded"];
$cpage = ['.$page.".php']

$out = fopen($page.".php", "w");
if (!$out) {
die("Could not create file. Try your upload again.");
}

fwrite($out,"<b>$filename</b><br />Delete Code Here");
fclose($out);
?>
<?php
header( 'Location: http://www.filefetchers.co.cc/$cpage' ) ;
?>


Thanks for your help,
Alex

Re: *****I Have No Idea!*****

Posted: Sat Apr 11, 2009 5:26 pm
by jaoudestudios
$cpage = ['.$page.".php']
????????
try...

Code: Select all

$cpage = $page.'php';