Re: Re: [PHP Attachement Problems - MAC ISSUE!!

From: Date: Tue, 05 Oct 2004 19:40:48 +0000
Subject: Re: Re: [PHP Attachement Problems - MAC ISSUE!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198712@lists.php.net to get a copy of this message
Manuel, Really appreciate your help. I created a new empty php file and put your given code in it. Upon running the test.php in my browser, it prints exactly this in my browser: could not open file I have a PowerMac G5 Machine, with MacOS X. I have PHP 5 installed from entropy.ch and have the in-built Apache Web Server. Also, the MacOS X ships with Postfix Mail Server and I used the Postfix Enabler to configure it. So I use the Postfix Mail Server. Junkie On 10/5/04 3:36 PM, "Manuel Lemos" <mlemos@acm.org> wrote: > <?php > $filename=$argv[1]; > $size=filesize($filename); > if(!($file=fopen($filename,"rb"))) > die("could not open file ".$file_name); > $data=fread($file,$size); > echo "Size ",$size," Read ",strlen($data); > fclose($file); > ?>

« previous php.general (#198712) next »