Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

split?

Name: Anonymous 2011-11-29 11:09

i have a site named profile.php where i want to replace the following:

<youtube>http://www.youtube.com/watch?v=yoXE031j8d0</youtube>;

into:

<iframe width="420" height="315" src="http://www.youtube.com/embed/yoXE031j8d0" frameborder="0" allowfullscreen></iframe>



i know i could use str_replace to replace

<youtube>

into

<iframe width="420" height="315" src="

and

</youtube>

into

" frameborder="0" allowfullscreen></iframe>


... but i need to know the URL so i can check if it really is a youtube video.

Thanks alot for your time

regards noob

Name: Anonymous 2011-11-29 11:40

wow, how you can be so clueless on programming? seriously, a web programmer but still I would except some kind of intelligence from you

Name: Anonymous 2011-11-29 12:28

Web programmer and intelligence don't go very well together in one sentence.

Name: Anonymous 2011-11-30 4:30

>>3
I made the mistake of letting myself see a WORDPRESS theme's code once - a paid one mind you (~$50 USD) - and it literally made me want to chop the ``programmers'' hands off.

Never have I encountered more tripe then when I see PHP. I guess because a) PHP is always so tightly tied into the site's design/layout, and b) it's just a shit language with shit people using it.

I'm happy I've never worked on anything Ruby/RoR related. I'm sure it only gets worse...

Don't change these.
Name: Email:
Entire Thread Thread List