Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux ¶¨Ê±ÖØÆô·þÎñ£¬ÔÚÏßµÈ - PHP / »ù´¡±à³Ì

ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart 
ÏÖÎÒÏ붨ʱÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart

ѧϰ + ding

ÒýÓÃ
crontab
* 16 * * * service httpd restart


crontab
·Ö£¬ ʱ£¬ Ô£¬ ÈÕ£¬ Äê service httpd restart

·Ö£¬ ʱ£¬ ÈÕ£¬ Ô£¬ Äê //˳ÐòÕâÑù²Å¶Ô

0 16 * * *°É

ÒýÓÃ
crontab
* 16 * * * service httpd restart

ÃüÁîҪʹÓÃȫ·¾¶

crontab -e ±à¼­
 * 16 * * * /sbin/service httpd restart
×¢ÒâÓû§µÄȨÏÞ ÈôÎÞȨÏÞÖ´ÐдËÃüÁî ¶¨Ê±ÖØÆô·þÎñ²»³É¹¦

àÅ,¶¼¸øÄãÃÇ˵ÍêÁË.
ÎÒ˵°É,ÏÂÎç4µã²»ºÃ,ÍòÒ»ÖØÆôʧ°Ü,¾ÍµÃ¼Ó°àÁË

ѧϰÁËcrontabµÄÓ÷¨

³ýÁËcrontab »¹¿ÉÒÔÓá¡at ÃüÁî

crontabµÚÒ»¸öÓ¦¸ÃÊÇ£°£¬ÕâÑù£±£¶µãÕýÖØÆô·þÎñ£¬²»ÄÜÊÇ*
*±íʾÿ·ÖÖÓÖ´ÐÐÒ»´Î£¬¿Ï¶¨±»ÀÏ°åÂ¹þ¹þ

ÒýÓÃ
crontabµÚÒ»¸öÓ¦¸ÃÊÇ£°£¬ÕâÑù£±£¶µãÕýÖØÆô·þÎñ£¬²»ÄÜÊÇ*
*±íʾÿ·ÖÖÓÖ´ÐÐÒ»´Î£¬¿Ï¶¨±»ÀÏ°åÂ¹þ¹þ


ÏÖÔÚµÄÀϰ壬 Ö»»á³ÔºÈÍæÀÖ£¬ ·þÎñÆ÷µ¹±ÕÁËÒ²²»ÖªÊ²Ã´»ØÊÂ

* 16 * * * service httpd restart
¶àл´ó¼Ò¡£¡£

¿Éµ½µ×ÊÇ
* 16 * * * service httpd restart 

»¹ÊÇ

0 16 * * * service httpd restart 
£¿


´ó¼Ò°ïÎÒ¿´ÏÂ

ÒýÓÃ
¿Éµ


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

phpÎļþÄÜ·ñ±»±ðÈ˵ÁÈ¡?? - PHP / »ù´¡±à³Ì

ÎÒ¸ÕѧϰphpÇëÎÊ£¬Èç¹ûÎÒ°ÑphpÎļþÉÏ´«ÖÁ·þÎñÆ÷ºó£¬ÀýÈçhttp://www.****.com/cast.phpÕâ¸öÎļþ»á²»»á±»±ðÈËÏÂÔØ»ò¸´ÖÆ°¢£¿
¿ÉÒÔ±»ÏÂÔØ£¬Ò²¿ÉÒÔ²»±»ÏÂÔØ£¬¿´web·þÎñÆ÷¶Ô¸ÃÎļþȨÏÞµÄÅäÖÃ

¿´Äã¶ÔÎļþȨÏÞµÄÉèÖÃ
......

phpʱ¼äÕýÔòÎÊÌâ - PHP / »ù´¡±à³Ì

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

linux×ÀÃæ½ø²»È¥ÁË£¬Ôõô°ì¡­¡­¡­¡­¡­¡­

ÔÚ×Ô¼ºµÄµçÄÔÉÏ°²×°ÁËubuntu ¾ÍÊÇÏëÍæÒ»ÏÂ3D×ÀÃ棬ÓÚÊÇÏÂÔØÁË 
compizconfig-settings-manager 
emerald 
simple-ccsm 
fusion 
ÕâЩ¶«Î÷£¬°²×°ÍêÖ®ºó£¬ÎÒÔÚµçÄÔÀïµã»÷ÁËemerald ......

cÓïÑÔʵÏÖlinux timeÏà¹Øº¯Êý - C/C++ / CÓïÑÔ

ÏÖÔÚÐèÒªÔÚÒ»¸öǶÈëʽϵͳÖÐʵÏÖʱ¼äº¯Êý£¬±àÒëÆ÷δÌṩtime¿âº¯Êý£¬ÇëÎÊ´ó¼ÒÈçºÎÓÃcÓïÑÔʵÏÖʱ¼äº¯Êý°¡£¿
ÄêÔÂÈÕʱ·ÖÃë µ½ ÕûÊýÃ루´Ó1970Ä꿪ʼ£© Ö®¼äµÄÏà¹Øת»»°¡
ÀàËÆmktime ºÍlocaltimeµÄ¹¦ÄÜ£¬Ð»Ð»
mktime ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