<?php $FileName="/home/a/public_html/image/"."image_".rand().".txt"; $binary="hello"; $Event_file = fopen($FileName, "wb"); fwrite($Event_file, $binary); fclose($Event_file); $Path=realpath($FileName); echo "path".$Path."<br>"; //get image file $get_path="http://www.myapp.net/image/image_654391973.txt"; echo $get_path ."<br>"; if(is_file($get_path)) { echo "file exists on server"; } else { echo "file not exists on server "; } ?>
MapPath
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)