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

php·½·¨µ÷ÓÃ

init.php
<?php
  function test1() {}
?>

test.php
<?php
  class test{
  $t;
  function __construct(){
  $this->t=test1;  
  }
  }
?>

$this->t=test1; Ϊʲô¿ÉÒÔÖ´ÐУ¬ÎªÊ²Ã´¿ÉÒÔÈ¡µ½init.phpÖеÄtest1·½·¨£¿£¿£¿

Çë´ó¼Ò°ïæ½âÊÍÏ£¡
ÔÚtest.phpÀïÃæÓÃÒýÓÃÁËinit.php°É

ÔÚtest.phpÀï¼ÓÔØÁË init.php ¾Í¿ÉÒÔÕâÑùÓÃÁË

test1·½·¨ºóÒª¼Ó ()

test.php Öаüº¬ÁË£¨include »òÕßrequire£© init.php 


ÔÚtest.phpÀï¼ÓÔØÁË init.php ¾Í¿ÉÒÔÕâÑùÓÃÁË 
include_once

test1·½·¨ºóÒª¼Ó ()

phpÊÇ´ó±äÁ¿£¬ÕâÑùд²»»á±¨´íÒ»°ã

$this->t=test1; Ϊʲô¿ÉÒÔÖ´ÐУ¬ÎªÊ²Ã´¿ÉÒÔÈ¡µ½init.phpÖеÄtest1·½·¨£¿£¿£¿ 

----------------------------------------------

¸øÊôÐÔ¸³Öµ£¬ ²»ÊÇÖ´ÐÐÒ»¸ö·½·¨¡£ $this->tÊÇÊôÐÔ£¬ ´ÓÄã´úÂë¿´À´ÊÇÕâÑù¡£

ÄãµÄ´úÂëÖ»ÊÇͨ¹ýÁËÔ¤±àÒ루½ö°´Äã¸ø³öµÄ´úÂ룬Á¬Ô¤±àÒë¶¼²»ÄÜͨ¹ý£©£¬²¢Ã»ÓÐÕæÕýÖ´ÐÐ



¸úinit.phpÎļþûÓйØÏµ



queryphp ORMÊý¾Ý¿âÀà
--------------------------------------------------------
½Ì³ÌµØÖ·
http://topic.csdn.net/u/20100228/22/3bea834b-efc0-4aa0-af4a-a4923af8b60c.html
http://topic.csdn.net/u/20100226/12/43bf3dc5-795f-4fa5-861a-2f7bf8fd0cd6.html
ÏÂÔØµØÖ·
http://code.google.com/p/queryphp/downloads/list


Ïà¹ØÎÊ´ð£º

¿Õ¼äÉÏphpÎļþ²»ÄÜä¯ÀÀ£¬ä¯ÀÀ¾ÍÏÂÔØphpÎļþ

ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´Ô­Òò£¬ÏÈлÁË¡£
¿ÉÄÜÊÇÒòΪ¸ÃÕ¾µãûÓÐÄãÏëÒªµÄä¯ÀÀÆ ......

PHP³¬¼¶¼òµ¥ÎÊÌ⣬50·Ö - PHP / »ù´¡±à³Ì

<!--¹ºÂòÊýÁ¿-->
  <div class='buyinfo'>
  <table width='auto'>
  <tr>
  <td><span>¹ºÂòÊýÁ¿£º</sp ......

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

ÎÊÒ»¸öPHPºÍsmartyµÄÈÕÆÚÎÊÌâ - PHP / »ù´¡±à³Ì

index.phpÄÚÈÝ£º
  $smarty->assign('name',strtotime('-0'));
  $smarty->display("index.html");
index.htmlÄÚÈÝ£º
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......

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

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

ѧϰ + d ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