Ask a Question related to PHP Development, Design and Development.
-
Rita Harp #1
Hiding PHP
Hi
I want to hide the php files from my urls.
My only idea is to have each file in its own directory as a default.php file.
So instead of this ...
xxx.com/about.php
.... rename about.php to default.php and put in a directory /about ...
xxx.com/about/
This way I dont need to reference any php files explicitly.
Is this the best idea in regards to this issue?
Would appreciate any other ideas/advice!
thanks
Rita
Rita Harp Guest
-
hiding css layer
is it possible to only show a layer based on a cookie? if so how? also is it possible to time a css layer so that it hides automatically after a... -
Hiding Forms
I am trying to hide one of two forms on asp/vbscript page based on the parameters received from the previous page ... any sample code or thoughts? -
hiding errors
Hello, I use a PHP script to count the visitors of my website.. When the access to the mysql database does not work (provider problems), i... -
Hiding the link
Does somebody knows how to hide the link for a web page??? something like this I have a webside in http://localhost i have the default.html... -
Hiding a URL ?? is this possible ??
I have several pages on a server which I need to show, but keep the URL private. Is there a way to put a link on my site, and hide the URL? Also,... -
Dalibor Karlovic #2
Re: Hiding PHP
Rita Harp wrote:
This has been talked about few weeks ago, search the group archive on Google> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php
> file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
>
> Is this the best idea in regards to this issue?
groups. Keyword: mod_rewrite.
--
Dado
Loose bits sink chips.
Dalibor Karlovic Guest
-
jack #3
Re: Hiding PHP
Rita Harp wrote:
Why?> Hi
>
> I want to hide the php files from my urls.
No. Try apache's mod_rewrite for rewriting URL's into whatever you want.> Is this the best idea in regards to this issue?
--
--- --- --- --- --- --- ---
[email]jack@croatiabiz.com[/email]
jack Guest
-
Kevin Thorpe #4
Re: Hiding PHP
Rita Harp wrote:
If you have access to reconfigure the server then tell it to run .html> Hi
>
> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
>
> Is this the best idea in regards to this issue?
>
> Would appreciate any other ideas/advice!
files through the php module. No-one will know what you've used then.
Just watch sessions though. They sometimes add something like
?PHPSESSID=xxxxxxxxx to the url. You can change what the session id is
called to hide that though.
Kevin Thorpe Guest
-
David Zawislak #5
Re: Hiding PHP
Rita Harp wrote:
Name the file index.php.> Hi
>
> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
>
> Is this the best idea in regards to this issue?
>
> Would appreciate any other ideas/advice!
>
> thanks
> Rita
HTH
David Zawislak Guest
-
Patrick Johnson #6
Re: Hiding PHP
[email]rita_harp@hotmail.com[/email] (Rita Harp) wrote in message news:<59fcae49.0309240037.2bafc594@posting.google. com>...
If you're using Apache you could edit your .htaccess file or> Hi
>
> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
>
> Is this the best idea in regards to this issue?
>
> Would appreciate any other ideas/advice!
>
> thanks
> Rita
httpd.conf to use ForceType. Your code would look like this:
<Files about>
ForceType application/x-httpd-php
</Files>
Then you could rename your "about.php" to just "about".
Patrick Johnson Guest
-
Tim Tyler #7
Re: Hiding PHP
Rita Harp <rita_harp@hotmail.com> wrote or quoted:
Yes - I believe so.> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
> Is this the best idea in regards to this issue?
This approach encapsulates the server-side technology in use - allowing
you to switch technologies at a later date without your public interface
changing.
--
__________
|im |yler [url]http://timtyler.org/[/url] [email]tim@tt1lock.org[/email] Remove lock to reply.
Tim Tyler Guest
-
Luke Ross #8
Re: Hiding PHP
Hi,
Rita Harp wrote:I personally use MultiViews for this, and then the web server tries>
> I want to hide the php files from my urls.
>
> My only idea is to have each file in its own directory as a default.php file.
>
> So instead of this ...
>
> xxx.com/about.php
>
> ... rename about.php to default.php and put in a directory /about ...
>
> xxx.com/about/
>
> This way I dont need to reference any php files explicitly.
>
>
> Is this the best idea in regards to this issue?
>
> Would appreciate any other ideas/advice!
various combinations of server-side-language, content-language,
content-type and compression levels. Apache guesses which file is most
likely to be the required one.
[url]http://httpd.apache.org/docs/content-negotiation.html[/url]
Regards,
Luke
Luke Ross Guest



Reply With Quote

