Hi guys,
Please help if you can !
I have the following bit of code in an uploader script I'm making :
<?php
$file = $GET[file];
$filename = $GET[name];
copy ("$file", "C:\apache\htdocs\$filename");
?>
<html>
<head> <title>Test</title> </head>
<body>
<ul>
<li>File : <?php echo "$filename has been copied !"; ?>
</ul>
</body>
</html>
The info is sent from an HTML form.
Obviously $file = the path and filename but I want $filename to equal just the filename not the path as well.
I used to use file_name how do I get the filename using $_GET or am I just getting confused, please explain someone !
Kind regards
Large ( aka Andy )