PHP FILE
----------------------------------------------------------
<form ENCTYPE="multipart/form-data" action="http://www.snipsel.f2s.com/bestand.php" method="post">
<input type="file" name="bestand">
<input type="submit" name="submit" value="Uploaden">
</form>
<?
if(is_uploaded_file($bestand)) {
if($bestand_size > 920480) {
echo "Dit bestand is te groot, wij staan alleen uploads van maximaal 20kb toe !!!";
}
else {
copy($bestand, "ftp://*******:******@ftp.snipsel.f2s.com/www.snipsel.f2s.com/plaatjes/$bestand_name");
echo "Het bestand is succesvol ge-upload";
}
}
else {
echo "Er is iets fout gegaan, probeer het opnieuw."; }
?>
----------------------------------------------------------
ERROR MELDING
----------------------------------------------------------
Warning: open_basedir restriction in effect. File is in wrong directory in /web/sites/317/snipsel/www.snipsel.f2s.com/bestand.php on line 12
Het bestand is succesvol ge-upload
----------------------------------------------------------
Ik kom maar niet uit deze foutmelding wie kan me hiermee helpen?
Mvg. Mark
----------------------------------------------------------
<form ENCTYPE="multipart/form-data" action="http://www.snipsel.f2s.com/bestand.php" method="post">
<input type="file" name="bestand">
<input type="submit" name="submit" value="Uploaden">
</form>
<?
if(is_uploaded_file($bestand)) {
if($bestand_size > 920480) {
echo "Dit bestand is te groot, wij staan alleen uploads van maximaal 20kb toe !!!";
}
else {
copy($bestand, "ftp://*******:******@ftp.snipsel.f2s.com/www.snipsel.f2s.com/plaatjes/$bestand_name");
echo "Het bestand is succesvol ge-upload";
}
}
else {
echo "Er is iets fout gegaan, probeer het opnieuw."; }
?>
----------------------------------------------------------
ERROR MELDING
----------------------------------------------------------
Warning: open_basedir restriction in effect. File is in wrong directory in /web/sites/317/snipsel/www.snipsel.f2s.com/bestand.php on line 12
Het bestand is succesvol ge-upload
----------------------------------------------------------
Ik kom maar niet uit deze foutmelding wie kan me hiermee helpen?
Mvg. Mark