here is the first class <[login to view URL]> -> [login to view URL] the second which is the services/[login to view URL] file <[login to view URL]> and this is the script where I am trying to display the info. Seems to work ok when used as a $_POST but I need this function to work via function yget($url) instead. <[login to view URL]> and it needs to return the correct link for downloading. So basically I need this class turned into a function that will return the download url for the video.