index.html or index.php

index.html or index.php

am 29.09.2006 05:46:15 von Ron Piggott

--=-sBfuN3gNcaLn1AUjOASD
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I have used both index.html and index.php in the various directories.
Is there a way to tell which was loaded if a user visited:

www.domain.com/directory/

?

Ron

--=-sBfuN3gNcaLn1AUjOASD--

RE: index.html or index.php

am 29.09.2006 08:22:23 von Shaun A Riches

--MIRAPOINT_PART1_451cbba1
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C6E38F.A0781F90"

------_=_NextPart_001_01C6E38F.A0781F90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

echo "I am currently viewing " . $_SERVER["REQUEST_URI"];
?>

REQUEST_URI and a simple string manipulation will help you.

___________________
Shaun Riches
Computer Science Student



-----Original Message-----
From: Ron Piggott (PHP) [mailto:ron.php@actsministries.org]
Sent: Fri 29/09/2006 04:46
To: PHP DB
Subject: [PHP-DB] index.html or index.php
=20
I have used both index.html and index.php in the various directories.
Is there a way to tell which was loaded if a user visited:

www.domain.com/directory/

?

Ron



------_=_NextPart_001_01C6E38F.A0781F90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable




charset=3Diso-8859-1">
6.5.7650.28">
RE: [PHP-DB] index.html or index.php




<?

echo "I am currently viewing " . =
$_SERVER["REQUEST_URI"];

?>



REQUEST_URI and a simple string manipulation will help you.



___________________

Shaun Riches

Computer Science Student







-----Original Message-----

From: Ron Piggott (PHP) [ HREF=3D"mailto:ron.php@actsministries.org">mailto:ron.php@ac tsministries.=
org
]

Sent: Fri 29/09/2006 04:46

To: PHP DB

Subject: [PHP-DB] index.html or index.php



I have used both index.html and index.php in the various =
directories.

Is there a way to tell which was loaded if a user visited:



www.domain.com/directory/



?



Ron










------_=_NextPart_001_01C6E38F.A0781F90--


************************************************************ *****************************
To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html
************************************************************ *****************************

--MIRAPOINT_PART1_451cbba1
Content-Type: text/plain; charset=us-ascii

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--MIRAPOINT_PART1_451cbba1--

Re: index.html or index.php

am 29.09.2006 09:30:05 von Philipp Schwarz

If you want to show only the filename and not the compleate path, you
can use the basename() function:

echo "I am currently viewing " . basename($_SERVER["REQUEST_URI"]);
?>

Philipp Schwarz

Shaun A Riches schrieb:
>
> > echo "I am currently viewing " . $_SERVER["REQUEST_URI"];
> ?>
>
> REQUEST_URI and a simple string manipulation will help you.
>
> ___________________
> Shaun Riches
> Computer Science Student
>
>
>
> -----Original Message-----
> From: Ron Piggott (PHP) [mailto:ron.php@actsministries.org]
> Sent: Fri 29/09/2006 04:46
> To: PHP DB
> Subject: [PHP-DB] index.html or index.php
>
> I have used both index.html and index.php in the various directories.
> Is there a way to tell which was loaded if a user visited:
>
> www.domain.com/directory/
>
> ?
>
> Ron
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php