Mam taki skrypt:

submit.php
  1. <?
  2. $default_email_address = "wproadz_tu_swoj_email";
  3. $engines_file = "engines.php";
  4. $email_address_field = 0;
  5. $script_version = 1.01;
  6. define("EMAIL",$default_email_address);
  7. if (!is_file($engines_file)) {
  8. echo "<B>Bład:</B> Nie znaleziono pliku.";
  9. exit();
  10. }
  11. if (!strcmp(EMAIL,"wproadz_tu_swoj_email")) {
  12. echo "<B>Blad:</B> Wypełnij pole email.";
  13. exit();
  14. }
  15. function endscript() {
  16. echo "<script language="JavaScript">document.getElementById('submiturl').disabled = false</SCRIPT>";
  17. echo "n</BODY>n</HTML>";
  18. exit();
  19. }
  20. require($engines_file);
  21. ?>
  22. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  23. <HTML>
  24. <HEAD>
  25. <TITLE>
  26. Wyszukiwarki &copy; Landon
  27. </TITLE>
  28. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  29. <STYLE>
  30. p,td,body{FONT-FAMILY:Verdana,Arial,Helvetica; FONT-SIZE:x-small}
  31. </STYLE>
  32. </HEAD>
  33. <BODY>
  34. <P>
  35. <SMALL>
  36. <B>Wprowadź adres swojej strony.</B></SMALL>
  37. </P>
  38. <FORM METHOD="post" ACTION="<? echo $_SERVER['PHP_SELF'] ?>">
  39. <B>URL:</B>
  40. <INPUT NAME="url" TYPE="text" VALUE="http://" SIZE="50">
  41. <?
  42. if ($email_address_field) echo "<BR><B>EMAIL ADDRESS: </B><INPUT TYPE="text" NAME="email" SIZE="30"><BR>";
  43. else echo "<INPUT TYPE="hidden" NAME="email" VALUE="".EMAIL."">";
  44. echo "n";
  45. ?>
  46. <INPUT TYPE="submit" VALUE="Dodaj" ID="submiturl" DISABLED>
  47. <INPUT TYPE="hidden" NAME="submiturl" VALUE="1">
  48. </FORM>
  49. <?
  50. if (!$submiturl) endscript();
  51. if (!($email = trim($email))) $email = EMAIL;
  52. if (!($url = trim($url)) || $url == "http://") {
  53. echo "<FONT COLOR=red><B>Błedny Adres</B></FONT>";
  54. endscript();
  55. }
  56. echo("<H3>Poczekaj momęt zanim doda do wyszukiwarek.</H3>");
  57. for ($i=0;$i<sizeof($name);$i++) {
  58. $error = 0;
  59. echo "<P><B>$name[$i]:</B> ";
  60. flush();
  61. $fp = fsockopen($host[$i], 80, $errno, $errstr, 10);
  62. if (!$fp || !$auto[$i]) {
  63. if ($auto[$i]) {
  64. echo "connection error";
  65. $error = 1;
  66. }
  67. else echo "musisz dokończyć (<A HREF=http://$host[$i]/$path[$i] TARGET=_blank>Dokończ</A> | <A HREF=$manual[$i] TARGET=_blank>Dodaj samodzelnie</A>)";
  68. } else {
  69. socket_set_timeout($fp, 15);
  70. $request = "GET /$path[$i] HTTP/1.0rnHost: $host[$i]rnrn";
  71. $buffer = "";
  72. $loopstart = mktime();
  73. if (fwrite($fp, $request, strlen($request)))
  74. while ($fp && !feof($fp)) {
  75. $buffer .= fgets($fp);
  76. if (rand(1,5) == 5) echo ".";
  77. flush();
  78. if ((mktime()-$loopstart) > 20) break;
  79. }
  80. if (eregi("$success[$i]", $buffer)) echo "gotowe";
  81. else {
  82. echo "Bład";
  83. $error = 1;
  84. }
  85. if ($error) echo " (<A HREF=http://$host[$i]/$path[$i] TARGET=_blank>Ponów</A> | <A HREF=$manual[$i] TARGET=_blank>Dodaj samodzelnie</A>)";
  86. }
  87. fclose($fp);
  88. }
  89. echo("<P><B>Dodawanie adresu: $url Skończone.</B></P>");
  90. endscript();
  91. ?>


