linux ¶¨Ê±ÖØÆô·þÎñ£¬ÔÚÏßµÈ - PHP / »ù´¡±à³Ì
ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart
ÏÖÎÒÏ붨ʱÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart
ѧϰ + ding
crontab
·Ö£¬ ʱ£¬ Ô£¬ ÈÕ£¬ Äê service httpd restart
·Ö£¬ ʱ£¬ ÈÕ£¬ Ô£¬ Äê //˳ÐòÕâÑù²Å¶Ô
0 16 * * *°É
ÃüÁîҪʹÓÃȫ·¾¶
crontab -e ±à¼
* 16 * * * /sbin/service httpd restart
×¢ÒâÓû§µÄȨÏÞ ÈôÎÞȨÏÞÖ´ÐдËÃüÁî ¶¨Ê±ÖØÆô·þÎñ²»³É¹¦
àÅ,¶¼¸øÄãÃÇ˵ÍêÁË.
ÎÒ˵°É,ÏÂÎç4µã²»ºÃ,ÍòÒ»ÖØÆôʧ°Ü,¾ÍµÃ¼Ó°àÁË
ѧϰÁËcrontabµÄÓ÷¨
³ýÁËcrontab »¹¿ÉÒÔÓá¡at ÃüÁî
crontabµÚÒ»¸öÓ¦¸ÃÊÇ£°£¬ÕâÑù£±£¶µãÕýÖØÆô·þÎñ£¬²»ÄÜÊÇ*
*±íʾÿ·ÖÖÓÖ´ÐÐÒ»´Î£¬¿Ï¶¨±»ÀÏ°åÂ¹þ¹þ
ÏÖÔÚµÄÀϰ壬 Ö»»á³ÔºÈÍæÀÖ£¬ ·þÎñÆ÷µ¹±ÕÁËÒ²²»ÖªÊ²Ã´»ØÊÂ
* 16 * * * service httpd restart
¶àл´ó¼Ò¡£¡£
¿Éµ½µ×ÊÇ
* 16 * * * service httpd restart
»¹ÊÇ
0 16 * * * service httpd restart
£¿
´ó¼Ò°ïÎÒ¿´ÏÂ
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÎÒ¸ÕѧϰphpÇëÎÊ£¬Èç¹ûÎÒ°ÑphpÎļþÉÏ´«ÖÁ·þÎñÆ÷ºó£¬ÀýÈçhttp://www.****.com/cast.phpÕâ¸öÎļþ»á²»»á±»±ðÈËÏÂÔØ»ò¸´ÖÆ°¢£¿
¿ÉÒÔ±»ÏÂÔØ£¬Ò²¿ÉÒÔ²»±»ÏÂÔØ£¬¿´web·þÎñÆ÷¶Ô¸ÃÎļþȨÏÞµÄÅäÖÃ
¿´Äã¶ÔÎļþȨÏÞµÄÉèÖÃ
......
PHP code:
$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
½á¹ûΪ:
PHP code:
......
ÔÚ×Ô¼ºµÄµçÄÔÉÏ°²×°ÁËubuntu ¾ÍÊÇÏëÍæÒ»ÏÂ3D×ÀÃ棬ÓÚÊÇÏÂÔØÁË
compizconfig-settings-manager
emerald
simple-ccsm
fusion
ÕâЩ¶«Î÷£¬°²×°ÍêÖ®ºó£¬ÎÒÔÚµçÄÔÀïµã»÷ÁËemerald ......
ÏÖÔÚÐèÒªÔÚÒ»¸öǶÈëʽϵͳÖÐʵÏÖʱ¼äº¯Êý£¬±àÒëÆ÷δÌṩtime¿âº¯Êý£¬ÇëÎÊ´ó¼ÒÈçºÎÓÃcÓïÑÔʵÏÖʱ¼äº¯Êý°¡£¿
ÄêÔÂÈÕʱ·ÖÃë µ½ ÕûÊýÃ루´Ó1970Ä꿪ʼ£© Ö®¼äµÄÏà¹Øת»»°¡
ÀàËÆmktime ºÍlocaltimeµÄ¹¦ÄÜ£¬Ð»Ð»
mktime ......