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
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.
--
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
14 matches
Mail list logo