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-extensions 

Everything worked fine if I keep "Debug" as "Active solution 
configuration" in "Build->Configuration manager"but in this way 
I can only use the extension created on the machine I compiled it.

If I choose "Release" instead of "Debug" I get a fatal error:
dllmain.obj : fatal error LNK1179: invalid or corrupt file: 
duplicate COMDAT '_putwchar'

Can you help me?


Probably a better place to ask is the php-internals list, all of the 
people who develop the c code behind php are on there.


I tried to ask php-win and internals-win without success; I've just 
tried internals also, following your advice.



Eugenio.



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



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 "Debug" as "Active solution 
configuration" in "Build->Configuration manager"but in this way I 
can only use the extension created on the machine I compiled it.

If I choose "Release" instead of "Debug" I get a fatal error:
dllmain.obj : fatal error LNK1179: invalid or corrupt file: duplicate 
COMDAT '_putwchar'

Can you help me?


Probably a better place to ask is the php-internals list, all of the 
people who develop the c code behind php are on there.


--
Postgresql & php tutorials
http://www.designmagick.com/


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



[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 "Active solution 
configuration" in "Build->Configuration manager"but in this way I 
can only use the extension created on the machine I compiled it.

If I choose "Release" instead of "Debug" I get a fatal error:
dllmain.obj : fatal error LNK1179: invalid or corrupt file: duplicate 
COMDAT '_putwchar'

Can you help me?

I'm using Visual C++ 2008 Express edition, PHP 5.2.4, Win xp home.

Thanks!

Cheers,

Eugenio  



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



[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/local/lib/php/extensions/no-debug-non-zts-20060613/
one file *.a (8 bytes "!")

was expecting a dll file, but only "extension.a"

What's wrong?

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



[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/local/lib/php/extensions/no-debug-non-zts-20060613/
one file *.a (8 bytes "!")

was expecting a dll file, but only "extension.a"

What's wrong?

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



[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
inclusion?


you could put it in your php ini file

extension = "foo.so"

then I believe the impact will be on the first instance for that php
engine. so in fastcgi mode, you'd only have the hit once every
PHP_FCGI_MAX_REQUESTS when the child restarts...



Have a look at a standard Mandriva or Fedora/CentOS PHP install. You'll 
see that the various parts of the PHP engine are all very modular with 
several PECL modules pre-built for your convenience.


The php.ini file is split into files in /etc/php.d/*.ini so that the 
packages can put their own little config systems into the php.ini "file" 
without dicking around with automated editing.


When using PHP as a module the impact is pretty low, only once per 
restart. As Mike wrote the low impact is also apparent in FCGI mode too 
(but it's a bit more obvious where the extra load it creates is manifested).


Personally, the convenience of modularity sells this approach for me. I 
do generally roll my own RPMs to keep things up to day and patched, but 
again I just use that format/deployment method as it's convenient.


Col


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



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
> inclusion?

you could put it in your php ini file

extension = "foo.so"

then I believe the impact will be on the first instance for that php
engine. so in fastcgi mode, you'd only have the hit once every
PHP_FCGI_MAX_REQUESTS when the child restarts...

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



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, but I'm worried that runtime invocation
might mean performance hits. Is there a way to do load/startup time
inclusion?

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



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.net/dl (though a lot of hosts disable this
functionality for security reasons).

-- 
Postgresql & php tutorials
http://www.designmagick.com/

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



[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 the topic are pretty noisy given
that php's installation as a shared module itself for Apache are a
fairly popular topic.

Thanks,

Weston

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



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 php.ini file to match the
> 'no-debug-non-zts-20050922' default directory and your problems will
> go
> away.

Or, if you are CERTAIN that the version, debug, and zts settings for
the two compilations are the same, just copy the .so file into your
extensions directory.

PHP is trying to keep you from shooting yourself in the foot by
compiling an extension for one version, and dumping it will-he nill-he
into some incompatible extensions directory.

For those users with multiple installs of PHP, this is crucial, as you
might imagine.

-- 
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



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 2005-09-22.  I 
complained/questioned this default behavior of 'pecl install' myself and 
asked why pecl didn't use the 'extension dir' value I already had set in 
the PHP.ini file.  The response was that the php.ini file is not the 
authoritative definition for the extension directory because there could 
in theory be many php.ini files all over the system not to mention the 
defaults which might be used if no php.ini file exists at all.

> The only way I could get zip support working was to put it here:
/usr/local/php/ext
> Which is where my extensions directory is located. I've checked, and the
> extensions directory is set correctly in the php.ini file. Does anyone
know
> where/how it would come up with this other path?
>   

I've seen several people complain about this problem, but it doesn't 
seem anyone wants to change it.  If you want your life to continue 
without tons of stress, just go with the flow, don't try to customize 
your installation, and just accept the defaults.  Yeah, I didn't like 
that answer either.

In summary:  Change your php.ini file to match the 
'no-debug-non-zts-20050922' default directory and your problems will go 
away.

Dante

[/SNIP]


Thanks.  At least I know it's not something that can be changed.  I'll just
move them to the appropriate place after it installs them.  That seems to be
working just fine.  I just wanted to make sure I wasn't missing some
configuration directive that could point these to where I really want
them...  I did notice the 20050922 in my phpinfo() page under PHP Extension.

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



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 2005-09-22.  I 
complained/questioned this default behavior of 'pecl install' myself and 
asked why pecl didn't use the 'extension dir' value I already had set in 
the PHP.ini file.  The response was that the php.ini file is not the 
authoritative definition for the extension directory because there could 
in theory be many php.ini files all over the system not to mention the 
defaults which might be used if no php.ini file exists at all.



The only way I could get zip support working was to put it here: 
/usr/local/php/ext
Which is where my extensions directory is located. I've checked, and the
extensions directory is set correctly in the php.ini file. Does anyone know
where/how it would come up with this other path?
  


I've seen several people complain about this problem, but it doesn't 
seem anyone wants to change it.  If you want your life to continue 
without tons of stress, just go with the flow, don't try to customize 
your installation, and just accept the defaults.  Yeah, I didn't like 
that answer either.


In summary:  Change your php.ini file to match the 
'no-debug-non-zts-20050922' default directory and your problems will go 
away.


Dante

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



[PHP] Extensions Directory (PEAR/PECL)

2006-05-18 Thread Robert Samuel White
Please let me know if this would be more appropriate to post in a PEAR or
PECL forum.  Today, I've been trying to install some extensions - in
particular, the GD library and the ZIP library.  I've finally managed to get
it all working, but there was one issue that I'd like to clear 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 extensions directory is located.

I've checked, and the extensions directory is set correctly in the php.ini
file.

Does anyone know where/how it would come up with this other path?

TIA

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



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" developers have actually had 
the need to write our own extensions, you know what I mean?


Jason

--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php

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



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 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(ZEND_NUM_ARGS() TSRMLS_CC,
"z", ¶meter) == FAILURE)
  return;

  ZVAL_LONG(parameter, 78);
}

When I call this as


it works fine, but when I call it as:


nothing is outputted.  I looked at the source code for various extensions, 
and I noticed that they called the deconstructor zval_dtor().  I tried this, 
but it still did not work:

ZEND_FUNCTION(first_module)
{
  zval *parameter;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
"z", ¶meter) == FAILURE)
  return;

  zval_dtor(parameter);
  ZVAL_LONG(parameter, 78);
}

Thanks,
Yasir

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



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



[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(ZEND_NUM_ARGS() TSRMLS_CC,
 "z", ¶meter) == FAILURE)
   return;

   ZVAL_LONG(parameter, 78);
}

When I call this as


it works fine, but when I call it as:


nothing is outputted.  I looked at the source code for various extensions, 
and I noticed that they called the deconstructor zval_dtor().  I tried 
this, but it still did not work:

ZEND_FUNCTION(first_module)
{
   zval *parameter;

   if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
 "z", ¶meter) == FAILURE)
   return;

   zval_dtor(parameter);
   ZVAL_LONG(parameter, 78);
}

Thanks,
Yasir

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



[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 Apache when I use server module, or when there is 
first call to function in module when I use CLI.

Has anyone successfully used extensions under Windows with development 
version of PHP?

TIA,
Jirka
--
--
  Jirka Kosek e-mail: [EMAIL PROTECTED] http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
 Podívejte se na náš nově spuštěný web http://DocBook.cz
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 probably need to use some ZEND_xxx macro.

Check out simple functions (error_log springs to mind) that use pass by
reference.

-- 
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



[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 in the PHP.INI file?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 variables by reference to my function without enabling call-time pass
> by reference in the PHP.INI file?

> Thanks




-- 
Best regards,
 Marcusmailto:[EMAIL PROTECTED]

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



[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 the same directory )
>
>
> I get the following message :
>
> Unable to load dynamic library C:\Program
> Files\EasyPHP1-7\php\extensions\php_curl.dll  Could not find specified
> module
>
> Same problem for php_domxml.dll  ,  php_ldap.dll

What are the extensions that DO work?

Are you sure they are not just built-in to PHP already?

Can you use http://php.net/dl on those extensions instead of the php.ini
settings?  That would help you to confirm/deny that you really are loading
the extensions you think you are loading.

I seem to recall that Apache and php.ini did not like directory names with
spaces in them -- Try moving your extensions directory to C:\php (you'll
need to create that directory) and re-start Apache.

-- 
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



[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 :
Unable to load dynamic library C:\Program 
Files\EasyPHP1-7\php\extensions\php_curl.dll  Could not find specified 
module

Same problem for php_domxml.dll  ,  php_ldap.dll
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 function for php execution?
  "  echo \"text\";
 while (1){
break;
 }
 
 echo 1+5;

  
  "); 
} 
}
...

then i call it:


and got output in page:
-
text
6
-

Thanx!

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



[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:
 *
 * $desc = new Describe();
 * echo '';
 * print_r($desc->describeExtension('standard', true));
 *
 * or
 *
 * $desc = new Describe();
 * echo '';
 * print_r($desc->describeObject($desc));
 */
class Describe
{
/**
 * Wrapper function for private function _describeClass
 *
 * @param  string  $class  The string name of a class
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array with class description or an error
 */
public function describeClass($class, $summary = false)
{
if (class_exists($class)) {
$class = new Reflection_Class($class);
return Describe::_describeClass($class, $summary);
} else {
return "Could not describe class $class";
}
}

/**
 * Wrapper function for private function _describeObject
 *
 * @param  object  $objAny object
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array with class description or an error
 */
public function describeObject(&$obj, $summary = false)
{
if (is_object($obj)) {
return Describe::_describeObject($obj, $summary);
} else {
return "Could not describe the object";
}
}

/**
 * This function returns an array representation of an extension.
 *
 * @param  string  $extension  Name of a loaded extension
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array on success or an error on failure
 */
public function describeExtension($extension = 'standard', $summary 
= false)
{
if (extension_loaded($extension)) {
return Describe::_describeExtension(new 
Reflection_Extension($extension), $summary);
} else {
return "Could not describe the extension $extension";
}
}

/**
 * Wrapper function for private function _describeFunction
 *
 * @param  string  $function   Name of a function
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array
 */
public function describeFunction($function, $summary = false)
{
if (function_exists($function)) {
return Describe::_describeFunction(new 
Reflection_Function($function), $summary);
} else {
return "Could not describe the function $function";
}
}

/**
 * This function returns an array representation of the class / object.
 *
 * @param  mixed   $class_or_obj   Either an object or the string 
name of a class
 * @param  string  $method Name of a method in $class_or_obj
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array
 */
public function describeMethod($class_or_obj, $method, $summary = 
false)
{
if (is_object($class_or_obj)) {
$class = get_class($class_or_obj);
} else {
$class = $class_or_obj;
}

if (class_exists($class) && function_exists($method)) {
return Describe::_describeMethod(new 
Reflection_Method($classname, $method));
} else {
return "Could not describe method $method";
}
}

// }}}
// {{{ _describeObject()
private function _describeObject(&$obj, $summary)
{
$class = new Reflection_Class(get_class($obj));
$desc = array();
if ($summary) {
$desc['name'] = $class->getName();
$desc['extends'] = is_string($ext = 
var_export($class->getParentClass(), 1)) ? $ext : 'none';
foreach($class->getProperties() as $prop) {
$desc['properties'][$prop->getName()] = 
Describe::_describeProperty($prop, true, $obj);
}
foreach ($class->getMethods() as $method) {
$desc['methods'][$method->getName()] = 
Describe::_describeMethod($method, true);
}
} else {
$desc['name'] = $class->getName();
$desc['extends'] = is_string($ext = 
var_export($class->getParentClass(), 1)) ? $ext : 'none';

[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 usage:
 *
 * $desc = new Describe();
 * echo '';
 * print_r($desc->describeExtension('standard'));
 *
 * or
 *
 * $desc = new Describe();
 * echo '';
 * print_r($desc->describeObject($desc));
 */
class Describe
{
/**
 * Wrapper function for private function _describeClass
 *
 * @param  string  $class  The string name of a class
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array with class description or an error
 */
public function describeClass($class, $summary = false)
{
if (class_exists($class)) {
$class = new Reflection_Class($class);
return Describe::_describeClass($class, $summary);
} else {
return webeditor::raiseError(WEBEDITOR_NO_CLASS, 
__FUNCTION__, __CLASS__);
}
}

/**
 * Wrapper function for private function _describeObject
 *
 * @param  object  $objAny object
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array with class description or an error
 */
public function describeObject(&$obj, $summary = false)
{
if (is_object($obj)) {
return Describe::_describeObject($obj, $summary);
} else {
return webeditor::raiseError(WEBEDITOR_NO_OBJECT, 
__FUNCTION__, __CLASS__);
}
}

/**
 * This function returns an array representation of an extension.
 *
 * @param  string  $extension  Name of a loaded extension
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array on success or an error on failure
 */
public function describeExtension($extension = 'standard', $summary 
= false)
{
if (extension_loaded($extension)) {
return Describe::_describeExtension(new 
Reflection_Extension($extension), $summary);
} else {
return webeditor::raiseError(WEBEDITOR_NO_EXTENSION, 
__FUNCTION__, __CLASS__);
}
}

/**
 * Wrapper function for private function _describeFunction
 *
 * @param  string  $function   Name of a function
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array
 */
public function describeFunction($function, $summary = false)
{
if (!function_exists($function)) {
return webeditor::raiseError(WEBEDITOR_NO_FUNCTION, 
__FUNCTION__, __CLASS__);
} else {
return Describe::_describeFunction(new 
Reflection_Function($function), $summary);
}
}

/**
 * This function returns an array representation of the class / object.
 *
 * @param  mixed   $class_or_obj   Either an object or the string 
name of a class
 * @param  string  $method Name of a method in $class_or_obj
 * @param  bool$summary(optional) Print the summary 
info only.  If false,
 * then this function prints 
*everything* it finds.
 * @return array
 */
public function describeMethod($class_or_obj, $method, $summary = 
false)
{
if (is_object($class_or_obj)) {
$class = get_class($class_or_obj);
} else {
$class = $class_or_obj;
}

if (class_exists($class) && function_exists($method)) {
return Describe::_describeMethod(new 
Reflection_Method($classname, $method));
} else {
return webeditor::raiseError(WEBEDITOR_NO_METHOD, 
__FUNCTION__, __CLASS__);
}
}

// }}}
// {{{ _describeObject()
private function _describeObject(&$obj, $summary)
{
$class = new Reflection_Class(get_class($obj));
$desc = array();
if ($summary) {
$desc['name'] = $class->getName();
$desc['extends'] = is_string($ext = 
var_export($class->getParentClass(), 1)) ? $ext : 'none';
foreach($class->getProperties() as $prop) {
$desc['properties'][$prop->getName()] = 
Describe::_describeProperty($prop, true, $obj);
}
foreach ($class->getMethods() as $method) {
$desc['methods'][$method->getName()] = 
Describe::_describeMethod($method, true);
}
} 

[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 the following links on the web:
http://www.devnewz.com/2002/0909.html
http://www.devarticles.com/art/1/170/4
http://www.geocrawler.com/mail/msg.php3?msg_id=2695523&list=5
http://php.weblogs.com/discuss/msgReader$2403
http://www.php.net/manual/en/zend.php
http://www.qandr.org/~quentinsf/phpmodule/
http://www.derickrethans.nl/ze-ext/talk.html
http://www.zend.com/zend/api.php
http://www.php.net/manual/en/zend.possibilities.builtin.php
but maybe someone knows of a really useful resource for this that I've 
missed?

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


[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 where I can find some examples or resources such as tutorials
.
Thanks in advance .



 

--

Raditha Dissanayake
-
http://www.radinks.com/sftp/
Lean and mean Secure FTP applet with Graphical User Inteface.
just 150 Kilo Bytes


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


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 the source tree, but did not find one.  I tried different things, but ended up with multiple *.so's.  I have been using *.h for a few pieces, but compiling gets long and the source a bit unwieldy.

Thanks!


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


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 searched for examples in the source tree, but did not find one.  I tried
> different things, but ended up with multiple *.so's.  I have been using *.h
> for a few pieces, but compiling gets long and the source a bit unwieldy.
>
> Thanks!


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



[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.  I have been using *.h for a few pieces, 
but compiling gets long and the source a bit unwieldy.

Thanks!

[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 loaded at each request and unloaded after 
each page finishes. And that this is slooow.

Even if we use the "extension" keyword in the php.ini file it is still 
slooow 
(i.e., the same effect as using the dl() function).

a) Can somone who knows clarify/assert this? 

b) Because we use pgsql as an extension (set in php.ini) and we use it very 
heavily on every page. One would think that there would be significant 
performance advantages to gain by "compiling in" this module. Would this be 
the case? 

2) I was also under the impression that all of the built-in PHP modules 
(which, to me is the entire set of modules in the documentation pages at 
the 
PHP web site) are compiled in and fast and that php doesnt need to load 
them 
in for EVERY request. I am dissappointed that PHP needs to load and unload 
each shared module for EVERY request.

3) The PHP documentation laso states that this loading and unloading of the 
shared module is "very slow". Can anyone qualify this - what do they really 
mean? We are using it with Apache.

Mike Papper

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



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 there are probably some
examples in the archives of how to do this.

Chris

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




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 tutorials.


2. change your code to:



Untitled


HELLO WORLD!!!






Why can't you just use the .php extension?


Justin


on 31/01/03 5:46 PM, Guru Geek ([EMAIL PROTECTED]) wrote:

> 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,
> Roger
> 
> 


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




[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,
Roger



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




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 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 considering
> the alternative (the one that comes with PHP). I
> wanted to check into it.
> 
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com

Justin French

http://Indent.com.au
Web Developent & 
Graphic Design



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




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 considering
the alternative (the one that comes with PHP). I
wanted to check into it.

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

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




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 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://launch.yahoo.com/u2

Justin French

Creative Director
http://Indent.com.au
Web Developent & 
Graphic Design



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




[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://launch.yahoo.com/u2

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




[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? Or perhaps a link to
somewhere that might help?

Thanks

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




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 risks.
> 
> I'd welcome views on how reasonable this is.
> 
> The extension I'm mainly concerned about is GD, which I rely on for
> interactive mapping functionality. I find it hard to see how this is a
> security risk, but I'm no expert and prepared to be enlightened.
>

I could host you if interested.  Check http://www.nk.ca .
 
> Many thanks
> 
> Alan Hale
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
Member - Liberal International  On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.  
Beware of defining as intelligent only those who share your opinions

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




[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.
> 
> I'd welcome views on how reasonable this is.
> 
> The extension I'm mainly concerned about is GD, which I rely on for
> interactive mapping functionality. I find it hard to see how this is a
> security risk, but I'm no expert and prepared to be enlightened.

They are basically saying that what you are paying is not worth the 
effort of upgrading PHP version recompiling ith with such extensions.

They are so many hosting companies in the world, why are you still 
hanging on a company that thinks what you pay is not worth it? It is 
time to switch.


-- 

Regards,
Manuel Lemos


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




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 particularly the "no notice" part, sure sounds lame.


% 
% I'd welcome views on how reasonable this is.

Hmmm...  Is it a risk?  Well, theoretically everything is a risk; they
might as well just shut down their servers now since they don't want to
compensate for risks.  And anything can be buggy, too, so they'd better
wipe those disks clean of any nasty utilities, servers, or operating
systems.

I guess whether or not it's reasonable depends on what they want their
business to do.  If they want to serve FrontPage web clients and perhaps
a little bit of POP3 email, they don't need php.  They don't need apache
for that matter, either, since it's all configurable and dangerous and
everything.


HTH & HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75397/pgp0.pgp
Description: PGP signature


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 effort in evaluating and compensating for those risks.
>
> I'd welcome views on how reasonable this is.
>
> The extension I'm mainly concerned about is GD, which I rely on for
> interactive mapping functionality. I find it hard to see how this is a
> security risk, but I'm no expert and prepared to be enlightened.
>
> Many thanks
>
> Alan Hale
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[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 I'm mainly concerned about is GD, which I rely on for
interactive mapping functionality. I find it hard to see how this is a
security risk, but I'm no expert and prepared to be enlightened.

Many thanks

Alan Hale
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002


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




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 
> Last Updated 8th August 2002
> **
> 
> 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 service and hit a page, I get the error:
> 
> Unable to load dynamic library .  the specified procedure could not be
> found.
> 
> Any ideas?
> 
> Thanks!
> 
> 
> 


-- 
--
  www.curvedvision.com
--


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




[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 service and hit a page, I get the error:

Unable to load dynamic library .  the specified procedure could not be
found.

Any ideas?

Thanks!



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




[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:/PHP4/extensions/php_sybase_ct.dll' - The
specified module could not be found"

the interesting part is that in C:/PHP4/extensions there is a file
php_sybase_ct.dll

What am I doing wrong?

Thanks



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




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

2002-02-21 Thread Mike Schmid

Hi NG

Help needed, i have make a new istallation of php 4.1.1 (with the
installer). I configured everyhing like iis php.ini. registry and permission
on th ntfs partition. I coppy all the dll`s from php (not the extensions
dll´s) to system32. I downloded to the win32 package with the extensions
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...

The output of the command promt if i run php.exe -i is, the dynamik link
libary isqlt09a.dll could not be found in the specified path c:\blahblah,
blah

where i can get the dlls... of somone can help me whit this problem

thanks Mike



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




[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 similar with Php extensions?

Thanks in advance,
Mauricio


-- 
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: [EMAIL PROTECTED]




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 I assume that there are some libraries you need to
download and install.

- Erik


-- 
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: [EMAIL PROTECTED]




[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
Brandon



[PHP] Re: php extensions

2001-09-21 Thread Richard Lynch

I think you need to create a .so file, not .o and .la...

There are some sample screen shots at http://conf.php.net in Rasmus' more
recent talks

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-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 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
> resulting .o, libmodule.la saying the file format is invalid. If I
manually
> link the object file to a shared library, dl() will tell me the library is
> invalid.
>
> So I'm stuck. If someone could help me that would be gratly appreciated.
I'm
> using FreeBSD 4.3 and the (patched) PHP sources from the ports tree.
>
> Thanks.
>
> Cristovao Dalla Costa
>
>


-- 
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: [EMAIL PROTECTED]




[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
resulting .o, libmodule.la saying the file format is invalid. If I manually
link the object file to a shared library, dl() will tell me the library is
invalid.

So I'm stuck. If someone could help me that would be gratly appreciated. I'm
using FreeBSD 4.3 and the (patched) PHP sources from the ports tree.

Thanks.

Cristovao Dalla Costa



-- 
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: [EMAIL PROTECTED]




[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


-- 
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: [EMAIL PROTECTED]




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 additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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: [EMAIL PROTECTED]




[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 IIS server?

If you have please let me know what you did to get it working again.

Thanks,
Brandon


-- 
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: [EMAIL PROTECTED]




[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 commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]