i engines.php

  1. <?
  2. $engines_version = 20030630;
  3.  
  4. $name = array(
  5. "Alexa",
  6. "Altavista",
  7. "MSN",
  8. "Google Com",
  9. "Google Pl",
  10. "AlltheWeb",
  11. "HotBot UK",
  12. "Splat!",
  13. "Subjex",
  14. "MixCat",
  15. "SearchIt"
  16. );
  17.  
  18. $host = array(
  19. "cgi.alexa.com",
  20. "addurl.altavista.com",
  21. "free.submit-it.com",
  22. "www.google.com",
  23. "www.google.pl",
  24. "www.alltheweb.com",
  25. "www.hotbot.lycos.co.uk",
  26. "www.splatsearch.com",
  27. "www.subjex.net",
  28. "www.mixcat.com",
  29. "index.searchit.com"
  30. );
  31.  
  32. $path = array(
  33. "client/www/cgi-bin/request_bot.cgi?url=$url",
  34. "addurl/new?url2add=$url&uemail=$email",
  35. "msnsubmit.htm",
  36. "addurl?q=$url&dq=&submit=Add+URL",
  37. "addurl?q=$url&dq=&submit=Add+URL",
  38. "add_url.php?url=$url&email=$email&submit=1",
  39. "submit.html?spag=1&engine=hotbot&surl=$url&sem=$email&submit=Add+page",
  40. "cgi-bin/spider.cgi?instant=1&url=$url",
  41. "servlet/SubjexSubmitterServlet?url=$url&email=$email",
  42. "addurl.html?url2=$url&do=2",
  43. "add-site.php?url=$url&email=$email"
  44. );
  45.  
  46. $success = array(
  47. "",
  48. "",
  49. "Thank You for Your Submission to MSN Search",
  50. "has been successfully added",
  51. "has been scheduled for addition",
  52. "site will be in the index",
  53. "good",
  54. "thankyou.html",
  55. "page was accepted for submission",
  56. "submission has been received",
  57. "will be indexed shortly"
  58. );
  59.  
  60. $manual = array(
  61. "http://pages.alexa.com/help/webmasters/index.html#crawl_site",
  62. "http://addurl.altavista.com/addurl/new",
  63. "http://free.submit-it.com/msnsubmit.htm",
  64. "http://www.google.com/addurl.html",
  65. "http://www.google.pl/addurl.html",
  66. "http://www.alltheweb.com/add_url.php",
  67. "http://www.hotbot.lycos.co.uk/submit.html",
  68. "http://www.splatsearch.com/submit.html",
  69. "http://www.subjex.net/submit_url.html",
  70. "http://www.mixcat.com/addurl.html",
  71. "http://www.searchit.com/addurl.htm"
  72. );
  73.  
  74. $auto = array(
  75. 0,
  76. 0,
  77. 0,
  78. 1,
  79. 1,
  80. 1,
  81. 1,
  82. 1,
  83. 1,
  84. 1,
  85. 1
  86. );
  87. ?>


ale w niektórych wyszukiwarkac wywala bład

Alexa: musisz dokoñczyæ (Dokoñcz | Dodaj samodzelnie)

Altavista: musisz dokoñczyæ (Dokoñcz | Dodaj samodzelnie)

MSN: musisz dokoñczyæ (Dokoñcz | Dodaj samodzelnie)

Google Com: ........................gotowe

Google Pl: ..........................B³ad (Ponów | Dodaj samodzelnie)

AlltheWeb: .............B³ad (Ponów | Dodaj samodzelnie)

HotBot UK: ..B³ad (Ponów | Dodaj samodzelnie)

Splat!: ..gotowe

Subjex: ..B³ad (Ponów | Dodaj samodzelnie)

MixCat: .....B³ad (Ponów | Dodaj samodzelnie)

i an samym dole

SearchIt:
Warning: fsockopen() [function.fsockopen]: unable to connect to index.searchit.com:80 in /home/linux/public_html/osadnicy/submit.php on line 61
connection error
Warning: fclose(): supplied argument is not a valid stream resource in /home/linux/public_html/osadnicy/submit.php on line 87

Dodawanie adresu: http://www.osadnicy.ocom.pl Skoñczone.

nie wiem co robie źle proszę o pomoc