Re: "php -f" can work!but not with apache

From: Date: Wed, 27 Mar 2002 08:21:33 +0000
Subject: Re: "php -f" can work!but not with apache
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-81851@lists.php.net to get a copy of this message
On Wed, Mar 27, 2002 at 01:47:04PM +0800, gxlzlu wrote : > First of all , thanks for your help! > I am a beginer to the Linux and PHP. All the steps I have done is as follow: > > ./ext_skel --extname=mymodule --proto=myfunc > (here I got a template of module) > > vi config.m4 > ( I just delete three of "dnl") > > vi mymodule.c > ( I just edit my func,that func just return a word) > > ./buildconf > > ./configure --enable-mymodule > > make > (no problem here) > > ./buildconf > (to install) > > ./configure --enable-mymodule --with-apax=/usr/sbin/apxs --with-config-file- > path=/etc > > make > > make install > (till now there is no problem) > > I writed a file to test. The content is : > <?php > echo myfunc("hello world"); > ?> > > then I run "./php -f test.php" under the dir of php's source code > I got "hello world" > > at last I visit the "test.php" file by remote pc and I got fatel error: > undefined function ......... > how should I do now???? Put up the relevant source files (config.m4, mywhatever.c) as Rasmus suggested so someone interested can take a look at it. - Markus -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

« previous php.dev (#81851) next »