[PHP] Re: Extension problem

2004-04-05 Thread Alireza Balouch
It's apache that runs the php script & it must some how know that this is a
script file.. and the way you tell the apache to run the script is by the
extention (.php)
since .html is not an serverside script, apache dont nead to run that before
sending it.

but you can declare that in apache.conf (if you want html files to use php
code)

:)


"Enrico Comini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I use php without problem, but my file is processed by php only if the
> extension is .php , why ?
> If I have for example a index.html with " is not parsed by php and I have to rename in index.php
> Thanks, Enrico
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: extension problem

2002-07-05 Thread Richard Lynch

>hi
>I have an extension problem.
>i have wrote this exemple
>#include...
>char* xx(){
>
>return "true";
>
>
>}
>it's a simple example.
>I have compiled it into .SO dynamic library.
>when I try to load it into PHP i get this message
>cannot include .(may be not php extension).
>CAN YOU HELP ME PLEASE.

You need to do some extra C macros to change it from a *normal* .so dynamic
library into a PHP .so dynamic library.

I don't know exactly what they are, but you can find a nice short sample
here:

http://conf.php.net

in Rasmus' talks

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php