Hi all
I'm not quite new to PHP, but also not very proficient in its use, so
please excuse me if my question is a FAQ. Perhaps I didn't know the right
terms, but google wasn't my friend this time :-)
I had a page running on a host which worked perfectly fine. Then, one day,
it stopped working since strangly some values in the $GLOBALS array are
not set. For example things such as $GLOBALS["_GET"], $GLOBALS["_POST"],
$GLOBALS["_ENV"] and $GLOBALS["_SERVER"] are just set to NULL. It would be
fine with me, if they were just empty arrays (as they are on my
test-system on the laptop), but I would really hate to hack into vBulletin
to get it to run again.
My suspicion is that the hosting company changed their php.ini, but they
have a lousy service, haven't gotten any answer from them for months
now. So I don't expect them to help me here either.
Thanks for any help
Michael 8 1895
Do a print_r($LOBALS), maybe you misspelled the keys.
whiskey wrote:
Do a print_r($LOBALS), maybe you misspelled the keys.
And you mispelled GLOBALS.
;-)
But besides the typo: good advise.
Regards,
Erwin Moller
On Fri, 03 Nov 2006 15:35:33 +0100, Erwin Moller wrote:
whiskey wrote:
>Do a print_r($LOBALS), maybe you misspelled the keys.
And you mispelled GLOBALS.
;-)
But besides the typo: good advise.
Regards,
Erwin Moller
:-)
I already did, and it looks like:
Array (<stuff left out[_GET] =[_POST] =)
On my laptop it looks like:
Array (<stuff left out[_GET] =array() [_POST] =array() )
So there definitely is a difference.
Michael
Michael Wild wrote:
On Fri, 03 Nov 2006 15:35:33 +0100, Erwin Moller wrote:
>whiskey wrote:
>>Do a print_r($LOBALS), maybe you misspelled the keys.
And you mispelled GLOBALS. ;-)
But besides the typo: good advise.
Regards, Erwin Moller
:-)
I already did, and it looks like:
Array (<stuff left out[_GET] =[_POST] =)
On my laptop it looks like:
Array (<stuff left out[_GET] =array() [_POST] =array() )
So there definitely is a difference.
Michael
Hi,
To make the print_r() more readable, use <pre>
<pre>
<?php print_r($GLOBALS); ?>
</pre>
But more usefull maybe in your situation:
<pre>
<?php print_r($_POST); ?>
</pre>
and
<pre>
<?php print_r($_GET); ?>
</pre>
Regards,
Erwin
Erwin Moller wrote:
Michael Wild wrote:
>On Fri, 03 Nov 2006 15:35:33 +0100, Erwin Moller wrote:
>>whiskey wrote:
Do a print_r($LOBALS), maybe you misspelled the keys. And you mispelled GLOBALS. ;-)
But besides the typo: good advise.
Regards, Erwin Moller
:-)
I already did, and it looks like:
Array (<stuff left out[_GET] =[_POST] =)
On my laptop it looks like:
Array (<stuff left out[_GET] =array() [_POST] =array() )
So there definitely is a difference.
Michael
Hi,
To make the print_r() more readable, use <pre>
<pre>
<?php print_r($GLOBALS); ?>
</pre>
But more usefull maybe in your situation:
<pre>
<?php print_r($_POST); ?>
</pre>
and
<pre>
<?php print_r($_GET); ?>
</pre>
Regards,
Erwin
well, they are just not set... a test for $_GET==NULL or $_POST==NULL
returns true.
thanks for the formatting tip!
michael
Michael Wild wrote:
Erwin Moller wrote:
>Michael Wild wrote:
>>On Fri, 03 Nov 2006 15:35:33 +0100, Erwin Moller wrote:
whiskey wrote:
Do a print_r($LOBALS), maybe you misspelled the keys. And you mispelled GLOBALS. ;-)
But besides the typo: good advise.
Regards, Erwin Moller
:-)
I already did, and it looks like:
Array (<stuff left out[_GET] =[_POST] =)
On my laptop it looks like:
Array (<stuff left out[_GET] =array() [_POST] =array() )
So there definitely is a difference.
Michael
Hi,
To make the print_r() more readable, use <pre>
<pre> <?php print_r($GLOBALS); ?> </pre>
But more usefull maybe in your situation:
<pre> <?php print_r($_POST); ?> </pre>
and
<pre> <?php print_r($_GET); ?> </pre>
Regards, Erwin
well, they are just not set... a test for $_GET==NULL or $_POST==NULL
returns true.
thanks for the formatting tip!
michael
Glad I could help with the formatting.
But sorry, I have no clue why $_GET and $_POST are NULL.
I never saw that before.
Contact your (lazy) ISP and kick his/her lazy ass.
If you pay for their service they should help you with such enormous
problems ($_GET and $_POST are completely accepted and used everywhere, I
couldn't make an app without them).
Good luck. :-/
Regards,
Erwin Moller
On Mon, 06 Nov 2006 10:00:08 +0100, Erwin Moller wrote:
Glad I could help with the formatting.
But sorry, I have no clue why $_GET and $_POST are NULL.
I never saw that before.
Contact your (lazy) ISP and kick his/her lazy ass.
If you pay for their service they should help you with such enormous
problems ($_GET and $_POST are completely accepted and used everywhere, I
couldn't make an app without them).
Good luck. :-/
Regards,
Erwin Moller
that's where the problems start, our club virtually pays nothing. it's
like "i know somebody who's married to someone else who does some
hosting"... not the way i would have chosen, but i'm stuck with it...
so you don't know of any directive which could cause such a thing to
happen?
thanks for the help anyways!
michael
Michael Wild wrote:
On Mon, 06 Nov 2006 10:00:08 +0100, Erwin Moller wrote:
>Glad I could help with the formatting. But sorry, I have no clue why $_GET and $_POST are NULL. I never saw that before. Contact your (lazy) ISP and kick his/her lazy ass. If you pay for their service they should help you with such enormous problems ($_GET and $_POST are completely accepted and used everywhere, I couldn't make an app without them).
Good luck. :-/
Regards, Erwin Moller
that's where the problems start, our club virtually pays nothing. it's
like "i know somebody who's married to someone else who does some
hosting"... not the way i would have chosen, but i'm stuck with it...
Yes, that is the problem with free services: You cannot treaten to walk
away. :-/
so you don't know of any directive which could cause such a thing to
happen?
No sorry.
I am one of those spoiled guys with their own server, so it is my php.ini,
and I only changed stuff I understood.
Maybe you can repost your question, rephrasing your problem and what you
tried, the settings that may be of importance, maybe a dump of your php.ini
file.
That helps sometimes.
Some (many) visitors only look at recent post (last few days) and they
mayhap missed this thread.
Good luck.
Regards,
Erwin Moller
>
thanks for the help anyways!
michael
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Manu J |
last post by:
Hi,
i have a login script which makes use of sessions.
Login script
***********
session_start()
.....
.....
....
|
by: Joshua Beall |
last post by:
Hi All,
I cannot turn off magic quotes, since I am just leasing space from a hosting
company, and they determine the magic_quotes settings. I realize in
retrospect that using a .htaccess file...
|
by: Phil Powell |
last post by:
// CLIENT GLOBAL FUNCTION TO PARSE $_SESSION IF 'tempIDArray' IS SET
function parseTempIDArraySession() {
$tempIDArray = $_SESSION;
$_GET = $_SESSION]; // RESET $_GET WITH SESSION ARRAY...
|
by: Frostillicus |
last post by:
I'm trying to use array_multisort to sort by one of the dimensions of an
array stored in $GLOBALS like this:
array_multisort($GLOBALS, SORT_STRING, SORT_DESC);
Each "row" in $GLOBALS contains...
|
by: Brian Kendig |
last post by:
The server I'm running my PHP on has "magic_quotes" turned on, so all
the input I get (from GET, POST, and cookies) is escaped with
backslashes. I don't want this (I handle my own escaping, and I...
|
by: John |
last post by:
Hi,
I'm looking for the best way to deal with globals in PHP.
As a 'C' software developer, I would normally avoid all
globals and not have any at all, but use structs and pass
everything in...
|
by: It's me |
last post by:
I am new to the Python language.
How do I do something like this:
I know that
a = 3
y = "a"
print eval(y)
|
by: ojorus |
last post by:
Hi!
Just two short questions..:
1) In a function I want to get the value of a global variable declared
outside the function. Should I use "global $variable" or $GLOBALS?
Are there any...
|
by: mikejfe |
last post by:
Hi all. I have a question that is probably simple to answer, but I don't even know where to get started (i.e. for searching old posts, Google, etc.)
I am writing a program that reads in a 3...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |