This is a discussion on Splitting up long URLs within the PHP General forums, part of the PHP Programming Forums category; On Mon, Jul 7, 2008 at 12:54 PM, tedd <tedd.sperling@gmail.com> wrote: > At 11:...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Mon, Jul 7, 2008 at 12:54 PM, tedd <tedd.sperling@gmail.com> wrote:
> At 11:57 AM -0400 7/7/08, Daniel Brown wrote: >> >> You could display the URL's the way Google handles them: >> >> <?php >> >> function shortenURL($longURL) { >> preg_match('/\/?[a-z0-9\.\-]+\//Ui',$longURL,$matches); >> $shortURL = str_replace('/','',$matches[0]); >> return $shortURL; >> } >> >> $longURL = >> "http://some-SPAM-URL-011.example.com/v14gra/p3n15_pump.php?affil=43ERG3245wert002934&boo=yaa!" ; >> >> echo "<a href=\"".$longURL."\">".shortenURL($longURL)."</a><br />\n"; >> ?> >> > > Very nice. > > However, there isn't a way to change what the user see's in the browser's > url box, is there? > > For example, can you send a user to http://example.com/a.php, but they see > http://example.com/b.php in their browser? > > Cheers, > > tedd Sounds pretty phishy to me, tedd. :-) Andrew |
|
|||
|
At 12:05 PM -0400 7/8/08, Andrew Ballard wrote:
> > However, there isn't a way to change what the user see's in the browser's >> url box, is there? >> >> For example, can you send a user to http://example.com/a.php, but they see >> http://example.com/b.php in their browser? >> >> Cheers, >> >> tedd > >Sounds pretty phishy to me, tedd. :-) > >Andrew Andrew: Yes, but there's nothing wrong with learning -- it's like talking to other women while you're married, it's what you do with the information that makes it right or wrong. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |
|
|||
|
On Tue, 2008-07-08 at 12:42 -0400, tedd wrote:
> At 12:05 PM -0400 7/8/08, Andrew Ballard wrote: > > > However, there isn't a way to change what the user see's in the browser's > >> url box, is there? > >> > >> For example, can you send a user to http://example.com/a.php, but they see > >> http://example.com/b.php in their browser? > >> > >> Cheers, > >> > >> tedd > > > >Sounds pretty phishy to me, tedd. :-) > > > >Andrew > > Andrew: > > Yes, but there's nothing wrong with learning -- it's like talking to > other women while you're married, it's what you do with the > information that makes it right or wrong. That reminds me of something I heard on TV a long time ago... Just because I've ordered doesn't mean I can't keep looking at the menu. :) Personally, me and the missus have more fun teasing each other when we find the other's eyes wandering. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP |
|
|||
|
At 2:07 PM -0400 7/8/08, Robert Cummings wrote:
>On Tue, 2008-07-08 at 12:42 -0400, tedd wrote: > > At 12:05 PM -0400 7/8/08, Andrew Ballard wrote: > > >Sounds pretty phishy to me, tedd. :-) >> > >> >Andrew >> >> Andrew: >> >> Yes, but there's nothing wrong with learning -- it's like talking to >> other women while you're married, it's what you do with the >> information that makes it right or wrong. > >That reminds me of something I heard on TV a long time ago... > > Just because I've ordered doesn't mean I can't keep looking at > the menu. > >:) I heard it: "Just because I'm on a diet doesn't mean I can't look at the menu." I also like: "I gave sex up for food and now I can't even get into my own pants." Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com |