Solved

index.php

Posted on 2013-12-02
2
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

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 i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

691 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