Find Jobs
Hire Freelancers

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

$10-30 USD

Cancelled
Posted over 6 years ago

$10-30 USD

Paid on delivery
Project Budget $0-$40 USD Please upload this php to your website to see if you can understand code. 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. 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 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. You will see [login to view URL] attached. You require to upload and unpack this to your website and edit [login to view URL] change path as your website. $path = '/home/mywebsite/www/1/staticfiles'; $programpath = '/home/mywebsite/www/1/robot'; I would like to use this code instead of curl therefore delete any code related curl <?php function UR_exists($url){ $headers=get_headers($url); return stripos($headers[0],"200 OK")?true:false; } if(UR_exists("[login to view URL]")) echo "file exists"; else echo "file does not exist"; ?> What does [login to view URL] 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 [login to view URL] 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 [login to view URL] (see attached) this is final process before search urls file. 4) Program start to search every url by referencing [login to view URL] 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 [login to view URL] where I can change currently it is 10 means at the same time this code checks 10 url
Project ID: 15497885

About the project

6 proposals
Remote project
Active 6 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
6 freelancers are bidding on average $37 USD for this job
User Avatar
hi i can start work right now i will finish this work within one day. send me message for start work right now. Relevant Skills and Experience html,php Proposed Milestones $40 USD - Project start milestone
$40 USD in 1 day
4.8 (33 reviews)
5.4
5.4
User Avatar
More than 11 years as FullStack WebDeveloper (Back/Frontend) Grade in computer engineering Seriousness and quality guaranteed, full time Monday to Friday Habilidades y experiencia relevante PHP : Symfony3, Laravel, Yii2, Wordpress, Woocomerce, Prestashop, Joomla, Drupal JS: Backbone, React, NodeJs, Websockets Webservices: RESTful , Soap, cloud computing with Google Cloud / Firebase Htos propuestos $40 USD - xx
$40 USD in 0 day
4.9 (42 reviews)
4.8
4.8
User Avatar
A proposal has not yet been provided
$29 USD in 1 day
5.0 (11 reviews)
3.5
3.5
User Avatar
I can start immediately I'm a professional Web developer with more than 6 Years experience in php, laravel,Codeigniter, magento, wordpress and all types of designing work. Relevant Skills and Experience HTML, Javascript, MySQL, PHP, Software Architecture Proposed Milestones $20 USD - Final
$20 USD in 1 day
5.0 (2 reviews)
0.4
0.4

About the client

Flag of AUSTRALIA
Sydney, Australia
5.0
97
Payment method verified
Member since Dec 1, 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.