[phpug] Safari Sessions

2009-04-18 Thread Jmumby
Anyone had problems with safari and sessions? My pages work in Chrome and Firefox but Safari just ignores session values. If I create a session on the same page and echo it out it works, consecutive pages have empty sessions. Thanks, --~--~-~--~~~---~--~~ NZ PHP

[phpug] Piping to PHP

2009-04-18 Thread Michael
I wish to Pipe some emails from a Postfix MTA to a PHP script. I need to access the content of the email as a file handle (Like fopen) How is this coded in the PHP script? --~--~-~--~~~---~--~~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post,

[phpug] Re: Safari Sessions

2009-04-18 Thread liu fabin
see the config of session in the php.ini maybe help u On Sat, Apr 18, 2009 at 5:55 PM, Jmumby jason.mu...@gmail.com wrote: Safari --~--~-~--~~~---~--~~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to nzphpug@googlegroups.com To

[phpug] Re: Piping to PHP

2009-04-18 Thread Jochen Daum
Hi, I think the file just comes through php://stdin I did this a long while ago with a procmailrc, but don't have the code anymore. Kind Regards, Jochen Daum Chief Automation Officer Automatem Ltd Phone: 09 630 3425 Mobile: 021 567 853 Email: j...@automatem.co.nz Skype: jochendaum Website:

[phpug] Array to string

2009-04-18 Thread Michael
scandir() creates an array of files within a directory. I don't want an array - I want a string like this: file1 file2 file3 etc... How would I convert the array from scandir() to a string? This should be very straight forward Cheers, Michael

[phpug] Re: Array to string

2009-04-18 Thread Sid Bachtiar
$s = implode(' ', $arr); http://nz.php.net/function.implode On Sun, Apr 19, 2009 at 4:21 PM, Michael mich...@networkstuff.co.nz wrote: scandir() creates an array of files within a directory. I don't want an array - I want a string like this: file1 file2 file3 etc... How would I convert

[phpug] Re: Piping to PHP

2009-04-18 Thread Boyd
start your php script like this: #!/usr/bin/php ?php //file must be 755 // read from stdin $fd = fopen(php://stdin, r); $email = ; while (!feof($fd)) { $email .= fread($fd, 1024); } fclose($fd); ? the #!/usr/bin/php must be at the begging of the file, and the path will depend on your