Have you tried: #! /usr/local/bin/php I.e. Without the -q part?
That's what the error message "Could not open input file: -q" means. The first argument to php if it doesn't look like an option is the name of the PHP file to execute, and -q is CGI only. EDIT: A couple of (non-related) tips: You don't need to terminate the last block of PHP with?
>. In fact, it is often better not to. When executed on the command line, PHP defines the global constant STDIN to fopen("php://stdin", "r").
You can use that instead of opening "php://stdin" a second time: $fd = STDIN.
Thanks, when I removed the -q, I received another error which was fopen("mail. Txt") wanted the absolute path /home/user/mail/forward/mail. Txt I did not think about that since I was outside of my public_html directory php needed an absolute path.My question is, how can I suppress any output if it is not -q?
If in the event of an error, the script outputs anything, the user who sent the email will get a bounce-back so everything I have read on email piping all want you to use -q – Mike L. Dec 31 '10 at 2:45 To suppress warnings for any function call, you can use an at sign: $fp = @fopen("mail. Txt").
– Daniel Trebbien Dec 31 '10 at 2:48 So there is not a CLI switch to suppress output of a script? – Mike L. Dec 31 '10 at 2:51 @Mike: If you really want to disable script output caused by warnings, errors, etc. , then at the top of your script, you simply call the error_reporting function with the value 0: us2.php.
Net/manual/en/function. Error-reporting. Php – Daniel Trebbien Dec 31 '10 at 14:31.
Windows Character Encoding Issue I was having the same issue. I was editing files in PDT Eclipse on Windows and WinSCPing them over. I just copied and pasted the contents into a nano window, saved, and now they worked.
Definitely some Windows character encoding issue, and not a matter of Shebangs or interpreter flags.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.