Jump to content

Parsing a link


HaLo2FrEeEk

Recommended Posts

Hi, I want to use CURL to retrieve the code for a webpage then find a link inside the page, the link is in the format of:

 

http://files.redvsblue.com/RvB05/5x(*)/fl4sh/(*).flv

 

Where (*) indicates a wildcard, I want to be able to parse out this link to a variable, then print it on the page in a link for download, does anyone know how I can do this?  Here is one of the pages I will be parsing:

 

http://rvb.roosterteeth.com/archive/episode.php?id=244

 

The videos there are in flash video format and I like to download them in that format instead of the wmv format becuase the flash files are higher resolution, I know this is possible, so can someone show me how to please?

 

I had a file that would use CURL to get a file or page from a remote url, but I deleted it and I don't remember how to do it, so I'll need help with that too.

 

Thank in advance.

Link to comment
https://forums.phpfreaks.com/topic/42430-parsing-a-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.