RE: [PHP] php extension problem

2004-12-01 Thread Zareef Ahmed



Hi folks,

well, I hope you can help me out. I have a Windows XP machine running
Apache 2.x and Php 5.x. So far, everything works fine. I have placed
the php5ts.dll file in my System32 directory, kopied the php.ini file
in the Windows root directory and loaded the apache module for php5. So
far, the apache server with the php5 module is running fine.

Then, I've installed PEAR. Also, without any problems. But, when I
tried
a test run I get the message that PEAR cannot find a extension.

Well, I altered my php.ini file and activated the php_mysql.dll
extension. I also specified the extension_dir. BUT, when I try to
restart the server I get the warning that Apache was not able to find
the specified module. In the alert-window, showing me the message with
the spcified path, I cannot find any mistakes. It is an absolute path
to e.g. C:\php\ext
Do you have every file (you have loaded in php.ini) in your extension
directory i.e in c:\php\ext?

Zareef ahmed
Any suggestions?

Thanks in advance.

Marcel

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

Zareef Ahmed :: A PHP Developer in Delhi ( India )
Homepage :: http://www.zasaifi.com

 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 11/26/2004
 

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



[PHP] php extension problem

2004-11-30 Thread php

Hi folks,

well, I hope you can help me out. I have a Windows XP machine running
Apache 2.x and Php 5.x. So far, everything works fine. I have placed
the php5ts.dll file in my System32 directory, kopied the php.ini file
in the Windows root directory and loaded the apache module for php5. So
far, the apache server with the php5 module is running fine.

Then, I've installed PEAR. Also, without any problems. But, when I tried
a test run I get the message that PEAR cannot find a extension.

Well, I altered my php.ini file and activated the php_mysql.dll
extension. I also specified the extension_dir. BUT, when I try to
restart the server I get the warning that Apache was not able to find
the specified module. In the alert-window, showing me the message with
the spcified path, I cannot find any mistakes. It is an absolute path
to e.g. C:\php\ext .

Any suggestions?

Thanks in advance.

Marcel

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



[PHP] php extension problem

2004-10-25 Thread Pierre Ancelot
Hi !

I am having some trouble creating a php extension.
as show in the documentation i did a ./ext_skel --extname=mymodule
which created the directory mymodule
i edited the config.m4 file to tune it to something very basic :

PHP_ARG_WITH(mymodule, for mymodule support,
[  --with-mymodule Include mymodule support])
if test $PHP_MYMODULE != no; then
  PHP_NEW_EXTENSION(mymodule, mymodule.c, $ext_shared)
fi


saved and went to the base of the source tree...


