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
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
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
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
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
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
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
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
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
[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
> 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
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?
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
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
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
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
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
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
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
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
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
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:
>
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
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
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
> -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
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
27 matches
Mail list logo