File manager - Edit - /var/www/ams.cmtc.ac.th/pages/pic.php
Back
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Highcharts Example</title> <style type="text/css"> </style> </head> <body> http <img src="http://rms.cmtc.ac.th/files/importpicstd/01/62201010004.jpg" width="100" alt=""> <img src="//rms.cmtc.ac.th/files/importpicstd/01/62201010004.jpg" width="100" alt=""> https <img src="https://rms.lampangtc.ac.th/files/importpicstd/01/62201010004.jpg" width="100" alt=""> <br> <?php /* // Remote file url $rFile = 'http://rms.cmtc.ac.th/files/importpicstd/01/65201010004.jpg'; // Open the file $check = @fopen($rFile, 'r'); // Check if the file exists if(!$check){ echo 'File does not exist'; }else{ echo 'File exists'; } echo "<br>"; $external_link = 'http://rms.cmtc.ac.th/files/importpicstd/01/62201010004.jpg'; if (@getimagesize($external_link)) { echo "image exists "; } else { echo "image does not exist "; } */ $image_url = 'https://i.redd.it/fnxbvvvvvn804hpd31.jpg'; $image_type_check = @exif_imagetype($image_url); if (strpos($http_response_header[0], "200")) { echo "image exists<br>"; } else { echo "image DOES NOT exist<br>"; } ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.68 |
proxy
|
phpinfo
|
Settings