professional-sql-07-public-files-admin-upload.php / php
<?php include '../../lib/common.php'; include '../../lib/config.php'; // make sure we have all expected parameters if (!isset(_FILES['file']['error']) { echo '<script type="text/javascript>parent.uploadFailed();</script>'; } else { // prevent users from traversing outside the base directory _POST['directory']); directory . '/' . _FILES['file']['tmp_name'], <script type="text/javascript">parent.uploadComplete();</script>'; } else { echo '<script type="text/javascript">parent.uploadFailed();</script>'; } } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.