How I can check if the extension is ctt? And if I uploaded the file and I wanna read it.PHP Code:if(isset($_POST['upload'])){
$path = "upload/";
$newname = $path.basename($_FILES['ctt']['name']);
$rctt = str_replace('ctt','txt',$newname); //Replace .ctt to .txt
if(move_uploaded_file($_FILES['ctt']['tmp_name'],$rctt))
{
echo'Uploaded^^';
}
else
{
echo'This is a failure..';
}
}
I do
It echo'sPHP Code:#sample
$file = "upload/test.txt"; //Example test.txt :)
$f = fopen($file, "r");
$string = fread($f,filesize($file));
echo $string;
example@hotmail.com example@live.nl
There is much space between the two mails. Also I wanted to echo it like
example@hotmail.com,example@live.nl,...e2@hotmail.com
Like a mail list..
You guys should know what I wanted with this:P


Reply With Quote


