PHP Pipe Issues

If you're piping an e-mail to a PHP script and getting a blank error like the one below:

The e-mail is piped to your program, and the user still gets an error. If that's the case, look no further.

You need to make sure that the first line of your script correctly tells where PHP is:

#!/usr/local/bin/php -q

Also, make sure the "-q" is there, that's important.

Secondly, make sure your script is not outputting ANYTHING at all, anywhere, ever.

A common mistake is this:

See the blank line between the "#!/usr/bin" line and the "<?"... Yeah, that'll do it.

Happy coding!

Back to Code Help | Moo! Networks

For the search engines: PHP, pipe email, pipe e-mail, php e-mail error, pipe error but e-mail works, read email pipe php, Mail Delivery Failure