Tag: PHP
interface for oop
二月.25, 2010 Posted in RSS
interface IUser{function sayHello();}
class User implements IUser{private $name;
public function __construct( $name ) { $this->name = $name;}
public function sayHello(){return ‘Hello ‘ . $this->name;}}
class Cre...
XHP : A new way to write PHP
二月.11, 2010 Posted in RSS
From facebook engineering
XHP is a PHP extension which augments the syntax of the language to both make your front-end code easier to understand and help you avoid cross-site scripting attacks.
原來的長這樣
[PHP] prefer comma than point while echo
二月.06, 2010 Posted in RSS
看了 echo 與 print 的不同
順道做了一下測試
用 MBP 2.4G/4G/Leopard 去跑
1 million
1
2
4
5
10 million
(在撰寫的過程中都還沒跑出來,等一下再來update =_=)
...
修改 Mac 內建的 php.ini
二月.01, 2010 Posted in RSS
[原文轉載] http://foundationphp.com/tutorials/php_leopard.php
1. 複製 /private/etc/php.ini.default
cd /private/etc
sudo cp php.ini.default php.ini
2. 修改 default socket
line 761
mysql.default_socket = /op...
啟動 Mac 10.5 內建的 Apache 以及 PHP
一月.29, 2010 Posted in RSS
1. 打開 System Preferences > Sharing > Web Sharing
2. 編輯 /etc/apache2/httpd.conf
把 LoadModule php5_module 那行註冊拿掉
3. 重新啟動 httpd (httpd -k restart)
預設的 webroot 在 /Library/WebServer/Documen...
退伍之後……
十二月.20, 2008 Posted in RSS
退伍之後找工作,在找工作的時候接了幾個案子賺生活費,這些案子無一例外都是以我不熟的PHP來寫或改(畢竟Appserv一裝起來就能跑PHP,如果不是特別指明,我還真不想裝Tomcat),為了惡補P...
Looking for something?
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!























