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

Aptana studio 2.0 +aptana php plugin 1.1

I’ve just updated Aptana Studio from 1.5 to 2.0 only to find out that the spectacular Aptana PHP plugin is not longer supported and its installation has been removed from the Install Additional Features view. However, with some tricks we can still install the old Aptana 1.5.1 in order to use it. Well, in fact we can even install Aptana PHP in Studio 2.0.
First, download Aptana Studio 2.0 and install it.
 When you reach the Install Additional Features after installing Aptana, close it, what we need is not here.
 
from the Help menu, click on Install New Software…
 add the Aptana PHP plugin update site. Click on the Add… button and type the url http://update.aptana.com/update/php
 
 
Choose the Aptana PHP 1.1 and install it. After restarting Studio, the Aptana PHP plugin will be installed and your php files will be handled by it.
 
 
As you can see on the Plugins Manager, Aptana PHP 1.1 is installed (the Duplicate location warning appears because I typed the url again for this tutorial). I’ve you already installed Eclipse PDT, make sure you remove it, or your php files won’t be handled by Aptana PHP.
So that’s it, if you find any issues please let me know.
 


Ïà¹ØÎĵµ£º

PHPͨ¹ýsession id ʵÏÖsession¹²ÏíºÍµÇ¼ÑéÖ¤[ת]

http://edu.codepub.com/2010/0131/20248.php
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓàsessionidµÃµ½sessionµÄÖµ£¬ÒòΪµÄÈ·ºÜ¼òµ¥£¬Ö»ÊÇ¿ÉÄÜ´ó¼ÒƽʱÓò»µ½ËùÒÔûÓÐ×¢Òâµ½°ÕÁË¡£
 
ÏÈ˵˵£¬Õâ¸ö»úÖƵÄÓÃ;°É£¬µ½ÏÖÔÚΪֹսµØÖªµÀÕâ¸ö»úÖÆÓÐÁ½¸ö·½ÃæµÄÓÃ;£º
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessi ......

ubuntu10.04ÅäÖÃapache+php+mysql

1.°²×°apache2.0
¡¡¡¡sudo apt-get install apache2
¡¡¡¡°²×°ºóÔÚä¯ÀÀÆ÷Öдò¿ª£º
¡¡
¡¡http://localhost/»òÕßhttp://127.0.0.1
¡¡¡¡Èç¹û³öÏÖIt works!£¬ÄÇÖ¤Ã÷°²×°³É¹¦¡£
¡¡
¡¡2.°²×°PHP
¡¡¡¡sudo apt-get install php
5 //°²×°PHP
5
¡¡
¡¡sudo apt-get install libapache2-mod-php5 //ÅäÖÃAPACHE+PHP
¡¡¡¡sud ......

php ×Ö·û´®º¯Êý

Ò»¡¢×Ö·û´®»ù´¡º¯Êý
ltrim: È¥³ýÁ¬Ðø¿Õ°×¡£
trim: ½ØÈ¥×Ö·û´®Ê×βµÄ¿Õ¸ñ¡£
Chop: º¯Êý´Ó×Ö·û´®µÄÄ©¶Ë¿ªÊ¼É¾³ý¿Õ°××Ö·û»òÆäËûÔ¤¶¨Òå×Ö·û¡££¨rtrim±ðÃû£©
<?php
$str = "Hello World!\n\n";
echo $str;
echo chop($str);
?>
Êä³ö£º
Hello World! Hello World!
htmlspecialchars(string,quotestyle,characte ......

PHP smarty foreachÓ÷¨£¡

ÊôÐÔÃû³Æ£ºfrom£¬item,key,name
×¢Ò⣺
1,fromºÍitemÊDZØÒªÊôÐÔ
2,{foreach}Ñ­»·µÄname¿ÉÒÔÊÇÈκÎ×Öĸ£¬Êý×飬Ï»®ÏßµÄ×éºÏ£¬²Î¿¼PHP±äÁ¿¡£
3,{foreach}Ñ­»·¿ÉÒÔǶÌ×£¬Ç¶Ì×µÄ{foreach}µÄÃû³ÆÓ¦µ±»¥²»Ïàͬ¡£
ÎļþÒ»£ºindex.tpl
<b>ÏÂÃæµÄÊý¾Ý·Ö±ðÊÇ£º</b>
<ul>
{foreach from=$myArray1 key=k ite ......

php evalº¯ÊýÓ÷¨ PHPÖÐeval()º¯ÊýС¼¼ÇÉ

php evalº¯ÊýÓ÷¨----PHPÖÐeval()º¯ÊýС¼¼ÇÉ
eval
½«Öµ´úÈë×Ö·û´®Ö®ÖС£
Óï·¨: void eval(string code_str);
´«»ØÖµ: ÎÞ
º¯Ê½ÖÖÀà: Êý¾Ý´¦Àí
ÄÚÈÝ˵Ã÷
±¾º¯Ê½¿É½«×Ö·û´®Ö®ÖеıäÁ¿Öµ´úÈ룬ͨ³£ÓÃÔÚ´¦ÀíÊý¾Ý¿âµÄÊý¾ÝÉÏ¡£²ÎÊý code_str ΪÓû´¦ÀíµÄ×Ö·û´®¡£ÖµµÃ×¢ÒâµÄÊÇ´ý´¦ÀíµÄ×Ö·û´®Òª·ûºÏ PHP µÄ×Ö·û´®¸ñʽ£¬Í¬Ê±ÔÚ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