It's because the directory was created using php therefore the php interpreter had the writeable owner writes to the directory, so i've had to manually create the directorys and upload the files via the script this works fine like that so am leaving it like that, but i've stumbled on another problem now.
I'm trying to include the uploaded file (html file) into a page using php includes, however the page is just blank after the include.
The script works without the include and the included file is correct and working.
my code for the page is:
PHP Code:
// get tutorial info $tutorialid=$_REQUEST['tutorialid'];
$gettutorialinfo=mysql_query("SELECT * FROM tutorials WHERE tutorialid='".$tutorialid."'"); while($tutorial=mysql_fetch_array($gettutorialinfo, MYSQL_ASSOC)) { $tutorialfilename="".$tutorial['tutorialfile'].""; $tutorialcatid="".$tutorial['tutcatid'].""; $getcatinfo=mysql_query("SELECT * FROM tutorial_cats WHERE tutcatid='".$tutorialcatid."'"); while($cat=mysql_fetch_array($getcatinfo, MYSQL_ASSOC)) { $tutcatname="".$cat['tutcatname'].""; } $tutorialname="".$tutorial['tutname'].""; $tutorialfile="http://www.tornadodesigns.co.uk/admin/tutorials/".$tutcatname."/".$tutorialfilename.""; } // Include the tutorial file include($tutorialfile);
?>
Any help would be greatly appreciated
Regards,
Martin
|