The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
CGI->PHP | Very usefull script
]Hello all!
Just found a CGI script that checks any given server and idf it's alive, it returns live.gif (green.gif etc). If not - dead.gif (red.gif). Very useful The problem is : I can't use CGI on my host and my hoster wont enable it. Could anyone please convert it to PHP? Any help appreciatted. |
#2
|
||||
|
||||
]hmm.. 7 downloads and no responce at all?
|
#3
|
||||
|
||||
]18 downloads and still nothing?
|
#4
|
||||
|
||||
<?php
if (!$url) {echo "No URL";exit;} $fp = @fopen("$url","r"); if ($fp) { echo "The address valid!"; } else { echo "The address invalid"; } ?> is the code very basically doing the same thing.. Save it to a file (eg.online.php) and upload it to your server. Then call your file like url/online.php?url=http://www.domain.com/filetocheck.html it will return "address is valid" message if the url(page) exits. Of course you can enhance the code if you want, that is just the algorithm in PHP. |
#5
|
||||
|
||||
]thanx, I'll try it out
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|