Fix my php script

Suoritettu Julkaistu 7 vuotta sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

I'm currently building a script that crawl all page of a domain ($url1), put all urls found in a text file, then scan each url with simple_dom_parser to check if any <a> tag with string ($url2).

So script ran like this [login to view URL]$url1=http://google.com&$url2=google&proxy=NULL

$url1 is the domain to scan all url

$url2 is the occurrence to find on each page <a> tag.

All currently working except one thing. I'm able to fetch all urls of a domain then put in a file, but for a reason I don't understand, my scan($url1,$url2,$proxy) function (using simple_dom_parser and curl) look like skipping some line or don't go until the end of the file using this way to fetch all line :

foreach(preg_split("/((\r?\n)|(\r\n?))/", $subject) as $line){

$resultscan = scan($line,$url2,$proxy);

}

And this way it's not finding any occurrence:

$file="[login to view URL]";

$handle = fopen($file, "r");

while(!feof($handle)){

$line = fgets($handle);

scan($line,$url2,$proxy);

}

Smaller bid and faster time frame will be prioritize, no time waster or people that hire others freelancer. I will hire you back for another fix right after if job is good.

PHP

Projektin tunnus: #13348772

Tietoa projektista

12 ehdotusta Etäprojekti Aktiivinen 7 vuotta sitten

Myönnetty käyttäjälle:

hardeepkumar01

yes after go through your job details i assure to you that i can fix the error using my PHP development skills with perfection and complete it in your timeline. I am a Senior PHP Developer with lot of experience in Lisää

$35 USD 1 päivässä
(7 Arvostelua)
2.8

12 freelanceria on tarjonnut keskimäärin $27 tähän työhön

celalaybar

Hello. I can help you. I am a fulltime and individual freelancer. We can discuss further details. Best Regards.

$24 USD 1 päivässä
(140 arvostelua)
6.4
adityasharma91

Hi there I can do it ASAP. Please share details. Lets Start................. Thanks...................................................................................................

$25 USD 1 päivässä
(104 arvostelua)
5.4
seshubhamgupta

Hello sir, I understand your project what you need I can complete it in 1 day. its very simple for me. award me this project. for more info chat with me. waiting for your reply. thank you

$23 USD 1 päivässä
(30 arvostelua)
4.7
cracken

Hi Samuelmillette, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on yo Lisää

$29 USD 1 päivässä
(5 arvostelua)
4.0
MohsanEijaz

I have experience in MS Office, VBA Programming, XML, MS Work, Google Docs, SQL, Google Spreadsheet, Data Entry in Odoo, Google Document and other related applications. I believe my capabilities would be perfect for y Lisää

$30 USD 1 päivässä
(5 arvostelua)
1.9
php7team

Hi, I can fix this for a minimal bid within next few minutes, starting the project right away. Please feel free to have a discussion before having a decision. Thank You. warm regards, Sukanyeah Krishna

$25 USD 0 päivässä
(0 arvostelua)
0.0