Splitting up long URLs

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:...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-08-2008
Andrew Ballard
 
Posts: n/a
Default Re: [PHP] Splitting up long URLs

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
Reply With Quote
  #12 (permalink)  
Old 07-08-2008
tedd
 
Posts: n/a
Default Re: [PHP] Splitting up long URLs

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
Reply With Quote
  #13 (permalink)  
Old 07-08-2008
Robert Cummings
 
Posts: n/a
Default Re: [PHP] Splitting up long URLs

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

Reply With Quote
  #14 (permalink)  
Old 07-08-2008
tedd
 
Posts: n/a
Default Re: [PHP] Splitting up long URLs

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0