Error In Argument 1 Char 3 Option Not Found Php
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Email Piping - working but emails return errors up vote 0 down vote favorite I have setup my email forwarding to "Pipe to a program". The piping seems to be working because when an email is sent to my piped email address it returns an undelivered message with errors from my PHP script such as: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |/home/badihbar/public_html/handEmlTst.php generated by badih@badihbarakat.com local delivery failed The following text was generated during the delivery attempt: ------ pipe to |/home/badihbar/public_html/handEmlTst.php generated by badih@badihbarakat.com ------ /home/badihbar/public_html/handEmlTst.php: line 1: ?php: No such file or directory /home/badihbar/public_html/handEmlTst.php: line 3: //: is a directory /home/badihbar/public_html/handEmlTst.php: line 4: //: is a directory /home/badihbar/public_html/handEmlTst.php: line 5: syntax error near unexpected token (' /home/badihbar/public_html/handEmlTst.php: line 5: // date_default_timezone_set("Asia/Muscat");' ------ This is a copy of the message, including all the headers. ------ Apparently, for some reason, it is not recognizing the php file to have php scripts. What I'm suspecting is the first line itself. How
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP email piping error http://stackoverflow.com/questions/27439586/email-piping-working-but-emails-return-errors up vote 0 down vote favorite I'm writing a php script to pipe email from a forward in my CPanel. I have found this script on the internet; I am trying to parse the email and send it back to myself for testing, but it instead returns this error: The following text was generated during the delivery attempt: ------ pipe to |/home1/
get tips & solutions from a community of 418,513 IT Pros & Developers. It's quick & easy. Pipe an email to a PHP script P: 25 akristof I set up an email address on my server "post@domain.com" and I want every emailed received to be sent to a php script, call it script.php. My hosting service uses CPanel11, where their forwarding function allows to pipe an email to a program. I set it up as |/home/ubitig/public_html/script.php And the on top of that file I say #!/usr/local/bin/php -q And I changed the permissions on that php file to 755 to make it executable This is all following instruction from cpanel and whatever I have been able to find on the web When I send an email to that email address I get 1 of the three following errors: 1. "local delivery failed" 2. Expand|Select|Wrap|Line Numbers Errorinargument1,char3:optionnotfound Usage:php[-q][-h][-s][-v][-i][-f[--][args...] php[options][-B
[-E
RunPHP
withoutusingscripttags..?> -B
RunPHP
foreveryinputline -F