Find Jobs
Hire Freelancers

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

$10-30 USD

Cancelado
Publicado há mais de 6 anos

$10-30 USD

Pago na entrega
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
ID do Projeto: 15497885

Sobre o projeto

6 propostas
Projeto remoto
Ativo há 6 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
6 freelancers estão ofertando em média $37 USD for esse trabalho
Avatar do Usuário
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 em 1 dia
4,8 (33 avaliações)
5,4
5,4
Avatar do Usuário
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 em 0 dia
4,9 (42 avaliações)
4,8
4,8
Avatar do Usuário
A proposal has not yet been provided
$29 USD em 1 dia
5,0 (11 avaliações)
3,5
3,5
Avatar do Usuário
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 em 1 dia
5,0 (2 avaliações)
0,4
0,4

Sobre o cliente

Bandeira do(a) AUSTRALIA
Sydney, Australia
5,0
97
Método de pagamento verificado
Membro desde dez. 1, 2010

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.