URL variables aren't seen by destination page

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 12th, 2005, 22:51
New Member
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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?

  #2 (permalink)  
Old Apr 13th, 2005, 05:59
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #3 (permalink)  
Old Apr 13th, 2005, 13:34
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Are you simply using the variable name in the destination PHP script, or are you getting that variable properly?

eg:
Code: Select all
$HTTP_GET_VARS['var'];
where var is the variable you want to get.
Closed Thread

Tags
url, variables, arent, seen, destination, page

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

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


All times are GMT. The time now is 05:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43