Solved

index.php

Posted on 2013-12-02
2
273 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 51

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 108

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now