» 2013 » June の記事

去/etc/httpd.conf uncomment 這句

NameVirtualHost *:80

service httpd restart

Install apache module mod_headers in ubuntu

sudo a2enmod headers

Restart apache

/etc/init.d/apache2 restart


Header always append X-Frame-Options SAMEORIGIN


Header always append X-Frame-Options DENY
/etc/init.d/apache2 restart


~ php doc generator ~

connie 2013.06.25 | php | | No Comments

Firstly, install the pear

sudo apt-get install php-pear

Install apigen

pear config-set auto_discover 1
pear install pear.apigen.org/apigen

generate the doc

go to the target "web system" folder

apigen --source . --destination docs/apigen --todo yes \
 --title "the api title" --php no 


| HOME |