Re: [PHP] Developing PHP extensions on Windows with VC++, linking problems

2009-04-29 Thread Eugenio Tacchini
At 08.42 29/04/2009 +1000, Chris wrote: Eugenio Tacchini wrote: Hi all, I had to create a PHP extension and I read this article: <http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions>http://www.talkphp.com/vbarticles.ph...php-extension

Re: [PHP] Developing PHP extensions on Windows with VC++, linking problems

2009-04-28 Thread Chris
Eugenio Tacchini wrote: Hi all, I had to create a PHP extension and I read this article: <http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions>http://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep &quo

[PHP] Developing PHP extensions on Windows with VC++, linking problems

2009-04-28 Thread Eugenio Tacchini
Hi all, I had to create a PHP extension and I read this article: <http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions>http://www.talkphp.com/vbarticles.ph...php-extensions Everything worked fine if I keep "Debug" as "A

[PHP] Extensions not compile

2009-04-20 Thread Joaquim Pedro França Simão
I use cygwin (updated). I try to compile extensions, but i only get "extension.a" -- # phpize # ./configure # make /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) # make install ... created: /usr/loc

[PHP] Extensions not compile

2009-04-20 Thread Joaquim Pedro França Simão
I use cygwin (updated). I try to compile extensions, but i only get "extension.a" -- # phpize # ./configure # make /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) # make install ... created: /usr/loc

[PHP] Re: PHP Extensions as Shared Objects?

2008-06-02 Thread Colin Guthrie
mike wrote: On 5/29/08, Weston C <[EMAIL PROTECTED]> wrote: Fortunately, I'll have full control of the hosting environment in the context this matters. :) dl is definitely interesting, but I'm worried that runtime invocation might mean performance hits. Is there a way to do load/startup time

Re: [PHP] PHP Extensions as Shared Objects?

2008-05-29 Thread mike
On 5/29/08, Weston C <[EMAIL PROTECTED]> wrote: > Fortunately, I'll have full control of the hosting environment in the > context this matters. :) > > dl is definitely interesting, but I'm worried that runtime invocation > might mean performance hits. Is there a way to do load/startup time > incl

Re: [PHP] PHP Extensions as Shared Objects?

2008-05-29 Thread Weston C
On Thu, May 29, 2008 at 7:11 PM, Chris <[EMAIL PROTECTED]> wrote: > See http://www.php.net/dl (though a lot of hosts disable this > functionality for security reasons). Fortunately, I'll have full control of the hosting environment in the context this matters. :) dl is definitely interesting, bu

Re: [PHP] PHP Extensions as Shared Objects?

2008-05-29 Thread Chris
Weston C wrote: > This might be a dumb question with an obvious answer somewhere, but > I'm wondering if it's possible to build php extensions as shared > objects that plug into the PHP binary much like an apache shared > module plugs into apache. Yes. See http://www.php.n

[PHP] PHP Extensions as Shared Objects?

2008-05-29 Thread Weston C
This might be a dumb question with an obvious answer somewhere, but I'm wondering if it's possible to build php extensions as shared objects that plug into the PHP binary much like an apache shared module plugs into apache. Is PECL close to this? Sorry if this is obvious. Searches on

Re: [PHP] Extensions Directory (PEAR/PECL)

2006-05-19 Thread Richard Lynch
On Fri, May 19, 2006 12:43 pm, D. Dante Lorenso wrote: > Robert Samuel White wrote: >> When I ran the command: >> pecl install zip-1.3.1 >> It intalled the zip.so file to: >> /usr/local/lib/php/extensions/no-debug-non-zts-20050922/zip.so > In summary: Change your p

RE: [PHP] Extensions Directory (PEAR/PECL)

2006-05-19 Thread Robert Samuel White
[SNIP] > When I ran the command: > pecl install zip-1.3.1 > It intalled the zip.so file to: > /usr/local/lib/php/extensions/no-debug-non-zts-20050922/zip.so > Extensions are compiled with a given Zend/PHP API. The zip extension you installed was compiled against the API dated

Re: [PHP] Extensions Directory (PEAR/PECL)

2006-05-19 Thread D. Dante Lorenso
Robert Samuel White wrote: When I ran the command: pecl install zip-1.3.1 It intalled the zip.so file to: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/zip.so Extensions are compiled with a given Zend/PHP API. The zip extension you installed was compiled against the API dated

[PHP] Extensions Directory (PEAR/PECL)

2006-05-18 Thread Robert Samuel White
r up for future reference if possible. When I ran the command: pecl install zip-1.3.1 It intalled the zip.so file to: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/zip.so The only way I could get zip support working was to put it here: /usr/local/php/ext Which is where my extensio

Re: [PHP] Extensions: parameters as references

