Re: [PHP] Help with redeclare error

2011-10-28 Thread Ashley Sheridan
On Thu, 2011-10-27 at 17:40 -0700, UltraMega Admin wrote: On 10/27/2011 5:33 PM, Daniel Brown wrote: On Thu, Oct 27, 2011 at 20:06, Jason Pruimli...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included

RE: [PHP] Help with redeclare error

2011-10-28 Thread Jack
A function with that name already exists in PHP as of 5.3.0. You'll have to rename it or something. http://us2.php.net/manual/en/function.date-diff.php That looks like what happened that new function was added and we had written one with the same name from the stone age... Thanks! --

Re: [PHP] Help with redeclare error

2011-10-27 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Oct 27, 2011, at 7:55 PM, Jack wrote: Hello All, I have some code that just broke with a PHP upgrade, the error says: PHP Fatal error: Cannot redeclare date_diff() the line of the error is the close bracket of the function which is below.

Re: [PHP] Help with redeclare error

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 20:06, Jason Pruim li...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included in 1 file to work throughout all the files. Prune is spot-on. That error generally happens when you

Re: [PHP] Help with redeclare error

2011-10-27 Thread UltraMega Admin
On 10/27/2011 5:33 PM, Daniel Brown wrote: On Thu, Oct 27, 2011 at 20:06, Jason Pruimli...@pruimphotography.com wrote: Most likely you have in included in 2 files... Look into it from that angle... It only needs to be included in 1 file to work throughout all the files. Prune is

Re: [PHP] help with _get error

2011-03-23 Thread Donovan Brooke
Jack wrote: Hello All, I'm having a problem with this line of code which worked fine for years: $l_url2 = ..$_GET[SERVER_NAME]; Here is the error: [Wed Mar 23 13:33:49 2011] [error] [client 16.139.201.61] PHP Notice: Use of undefined constant SERVER_NAME - assumed 'SERVER_NAME' in

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

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. ?php $str = Hi, my name is . $this-getName(); // or $str = Hi, my name is $this-getName(); echo $str; ? ~Philip Try building a string first, or use output

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.

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. ?php $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-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 in the

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 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 php script

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

2008-07-24 Thread Thorsten Suckow-Homberg
Daniel already answerd regarding your error, but... ?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); ... 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

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, at

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 code

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... ?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); ... 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

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 -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel

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([EMAIL

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 it is

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 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
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

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 !-- SNip -- 1. BOTTOM POST 2. mailq - this

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

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

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

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

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

2008-07-24 Thread Wolf
!-- SNIP -- 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

Re: [PHP] help with this error message please

2006-03-06 Thread Angelo Zanetti
Mark wrote: Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at

Re: [PHP] help with this error message please

2006-03-05 Thread chris smith
On 3/5/06, Mark [EMAIL PROTECTED] wrote: Can anyone tell me why i am getting this message when trying to login to the admin section, i am running the script off my local machine. Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
Hi, Maybe.. $sql = SELECT Title, SubT, Author, Story FROM SiteNews; should be $sql = SELECT Title, SubT, Author, Story FROM SiteNews; -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] help

Re: [PHP] Help with parse error

2003-08-20 Thread Peter James
Can you give us a couple lines either side of this? This could be due to a missing semicolon on the previous line. -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message -

RE: [PHP] Help with parse error

2003-08-20 Thread James Johnson
Yup, that was it. Missing a semi-colon on line 8. Thanks, James -Original Message- From: Peter James [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 1:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with parse error Can you give us a couple lines either side

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? Warning: Variable passed to each() is not an

RE: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread Taylor, Stewart
This error suggests the $tpl is undefined i.e. you forget to create it using new. -Stewart -Original Message- From: g0thic [mailto:[EMAIL PROTECTED]] Sent: 12 April 2001 01:17 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] HELP with (Fatal Error: Call to a member function on

Re: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread g0thic
Thanks! That solved that one.. Now just a few more.. But with a different subject. On 4/12/01 12:34 AM, "Taylor, Stewart" [EMAIL PROTECTED] wrote: This error suggests the $tpl is undefined i.e. you forget to create it using new. -Stewart -Original Message- From: g0thic

Re: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-11 Thread Brian Clark
Hi g0thic, @ 8:17:24 PM on 4/11/2001, g0thic wrote: ... Fatal error: Call to a member function on a non-object in /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183 178- if($seditFileErr == "") 179- { 180-// Load primary key and form parameters 181-$fldf_id =