Find Jobs
Hire Freelancers

Changing php code from curl to php header to check url file exist or not

$10-30 USD

キャンセル
投稿日: 6年以上前

$10-30 USD

完了時にお支払い
Project Budget $0-$40 USD I have small php file reads the file that contains urls. Current php code checks urls if 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: 15489985

プロジェクトについて

13個の提案
リモートプロジェクト
アクティブ 7年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に13人のフリーランサーが、平均$35 USDで入札しています
ユーザーアバター
Hi! I have 10+ years of web developing experience. I can promise quality and responsibility. We can start IMMEDIATELY. Важливі навички та досвід PHP, MYSQL, JAVASCRIPT, ELASTICSEARCH, JQUERY, AJAX, HTML, CSS, XML, JSON, CODEIGNITER, LARAVEL, SYMFONY, PHALCON Stay tuned, I'm still working on this proposal.
$30 USD 1日以内
5.0 (89 レビュー)
7.0
7.0
ユーザーアバター
Hi sir Thank you for posting this project. I know PHP very well, and I could help you with header solution now. I could start immediately! Relevant Skills and Experience PHP Proposed Milestones $40 USD - Milestone
$40 USD 0日以内
4.6 (79 レビュー)
7.3
7.3
ユーザーアバター
sir pm me i can finsih this within 2 hours ... Relevant Skills and Experience php Proposed Milestones $40 USD - sir pm me i can finsih this within 2 hours ... can you pm me ?
$40 USD 0日以内
5.0 (206 レビュー)
6.4
6.4
ユーザーアバター
Hello Sir, hope you are fine, I am interested in your work "check url file exist or not". Relevant Skills and Experience I have 5 year experience in Web Development Service I am able to this job quickly. You can view my profile for details to skills and customer feedback https://www.freelancer.com/u/kazimking Proposed Milestones $40 USD - Task 1
$40 USD 1日以内
4.9 (42 レビュー)
5.5
5.5
ユーザーアバター
Hi, I can do it fast. Rocky Stay tuned, I'm still working on this proposal.
$35 USD 1日以内
5.0 (47 レビュー)
5.1
5.1
ユーザーアバター
No problem. I can definitely do this for you, but I have a few questions. Thanks Relevant Skills and Experience PHP Proposed Milestones $35 USD - .
$35 USD 1日以内
5.0 (67 レビュー)
5.2
5.2
ユーザーアバター
You can try this $file_header = @get_headers($url); if($file_header[0] == 'HTTP/1.1 404 Not Found') { $is_exists = false; } else { $is_exists = true; } Relevant Skills and Experience php Proposed Milestones $30 USD - 1
$30 USD 1日以内
5.0 (34 レビュー)
4.9
4.9
ユーザーアバター
Hello We are a contemporary and excellent Website design and development team with a focus on user-centered design while helping clients to achieve the desired result. Relevant Skills and Experience We are a dynamic and outstanding team with 5+years Expertise in PHP, MYSQL, Shopping cart, Magento, Wordpress, E-commerce, Custom CMS, HTML5, CSS3, Jquery Etc, we can easily handle your task. Proposed Milestones $50 USD - default
$50 USD 2日以内
4.7 (22 レビュー)
4.7
4.7
ユーザーアバター
Hello sir, i would like to modify this script. Thanks Relevant Skills and Experience HTML, Javascript, MySQL, PHP, Software Architecture Proposed Milestones $40 USD - Default
$40 USD 1日以内
4.8 (34 レビュー)
4.2
4.2
ユーザーアバター
Hello, i am a software architect on a global company. I am expert on Python and PHP. Thanks. İlgili Beceriler ve Deneyim php Önerilen Aşamalar $25 USD - project fee
$25 USD 1日以内
4.7 (17 レビュー)
3.5
3.5
ユーザーアバター
Having wide-ranging experience and expertise on development services, i am committed to provide the best work output to our client. Now i am started working independently so that's why i am here. Relevant Skills and Experience i am well experienced PHP developer. i did many PHP projects including online store, e-commerce, portal(News portal, Web directory, Bookmark, yellow pages...) Proposed Milestones $15 USD - Start Work $15 USD - 100% done
$30 USD 1日以内
4.9 (6 レビュー)
3.1
3.1

クライアントについて

AUSTRALIAのフラグ
Sydney, Australia
5.0
102
お支払い方法確認済み
メンバー登録日:12月 1, 2010

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。