Find Jobs
Hire Freelancers

Get Variable PHP - easy

$2-8 USD / hour

In Progress
Posted over 12 years ago

$2-8 USD / hour

Hi When a video has the structure: [login to view URL] I want to get the code [login to view URL] For example, when you look at [login to view URL], look at your source code and find this: flashvars.v = 'DY3XYCSH'; I want to get the code DY3XYCSH. And if flashvars.v is empty or less than 3 characters I want to display the original code, in this case would IT2ESBK0. It was working with this code: <?php function get_vlink($dlink){ $rawdata=file_get_contents($dlink); $temp = explode('flashvars.v = "',$rawdata); $temp2 = explode('";',$temp[1]); if (strlen($temp2[0])>3) { return "".$temp2[0]; } else { return $dlink; } } //Example usage: $vlink=get_vlink("[login to view URL]"); echo $vlink; //output: [login to view URL] ?> But today is not working because megavideo change " for '
Project ID: 1351778

About the project

8 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, check PM. I have a working solution.
$5 USD in 1 day
0.0 (0 reviews)
0.0
0.0
8 freelancers are bidding on average $13 USD/hour for this job
User Avatar
Professional web developer is ready get started right now. PLEASE NOTE: my Deadline is higher than i actually need. Please read private message for more information.
$20 USD in 1 day
5.0 (87 reviews)
6.4
6.4
User Avatar
I already have it ready for you. Check my PM.
$20 USD in 1 day
5.0 (83 reviews)
6.2
6.2
User Avatar
easy job, can be fixed in a short time. I'm ready to start right away. Best regards. Dracco.
$10 USD in 3 days
4.8 (126 reviews)
5.8
5.8
User Avatar
7 years old in php
$9 USD in 1 day
4.9 (24 reviews)
5.5
5.5
User Avatar
Hello, sent you the code
$8 USD in 2 days
5.0 (26 reviews)
4.6
4.6
User Avatar
Looking forward to working with you...
$8 USD in 1 day
5.0 (5 reviews)
3.6
3.6
User Avatar
Hi, Please check PMB. Thanks.
$6 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of PERU
Lima, Peru
5.0
1
Payment method verified
Member since Dec 29, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.