Open

PHP GURU change php code from curl to php header to search return url exist or not

Project Budget $0-$50 USD

I have small php file reads the static file that contains urls (see attached). Current php code checks urls if url file exist or not by reading url links stored in file_sources.txt.

Current code uses curl but I am not happy with curl results and I am not going to use it. (do not try to fix curl I don't want to use it) .It gives sometimes wrong reaction and determine file exist when it is not. Code I want you to change is from curl to code giving you below.

If you know how to use php, It will take about 1-2 hours for you to change and test the code.

1) Please see [url removed, login to view] file attached. You might require to upload and unzip this to your website unzip [url removed, login to view] and give chmod 777 writable permission to both project and robot folder

2) Edit [url removed, login to view] change path

$path = '/home/mywebsite/www/project/staticfiles';

$programpath = '/home/mywebsite/www/project/robot';

I would like to use this code instead of curl therefore delete any code related curl

!!!!!!!!!!!!!!!!!!THIS CODE WILL BE INJECTED TO [url removed, login to view] AND REMOVE CURL !!!!!!!!!!!!!!!!!

<?php

function UR_exists($url){

$headers=get_headers($url);

return stripos($headers[0],"200 OK")?true:false;

}

if(UR_exists("[url removed, login to view]"))

echo "file exists";

else

echo "file does not exist";

?>

What does [url removed, login to view] do (attached)

1) Reads static files folder

2) Search any static files contains bigger than 2kb. We don't need files less than 2kb because these static files doesn't have url content so we don't worry about them. for example we will have 100.000 files but we only have 60.000 static file have urls creates [url removed, login to view]

3) after search for more than 2kb files. Script search for every individual file and get static file name and file url inside by using regex and save as [url removed, login to view] (see attached) this is final process before search urls file.

4) Program start to search every url by referencing [url removed, login to view] using curl return if file exist or not.

5) Only 404 results will be written on logs files you will see these files in php file. we don't worry about 200 results.

note: there is also limit option in [url removed, login to view] where I can change currently it is 10 means at the same time this code checks 10 url

Skills: HTML, Javascript, MySQL, PHP, Software Architecture

See more: php download videos code curl, javascript code using location object return url, change search result url magento, code invoice header fpdf php, change search page url magento, php curl header, curl php guru, change search results url magento, change code quick search module prestashop, magento change search result url, change code php aspx, change magento search result url, search add delete edit view ajax php mysql source code, return url html php, php mysql zip code search, php free zip code radius search, curl api php asp net code, change code php, php code curl command line, asp validate url exist scrape, site search results url generation, check url exist aspnet, aspnet display image url exist xpath, php change code, joomla change code

About the Employer:
( 94 reviews ) Sydney, Australia

Project ID: #15499533

Awarded to:

oliviainfotech

Hi greetings of the day I am a Experienced PHP Developer based out in Chennai,India. My experience revolves around development of web and mobile applications,Ecommerce websites. Relevant Skills and Experience I bel More

$40 USD in 1 day
(38 Reviews)
4.7

10 freelancers are bidding on average $27 for this job

muhamed3uda

Hi, let us discuss and start project now and end it ..thanks Relevant Skills and Experience Strong PHP coder Proposed Milestones $50 USD - Coding

$50 USD in 1 day
(71 Reviews)
5.5
shiva1977

A proposal has not yet been provided

$15 USD in 1 day
(36 Reviews)
4.8
briskbrain

I have expertise in, - PHP, HTML, CSS, Javascript, Jquery, MySql. - Opp Oriented Programming - Restful secure APIs with JSON - Magento, Wordpress, open cart Relevant Skills and Experience Curl, fwrite, sleep, exit, f More

$50 USD in 1 day
(14 Reviews)
4.2
jitenderpratapdh

Hello Hope you are doing well!! I have read and gone through your requirements which states that you are in need of an experienced PHP developer so here I am having 5+ years of experience in web development as well More

$40 USD in 1 day
(1 Review)
3.3
$25 USD in 1 day
(3 Reviews)
2.5
$10 USD in 1 day
(0 Reviews)
0.0
iambilal62

I do for this project for you in very best way Relevant Skills and Experience Html, Php ,Bootstrap, css , wordpress Stay tuned, I'm still working on this proposal.

$17 USD in 1 day
(0 Reviews)
0.0
bhoomisavaliya

Hi, Hope you're doing well. I'm new here. I can do this task. I've checked [url removed, login to view] file in details and try to replace CURL code with new code. let we discuss on chat and start work on it. Relevant Skills and Exp More

$10 USD in 1 day
(0 Reviews)
0.0
bondarenkoandrei

Hello, Let me do it just for 10$ and your feedback. It is not extremely easy but I want to start here. My profile at Upwork: [url removed, login to view]~012076787f0d62fa96/ Relevant Skills and Experien More

$10 USD in 1 day
(0 Reviews)
0.0