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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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 :
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
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:
*
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
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
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
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
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
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
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.
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
--- 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
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
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,
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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...
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
> 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
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
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
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
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
--
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
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:
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
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
62 matches
Mail list logo