Solved

index.php

Posted on 2013-12-02
2
283 Views
Last Modified: 2013-12-18
Hi ,
I came cross this and it seems very interesting, how index.php could be used as folder?!!
http://www.varicoseveinsmdcare.com/index.php/patient-login-area
0
Comment
Question by:fparvini
2 Comments
 
LVL 56

Accepted Solution

by:
Julian Hansen earned 200 total points
ID: 39691766
It is not - the system uses url rewriting to pass the section of the url after index.php to the index.php as a parameter

something like this (in an .htaccess file)

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule index.php/(.*) index.php?p=$1 [L,NC,QSA]

Open in new window

index.php is then responsible for looking at the parameter (in this case patient-login-area) and routing the request internally.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39692197
To see how it works, install this script, shown here in its entirety, on your own server.  Name it phpinfo.php.  Then access it via a URL that looks like this:

www.example.com/phpinfo.php/more_stuff/here

<?php phpinfo();

Open in new window

Go down near the bottom of the output and look for this:

_SERVER["REQUEST_URI"]
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
powershell switch statement 7 32
PHP function parameters defined 14 41
Change a button after e-mail 4 21
TypeError jquery issues with site - CSS conflicts 3 27
This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question