programguru Posted April 17, 2007 Share Posted April 17, 2007 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? Link to comment https://forums.phpfreaks.com/topic/47334-php-4-localhost-setup-on-windows-unable-to-view-specific-url-types/ Share on other sites More sharing options...
wildteen88 Posted April 17, 2007 Share Posted April 17, 2007 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 Link to comment https://forums.phpfreaks.com/topic/47334-php-4-localhost-setup-on-windows-unable-to-view-specific-url-types/#findComment-231473 Share on other sites More sharing options...
programguru Posted April 27, 2007 Author Share Posted April 27, 2007 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']; .... Link to comment https://forums.phpfreaks.com/topic/47334-php-4-localhost-setup-on-windows-unable-to-view-specific-url-types/#findComment-239621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.