Solved

index.php

Posted on 2013-12-02
2
282 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 55

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 109

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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

828 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