icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Hide your php pages.

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old September 18th, 2004, 12:11 AM   #10 (permalink)
Caffeine fiend
Comfy Contributor
 
pvera's Avatar
 
Joined in Aug 2004
Lives in Reston, Virginia
Hosted on pass15
270 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by darkzeroman
think this is a stupid question....but why would someone want to hide their php pages?
1. Looks nicer
2. Many search engines get confused with long URLs. These "flat" URLs look for all purposes like static html pages.
3. Whenever talking to a customer over the phone it is much easier to tell them to "go to oursite.com/clients" than to give them the longer URL. Basically we are giving them less of an opportunity to screw it up.

#3 is really painful, it happened to us so much that I had to convert pretty much all our public pages to use flat urls, then on top of that wrote a ripoff of tinyurl.com so we can take any URL and crunch it down to something easier for the customer to handle.
pvera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 1:25 AM   #11 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
Quote:
Originally Posted by pvera
1. Looks nicer
2. Many search engines get confused with long URLs. These "flat" URLs look for all purposes like static html pages.
3. Whenever talking to a customer over the phone it is much easier to tell them to "go to oursite.com/clients" than to give them the longer URL. Basically we are giving them less of an opportunity to screw it up.

#3 is really painful, it happened to us so much that I had to convert pretty much all our public pages to use flat urls, then on top of that wrote a ripoff of tinyurl.com so we can take any URL and crunch it down to something easier for the customer to handle.
All 3 reasons - dead on.
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 2:01 AM   #12 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
Personally, I use this system for security believe it or not. I mean, if I can make a page be displayed by using an alias in the URL, I could name my contact, main, etc.. pages whatever I wanted (AXZHDHDhdl10289.php) and never have to worry with someone getting direct access to them. Keep your security tight in the main page and all works out well, though you should never forget about the other pages and their security.

Also, one side point, I see this in many scripts. If the file doesn't evaluate to something in the script, it is assumed that the file is still on the local system and valid. A lot of scripts automatically assume that the info passed to them is a valid file on the server, which is a big no-no.

Code:
default:
  include($act);
  break;
That code, or the respective code if you are using ifs or other statements is a setup for disaster. I have seen many scripts exploited because of this stupid idea of assuming it is going to be a file on your server.
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On