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
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!
--
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.
Any ideas what's going on, I'm stuck?
function date_diff($start_time,
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.
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
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
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
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
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
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
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.
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
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
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
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
What I am trying to do is a simple php script
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
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
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
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
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
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
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
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
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?
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
[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
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
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
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
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
!-- 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
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
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
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
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
I have a parse error on line 12 --
---
?php
include ('config.php');
$link = @mysql_pconnect($location, $username, $password)
or die(Could not connect to the databaseserver. Please go back and
try again or try again later.);
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
Hi,
I'm trying to figure out this error I'm getting in my code:
Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
This is the code on line 9:
$sDate = date('Y-m-d',time());
Does this look valid?
Thanks,
James
--
PHP General Mailing List (http://www.php.net/)
To
-
From: James Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:07 AM
Subject: [PHP] Help with parse error
Hi,
I'm trying to figure out this error I'm getting in my code:
Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
This is the code
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
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
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
-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
Hey guys,
anyone know what
Fatal error: input in flex scanner failed in /home/k/kyle/public_html on line
means?
thanks
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
ic [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 a
non-object)
Hi guys,
Below is the error message that I am receiving, and 3 or 4 lines around
the code
Hi guys,
Below is the error message that I am receiving, and 3 or 4 lines around
the code that seems to be causing the issue. Lines are numbered so it gives
you a good idea of line 183. What I need to know, is in my context, what is
the error saying, and if there is a variable (or function
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 =
49 matches
Mail list logo