2005-06-20 Thread Jason Barnett
Yasir Malik wrote: Is there any list (or forum) that can help me with this? Thanks, Yasir You probably will have more luck trying out the PECL group. These authors write PHP extensions and have the knowledge / desire to work on extensions. Not too many of us "regular" devel

Re: [PHP] Extensions: parameters as references

2005-06-17 Thread Yasir Malik
Is there any list (or forum) that can help me with this? Thanks, Yasir On Fri, 17 Jun 2005, Yasir Malik wrote: Date: Fri, 17 Jun 2005 11:51:24 -0400 (EDT) From: Yasir Malik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] Extensions: parameters as references I am crea

[PHP] Extensions: parameters as references

2005-06-17 Thread Yasir Malik
I am creating a PHP extension. In my function, I want the parameter to be a reference. The extension function works fine only if the variable passed is initialized. For example, here is the extension function: ZEND_FUNCTION(first_module) { zval *parameter; if (zend_parse_parameters(ZEN

[PHP] Extensions modules, PHP5.1 from CVS and Windows

2005-05-02 Thread Jirka Kosek
Hi, I need to use some XML functionality that will be available in PHP5.1. When I use PHP development version from http://snaps.php.net/ for Windows core of PHP works great. But once I load extension module (e.g. php_xsl.dll, php_xmlreader.dll, php_soap.dll) PHP crashes -- immediatelly with Apa

Re: [PHP] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Richard Lynch
Chris Cranford wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to > pass variables by reference to my function without enabling call-time pass > by reference in the PHP.INI file? I think the definition in the C syntax of PHP_FUNCTION will do that for you. You'll pr

[PHP] Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Brad House
look at http://cvs.php.net/co.php/php-src/ext/mcve/mcve.c?r=1.28.2.2 the m_completeauthorizations function. -Brad Chris Cranford wrote: I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference

[PHP] Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Marcus Boerger
Hello Chris, you need to define that signature of your functions by supplying ZEND_ARG_INFO's to them. look at ZEND_API.h file for those macros. marcus Friday, February 25, 2005, 2:22:39 AM, you wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to > pass variable

[PHP] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Chris Cranford
I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference in the PHP.INI file? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP extensions with EasyPHP 1-7

2004-12-08 Thread Richard Lynch
Michel Gangloff wrote: > I try to use some PHP extensions with EasyPHP 1.7 on Windows XP > > I have checked the path for extensions in the "php.ini" file ; it is > correct > But when I want do add some extensions , some work well , and others > don't (they are in

[PHP] PHP extensions with EasyPHP 1-7

2004-12-08 Thread Michel Gangloff
I try to use some PHP extensions with EasyPHP 1.7 on Windows XP I have checked the path for extensions in the "php.ini" file ; it is correct But when I want do add some extensions , some work well , and others don't (they are in the same directory ) I get the following message :

[PHP] aquestion about php extensions

2004-05-27 Thread php
Hello, i compile c file with vc++ (php extension). is there any possibility to execute php script in this extension? [php code will be in one string] --- ... //this is mod.c code ZEND_FUNCTION(my_function) { for(i=0;i<5;i++) { zend_execute_php_script( //is any functi

[PHP] Re: describe.php - PHP Extensions, Classes, Objects and Functions

2004-03-30 Thread Jason Barnett
Darnit... I forgot I changed the error handler in my own scripts. Use this instead, sorry for posting bad code the first time around: /** * This is a class that can be used to describe classes, objects, methods, * functions, parameters, properties, and even extensions. * Example usage: *

[PHP] describe.php - PHP Extensions, Classes, Objects and Functions

2004-03-30 Thread Jason Barnett
I just sent this to one person and realized that others might find this useful. This code will ONLY work for PHP 5, comments are in the code. /** * This is a class that can be used to describe classes, objects, methods, * functions, parameters, properties, and even extensions. * Example usa

[PHP] extensions

2003-11-25 Thread Alex Hunsley
I wish to access native functionality in a native library from php. I believe writing a php extension is the way to go about it. (The lib I want to access is sufficiently complex that doing a system call to execute it isn't a viable solution) Can anyone point me to some useful guide? I've found

[PHP] How to write my own php extensions

2003-08-15 Thread Dennis Lee
Hi all : I want to write my own php extensions , but I don't know how to start . Please tell me where I can find some examples or resources such as tutorials . Thanks in advance . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to write my own php extensions

2003-08-15 Thread [EMAIL PROTECTED]
There are some documents in the php source tarball itself. this is a good starting point. Then please goto zend.com you will see some fantastic articles. all the best Dennis Lee wrote: Hi all : I want to write my own php extensions , but I don't know how to start . Please tell me wh

Re: [PHP] PHP extensions and multiple source files?

2003-06-12 Thread Marek Kilimajer
Simply list *.c all files as arguments to gcc: gcc one.c two.c three.c -shared -o my_ext.so Ed wrote: Howdy folks! Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file? I searched for examples in

Re: [PHP] PHP extensions and multiple source files?

2003-06-11 Thread Evan Nemerson
Good question, but wrong place for it. Ask [EMAIL PROTECTED] On Wednesday 11 June 2003 08:31 pm, Ed wrote: > Howdy folks! > > Is there a way to have multiple *.c source files and still end up with a > single *.so while using gcc? How would that be reflected in the config.m4 > file? > > I searche

[PHP] PHP extensions and multiple source files?

2003-06-11 Thread Ed
Howdy folks! Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file? I searched for examples in the source tree, but did not find one. I tried different things, but ended up with multiple *.so's.

[PHP] PHP Extensions: are they inefficient when using the extension keyword in php.ini?

2003-03-24 Thread Mike Papper
After reading the PHP online documentation for "Chapter 25. Extension Possibilities" I am confused. I have a set of questions below: 1) compiled versus extension versus dl function: It appears to say that if an extension is NOT compiled in and IS used as a shared module that the module is loade

Re: [PHP] .php extensions versus .html

2003-01-31 Thread Chris Shiflett
--- Guru Geek <[EMAIL PROTECTED]> wrote: > I was wondering, can you call a php script in the middle > of a html page? ... > Does anyone else know how to use php on a page and yet > keep the .html extension? Configure your Web server to treat .html files as PHP. This has been discussed before, so t

Re: [PHP] .php extensions versus .html

2003-01-31 Thread Justin French
I think what you've seen is shtml / ssi / server side includes, but anyway, since you asked: 1. create a .htaccess file which pushes *all* .php pages through PHP I *THINK* the code is something like: ForceType application/x-httpd-php But you should check the apache manual, list or some tu

[PHP] .php extensions versus .html

2003-01-30 Thread Guru Geek
I was wondering, can you call a php script in the middle of a html page? I've seen some sites use code like this: Untitled HELLO WORLD!!! but when I try it, the php script doesn't run. Does anyone else know how to use php on a page and yet keep the .html extension? Thanks in advance,

Re: [PHP] PHP extensions

2002-11-15 Thread Justin French
That's probably the one -- have a look on phpclasses.org -- handles attachments, multi-part stuff (HTML email), etc etc. Justin on 16/11/02 5:19 AM, Mako Shark ([EMAIL PROTECTED]) wrote: >> Email extension? Aren't you talking about Manuel >> Lemos' mimemail class? >> It's just an include file

Re: [PHP] PHP extensions

2002-11-15 Thread Mako Shark
> Email extension? Aren't you talking about Manuel > Lemos' mimemail class? > It's just an include file that you have in your > directory structure. I know some people made reference to a 'really good' e-mail package out there that did attachments and stuff that seemed to be the better choice con

Re: [PHP] PHP extensions

2002-11-13 Thread Justin French
Email extension? Aren't you talking about Manuel Lemos' mimemail class? It's just an include file that you have in your directory structure. Justin on 13/11/02 11:24 PM, Mako Shark ([EMAIL PROTECTED]) wrote: > Is there a list of PHP extensions out there somewhere, > and

[PHP] PHP extensions

2002-11-13 Thread Mako Shark
Is there a list of PHP extensions out there somewhere, and what the function of each one is? And does anyone have the URL of that e-mail extension everyone finds so useful? __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http

[PHP] php/extensions directory

2002-11-05 Thread Pierre Vaudrey
I would like know the use of the following directory : /usr/lib/php/extensions/no-debug-non-zts-20010901 Thanks for your help. Pierre Vaudrey email [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Building PHP extensions for MacOS X

2002-10-24 Thread Geranium
I need to build a PHP extension that also talks to parts of the MacOS X API/frameworks. I could build simple, generic extensions in gcc, but for OS X APIs, I need to use something a bit bigger. Can anybody give me any tips of how to build PHP extensions in CodeWarrior or ProjectBuilder on MacOS X

Re: [PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread The Doctor
On Tue, Aug 13, 2002 at 10:10:45PM +0100, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effort in evaluating and compensating for those r

[PHP] Re: Web host withdraws support for PHP extensions - supposed secuityrisks

2002-08-13 Thread Manuel Lemos
Hello, On 08/13/2002 06:10 PM, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effort in evaluating and compensating for those risks. &g

Re: [PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread David T-G
Alan -- ...and then Alan Hale said... % % My Web hosting company has just withdrawn (with no notice) support for PHP % extensions on the grounds they represent security risks and they don't wish % to spend time and effort in evaluating and compensating for those risks. That, and particu

Re: [PHP] Web host withdraws support for PHP extensions - supposedsecuity risks

2002-08-13 Thread Rasmus Lerdorf
It's not, your provider is simply lazy. -Rasmus On Tue, 13 Aug 2002, Alan Hale wrote: > My Web hosting company has just withdrawn (with no notice) support for PHP > extensions on the grounds they represent security risks and they don't wish > to spend time and effor

[PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread Alan Hale
My Web hosting company has just withdrawn (with no notice) support for PHP extensions on the grounds they represent security risks and they don't wish to spend time and effort in evaluating and compensating for those risks. I'd welcome views on how reasonable this is. The extension

Re: [PHP] Extensions?

2002-08-13 Thread Neil Freeman
Try this instead... extension_dir = "C:/PHP/extensions/" and ensure that the GD section is present in phpinfo() output. Neil Php wrote: > ** > This Message Was Virus Checked With : SAVI 3.60 May 2002 &g

[PHP] Extensions?

2002-08-13 Thread Php
I'm trying to configure my php.ini file on my local Windows 2000 system so I can use the extensions such as GD, etc. I have changed the line: extension_dir = C:\php\extensions ; (which is where php_gd.dll resides) and uncommented: extension=php_gd.dll and when I restart the web servic

[PHP] extensions

2002-05-07 Thread Maris Kalnins
Hi! Configuration - windows XP, PHP4 (not in CGI mode), Apache I am experiencing difficulty to add sybase_ct support into php php is installed in C:/PHP4 in php.ini file: extension_dir = C:/PHP4/extensions extension=php_sybase_ct.dll after restarting Apache it says: "Unable to load library 'C

[PHP] Extensions and php and dll problem on win2k whit php 4.1.1

2002-02-21 Thread Mike Schmid
pack and copy the stuff to php. The problem now is if i run info.php i got some errors like "unable to load dynamic link libary ´c:\php\extensions/php_ifx.dll´,´c:\php\extensions/php_ingres.dll´. If i run info.php whitout the php.ini file in winnt it works fine but i dont have any extensions...

[PHP] Php extensions

2002-02-01 Thread Mauricio Lairet P.
Hi! I wanted to know somehting. If my hosting provider does not inlude PEAR in their PHP installation, am I able to do it myself? I mean like you do with some Perl modules that are not installed and you use use lib 'path_to_lib' in Perl. Is there a way to do something simila

RE: [PHP] Extensions problem

2001-11-01 Thread Erik H. Mathy
> I have mssql extensions working with the .dll in the extensions > directory of my PHP4 folder. > > I am trying to get curl to work but when I try to run php it says that > php_curl.dll was not found, But it is in the same dir as the mssql and > mssql is working great. I've never used curl, but

[PHP] Extensions problem

2001-11-01 Thread Brandon Orther
Hello, I have mssql extensions working with the .dll in the extensions directory of my PHP4 folder. I am trying to get curl to work but when I try to run php it says that php_curl.dll was not found, But it is in the same dir as the mssql and mssql is working great. Any IDEAS? Thanks Bra

[PHP] Re: php extensions

2001-09-21 Thread Richard Lynch
e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: CristóVãO Dalla Costa <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 12:06 AM Subject: php extensions > I'm tryi

[PHP] php extensions

2001-09-19 Thread Cristóvão Dalla Costa
I'm trying to create an extension to PHP to provide an access interface to the proprietary database server my company uses. However, I cannot seem to suceed even at the simplest module, the one provided by ext_skel. I run buildconf, configure and compile the module, however dl() won't load the res

[PHP] Extensions question...

2001-09-03 Thread Eric Knudstrup
I have been searching for this in the Zend docs and examples, but I don't see it anywhere. In a PHP extension how do I access the elements of an array that has been passed in? Thanks, Eric "My mother's maiden name is not a password; my social security number is not a PIN" - Kevin Mitnick --

Re: [PHP] Extensions for PHP

2001-05-15 Thread Johannes Janson
Hi, > does anybody know which extension I need to connect to a MSSQL DB, and wher > I could get it? go to www.php4win.de they offer a .exe with lots of extensions. hope it helps Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[PHP] Extensions for PHP

2001-05-14 Thread Andreas Pucko
Hi does anybody know which extension I need to connect to a MSSQL DB, and wher I could get it? Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] Extensions for PHP on IIS Problems?

2001-05-14 Thread Brandon Orther
Hello, I installed Win2000 Advanced Server on my box and installed PHP4.0.5 on that. The only problem I am having is with Extensions When I put the Extension Directory to C:\extensions it will not load any of the DLLs in that dir like php_gd. Has anyone else had problems with extensions on a I

[PHP] Extensions

2001-03-10 Thread seb
I'm looking for a nice step by step man on the internet to make my own php extension.I've been trying for days now to make and compile my extensions, but it seems impossible. Thanks, Seb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional