throw error if url is not set or empty
This commit is contained in:
parent
0eb8e4d22d
commit
ce30653d3b
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
<?php
|
||||
if(!array_key_exists("url", $_GET) || $_GET["url"] == "") {
|
||||
die("URL not set or empty");
|
||||
}
|
||||
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, "https://i.ebayimg.com/" . $_GET["url"]);
|
||||
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
|
Loading…
Reference in a new issue