This is a discussion on "URL variables aren't seen by destination page" within the PHP Forum section. This forum, and the thread "URL variables aren't seen by destination page are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
URL variables aren't seen by destination page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
URL variables aren't seen by destination page
Background: I have fully functioning PHP scripts running on an H-Sphere/Linux server. The scripts pass variables in the URL. They also access include files (MySQL passwords, etc.) residing outside of the public html directory. Everything runs great.
I am now migrating the scripts to a Plesk/Linux server. My first error encountered was as follows: Warning: main(): open_basedir restriction in effect. File(../pertinent.inc) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.com/httpdocs:/tmp) in /home/httpd/vhosts/mydomain.com/httpdocs/index.php on line 78 That error was fixed by including the following line in the vhost.conf file: <Directory /home/httpd/vhosts/mydomain.com/httpdocs> php_admin_value open_basedir "/" </Directory> Now the scripts function except for one crucial failing: none of the variables passed in the URL make it to the destination page. They are still shown in the URL once the destination page is loaded, but the new page doesn't see them. Can anyone please tell me why this is and how to fix it? |
|
|
|
|||
|
Look into the register_globals setting in php.ini, you probably need to turn it on but there are some security issues with that.
http://us2.php.net/manual/en/ini.cor...gister-globals |
|
|||
|
Are you simply using the variable name in the destination PHP script, or are you getting that variable properly?
eg:
|
![]() |
| Tags |
| url, variables, arent, seen, destination, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pull Variables into a form without page refresh | Andy K | Classic ASP | 3 | Apr 11th, 2008 16:29 |
| Get Enviroment Variables in HTML page | bwalker | ASP.NET Forum | 5 | Aug 5th, 2006 04:45 |
| Passing Variables to a require_once() Page | darryladie | PHP Forum | 3 | Jun 20th, 2006 18:36 |
| Variables!! | bionics | PHP Forum | 6 | Apr 25th, 2006 15:39 |
| Get URL and use variables | JamieH | PHP Forum | 2 | Jan 1st, 2006 03:13 |