osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

FATAL ERROR: register_globals is disabled in php.ini etc..

This is a discussion on FATAL ERROR: register_globals is disabled in php.ini etc.. within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I just use a .htaccess file with this in it: php_flag register_globals on Tracy Gibson...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #11  
Old 04-28-2004, 06:03 AM
New Member
 
Join Date: Apr 2004
Location: NJ
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
TracyG
Default

I just use a .htaccess file with this in it:

php_flag register_globals on

Tracy Gibson
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to TracyG For This Useful Post:
muyaszed (05-30-2007)
Sponsored Links
Advertisement
  #12  
Old 04-28-2004, 07:01 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

Quote:
Originally Posted by TracyG
I just use a .htaccess file with this in it:

php_flag register_globals on

Tracy Gibson
That ONLY works if the HOST has register_globals=on in there main php.ini - but turned off as a default (in https.conf) in all virual domains - and allow change (via htaccess).

It does not ALWAYS work as some hosts DON'T allow this ON without there permission.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #13  
Old 07-21-2004, 01:06 PM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

turning register_globals on is a BAD BAD BAD and I should say it once again BAD move,

lemme quote php.net and my sysadmins words
Quote:
Perhaps the most controversial change in PHP is when the default value for the PHP directive register_globals went from ON to OFF in PHP 4.2.0. Reliance on this directive was quite common and many people didn't even know it existed and assumed it's just how PHP works. This page will explain how one can write insecure code with this directive but keep in mind that the directive itself isn't insecure but rather it's the misuse of it.

When on, register_globals will inject (poison) your scripts will all sorts of variables, like request variables from HTML forms. This coupled with the fact that PHP doesn't require variable initialization means writing insecure code is that much easier. It was a difficult decision, but the PHP community decided to disable this directive by default. When on, people use variables yet really don't know for sure where they come from and can only assume. Internal variables that are defined in the script itself get mixed up with request data sent by users and disabling register_globals changes this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #14  
Old 09-14-2004, 03:53 AM
obscure's Avatar
New Member
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
obscure
Default

OK - so if turning this to on is a bad move - how do get around the fact that you get the error:

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

Is there another way around it?

Its really odd as I am installing on the exact same server as I did an install on 3 weeks ago, but before no prompt to turn it on - the install worked beautifully. but today - it wants it turned on...

Only difference is that I am installing a modified version of oscommerce with the gift voucher / discount contribution already inplace this time round. Though I have seen the prompt on one of the first installs I did on the server months ago...

Trying to get my head around all this - wish I had time to research it all fully!!

Confused! Any ideas?
Sadie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #15  
Old 06-27-2006, 08:14 PM
Lurker
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eureka
Default

hy please helpe,register_globals =of (sory for my english)
1- i can't modify php.in
2- forget .htaccess don't work
it's a modification like oscommerce ? somwhere?
heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #16  
Old 07-20-2006, 12:36 PM
New Member
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wolfshaven
Default

Im having the same problem where if I turn register_globals On an reboot the computer I still get the error that it is off when I run the install page for osc. Since it was asked earlier, no its not inside a commented line.

Im using windows xp and xampp with PHP Version 5.1.4.

Ive set up a virtual host catalog.myurl.com in which all other pages work so Im assuming that osc should too. When it didnt I tried installing it in c:\xampp\htdocs and again it did not work.

Im wondering if maybe the php comunity did something that ignores register_globals in version 5 because by all rights it should be working.

Its frustrating as hell trying to get this to work not to mention this is kind of a job interview for me. If I cant get it to work Im not going to get the job. /cry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #17  
Old 07-20-2006, 01:03 PM
New Member
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wolfshaven
Default

I found it!!!

I was trying to change the php.ini in C:\xampp\php but the one that you need to change is in C:\xampp\apache\bin

I was reading a post on apachefriends where a person was having problems with php and sendmail. The fix mentioned that you needed to edit the sendmail line in C:\xampp\apache\bin\php.ini

This fixed things for me and Im hoping it will work for others. Good luck!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/oscommerce-2-2-installation-help/2095-fatal-error-register_globals-disabled-php-ini-etc.html

Posted By For Type Date
*Clix This thread Refback 06-14-2008 09:54 AM

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remedy for 'register_globals' error Jan5 osCMax v2 Installation issues 0 07-28-2006 12:26 PM
FATAL ERROR: register_globals is disabled in php.ini robroymedia osCMax v1.7 Discussion 1 09-13-2004 11:57 AM
fatal error litotes osCommerce 2.2 Installation Help 0 03-09-2004 06:57 PM
FATAL ERROR: register_globals is disabled in php.ini Marko osCommerce 2.2 Installation Help 2 02-03-2003 01:12 AM
php-error: register_globals is disabled in php.ini Anonymous osCommerce 2.2 Installation Help 1 11-05-2002 02:29 PM


All times are GMT -8. The time now is 01:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax