Find Jobs
Hire Freelancers

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

$10-30 USD

Dibatalkan
Dibuat lebih dari 6 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
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 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. You will see [login to view URL] attached. You might require to upload and unpack this to your website and edit [login to view URL] change path. Upload this php to your website to see if you can understand code. give 777 permission to project and robot folder before run [login to view URL] $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 !!!!!!!!!!!!!!!!!!THIS CODE WILL BE INJECTED TO [login to view URL] AND REMOVE 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 Proyek: 15499321

Tentang proyek

7 proposal
Proyek remot
Aktif 7 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
7 freelancer menawar dengan rata-rata $29 USD untuk pekerjaan ini
Avatar Pengguna
PHP code change Relevant Skills and Experience Respected Sir, We have 7+ year exp in php mysql html javascript and wordpress. We have expertise in content management system in wordpress. Proposed Milestones $35 USD - Project
$35 USD dalam 1 hari
4,9 (185 ulasan)
7,1
7,1
Avatar Pengguna
Hey, I have checked the attached file and understand the problem that you have mentioned. Please respond to me. Relevant Skills and Experience HTML, Javascript, MySQL, PHP, Software Architecture with 6 years experience Proposed Milestones $25 USD - task Are you there?
$25 USD dalam 1 hari
5,0 (35 ulasan)
6,4
6,4
Avatar Pengguna
HI! Sir i m interested to fix script curl once contact me i will start work immediately and complete it as your requirement thank you i m waiting for your reply thanks Relevant Skills and Experience I have 7+years experience in web development i have good team for web development if you want to know about my expertise just visit in my profile where you can see my clients fedback for my work thanx Proposed Milestones $35 USD - .
$35 USD dalam 1 hari
5,0 (146 ulasan)
6,3
6,3
Avatar Pengguna
Hello, After reviewing your project, I’d love to discuss in more detail with you to ultimately understand your needs more. Relevant Skills and Experience I have more than 2 years of professional experience in PHP, CSS, HTML, JS, Jquery,Bootstrap, Ajax,wordpress, Codeignitoer. I will start the work as soon as you confirm. Proposed Milestones $35 USD - after completion when we can start ?
$35 USD dalam 0 hari
4,7 (113 ulasan)
5,9
5,9
Avatar Pengguna
I have a lot of experience in development of project like what you want. If you hire me, I will do my best to develop your project wonderfully in a short time! Relevant Skills and Experience HTML, Javascript, MySQL, PHP, Software Architecture Stay tuned, I'm still working on this proposal.
$25 USD dalam 1 hari
5,0 (13 ulasan)
3,5
3,5
Avatar Pengguna
A proposal has not yet been provided
$20 USD dalam 1 hari
5,0 (3 ulasan)
2,0
2,0

Tentang klien

Bendera AUSTRALIA
Sydney, Australia
5,0
102
Memverifikasi Metode pembayaran
Anggota sejak Des 1, 2010

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.