SMALL PHP PROBLEM PLEASE HELP

They have: 2 posts

Joined: Apr 2009

Hi! PLEASE help i have upload a php shop script to heartinternet.uk but cant get it to work i dont no what im doing wrong the domain is www.ebooksgalore.eu can someone help me please you can help yourself to the ebooks if you help me and ill give you free advertising and free affiliate advertsing from amazon.com if you pass me your number you need to go to www.ebooksgalore.eu it tells you the problem

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Hi and welcome to TWF! Laugh

your link produces the following error:

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.

this page explains how to turn on register_globals with .htaccess

greg's picture

He has: 1,581 posts

Joined: Nov 2005

Please don't turn on register_globals.

If you don't code to high security standards you can have a big security risk with globals turned on.

Importantly - Register_globals has been DEPRECATED since PHP 5.3.0 and REMOVED as of PHP 6.0.0.
You shouldn't rely on it as soon it wont work.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

greg wrote:
Please don't turn on register_globals.

I agree, but the problem is that the app requires it....

greg's picture

He has: 1,581 posts

Joined: Nov 2005

decibel.places wrote:
I agree, but the problem is that the app requires it....

You suggested a tutorial on how to turn it on, and now say "yes but the app requires it".

So you don't agree really!

@ adsenceonline:
While I understand it's easy me saying "don't do it" as then you are stuck with an affectively redundant software, the alternative is make the app work now, and it wont work and will throw an E_CORE_ERROR if run on a PHP6 machine.

It's one thing ignoring future proofing for something trivial, but this is not trivial in my opinion.
For allowing it to still work in the future AND to reduce security risks in the present time my advice is to find a workaround now.

Also, what script is it? If it's using register_globals I would be inclined to distrust its security without checking through the code first.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

greg wrote:
You suggested a tutorial on how to turn it on, and now say "yes but the app requires it".

So you don't agree really!

nope - I do agree with you, but I answered the OP's question about what is wrong with that page.

I could have counseled OP about the risks and drawbacks of using register_globals, but for the sake of getting the page working, I posted the info about how to turn on register_globals to get the damn page working...

You provided appropriate reasons why to not use register_globals (including its imminent disappearance), however for now it is a fait accompli, OP is using code that requires it.

You further warned OP about potential risks of using code that requires register_globals

I agree 100% about avoiding use of register_globals - but OP wanted to know what is wrong with the page and how to "fix" it.

greg's picture

He has: 1,581 posts

Joined: Nov 2005

Decibel, you didn't agree with me mate.
I advised AGAINST him turning on register globals because of security issues and it becoming fazed out, and you suggested he turn it on.

I know you agree with the security issues, but that wasn't my point. I feel the security issues and the fact it will be defunct shortly is good enough reason to advise he DOESN'T use it, you had the "opposite" opinion.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

@greg - I agree with you on the risks and imminent demise of register_globals as a reason to not use it.

adsenceonline is already using an app that requires register_globals.

Yes, adsenceonline should look into alternatives.

But to make the page in the OP work, register_globals needs to be turned on.

That's all. I responded to the question in OP.

If someone is trying to get a car started, and you notice the battery is missing, you tell them put in the battery - even if it only has enough juice for one start....

Sometimes here at TWF I think I am dealing with insane troll logic (from BTVS)

greg's picture

He has: 1,581 posts

Joined: Nov 2005

decibel.places wrote:
Sometimes here at TWF I think I am dealing with insane troll logic
How ironic!

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

I guess you mean it is poor logic to enable register_globals in any situation.

I would say that I merely answered the question in OP, what is wrong with the page in the URL and how to fix the error.

I am criticized ruthlessly for suggesting a solution with Drupal on other threads, sometimes suggesting perhaps switching to using Drupal for many benefits.

Lets apply the same logic here - the page in OP already exists, and the question is "what is wrong with it and how can it be fixed?"

greg's picture

He has: 1,581 posts

Joined: Nov 2005

End of discussion unless it's topical.

(I'll leave your last comment as "the last word" so it doesn't seem unfair that I can unpublish and leave mine as the last post.
But seriously, that's the end of long winded, off topic discussions in all threads throughout the forum that spoil other people's posts)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.