Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak wpisać w Cronie pętle
promarian1970
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 17.02.2013

Ostrzeżenie: (0%)
-----


Witam Chce wpisać w Cronie wykonywanie skryptu index.php?id= od 1 do 10 tys., czyli chce uruchomić 10 tys stron jedna po drugie. Wpisywanie jedna po drugie( index.php?id=1 index.php?id=2 index.php?id=3 index.php?id=4 index.php?id=5 ) zejdzie mi z tym z tydzień biggrin.gif. Można to zrobić w jakiś szybszy sposób ?

Ten post edytował promarian1970 12.05.2013, 17:04:01
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
com
post
Post #2





Grupa: Zarejestrowani
Postów: 3 034
Pomógł: 366
Dołączył: 24.05.2012

Ostrzeżenie: (0%)
-----


wystarczyła by pętla? ale cos ta operacja wyglada podejrzanie....

Ten post edytował com 12.05.2013, 17:07:43
Go to the top of the page
+Quote Post
promarian1970
post
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 17.02.2013

Ostrzeżenie: (0%)
-----


Mam stronę z obrazkami, gdzie zromadze access tokeny z facebooka. Mam ich 10 tys i chciałem je wrzucać przez crona. Jak to zrobić ?
Go to the top of the page
+Quote Post
Aqu
post
Post #4





Grupa: Zarejestrowani
Postów: 279
Pomógł: 58
Dołączył: 14.07.2012

Ostrzeżenie: (0%)
-----


Zrób skrypt php który otworzy te strony w pętli, np. przez curl i przez crona uruchamiaj tylko ten jeden plik.
Go to the top of the page
+Quote Post
promarian1970
post
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 17.02.2013

Ostrzeżenie: (0%)
-----


Przy 500 powtórzeniach pętli wyskakuje długim czasie łądowania błąd


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@obczajone.marian96.webd.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Macie jakiś pomysł jak temu zaradzić. Wpisałem w skrypcie ini_set('max_execution_time', 300); ale nic nie daje.
Go to the top of the page
+Quote Post
wwwplugin
post
Post #6





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.04.2013

Ostrzeżenie: (0%)
-----


to moze zrob skrypt ktory Ci bedzie po kolei ew losowo otwierał linki, i jego podepnij pod crona co minute?

  1.  
  2. file_get_contents("http://aasdasd/?id=".rand(1,1000));


--------------------
Zapraszam na moją stronę z opisem skryptów dla programistów. http://skrypty.serwisik.com/
Go to the top of the page
+Quote Post
promarian1970
post
Post #7





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 17.02.2013

Ostrzeżenie: (0%)
-----


Hhi dobry pomysł. Wykorzystam go. Dzięki temat do zamknięcia
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 18:05