-
29-11-2008, 13:58 #1
new member
- Join Date
- Nov 2008
- Posts
- 5
email forward, pipe to php script, how to setup ?
Hi
Trying to set up an email forward to a simple php script, keep getting the email bounced.
Script has been put in my root, with a permissions set to 755.
The script does very little, and has
#!/usr/bin/php -q
as the first line.
Error message gives me returns.
"pipe to |/home/matthewt/SCRIPT.php"
I notice that /usr/bin/php or usr/local/bin/php is missing wondered if thats the problem, but how to add it as the cPanelX gui suggests it isn't required ?
Thanks for any help.
-
29-11-2008, 15:11 #2
new member
- Join Date
- Nov 2008
- Posts
- 5
bit more...
Found that the php script is executing (once I introduced an error - I got the scripting error returned). So its all setup, great.
Don't understand why I keep getting "Mail delivery failed: returning message to sender" when the script runs ok, seems ithe pipe is reporting it as an mail delivery error ?
-
29-11-2008, 15:18 #3
Chief Technical Officer(eUKhost.com)
- Join Date
- Jun 2007
- Posts
- 313
Hello,
I would request you to open a ticket with our support department. We will get it fixed for you.
You can simply email us support@eukhost.com
Regards,
Nick J.
-
29-11-2008, 15:53 #4
new member
- Join Date
- Nov 2008
- Posts
- 5
Cheers, just managed to sort it myself, after lots of head scatching.
Seems the its very sensitive to the formatting of the script and having a return in there. Followed the instructions on evolt.org.
-
18-01-2010, 06:03 #5
new member
- Join Date
- Jan 2010
- Posts
- 1
Problem solved
My solution to this problem:
There should be no extraneous line breaks or spaces between "#!/usr/bin/php -q" and "<?php"
That is,
First line in the script: #!/usr/bin/php -q
Second line, without spaces, open the PHP-tag: <?php
Voila
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks



Reply With Quote

Ah, I see. What companeis would they team up with for this revolutionary marketing technology? For...
What is Google caffeine?