# Anyone have knowledge of PHP?

**URL:** <https://forum.kirupa.com/t/anyone-have-knowledge-of-php/188544>\
**Category:** programming\
**Created:** [May 8, 2006, 9:30pm UTC](https://forum.kirupa.com/t/anyone-have-knowledge-of-php/188544 "2006-05-08T21:30:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jealousy](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@Jealousy](https://forum.kirupa.com/u/Jealousy)\
**Post date:** [May 8, 2006, 9:30pm UTC](https://forum.kirupa.com/t/anyone-have-knowledge-of-php/188544/1 "2006-05-08T21:30:54Z")

</div>

[http://jealousy.socomladders.co.uk/upload/uploadForm1.php](http://jealousy.socomladders.co.uk/upload/uploadForm1.php)

When a user uploads something, it does not give them a link to the file that they uploaded.

I’m wondering if anyone knows of something I can add in which will show the user their link.

> 

\<?  
$uploadNeed = $\_POST[‘uploadNeed’];  
// start for loop  
for($x=0;$x\<$uploadNeed;$x++){  
$file\_name = $\_FILES[‘uploadFile’. $x][‘name’];  
// strip file\_name of slashes  
$file\_name = stripslashes($file\_name);  
$file\_name = str\_replace(“'”,“”,$file\_name);  
$copy = copy($\_FILES[‘uploadFile’. $x][‘tmp\_name’],$file\_name);  
// check if successfully copied  
if($copy){  
echo “$file\_name | uploaded sucessfully!\<br\>”;  
}else{  
echo “$file\_name | could not be uploaded!\<br\>”;  
}  
} // end of loop  
?\>
