![]() |
need a PHP script coded
should be simple
take a list of URLs I provide, check each one of them for a 404 response. If it gets that response, tell me which URL did it. There are hundreds to check paypal is ready to go |
show me your penis please
|
I already did it for you, please send $100 via paypal
|
Quote:
thats also not PHP |
Quote:
|
Didn't Xenu throw the Thetans into a volcano? That bastard!
|
Quote:
He wants the program to feed in a list of addresses. Go to each address and see if the site/file exists. Create and output list of addresses that return a 404. |
PHP Code:
|
oh, i forgot you need the php_http extension installed on your server.
|
This is kind of simple. Do you just want it to report 404s? How do you want to 'feed' it?
|
script in my sig does that!
|
Quote:
|
Here's a version that uses curl:
Quote:
|
http://www.imagepup.com/up/FIxz_1211..._404thingy.jpg
This one's stupid, but it uses the common class.curl.php, and does a select based upon the error, so you can add different features/functions for 403s, 500s, etc.. Mostly, I'm just lazy and didn't figure it deserved OOP, even if I'm using an OOP class. Enjoy. Code:
<html> |
rofl
Quote:
|
Quote:
At least I can rely on trusty ol' cURL to almost always be there. fopen urls and http_get don't usually worked no more on crummy virtualhosts, but cURL? Most of the time. I almost turned headers on and NOBODY to use a HEAD to parse with less overhead, but the class is oddly lacking in the ability to handle that. |
Quote:
|
how about the same script that looks for txt on the index, instead of a response code
like the text "this site does not exist" how would ya do that in curl/php? That might be even more fool proof for him. Sometimes servers return bad codes even if the site isn't bad. This would foolproof it. |
Quote:
Hillsborough on ICQ made exactly what I needed, not sure what his name is on GFY |
Quote:
|
Quote:
Code:
<html> |
Quote:
That's in 2038, of course. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Code:
<html> Format: http://site.com/|searchterm If searchterm is empty, it doesn't fall back to 404. I don't feel like actually turning this pile of shit code into something worthwhile. I'm not bored anymore. :) |
next time I think I'll just make a thread called, spam me with your PHP code...
:) |
Quote:
|
i dont feel like reading through all this, but are we having another one of those contests to see who can do this more inefficiently again?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
damn shush grouchy i just did it in a 5 mins i was tired, it worked on my dev server
|
Quote:
|
Quote:
|
some interesting scripts around here...
|
All times are GMT -7. The time now is 12:32 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123