Besides, are there some APIs I can use if I want to set&get environment variables like DOCUMENT_ROOT in my extension(similar to sapi_cgienv_get/set).
Thanks! 2012/2/17 Rui Hu <tchrb...@gmail.com> > hi, > > I just started to write a simple PHP extension "hello", but encountered > some problems. I followed tutorials step by step: > 1. ./ext_skel --extname=hello > 2. modified hello.c and php_hello.h, and wrote function hello_world() > which simply return a string "hello world". > 3. phpize > 4. ./configure ; make ; > 5. the I encountered error in make. I looked up in Makefile and found that > $(PHP_MODULE) is null, which I think is the reason. Makefile is > automatically generated by ./configure. > > What mistake did I make? How to fix it? > > Thanks! > Vic Hu > > > -- > Best regards, > > Rui Hu > > ---------------------------------------------------------------------------------------- > State Key Laboratory of Networking & Switching Technology > Beijing University of Posts and Telecommunications(BUPT) > MSN: tchrb...@gmail.com > > ----------------------------------------------------------------------------------------- > > > -- Best regards, Rui Hu ---------------------------------------------------------------------------------------- State Key Laboratory of Networking & Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrb...@gmail.com -----------------------------------------------------------------------------------------