Jump to content

Recommended Posts

Hello,

 

I have an application I am working on which I started on a remote RedHat server. I just installed and configured PHP 4 & 5 to run w/ Apache using two separate ports - and it's amazing! Except I am running into an issue??

 

I downloaded all of my site files from the RedHat server, and I am able to view all of my server files fine except I am unable to get pages to view that run of an index of my index.php - for example:

 

http://localhost:myport/mysite.com/index.php?page=aboutus

As you can see I am trying to view my aboutus page referenced in my index file, but I can't view it?

 

For some reason the URL is totally correct (at least it is for all reference purposes), but I cannot view the page?? I figured it was an INI setting, but I am not sure where to start.

 

Can anyone shed some light?

Could you post some example script of how you grab the page variable from the url.

 

To get the page variable you should use $_GET['page'], or if you are using PHP4.1 or less you use $page

  • 2 weeks later...

All I have used is $_REQUEST

 

......

if($_REQUEST['search']){
		$vars="";
		$vars.="page=".$_REQUEST['page']."&search=".$_REQUEST['search']."&city=".$_REQUEST['city']."&price=".$_REQUEST['price']."&bedroom=".$_REQUEST['bedroom']."&pets=".$_REQUEST['pets'];

....

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.