Re: [PHP] Help with an error...

2008-07-25 Thread Micah Gersten
Philip Thompson wrote: > On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: > >> You cannot have commands in the middle of a string. > > Technically you can. > > $str = "Hi, my name is " . $this->getName(); This is correct, but is not in the middle of the string. > // or > $str = "Hi, my name is

Re: [PHP] Help with an error...

2008-07-25 Thread Philip Thompson
Ooop! Didn't read the whole thread before I sent this. Disregard what I said earlier 'cuz others ripped before I did. ;) ~Phil On Jul 25, 2008, at 3:59 PM, Philip Thompson wrote: On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: You cannot have commands in the middle of a string. Techn

Re: [PHP] Help with an error...

2008-07-25 Thread Philip Thompson
On Jul 24, 2008, at 12:40 PM, Micah Gersten wrote: You cannot have commands in the middle of a string. Technically you can. getName(); // or $str = "Hi, my name is $this->getName()"; echo $str; ?> ~Philip Try building a string first, or use output buffering and then capture the buffer and

Re: [PHP] Help with an error...

2008-07-25 Thread Payne
Jim Lucas wrote: Payne wrote: Jim Lucas wrote: So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VAR

Re: [PHP] Help with an error...

2008-07-24 Thread Wolf
Here is the updated code Notice!! $message doesn't contain any PHP code within it $query only has a single ; within the whole line, right at the end of the "; to complete the PHP assignment string. Placing one inside it will barf the script typically. $headers are all concactenated

Re: [PHP] Help with an error...

2008-07-24 Thread Jim Lucas
Payne wrote: Jim Lucas wrote: So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_repor

Re: [PHP] Help with an error...

2008-07-24 Thread Micah Gersten
It seems like you're still calling functions inside the string. Instead of concatenating, try the output buffering like was mentioned before. Also, if you want HTML tags in your PHP code, you need to end and start the PHP tags again, or print them as output in quotes. Thank you, Micah Gersten on

Re: [PHP] Help with an error...

2008-07-24 Thread Payne
Jim Lucas wrote: So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on What

Re: [PHP] Help with an error...

2008-07-24 Thread Jim Lucas
So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on What I am trying to do i

Re: [PHP] Help with an error...

2008-07-24 Thread Wolf
[EMAIL PROTECTED] wrote: > Well all the insight were great, I am not getting and errors but I am not > getting mail. I am looking but php -e isn't telling me anything, and php > -l says there no syntax. What else can I do for debugged. > > Payne 1. BOTTOM POST 2. mailq -> this should d

Re: [PHP] Help with an error...

2008-07-24 Thread payne
> Have you set your SMTP server/port in your php.ini file? Checking > Have you checked your mail logs to make sure it is routing through? Tailing the log as I run it. > Have you verified it is sending from and to a valid email address? Yes, those are valid. -- PHP General Mailing List (http

Re: [PHP] Help with an error...

2008-07-24 Thread Dan Shirah
Have you set your SMTP server/port in your php.ini file? Have you checked your mail logs to make sure it is routing through? Have you verified it is sending from and to a valid email address?

Re: [PHP] Help with an error...

2008-07-24 Thread payne
Well all the insight were great, I am not getting and errors but I am not getting mail. I am looking but php -e isn't telling me anything, and php -l says there no syntax. What else can I do for debugged. Payne > Thanks guys. I will take everything that as been stated to heart. Thanks > for the

Re: [PHP] Help with an error...

2008-07-24 Thread Micah Gersten
He had code blocks in the middle of a string. That's what I was referring to. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ted Wood wrote: > > Micah, > > Please provide an example of what your response was referring to in > the original message. > > And i

Re: [PHP] Help with an error...

2008-07-24 Thread payne
Thanks guys. I will take everything that as been stated to heart. Thanks for the insight. I haven't don't much with mail. Payne > > On Jul 24, 2008, at 1052AM, [EMAIL PROTECTED] wrote: > >> $result = mysql_query($query) > > Missing a ; at the end of the line. > > >>$mailsend = mail("[EMA

Re: [PHP] Help with an error...

2008-07-24 Thread Daniel Brown
On Thu, Jul 24, 2008 at 1:45 PM, Ted Wood <[EMAIL PROTECTED]> wrote: > > $str = "My name is ".strtoupper($name).'", but you can call me Sam."; Though ucfirst() would be preferred. ;-P -- Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB

Re: [PHP] Help with an error...

2008-07-24 Thread Stut
On 24 Jul 2008, at 18:43, Thorsten Suckow-Homberg wrote: Daniel already answerd regarding your error, but... ... if you call the script via cron I'm pretty sure $_SERVER won't be available since the script is not used in a running webserver process context. Not entirely correct. $_SERVER w

Re: [PHP] Help with an error...

2008-07-24 Thread Brady Mitchell
On Jul 24, 2008, at 1052AM, [EMAIL PROTECTED] wrote: $result = mysql_query($query) Missing a ; at the end of the line. $mailsend = mail("[EMAIL PROTECTED]","The IP's that Attacked $hostname", "The following are ip's that have try to attack your system.\r\n\r\ You can't execute cod

Re: [PHP] Help with an error...

2008-07-24 Thread Ted Wood
Micah, Please provide an example of what your response was referring to in the original message. And it is possible to have commands in the middle of a string by using concatenation. $str = "My name is ".strtoupper($name).'", but you can call me Sam."; ~Ted On 24-Jul-08, a

Re: [PHP] Help with an error...

2008-07-24 Thread Thorsten Suckow-Homberg
Daniel already answerd regarding your error, but... ... if you call the script via cron I'm pretty sure $_SERVER won't be available since the script is not used in a running webserver process context. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Help with an error...

2008-07-24 Thread Bastien Koert
On Thu, Jul 24, 2008 at 1:52 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently working on a php script that will be called by cron. But I > have an error that keeps coming up. > > Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on > > What I am trying to do is a simple ph

Re: [PHP] Help with an error...

2008-07-24 Thread Micah Gersten
You cannot have commands in the middle of a string. Try building a string first, or use output buffering and then capture the buffer and use that as the string for the mail function. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com [EMAIL PROTECTED] wrote: >

Re: [PHP] Help with an error...

2008-07-24 Thread Daniel Brown
On Thu, Jul 24, 2008 at 1:52 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently working on a php script that will be called by cron. But I > have an error that keeps coming up. > > Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on You didn't include the line number i

[PHP] Help with an error...

2008-07-24 Thread payne
Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE inmail_report.php on What I am trying to do is a simple php script to send me a report everynight. Any clues as to why? Also does an

[PHP] Help with an error I can't solve!

2002-03-05 Thread Lic. Carlos A. Triana Torres
Hello all, I have been "installing" an easy webmail client (webmiau) which seems to work fine and is very light; but I keep receiving this error everytime I open a new session: Warning: Variable passed to reset() is not an array or object in /usr/..file.php on line 5 -- Line 5 of File.ph

RE: [PHP] Help with an error I can't find!

2001-11-01 Thread Mark Roedel
> -Original Message- > From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 4:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Help with an error I can't find! > > > Can some one help fix this error? > > Wa

[PHP] Help with an error I can't find!

2001-11-01 Thread Lic. Carlos A. Triana Torres
Can some one help fix this error? Warning: Variable passed to each() is not an array or object in /usr/local/.test.php on line 14 Here is the line: while(list ($key, $mid) = each ($HTTP_POST_VARS)) { -- Lic. Carlos A. Triana Torres. Webmaster. Centro de Informacion y Gestion Tecnologica Sa