Re: [PHP] Parse URLs
Yes, I found that after posting my last message. Sorry and I'll use google more... - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Sunday, November 24, 2002 6:42 PM Subject: Re: [PHP] Parse URLs > Before asking, you should have done a search at google.com... I searched for > 'emoticons replace php', and it returned HEAPS of results, including this > one, which seems close to what you're asking... > > http://www.devarticles.com/art/1/161/2 > > Search the archives and google before posting please! > > > Justin > > > on 25/11/02 5:00 AM, Stephen ([EMAIL PROTECTED]) wrote: > > > Thanks! Just one more question. I also want to replace emoticons, such as > > :-), :), or ;-), that are stored in a table. The structure is this: id, > > emote, replace. How could I check to see if the text the user typed in > > contains any of the emotes in the table then replace them with the correct > > replacement? Also, how could I then limit how many are in the post? > > > Justin French > > http://Indent.com.au > Web Development & > Graphic Design > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse URLs
Before asking, you should have done a search at google.com... I searched for 'emoticons replace php', and it returned HEAPS of results, including this one, which seems close to what you're asking... http://www.devarticles.com/art/1/161/2 Search the archives and google before posting please! Justin on 25/11/02 5:00 AM, Stephen ([EMAIL PROTECTED]) wrote: > Thanks! Just one more question. I also want to replace emoticons, such as > :-), :), or ;-), that are stored in a table. The structure is this: id, > emote, replace. How could I check to see if the text the user typed in > contains any of the emotes in the table then replace them with the correct > replacement? Also, how could I then limit how many are in the post? Justin French http://Indent.com.au Web Development & Graphic Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse URLs
from the archives of the list http://www.phpbuilder.com/mail/php-windows/2001042/0222.php -tom culpepper Stephen wrote: They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database. - Original Message - From: "Tom Culpepper" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 23, 2002 9:05 PM Subject: Re: [PHP] Parse URLs not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS["url"]; (or $HTTP_POST_VARS depending on your form method) $url="".$url.""; echo $url; the only way to change it dynamically on the same page would be javascript. -tom culpepper Stephen wrote: I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks, Stephen Craton http://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse URLs
They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database. - Original Message - From: "Tom Culpepper" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 23, 2002 9:05 PM Subject: Re: [PHP] Parse URLs > not entirely sure what is going on there, but if the user is entering > the url in a html form. Then just grab the variable on the next page > and run this > > $url=user $HTTP_GET_VARS["url"]; (or $HTTP_POST_VARS depending on your > form method) > $url="".$url.""; > echo $url; > > the only way to change it dynamically on the same page would be javascript. > > -tom culpepper > > Stephen wrote: > > I have a simple post script and I want to make it so if a user types in > > a URL of some sort, to change it to make it clickable. How could I do that? > > > > Thanks, > > Stephen Craton > > http://www.melchior.us > > > > "Life is a gift from God. Wasting it is like destroying a gift you got > > from the person you love most." -- http://www.melchior.us > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse URLs
not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS["url"]; (or $HTTP_POST_VARS depending on your form method) $url="".$url.""; echo $url; the only way to change it dynamically on the same page would be javascript. -tom culpepper Stephen wrote: I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks, Stephen Craton http://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php