I have inherited a mess of a home-grown PHP framework that literally
fills the error_log with 100's of thousands of messages each day. First
order of business was rotating the logs, now we are working through each
error to solve them. This is a fairly basic error, but I for the life of
me
Hi,
Two questions:
Where is $xml defined and where is $pos defined?
HTH
Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl
Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
[snip]
Two questions:
Where is $xml defined and where is $pos defined?
[/snip]
$xml is defined in other functions, just not in this function. $pos is
irrelevant to the question - it is just the string position within the
file.
--
PHP General Mailing List (http://www.php.net/)
To
So basically, $xml is out of scope for this function and you are appending
to a nonexisting variable?
Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl
Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
Jay Blanchard wrote:
I have inherited a mess of a home-grown PHP framework that literally fills the
error_log with 100's of thousands of messages each day. First order of business
was rotating the logs, now we are working through each error to solve them. This
is a fairly basic error, but I for
[snip]
function includeXML($file, $locale, $url, $level = 1) {
// stuff
$xml = '';
Should work here ...
Since the call below is ADDING to $xml you do need something existing
to add to so what does that give?
[/snip]
Thanks Lester, that worked. I had just put that in the wrong place.
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
a href=view.php?ID=?php echo $_SESSION['fullRestaurantList']['ID']??php
echo
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
a href=view.php?ID=?php echo $_SESSION['fullRestaurantList']['ID']??php
echo
On 7/23/09 9:24 AM, Kyle Smith kyle.sm...@inforonics.com wrote:
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
a href=view.php?ID=?php
Miller, Terion wrote:
On 7/23/09 9:24 AM, Kyle Smith kyle.sm...@inforonics.com wrote:
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
a
Sorry, list, I did a reply instead of a reply-to-all. This is what I
sent to Miller, Terion
Miller, Terion wrote:
Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I
learn something everyday)
Anyways the link to my script is: http://pastebin.ca/1504393
Your
Thanks
On 7/23/09 9:52 AM, Kyle Smith kyle.sm...@inforonics.com wrote:
Sorry, list, I did a reply instead of a reply-to-all. This is what I
sent to Miller, Terion
Miller, Terion wrote:
Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I
learn something everyday)
So sometimes I end up with issues that are so simple I should be able
to fix it but for some reason I end up asking a stupid question to
the list... So... Here goes :)
Here is the error:
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on
line 19
and here is Line 19:
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line
19
and here is Line 19:
$data = explode(/, $_SERVER['REQUEST_URI']);
Hi,
Are you sure it's an array? Use print_r() or var_dump() on
$_SERVER['REQUEST_URI'] on the preceding line. Just for testing, you
could do this
On Jan 19, 2009, at 2:32 PM, Richard Heyes wrote:
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php
on line
19
and here is Line 19:
$data = explode(/, $_SERVER['REQUEST_URI']);
Hi,
Are you sure it's an array? Use print_r() or var_dump() on
$_SERVER['REQUEST_URI'] on the
On Mon, Jan 19, 2009 at 14:32, Richard Heyes rich...@php.net wrote:
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line
19
and here is Line 19:
$data = explode(/, $_SERVER['REQUEST_URI']);
When I view that file, on line 19, I see:
echo HTML
Are you sure it's
There is no reference to index '2' in that line 19.
What is the next line?
Something which expects at least 3 elements in the URI, perhaps?...
[Hint, hint]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jan 19, 2009, at 3:28 PM, Daniel Brown wrote:
On Mon, Jan 19, 2009 at 14:32, Richard Heyes rich...@php.net wrote:
Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php
on line
19
and here is Line 19:
$data = explode(/, $_SERVER['REQUEST_URI']);
When I view that file,
On Mon, Jan 19, 2009 at 15:39, Jason Pruim japr...@raoset.com wrote:
Only when you log into certain accounts and view the file after I had made
changes :P
I figured you had already changed it, but when you're root, you
don't have to log in to other accounts. ;-P
What I'm really going
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS[LoggedIn]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
berber
At 2:37 PM +0200 6/16/07, WeberSites LTD wrote:
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS[LoggedIn]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
berber
berber:
Try this:
$loggedIn =
WeberSites LTD wrote:
I'm using this code to check if a cookie has a value :
If(!IsSet($HTTP_COOKIE_VARS[LoggedIn]))
In case that this cookie is not set, how can i avoid the
Undefined index: line in the error log?
The isset function does not give an error if you pass it a
On 6/10/07, Christian Cantrell [EMAIL PROTECTED] wrote:
I'm getting this error in my Apache log file, and I can't figure out why:
Undefined index: password in /path/to/file.php on line 82
Some searching on Google turned up a bunch of questions, but no answers.
Any idea what this warning
Ah, you're right. Thanks, Tijnema.
I'm just getting my feet wet with PHP, and you guys are a great help!
Christian
On 6/10/07, Tijnema [EMAIL PROTECTED] wrote:
On 6/10/07, Christian Cantrell [EMAIL PROTECTED] wrote:
I'm getting this error in my Apache log file, and I can't figure out
why:
On Sat, June 9, 2007 11:53 pm, Christian Cantrell wrote:
I'm getting this error in my Apache log file, and I can't figure out
why:
Undefined index: password in /path/to/file.php on line 82
Some searching on Google turned up a bunch of questions, but no
answers.
Any idea what this
I'm getting this error in my Apache log file, and I can't figure out why:
Undefined index: password in /path/to/file.php on line 82
Some searching on Google turned up a bunch of questions, but no answers.
Any idea what this warning message is referring to?
Thanks,
Christian
On Sun, 2007-06-10 at 00:53 -0400, Christian Cantrell wrote:
I'm getting this error in my Apache log file, and I can't figure out why:
Undefined index: password in /path/to/file.php on line 82
Please post the code on that line of the file indicated.
Cheers,
Rob.
--
Before someone advises me to 'google' my question. I have and can't find a
PHP.net example either.
I have turned off registered globals and am updating my scripts so they work
but I keep getting an undefined index problem using $_POST
I tried this to set the value...
if
Ross wrote:
because the following line give the notice 'undefined index' BEFORE the
submit button has been pressed..
? $heading_insert= stripslashes($_POST['heading']);?
That's because before the submit button has been pressed, $_POST is
empty and so 'heading' is indeed an undefined
@lists.php.net
Sent: Thursday, November 10, 2005 12:19 PM
Subject: Re: [PHP] undefined index and php
Ross wrote:
because the following line give the notice 'undefined index' BEFORE the
submit button has been pressed..
? $heading_insert= stripslashes($_POST['heading']);?
That's because before
]
Sent: Thursday, November 10, 2005 4:58 AM
To: php-general@lists.php.net
Subject: Re: [PHP] undefined index and php
I have never really used this abreviated format before
why the question mark and the colon? What is the long hang eqivalent.
I turned magic quotes off too.
thanks.
R
-general@lists.php.net
Subject: Re: [PHP] undefined index and php
I have never really used this abreviated format before
why the question mark and the colon? What is the long hang eqivalent.
I turned magic quotes off too.
thanks.
R.
- Original Message -
From: Jasper Bryant-Greene [EMAIL
Hello.
[EMAIL PROTECTED] wrote:
why the question mark and the colon? What is the long hang eqivalent.
That's the Ternary operator. Whether you want to get further
information, go to:
http://php.net/manual/en/language.operators.comparison.php
Regards.
--
Gustavo Narea.
PHP Documentation -
On Thu, November 10, 2005 5:54 am, Ross wrote:
Before someone advises me to 'google' my question. I have and can't
find a
PHP.net example either.
I have turned off registered globals and am updating my scripts so
they work
but I keep getting an undefined index problem using $_POST
I tried
-Original Message-
From: Ross [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 8:51 PM
if ($quantity == 0){
}
else {
$pieces = explode( , $quantity);
$formatted_price = sprintf('%0.2f', $pricecode);
echo table width=\240\ border=\0\ cellpadding=\2\
I have a bit of code that splices up a cookie into 4 bits so the information
can be displayedin a neat way in a table
if ($quantity == 0){
}
else {
$pieces = explode( , $quantity);
$formatted_price = sprintf('%0.2f', $pricecode);
echo table width=\240\ border=\0\ cellpadding=\2\
Hello!
I have the same script on two webservers with php 4.3.9 and apache 2, both
with the same php configurations. On one server I can not access
$_FILES or $HTTP_POST_FILES, although a form with a file has been
correctly submitted.
apache_request_headers() contains:
[Content-Type] =
Tobias Neumann wrote:
Hello!
I have the same script on two webservers with php 4.3.9 and apache 2, both
with the same php configurations. On one server I can not access
$_FILES or $HTTP_POST_FILES, although a form with a file has been
correctly submitted.
apache_request_headers() contains:
Tobias Neumann wrote:
Hello!
I have the same script on two webservers with php 4.3.9 and apache 2, both
with the same php configurations. On one server I can not access
$_FILES or $HTTP_POST_FILES, although a form with a file has been
correctly submitted.
Quick question: is file uploads enabled
On Monday 08 November 2004 09:07, Tobias Neumann wrote:
I have the same script on two webservers with php 4.3.9 and apache 2, both
with the same php configurations. On one server I can not access
$_FILES or $HTTP_POST_FILES, although a form with a file has been
correctly submitted.
Are the
On Mon, 08 Nov 2004 15:52:53 +0600, Raditha Dissanayake wrote:
Quick question: is file uploads enabled on this server and is the
temporary directory writable?
Hmm. upload_tmp_dir was unset. The php.ini says that in this case the
systems default tempoary directory is used. So I guessed it
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice: Undefined index: user_status in
/var/www/itmdata/include/include.php on line 13
Regards
Micke
--
PHP General Mailing List
Michael Jonsson wrote:
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice: Undefined index: user_status in
/var/www/itmdata/include/include.php on line 13
Regards
Micke
That's not an
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Michael Jonsson wrote:
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice: Undefined index:
Hi
Why do I get an error if the $_SESSION['user_status'] is emty (it's not
set to anything) ???
in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not
working...
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice: Undefined index:
PROTECTED]
Cc: Php List [EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 12:15 PM
Subject: Re: [PHP] undefined index please help
Dominique ANOKRE wrote:
on line 66 there is :
$date=$_POST[date];
Thanks
$_POST['date'] isn't set.
if ( isset ( $_POST['date
on line 66 there is :
$date=$_POST[date];
Thanks
- Original Message -
From: Chris W. Parker [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]; Php List
[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 8:20 PM
Subject: RE: [PHP] undefined index please help
Dominique ANOKRE wrote:
on line 66 there is :
$date=$_POST[date];
Thanks
$_POST['date'] isn't set.
if ( isset ( $_POST['date'] ) ) {
$date = $_POST['date'];
}
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I have a form which call a php file when click on the submit button :
form name=form method=post action=recherche.php language=JavaScript
onSubmit=return TestSaisie()
First this runs correctly when i click on the submit buttom then the file
recherche.php is executed and the result is
Dominique ANOKRE mailto:[EMAIL PROTECTED]
on Friday, March 05, 2004 12:19 PM said:
Undefined index: numcpte in c:\inetpub\wwwroot\rech_haut.php on line
66
For information, i have not this error when the file recherche.php is
a simple file without frames !!!
Please help!!
what is
Hey guys,
Here's a chunk of code from the top of a multi-function page I converted
from Perl to PHP:
$userid = $_REQUEST['USERID'];# USERID = selected userid
$dlist= $_REQUEST['DLIST']; # DLIST = indicates who to display
$action = $_REQUEST['ACTION'];# ACTION =
You can either:
1. put @ in front of each variable, e.g.
$adminID = @$_ENV['HTTP_REMOTE_USER'];
2. change your error reporting level:
error_reporting(E_ALL ^ E_NOTICE);
Cameron B. Prince wrote:
Hey guys,
Here's a chunk of code from the top of a multi-function page I converted
On Fri, 2004-02-06 at 10:51, Cameron B. Prince wrote:
I'm creating some strings from array elements obviously. The issue is, the
array elements don't always exist depending on which function you are
running. And when they don't, the server log is full of undefined index
errors. Is there a way
From: Cameron B. Prince [EMAIL PROTECTED]
I'm creating some strings from array elements obviously. The issue is, the
array elements don't always exist depending on which function you are
running. And when they don't, the server log is full of undefined index
errors. Is there a way I can avoid
1. put @ in front of each variable, e.g.
$adminID = @$_ENV['HTTP_REMOTE_USER'];
This worked very nicely...
Thank you!
Hey guys,
Here's a chunk of code from the top of a multi-function page I converted
from Perl to PHP:
$userid = $_REQUEST['USERID'];# USERID =
Hi all,
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
The line that cause this error is as follow:
$tutor_id = $_POST[tutor_id];
.
.
.
.if($action
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it means you're trying to access a
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it means you're trying to
[EMAIL PROTECTED] wrote:
On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote:
I keep getting this error:
Notice: Undefined index: tutor_id in /usr/local/..
What does undefined index exactly mean?? I did a search on the web but
couldn't find any solutions.
Basically it
Hi List,
Since I started using error_reporting(E_ALL), I havent found (in my opinion)
a good way to declare GET and POST variables when getting them from a form
or querystring. I have searched google and the docs for several hours now
without much luck.
?php
error_reporting(E_ALL);
// This line
Terence mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 4:40 PM said:
Since I started using error_reporting(E_ALL), I havent found (in my
opinion) a good way to declare GET and POST variables when getting
them from a form or querystring. I have searched google and the docs
for
- Original Message -
From: Chris W. Parker [EMAIL PROTECTED]
Terence mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 4:40 PM said:
Since I started using error_reporting(E_ALL), I havent found (in my
opinion) a good way to declare GET and POST variables when getting
Terence wrote:
Since I started using error_reporting(E_ALL), I havent found (in my opinion)
a good way to declare GET and POST variables when getting them from a form
or querystring. I have searched google and the docs for several hours now
without much luck.
?php
error_reporting(E_ALL);
// This
my problem is,
i have a script that works well before php 4.2.3
its sth like that
{..
for($i=0; $icount($line); $i++); // loop line numbers
...
}
//2nd part
{
echo ($i);
}
now i changed second part as;
echo($GLOBALS[i]);
and it gives me notice that undefined index i.
how can i solve this
Mekrand wrote:
my problem is,
i have a script that works well before php 4.2.3
its sth like that
{..
for($i=0; $icount($line); $i++); // loop line numbers
...
}
//2nd part
{
echo ($i);
}
now i changed second part as;
echo($GLOBALS[i]);
should not be
echo($GLOBALS[$i]);
and it gives
thanks but this time it gives 2 error,
undefined variable i,
undefined index i for
$GLOBALS[$i]
Marek Kilimajer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Mekrand wrote:
my problem is,
i have a script that works well before php 4.2.3
its sth like that
These are not errors, but notices, you can get around it using:
if(isset($i) array_key_exists($GLOBALS, $i)) echo $GLOBALS[$i];
or you might prefer setting error_reporting to not display notices
Mekrand wrote:
thanks but this time it gives 2 error,
undefined variable i,
undefined index i for
Try:
echo($GLOBALS[$i]);
Or
echo {$GLOBALS[$i]};
This times it's the array in the double quoted strings ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have just setup my localmachine to see how our site runs on php 4.2.
It currently runs on 4.1 on the server. I am only fairly new to this so
I have come across a slight hurdle.
At first logging in as a user to the database was giving undefined
variable error. Have read up on this and fixed it
Sorry I did not mention.
My local machine is WinXP pro, running php 4.2 and mysql 3.23.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you didn't send the code snippet for Undefined index
however, I think the reason you're getting these errors at home is because
you have a different error_reporting level.
HTH a bit
Martin
[snip]
//filled out info and clicked send.
Notice: Undefined index: license in
Hi,
I'm learning php from a book but because of global off I have have
several Undefined index message! I don't want to change the default
setting in my php.ini because I want to learn the good way.
What I'm doing wrong?
Undefined index: categorie
if ($_POST['categorie'] == New) {
Undefined
I'm having trouble with the newest version of PHP (4.2.2).
For example in a page I'm using the following code:
if ($_GET['action'] == logout) {
//do something
}
But I'm getting an error message that says:
...log_message reports: PHP Notice: Undefined index: action in
Ealier (other
[snip]
I'm having trouble with the newest version of PHP (4.2.2).
For example in a page I'm using the following code:
if ($_GET['action'] == logout) {
//do something
}
[/snip]
As a quick troubleshooting method echo or print $_GET['action'] to see what,
if anything, is contained there. I would
I had the say problem,
try this
if($_POST['update'] == Update)
{
someting to do...
}
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Jens Winberg' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 5:12 PM
Subject: RE: [PHP] Undefined index, Undefined
I'm using the superglobal $_POST array to access URL
parameters passed to my page. I was getting undefined
constant errors in my error_log file, and found that I
needed to quote the variables in the array.
$_POST['SortBy'] etc. Now, it appears that I've just
traded the undefined constant
If you try to access a form variable that hasn't been set, you get an
undefined index. Try checking with something like
if(isset($_POST['SortBy'])) {
// do something with 'SortBy'
}
In any case, you'll get the undefined index warning anytime you try to
read an array index that hasn't been
It's me again, i don't mean to be a bugger, but i really like to learn as
much as possible, that's why i ask (or will ask so many questions).
Consider the following (i shortened this a lot, but it will do the trick)
$op = $_GET['op'];
switch ( $op )
{
case admin:
DoLogin();
break;
Jrgen wrote:
$op = $_GET['op'];
switch ( $op )
PHP shoots a Notice Message telling me that there is an undefined index
Undefined index: act in g:\apache_web\intern\looney\index.php on line 177
If there is not a get variable in the url you will get the warning.
Ok, am i correct in assuming
Hi everybody
Does anybody knows what means Undefined index error? I couldn't find it in
docs neither in php online doc site.
Thank you
Ivo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
To: [EMAIL PROTECTED]
Subject: [PHP] Undefined index?
Hi everybody
Does anybody knows what means Undefined index error? I
couldn't find it in
docs neither in php online doc site.
Thank you
Ivo
--
PHP General Mailing List (http://www.php.net
81 matches
Mail list logo