• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

PHP URL parameter not being read...?

E

EnigmaBurn

Guest
I don't know if this has to do with the php_safe_mode, which is off or the register_globals, which is also off, but I have a PHP based site that worked on other servers just fine, but now is not working on the Plesk server after being copied over.

See: Site here

You are supposed to be able to click the links at left for rentals, businesses, etc.. for the different catergories, but all we get is the house - which is a default. It doesn't seem to be reading the 'type=C' or whatever parameter from the URL string...?

Any thoughts as to why and tips to fix? Works fine on other servers, but I am not privvy to their settings...

Thanks in advance!

EB -
 
How are you calling the variables? Are you using $_GET or $HTTP_GET_VARS ? If you're calling the variables directly (ie using $for instead of $_GET['for']) you need to remember that since PHP 4.2.0 the register_globals have been turned off by default. I know that Plesk's PHP comes with it turned off. It may very well be that the other servers are just running older versions of PHP
http://us3.php.net/register_globals

If you need to find out the configuration settings on a server, and you have at least FTP access, put up a file with nothing but the following
PHP:
<?php phpinfo(); ?>
That will dump out all the settings you need to see.
 
You are correct sir!

Highlander:

You are of course correct as I can make stuff work by using the $_GET syntax. Problem is I got a whole system that was coded without using that method. I assume that if I turn register_globals on that I would have to worry about recoding the entire system...?

Problem is that I cannot get register_globals to turn on! :mad:

I tried doing it in the same way ad7742 describes in THIS THREAD ...

But adding the line:
php_admin_value register_globals on

to the vhost.conf file does nothing.
:confused:

Any help that you or anyone else can offer in this regard would be lovely.
 
There's another method that might work too. If you have an include file (like a config or something) you can try adding the following
PHP:
<?php ini_set("register_globals", 1); ?>
 
Back
Top