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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx> 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);
> ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux