/    Sign up×
Community /Pin to ProfileBookmark

PHP Errors….help

Hello everyone.

I just recently moved from windows advanced server 2000 to windows server 2003 and I also upgraded my php v4.3.1 to php 5.0.2 (or .3 I cant remember) I also moved from using the executable to run PHP (php.exe) to using the isapi dll file.

Anyway, I am having some issues. They are either related to the new IIS6.0 or PHP5 I have yet to figure out which. But regardless my mysql is working perfectly. I can pull up all pages that have data in the sql database but on certian pages such as coppermine and kplaylist i get these exact errors…

[code]
Notice: Undefined variable: HTTP_POST_VARS in D:SHAREWEBsharehighgradepc.comphotosincludeinit.inc.php on line 148

Notice: Undefined variable: HTTP_GET_VARS in D:SHAREWEBsharehighgradepc.comphotosincludeinit.inc.php on line 156

Notice: Undefined variable: HTTP_COOKIE_VARS in D:SHAREWEBsharehighgradepc.comphotosincludeinit.inc.php on line 163

Notice: Undefined variable: HTTP_SERVER_VARS in D:SHAREWEBsharehighgradepc.comphotosincludeinit.inc.php on line 171

Notice: Undefined variable: HTTP_SERVER_VARS in D:SHAREWEBsharehighgradepc.comphotosincludeinit.inc.php on line 178
[/code]

Any help in figuring out how to resolve these issues would be great because most of the google searches I came up with were for ppl that actually code in php. I dont need to change the code on the page, I need to know what server variable to change to get it to function correctly.

Thanks
-Tangz

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@TangzauthorAug 19.2005 — nevermind I found it...

register_long_arrays = on

I really dont understand why the PHP community insists on turning stuff to default off when 95% of the internet is still coded the old way...

go figure
Copy linkTweet thisAlerts:
@bokehAug 19.2005 — Because it encourages better security. Just because 95% of motorists speed doesn't make it a good thing.

By the way I would recommend you change that with ini_set() and not by changing php.ini. That way future scripts will be built with better coding practices.
Copy linkTweet thisAlerts:
@TangzauthorAug 19.2005 — By the way I would recommend you change that with ini_set() and not by changing php.ini. That way future scripts will be built with better coding practices.[/QUOTE]


was that greek you were speaking? I have never coded with php, I just use the php programs. So if the ini_set() has anything to do with code on a .php page I think thats probably out of my league....
Copy linkTweet thisAlerts:
@bokehAug 19.2005 — Inside of making a global change in php.ini all you need to do is put the following at the top of your script:[code=php]<?php ini_set('register_long_arrays', 'On'); ?>[/code].

That way that code will only apply to scripts using the old style arrays and not scripts that don't need it.
Copy linkTweet thisAlerts:
@TangzauthorAug 20.2005 — interesting...Would I have to put that the top of every index page in all the sites I host?
Copy linkTweet thisAlerts:
@bokehAug 20.2005 — Only the ones that use that old fashioned array style.
×

Success!

Help @Tangz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...