Current location: Hot Scripts Forums » Programming Languages » PHP » Simplify URL


Simplify URL

Reply
  #1 (permalink)  
Old 03-11-04, 02:34 PM
pino pino is offline
New Member
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Simplify URL

I want to make:

http://www.somedomain.com/index.php?12345

can be accessed just with this format:

http://www.somedomain.com/12345/


Anyone know how to do that?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-11-04, 10:42 PM
brucewestfall brucewestfall is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Just as a clarification point, you want the link to LOOK like that...

The actual <A href=... needs to stay the same, right?

(I may be dumb, but I shore look Stoodpid)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-12-04, 10:49 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
this tut teach you how to make similar thing:
http://zend.com/zend/spotlight/searchengine.php

you may also want to take a look here :
http://www.faqts.com/knowledge_base/...id/124/fid/342
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-12-04, 11:58 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
does that even explain how you enable $PATH_INFO? ( hmm idk )

well either way,
go to your php.ini ( i think this is the rit way ) and find this
Code:
; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is zero.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; cgi.fix_pathinfo=1
by uncommenting ; cgi.fix_pathinfo=1 it should enable it


NOTE Im not sure if this is even the right way :S

Last edited by Infinite_Hackers; 03-12-04 at 12:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simplify the complexities of N-tier application with Tierdeveloper 3.0 smars General Advertisements 1 12-05-03 01:16 AM


All times are GMT -5. The time now is 09:37 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.