[英]How can I write a custom PHP extension which can modify the internals of the PHP interpreter?
是否可以編寫PHP擴展(UNIX,CGI SAPI),我可以:
目前我已經修改了PHP源代碼本身,但這很丑陋,也許很危險,如果我可以將它作為PHP擴展來做,那就好了,好吧,至少看起來像PHP擴展:)所以我不喜歡需要修改“核心PHP”......
非常感謝提前!
網上有很多Howto文章和參考資料,解釋了基本的Hello World及其他內容。
祝好運。
羅馬
關於第2點和第3點:
auto_prepend_file
形式中已存在“之前的php腳本執行掛鈎”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.