CodeIgniter Forums
url - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: url (/showthread.php?tid=19897)



url - El Forum - 06-22-2009

[eluser]eabihaydar[/eluser]
Code:
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/oNzwczwe8MA&hl=en&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
&lt;embed src="http://www.youtube.com/v/oNzwczwe8MA&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed>&lt;/object&gt;

If someone can help me in this, I want to have the url address from this html code

Many thanks


url - El Forum - 06-22-2009

[eluser]Dam1an[/eluser]
Code:
http://www.youtube.com/v/oNzwczwe8MA&hl=en&fs=1&
There you go Wink

Sorry, was that not what you meant? You where so vague it's hard to know what you want


url - El Forum - 06-22-2009

[eluser]eabihaydar[/eluser]
I need to extract the src part from this html code, Im building an application where the user can copy paste the html source code, so I have to take only the src part to embed his video on the website, dono if now im more clear anyway thanks


url - El Forum - 06-22-2009

[eluser]n0xie[/eluser]
You could use regular expressions or the DOM.


url - El Forum - 06-22-2009

[eluser]Thorpe Obazee[/eluser]
[quote author="Dam1an" date="1245696343"]
Code:
http://www.youtube.com/v/oNzwczwe8MA&hl=en&fs=1&
There you go Wink

Sorry, was that not what you meant? You where so vague it's hard to know what you want[/quote]

That made me laugh Big Grin