Completed

Fix bug in script

I have a data scraping script I am building but I have run into something I can not handle... I need some body to fix the following script so it displays the correct results when I echo the $file... the final page is not showing the person data just a default search page...

<?PHP

$lname = "AARON";

$fname = "JARVIS";

$jail_id = "501406523";

$url = "[url removed, login to view]$lname&fname=$fname";

$url = html_entity_decode($url);

$file = file_get_contents($url);

$pattern = '/[url removed, login to view](.*?)" title="' . $jail_id . '"/';

preg_match($pattern, $file, $match);

$url = "[url removed, login to view]" . $match[1];

$url = html_entity_decode($url);

echo $url = str_replace('&&', "&", $url);

$file = file_get_contents($url);

echo $file;

?>

Skills: PHP

See more: fix bug, fix a c++ script, Apps Script, php script echo, echo fix url php, script default script, echo file php, php echo file, data scraping php script, need scraping script, preg_match, script data scraping, fix bug php, script preg_match, script match file, preg_match match, php data scraping script, file_get_contents php, script windows firefox default, gen3 script bug fixes

About the Employer:
( 86 reviews ) Newnan, United States

Project ID: #7016777

Awarded to:

nanolab

Hello, Just fixed your script using curl. Here is result [login to view URL] Regards, Alexey.

$30 USD in 1 day
(296 Reviews)
7.2

12 freelancers are bidding on average $28 for this job

superior5

Hi, I have checked the script but I need to ask few things before I will give you any final cost for this task. Upon clarification on those points I will be then able to come up with my final decision. Please rev More

$23 USD in 1 day
(156 Reviews)
7.9
rajeshsonisl

Hello! With 99% completion rate, 740 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u More

$54 USD in 1 day
(516 Reviews)
7.5
pivn

A proposal has not yet been provided

$30 USD in 1 day
(134 Reviews)
6.2
sveralex

A proposal has not yet been provided

$17 USD in 1 day
(66 Reviews)
5.7
nittilegupta

Hi, I have worked on many scraping projects. I can fix this bug in a day. Look forward for your reply, regards, Nittile

$34 USD in 1 day
(25 Reviews)
5.5
ahmed613

PHP expert with 6 yrs of expeirence, and expert in dealing with curl and scrapping. Please message me to discuss it in detail and get started. Waiting for your answer and thanks.

$40 USD in 1 day
(105 Reviews)
5.6
kevalthacker

Hello Sir, How are you? I am able to do this work.I have more then 3 years of experience in PHP. if you need then i can show you working demo of your [login to view URL] to start right now. Thank you. Reg More

$20 USD in 0 days
(38 Reviews)
4.2
DrGrim

hello , i believe i could help you with this . Please let me know if you would like to collaborate with me .Thank you !

$25 USD in 0 days
(21 Reviews)
4.0
BitLabs

Dear sir, I will complete your project asap, LIFETIME error free guarantee and provide ONE YEAR support... I have gone through your outsourced requirement "Fix bug in script" and have analysed that I have right cre More

$17 USD in 1 day
(17 Reviews)
3.3
secureway

Hi, I am Manav, owner & Operations’ Head from Secure Way (I) pvt. ltd. Thanks for the details. We can easily deliver with our certified developers But it will be great if we can discuss a bit more. We are new in th More

$35 USD in 0 days
(1 Review)
1.5
santiagomurchio

I am a software developer and I have a lot of experience fixing bugs and applying best practices to code.

$31 USD in 2 days
(0 Reviews)
0.0
assertivetec

A proposal has not yet been provided

$15 USD in 1 day
(0 Reviews)
0.0