[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf
You should not run buildconf in a release package.
use buildconf --force to override this check.
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running cvsclean for you.
   To avoid this, install autoconf-2.13 and automake-1.5.
buildconf: libtool version 1.5.6 (ok)
rebuilding configure
autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
configure.in:147: the top level
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$


then, i been looking up if the module was taken 

[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./configure --help | grep -i mymodule
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$


and no, it's not any idea ? something i did wrong ?


thank you :)

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



Re: [PHP] php extension problem

2004-10-25 Thread Pierre Ancelot

fixed. i downloaded the source from php.net and it works now... the previous 
source i had came from apt system. maybe the source is patched ? if i'm not 
the only one to have had this problem, let me know, i'll mail the debian 
maintener
thanks,


On Monday 25 October 2004 19:19, Pierre Ancelot wrote:
 Hi !

 I am having some trouble creating a php extension.
 as show in the documentation i did a ./ext_skel --extname=mymodule
 which created the directory mymodule
 i edited the config.m4 file to tune it to something very basic :

 PHP_ARG_WITH(mymodule, for mymodule support,
 [  --with-mymodule Include mymodule support])
 if test $PHP_MYMODULE != no; then
   PHP_NEW_EXTENSION(mymodule, mymodule.c, $ext_shared)
 fi


 saved and went to the base of the source tree...


 [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf
 You should not run buildconf in a release package.
 use buildconf --force to override this check.
 [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf --force
 Forcing buildconf
 using default Zend directory
 buildconf: checking installation...
 buildconf: autoconf version 2.59 (ok)
 buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13 and automake-1.5.
 buildconf: libtool version 1.5.6 (ok)
 rebuilding configure
 autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
 configure.in:147: the top level
 [EMAIL PROTECTED]:/usr/src/php4-4.3.9$


 then, i been looking up if the module was taken

 [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./configure --help | grep -i mymodule
 [EMAIL PROTECTED]:/usr/src/php4-4.3.9$


 and no, it's not any idea ? something i did wrong ?


 thank you :)

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



[PHP] Extension problem

2004-04-05 Thread Enrico Comini
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 ?php at the beginning , this file
is not parsed by php and I have to rename in index.php
Thanks, Enrico



Re: [PHP] Extension problem

2004-04-05 Thread Duncan Hill
On Monday 05 April 2004 10:37, Enrico Comini wrote:
 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 ?php at the beginning , this
 file is not parsed by php and I have to rename in index.php
 Thanks, Enrico

Apache (and other webservers) have a config option that maps file extensions 
to parsers (ie, .php to mod_php).

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



Re: [PHP] Extension problem

2004-04-05 Thread Kim Steinhaug
In other words you could say that if youd like the HTML files to be parsed
as PHP files you would need to change the mapping on the server,

eg.

AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

the second line would tell apache to run html files as php files.

You could also, to do some sneaky things do this :

AddType application/x-httpd-php .png

or

AddType application/x-httpd-php .myDocumentType
Url . http://www.mydomain.com/index.myDopcumentType

This can usually also be done in the .htaccess file, you need some
googling for this as I dont recall the syntax.

The PHP and HTML extension are nothing more than a way of
cataloging / seperating the files.

-- 
-- 
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
--


Duncan Hill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Monday 05 April 2004 10:37, Enrico Comini wrote:
  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 ?php at the beginning , this
  file is not parsed by php and I have to rename in index.php
  Thanks, Enrico

 Apache (and other webservers) have a config option that maps file
extensions
 to parsers (ie, .php to mod_php).

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



[PHP] php extension problem

2002-07-30 Thread p . williams

We've successfully installed and run PHP 4.0.6. However when we add an
extension for win9x printing we get the message PHP Warning: Unable to load
dynamic library 'c:\php\extensions/php_printer.dll' a device attached to the
system is not functioning.

The php.ini file has extension_dir=c:\php\extensions and includes the
statement extension=php_printer.dll

Any ideas would be most welcome!

Cheers

Peter Williams
Analyst Programmer
Calvary Health Care Tasmania


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




[PHP] extension problem

2002-07-04 Thread adelpfephp

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.





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




[PHP] extension problem

2002-07-04 Thread adelpfephp




Hi all
I am working with php on linux.
I want to create dynamic library and use it in php.
For example:
I have to built this
#include iostream.h
char* aa(){
return true;
}

I succeed to compile this into a dynamic library x.so.

When I try to call this from php I get

Cannot load x.so. may be not a php library.

Can you help me please.



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


RE: [PHP] extension problem

2002-07-04 Thread joakim . andersson

You probably shoul start here: http://www.php.net/manual/en/zend.php

/Joakim

 -Original Message-
 From: adelpfephp [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 04, 2002 4:34 PM
 To: php-france; [EMAIL PROTECTED]
 Subject: [PHP] extension problem
 
 
 
 

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




[PHP] extension problem

2002-06-24 Thread adelphp

hi all
i am working on php and i have problem with extensions. when I try to include a 
library , I am getting this message :
unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library 
files needed to run this application cannot be found.
What should I do.
please help.
thanks



[PHP] extension problem

2002-06-24 Thread adelphp

hi all
i am working on php and i have problem with extensions. when I try to include a 
library , I am getting this message :
unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library 
files needed to run this application cannot be found.
What should I do.
please help.
thanks



[PHP] extension problem

2002-06-24 Thread adelphp

hi all
i am working on php and i have problem with extensions. when I try to include a 
library , I am getting this message :
unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library 
files needed to run this application cannot be found.
What should I do.
please help.
thanks



[PHP] extension problem

2002-06-24 Thread adelphp

hi all
i am working on php and i have problem with extensions. when I try to include a 
library , I am getting this message :
unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library 
files needed to run this application cannot be found.
What should I do.
please help.
thanks