Originally posted by razzbee
View Post
How to get id from this?
Collapse
X
-
u can still use the first function do it this way...
Change the $3 to %3 if it fails.Code:Preg_replace("/^(http:\/\/www\.)?(4 s h a r e d \ . c o m \ / a u d i o \ / ) ( . + ) \ / ( . + ) $/",$3,$link);
Pardon me for mistakes im on mobile
Leave a comment:
-
tnx also @gumslone & @frosty 4 the info..by the way I used the explode code
Leave a comment:
-
PHP: ereg - ManualOriginally posted by razzbee View Postwell ,ereg is for native php coding whiles the preg is borrowed from perl (pcre).no difference but a slight change in rule.
This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
Leave a comment:
-
well ,ereg is for native php coding whiles the preg is borrowed from perl (pcre).no difference but a slight change in rule.
Leave a comment:
-
$link = I.Y.A.Z - Love.mp3 - 4shared.com - online file sharing and storage - download
use this
Code:$link=ereg_replace("(http:\/\/www\.4shared\.com\/audio\/)(.+)\/(.+)$",\\2,$link); echo $link; or use this $link=explode("/",$link); $link=$link[4];
Leave a comment:
-
How to get id from this?
Im not good in php so please someone teach me how to get id from this code
Using php? I dont now if thats right, I just want to get the (0Po_BkGJ)PHP Code:$link = http://www.4shared.com/audio/0Po_BkGJ/IYAZ_-_Love.htm;
Please someone tell me how
Tags: None
Leave a comment: