Jump to content
php.lv forumi

mail funkcija


Janka no Benzin Tanka

Recommended Posts

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... ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by Janka no Benzin Tanka
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...