PHP-function to check a port/website + thumbnail website

En cours Publié le il y a 7 ans Paiement à la livraison
En cours Paiement à la livraison

I have a PHP-software that checks if a website is down or if a port is not answering correctly. However, the port-check is written in Perl (called from PHP) and I have issues with the webcheck for a few websites (written in PHP).

So I want a totally new check-function written by you instead of patching the old. I prefer to have it all in plain PHP. You do not need to store any data, I will use your custom functions into my already existing check-script.

You must write the function checkWEB and checkPORT below.

You may NOT use any framework like laravel or use a library that I can't redistribute. Less is more. Code should be plain function and not object-oriented if possible, but this is not a requirement as long as I can simply call the functions below in a normal way.

Task #1:

$lReturn=checkWEB($aWebsite,$aSearchword,$aTimeout)

Return: response-time (in ms), if the searchword was found (0/1) and possibly the full download time of the page (in ms).

Task #2:

$lReturn=checkPORT($aHostname,$aPORT,$aTCPorUDP, $aTimeout)

Return: response-time (in ms), if the port answered correctly (0/1), any response given.

Task #3:

In addition, I want to fetch a image from the website that has trouble.

For some other PHP-script I have, I have used [login to view URL] and their screenShot class. They have free version. But I'm very open to other solutions as well - including/preferable not using a remote API-solution like theirs.

I have used CURL and it fixes some parts. But it has problems for instance with one of the test-urls because of some redirect, javascript or something. I have also used a http:request class, similar issue. I need a perfect working solution that don't fail.

Deliverable files (no install/shell commands should be needed):

- [login to view URL] with your 2 custom functions (and any helper functions).

- [login to view URL] pre-loaded with test-URLs and a testword below.

- any helper/third-party libraries in a /tools/ folder (/tools/imageapi/subdir/sub etc.)

- any write-able folder should be in a folder relative to script: op/config/tmp

- no other files in root-folder beside [login to view URL] and function.php. No database.

Test-URLs:

- [login to view URL] with word "forretningssystemer"

- https://www.freelancer.com

In addition to test IPs. Test for web, ssh, ftp, etc and measure their response.

Fully tested before delivered. Linux-host machine.

This isn't the worlds most complicated task, but you would use some time to find/test the tools that delivers everything, including the option to measure real/full download time. If you for instance only can deliver the "web-check" part of this project, I would consider the entire project to have failed. So all of it must work in order to deliver a finished project.

PHP

Nº du projet : #12527829

À propos du projet

4 propositions Projet à distance Actif il y a 7 ans

4 freelances font une offre moyenne de 115 $ pour ce travail

pakistansolution

I am a professional web designer and developer. Experience in with HTML, CSS, JS, jQuery, PHP, MySQL. Very familiar with WordPress , MAgento , wooCommerce , Bootstrap ,Plugins ,API's and its customization. I have a l Plus

$100 USD en 5 jours
(78 Commentaires)
6.2
Immortaltech

We are software application development company, Experts from India having range of Skills available in our In-house staff: Dedicated: Android Developer,Website Developer, ECommerce developer, PHP Developers, ASP.NET Plus

$138 USD en 10 jours
(2 Commentaires)
2.6
a830144

A proposal has not yet been provided

$138 USD en 20 jours
(0 Commentaires)
0.0