Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-11-08 16:45:18

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Localhost, PHP, and register_globals...and of course TxP

HedgeHog wrote: I got the message using xampp and 4.02. Just like you, I am a bit of a clean freak when it come to diagnostics. I just turned register gobals off in the php.ini file.

Well, I thought I’m doing that.

Here is the relative path to all the PHP ini files I can find…<code>..\apachefriends\xampp\php</code> (that’s the php5 files, there’s a folder in that where the php4 files are. Regardless I turned off every r_g I could find; <code>php.ini, php-safemode.ini, php5.ini…</code> etc.)

Which one exactly are you turning off, Hedge? I’m seeing these global_registers to be down around line 370, does that jive with you?

@Sencer: Yep, turned Apache on/off around the change as recommended, but…

Offline

#14 2005-11-08 16:50:06

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Localhost, PHP, and register_globals...and of course TxP

When you look at a page with phpinfo() in it, you will see a line that reads:
Configuration File (php.ini) Path

That should tell you which php.ini it is using.

Offline

#15 2005-11-08 16:54:40

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Localhost, PHP, and register_globals...and of course TxP

Super, would that be a TxP page of some kind, or something in xampp?

EDIT: Silly question…it must be a TxP page, one in particular?

Last edited by Destry (2005-11-08 16:57:07)

Offline

#16 2005-11-08 16:58:27

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Localhost, PHP, and register_globals...and of course TxP

No, I meant creat a test.php with this code: <?php phpinfo(); ?>

:)

Offline

#17 2005-11-08 17:11:11

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Localhost, PHP, and register_globals...and of course TxP

Sorry, Sencer, this is where my lack of dev knowledge is really going to shine…so I’ve created a file called test.php and I’ve filled it with that bit of code there above. Now what do I do with this file?

I just tried to open it in the browser from an arbitrary location and it did nothing, so that must be wrong. Again, sorry.

Offline

#18 2005-11-08 17:22:14

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Localhost, PHP, and register_globals...and of course TxP

When you call it in a browser, you should see something like this:

…removed…

Offline

#19 2005-11-08 19:32:02

HedgeHog
Member
From: Springfield, MO
Registered: 2004-03-24
Posts: 14

Re: Localhost, PHP, and register_globals...and of course TxP

> Destry wrote:

Which one exactly are you turning off, Hedge? I’m seeing these global_registers to be down around line 370, does that jive with you?

Yep, that jives with me. xampp\apache\bin\php.ini. Line 385 for me.

You should do your best to write your scripts so that they do not require
register_globals to be on; Using form variables as globals can easily lead
to possible security problems, if the code is not very well thought of.
register_globals = Off

It looks like we are using the same system. Wish I could help more.

Offline

#20 2005-11-09 13:44:06

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Localhost, PHP, and register_globals...and of course TxP

Sencer, now that I see what I’m supposed to see, I realize that same information can more easily be found via the XAMPP main page, and by clicking the php() link in the left column. Voila! Then by looking at the Configuration File (php.ini) Path information you mentioned, I realized (thanks to HedgeHog’s path confirmation), that I have been messing with ini files in the wrong directory.

Hence, thanks to you both, gentlemen, for getting me there…php diagnostic now resolved!

My recommendation to future troubleshooters: Simply follow the link on your XAMPP main page to the php info, where you can then find the path to the exact file to edit.

Offline

Board footer

Powered by FluxBB