Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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