I'm trying to modify a script that displays a picture. the problem is that the script gives to options to the users to select a picture, either by uploading the file or by using a url. this will display only the upoaded images:
echo "<img src=\"uploaded/$image\" />";
how can i check if the picture is on the servers or is a url and then display it?