Janka no Benzin Tanka Posted January 21, 2010 Report Share Posted January 21, 2010 Sveiki. Vai var kāds palīdzēt ar šādu skriptu, ja nevar atvērt portu pēc šāda skripta: <?php $site = "php.net"; $port = 80; $fp = fsockopen($site,$port,$errno,$errstr,10); if(!$fp) { echo "Cannot connect to server"; } else{ echo "Connect was successful - no errors on Port ".$port." at ".$site; fclose($fp); } ?> tad nosūtas uz epastu vēstule... ? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 21, 2010 Report Share Posted January 21, 2010 Nuu, vai ta nevari atrast funkciju, kas sūta e-pastu? Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 (edited) paldies, jau atradu :) Bet kā lai uztaisa , lai vislaiku k-kas to skriptu pārbaudītu? k-kāds softs vai kā? Un velviens jaut., varbūt kāds zin, kapēc tas skripts kas aukstāk, nevar atvērt 27015 portu? Edited January 21, 2010 by Janka no Benzin Tanka Quote Link to comment Share on other sites More sharing options...
briedis Posted January 21, 2010 Report Share Posted January 21, 2010 paldies, jau atradu :) Bet kā lai uztaisa , lai vislaiku k-kas to skriptu pārbaudītu? k-kāds softs vai kā? Un velviens jaut., varbūt kāds zin, kapēc tas skripts kas aukstāk, nevar atvērt 27015 portu? uz unix - crontab uz win - task scheduler Quote Link to comment Share on other sites More sharing options...
waplet Posted January 21, 2010 Report Share Posted January 21, 2010 vai arī <?php while(1){ tavs kods } ?> Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 Un velviens jaut., varbūt kāds zin, kapēc tas skripts kas aukstāk, nevar atvērt 27015 portu? Quote Link to comment Share on other sites More sharing options...
2easy Posted January 21, 2010 Report Share Posted January 21, 2010 Un velviens jaut., varbūt kāds zin, kapēc tas skripts kas aukstāk, nevar atvērt 27015 portu? varbūt kāds firewall bloķē? Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 varbūt kāds firewall bloķē? nebloķē, piekonektēties tak var visi. Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 uz unix - crontab uz win - task scheduler šajā variantā win - vai tad tur var ielikt .php failu ? Quote Link to comment Share on other sites More sharing options...
Gustins Posted January 21, 2010 Report Share Posted January 21, 2010 šajā variantā win - vai tad tur var ielikt .php failu ? nē - schedulerim tu vari likt izsaukt php failu tevis norādītajos laikos, pašu pārbaudi veiks jau tavs izveidotais php scripts Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 nē - schedulerim tu vari likt izsaukt php failu tevis norādītajos laikos, pašu pārbaudi veiks jau tavs izveidotais php scripts tur laikam mazākas var 1 dienu uzlikt, bet man vajag laik ik pa minūtei pārbauda. Quote Link to comment Share on other sites More sharing options...
briedis Posted January 21, 2010 Report Share Posted January 21, 2010 tur laikam mazākas var 1 dienu uzlikt, bet man vajag laik ik pa minūtei pārbauda. laikam sūdīgi meklē, es kaut kā varu uzlikt ik pa 5 minūtēm... (Vista) Quote Link to comment Share on other sites More sharing options...
Gustins Posted January 21, 2010 Report Share Posted January 21, 2010 Var uzlikt arī uz XP.. Links kur paskaidrots kā: http://support.microsoft.com/kb/308569 Quote Link to comment Share on other sites More sharing options...
Janka no Benzin Tanka Posted January 21, 2010 Author Report Share Posted January 21, 2010 (edited) Ar portu tiku galaa, tagad vis ok. vajag tikai sataisit lai visulaiku cheko to php failu. Tur, Schedule Task, izvēleties to .php failu un viss? Tiko velreiz pārbaudīju, var mazākais uzlikt tikai katru dienu, vai kad kompis ieslēdzas, vai log on. Edited January 21, 2010 by Janka no Benzin Tanka Quote Link to comment Share on other sites More sharing options...
Gustins Posted January 21, 2010 Report Share Posted January 21, 2010 Tu vispār iegāji linkā ko es iedevu manā iepriekšējā postā? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.