[PHP] Enabling the chroot() function in PHP 5.4

2013-06-13 Thread Aaron Stephens
Hi All, Does anybody know how to enable the chroot() function in PHP 5.4? It was easy in PHP 5.3 as long as you were building the CLI by itself. In the PHP 5.4 configure script there is a new PHP_BINARIES variable being used instead of setting PHP_SAPI=cli and thus the #define

Re: [PHP] Enabling the chroot() function in PHP 5.4

2013-06-13 Thread Matijn Woudt
Hi Aaron, It's better if you ask this question on the PHP internals list, there's hardly anyone compiling it's own PHP here. - Matijn On Thu, Jun 13, 2013 at 9:55 AM, Aaron Stephens aaron.t.steph...@gmail.comwrote: Hi All, Does anybody know how to enable the chroot() function in PHP

[PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread Daniel Brown
On Fri, Jan 18, 2013 at 10:33 AM, KISE wowk...@gmail.com wrote: Paul Dragoonis, Actually it wont work i did tried it before, if the dir end with / it will list the directories inside the path you gave it and if it doesn't have any directories it will return false since there is no directories

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
On Fri, Jan 18, 2013 at 9:43 AM, Daniel Brown danbr...@php.net wrote: On Fri, Jan 18, 2013 at 10:33 AM, KISE wowk...@gmail.com wrote: Paul Dragoonis, Actually it wont work i did tried it before, if the dir end with / it will list the directories inside the path you gave it and if it doesn't

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
On Fri, Jan 18, 2013 at 9:26 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Jan 18, 2013 at 9:43 AM, Daniel Brown danbr...@php.net wrote: On Fri, Jan 18, 2013 at 10:33 AM, KISE wowk...@gmail.com wrote: Paul Dragoonis, Actually it wont work i did tried it before, if the dir

Re: [PHP] about PHP's filter_var function

2012-09-21 Thread Sebastian Krebs
Am 20.09.2012 19:54, schrieb Jim Lucas: On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine

[PHP] about PHP's filter_var function

2012-09-20 Thread lx
{ echo IP is valid; } I want to check the string $ip is IP address or not.but my PHP version is 5.1.6. and I know the filter_var requires at least PHP version 5.2.0. so, Any other function in PHP 5.1.6 can slove this work and replace the filter_var function ? Thank you, I'm

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Vikash Kumar
the string $ip is IP address or not.but my PHP version is 5.1.6. and I know the filter_var requires at least PHP version 5.2.0. so, Any other function in PHP 5.1.6 can slove this work and replace the filter_var function ? Thank you, I'm a new one, so I don't know much about PHP documentation

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
is 5.1.6. and I know the filter_var requires at least PHP version 5.2.0. so, Any other function in PHP 5.1.6 can slove this work and replace the filter_var function ? Thank you, I'm a new one, so I don't know much about PHP documentation. By the way, The PHP version is required. so I can't

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
by this way: $ip = 192.168.0.1; if( !filter_var($ip, FILTER_VALIDATE_IP) ) { echo IP is not valid; } else { echo IP is valid; } I want to check the string $ip is IP address or not.but my PHP version is 5.1.6. and I know the filter_var requires at least PHP version 5.2.0. so, Any other function in PHP

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Maciek Sokolewicz
On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore insecure and inefficient

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
address or not.but my PHP version is 5.1.6. and I know the filter_var requires at least PHP version 5.2.0. so, Any other function in PHP 5.1.6 can slove this work and replace the filter_var function ? Thank you, I'm a new one, so I don't know much about PHP documentation. By the way, The PHP version

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Matijn Woudt
On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucas li...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated, unsupported and therefore

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Sebastian Krebs
Am 20.09.2012 18:17, schrieb Maciek Sokolewicz: On 20-09-2012 18:03, Jim Lucas wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an extremely outdated,

Re: [PHP] about PHP's filter_var function

2012-09-20 Thread Jim Lucas
On 09/20/2012 10:00 AM, Matijn Woudt wrote: On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucasli...@cmsws.com wrote: On 09/20/2012 02:35 AM, Sebastian Krebs wrote: Plaseplease update... 5.1.6 is from 2006! I read the it's required, but I can't imagine _anything_ that it's worth it to use such an

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Maciek Sokolewicz
On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashwani Kesharwani
Hi Maciek, admin, Thanks for your responses. Its really helpful. Regards Ashwani On Wed, May 23, 2012 at 3:37 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Jonesy
On Wed, 23 May 2012 00:24:25 -0400, admin wrote: -Original Message- From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] Sent: Wednesday, May 23, 2012 12:13 AM To: php-general@lists.php.net Subject: [PHP] w.r.t. mail() function Hi , I have a query w.r.t. mail() function

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
. mail() function Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective recipients as expected. However

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashley Sheridan
:13 AM To: php-general@lists.php.net Subject: [PHP] w.r.t. mail() function Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com ashwani.kesharw...@gmail.com] Sent: Wednesday, May 23, 2012 12:13 AM To: php-general@lists.php.net Subject: [PHP] w.r.t. mail() function Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have

[PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
I have been stuck on this, and have no idea what is causing it. I have compiled PHP with mysqli support: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php --with-mcrypt=/usr/local/bin/mcrypt --with-mysqli

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Daniel Brown
On Thu, Oct 13, 2011 at 14:19, Nick Khamis sym...@gmail.com wrote: I have been stuck on this, and have no idea what is causing it. I have compiled PHP with mysqli support: Right which will use mysqli_connect(), et al. If you didn't compile it with straight MySQL support, then the

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Daniel Brown
On Thu, Oct 13, 2011 at 14:33, Nick Khamis sym...@gmail.com wrote: I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so extension_dir=/usr/local/php/ include/php/ext/ Thanks in Advance,

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
Correct. Extensions, such as those found in the PECL repository, are added in that manner. Things compiled into the core, such as what you're doing with MySQLi, are automatically loaded regardless, because they're statically-built into the PHP binary itself.

[PHP] Call to undefined function

2011-06-23 Thread admin
I am running a scheduled task for the first time since switching from linux to Windows IIS I am getting an error when the task runs. Fatal error: Call to undefined function mysql_connect() I ran php.exe -m to see that the MySQL Module is loaded. I have no issues unless I am running a php

Re: [PHP] Call to undefined function

2011-06-23 Thread Shiplu Mokaddim
Sent from a handheld device On 24-Jun-2011, at 5:53 AM, ad...@buskirkgraphics.com wrote: I am running a scheduled task for the first time since switching from linux to Windows IIS I am getting an error when the task runs. Fatal error: Call to undefined function mysql_connect() I

RE: [PHP] Call to undefined function

2011-06-23 Thread admin
-general@lists.php.net Subject: Re: [PHP] Call to undefined function Sent from a handheld device On 24-Jun-2011, at 5:53 AM, ad...@buskirkgraphics.com wrote: I am running a scheduled task for the first time since switching from linux to Windows IIS I am getting an error when the task runs

[PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Al
On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the more

RE: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Bob McConnell
From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people

RE: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Bob McConnell
From: Peter Lind On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 17:22, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project

[PHP] First PHP site - thanks - euca_phpmysql function library

2011-02-08 Thread Donovan Brooke
Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the more interesting. However, here is the link to the

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
. (Future theme updates would just overwrite any changes I made.) So, in my new actions.php, I put an include followed by the replacement function definition, named identically to the one I want to replace: ?php include '../sometheme/functions/actions.php'; function foo($arg_1, $arg_2

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
/actions.php. But I want to preserve ../sometheme/functions/actions.php unchanged in any way. (Future theme updates would just overwrite any changes I made.) So, in my new actions.php, I put an include followed by the replacement function definition, named identically to the one I want to replace: ?php

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Thijs, :-) On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink d...@lenss.nl wrote: As far as I know it is not possible to overwrite functions in PHP (unless you use runkit, apd). Inside classes this is possible. But that's not the case here. Why do the functions have to be equally named? If

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
You can check with function_exists to see if a function is already defined. If not, create it. Regards Peter On Nov 3, 2010 11:40 AM, David Nelson comme...@traduction.biz wrote: Hi Thijs, :-) On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink d...@lenss.nl wrote: As far as I know it is not

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind peter.e.l...@gmail.com wrote: You can check with function_exists to see if a function is already defined. If not, create it. The function is definitely already defined, I just need to replace it without touching the file in which it's

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Peter Lind
That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. On Nov 3, 2010 11:55 AM, David Nelson comme...@traduction.biz wrote: Hi Peter, :-) On Wed, Nov 3, 2010 at 18:44, Peter Lind peter.e.l...@gmail.com wrote: You can

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) On Wed, Nov 3, 2010 at 19:29, Peter Lind peter.e.l...@gmail.com wrote: That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. OK, thanks, Thijs and Peter, it looks like I'm trying to do something that is not

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
-function/action.php; foo(); theme 2 include shared-function/action.php; foo(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi Thijs, :-) On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink d...@lenss.nl wrote: I re-read your original post. And noticed you include the function inside your child action.php Is there a special reason for that? You want to overwrite the original function in a child theme. probably to get

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Steve Staples
On Thu, 2010-11-04 at 00:00 +0800, David Nelson wrote: Hi Thijs, :-) On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink d...@lenss.nl wrote: I re-read your original post. And noticed you include the function inside your child action.php Is there a special reason for that? You want to

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi guys, :-) Just FYI, I got this answer from the theme dev: David, You don't need the include statement. If you create your function in wp-content/themes/suffusion-child/functions.php it will get automatically included. Secondly, using the same function name wouldn't work, because it would

Re: [PHP] Filesystem path creation function

2010-10-05 Thread Richard Quadling
On 5 October 2010 09:07, Gary php-gene...@garydjones.name wrote: Does such a thing exist in php? My searches have lead nowhere. What I am looking for is a function which you would pass two parts of a path to (which might be a directory and a filename, say) and it would return a string

Re: [PHP] Filesystem path creation function

2010-10-05 Thread Richard Quadling
On 5 October 2010 09:07, Gary php-gene...@garydjones.name wrote: Does such a thing exist in php? My searches have lead nowhere. What I am looking for is a function which you would pass two parts of a path to (which might be a directory and a filename, say) and it would return a string

[PHP] Problem with pg_prepare function

2010-04-23 Thread Giancarlo Boaron
Hi all. I'm receiving the following message when I try to use pg_prepare() function: Call to undefined function pg_prepare(). My application works very well with others pg_* commands... I already checked my configuration files and I have no more ideas about how to fix it. Any suggestions?

Re: [PHP] Problem with pg_prepare function

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 9:42 PM, Giancarlo Boaron gboa...@yahoo.com.brwrote: Hi all. I'm receiving the following message when I try to use pg_prepare() function: Call to undefined function pg_prepare(). My application works very well with others pg_* commands... I already checked my

Re: [PHP] a trivial little function (PostToHost)

2009-10-05 Thread tedd
At 12:27 PM -0600 10/4/09, kirk.john...@zootweb.com wrote: tedd tedd.sperl...@gmail.com wrote on 10/04/2009 08:51:13 AM: [PHP] a trivial little function (PostToHost) tedd to: php-general 10/04/2009 09:05 AM Hi gang: The following 'trivial little' function I'm trying to get my head

Re: [PHP] a trivial little function (PostToHost)

2009-10-05 Thread Kirk . Johnson
tedd tedd.sperl...@gmail.com wrote on 10/05/2009 01:44:00 PM: [snip] Hi Kirk: Okay, but what specifically is that script? I have written a script at server B to print_r($_POST), but I don't get anything other than log errors (see below*). Here's an example:

[PHP] a trivial little function (PostToHost)

2009-10-04 Thread tedd
Hi gang: The following 'trivial little' function I'm trying to get my head around: http://aspn.activestate.com/ASPN/Mail/Message/php-general/1259426 The article states: Either way, just generate your XML string and fire it at the remote machine. You will need to write code to handle the

Re: [PHP] a trivial little function (PostToHost)

2009-10-04 Thread Kirk . Johnson
tedd tedd.sperl...@gmail.com wrote on 10/04/2009 08:51:13 AM: [PHP] a trivial little function (PostToHost) tedd to: php-general 10/04/2009 09:05 AM Hi gang: The following 'trivial little' function I'm trying to get my head around: http://aspn.activestate.com/ASPN/Mail

[PHP] issue with mail function

2009-08-04 Thread Allen McCabe
I have recently been working a lot lately with arrays and printing them into html tables for email (like a user survey for example). I have been seeing odd things with the table lately, each unique to it's sending php file. I will get a space in a random spot. In one, I used an array to rename the

RE: [PHP] issue with mail function

2009-08-04 Thread Bob McConnell
From: Allen McCabe I have recently been working a lot lately with arrays and printing them into html tables for email (like a user survey for example). I have been seeing odd things with the table lately, each unique to it's sending php file. I will get a space in a random spot. In one, I

[PHP] Page or URL function?

2009-07-29 Thread Miller, Terion
I've been searching php.net for a function to do this: if page_url('browse.php') { $default = A; } $letter = isset($_GET['letter'])? $_GET['letter'] :$default ; else { $letter = isset($_GET['letter'])?

[PHP] Call to object function, want to PHP interpret returned string

2009-07-06 Thread John Allsopp
Hi At the top of a webpage I have: ?php include_once(furniture.php); $myFurniture = new furniture(); echo $myFurniture-getTop(my company title); ? to deliver the first lines of HTML, everything in HEAD and the first bits of page furniture (menu, etc). In the furniture object in getTop(), I

[PHP] error in printer_open function

2009-04-27 Thread AYAN PAL
hi, i am using local server to print a simple text i config the php.ini file as ;extension=php_printer.dll added in the extension list and add [printer] printer.default_printer = Send To OneNote 2007 in this file and write a sim ple page as- Prabal Cable Network

[PHP] Re: pdf_new() uncalled Function

2009-03-16 Thread Shawn McKenzie
Alice Wei wrote: Hi, I use Linux, and I had installed PHP using yum install php. I am trying to use the pdf_new function to create pdfs from existing text files, but I get this error PHP Fatal error: Call to undefined function pdf_new() I have noticed that when I run the

[PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
['areaPlans']) or die( bind error . mysqli_error($link)); //Add the record mysqli_stmt_execute($stmt) or die( execute error . mysqli_error($link)); ? notify_email.php file: ?PHP function notify_email($Record, $salesRepID) { require(defaults.php); require

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required defaults loaded

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:21 AM, Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; + display_errors on in php.ini and problem is

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; +

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:46 AM, Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip]

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this:

[PHP]About the magic function __call

2008-08-27 Thread Paulo Sousa
Hi there! I'm working with the following code: ?php abstract class Foo{ protected $a; protected $b; protected $c; function __construct($arg){ $this-a = $arg; } function __call($function, $args){ $this-b = $function; $this-c = $args; $this-doWhatever(); } private doWhatever(){ } }

Re: [PHP]About the magic function __call

2008-08-27 Thread Nathan Nobbe
On Wed, Aug 27, 2008 at 1:35 PM, Paulo Sousa [EMAIL PROTECTED]wrote: Hi there! I'm working with the following code: ?php abstract class Foo{ protected $a; protected $b; protected $c; function __construct($arg){ $this-a = $arg; } function __call($function, $args){ $this-b =

Re: [PHP]About the magic function __call

2008-08-27 Thread Nathan Nobbe
system or not. right now, im getting errors on a php5.2.5 system, and its working as expected on a php5.2.6 system. --TEST-- When __call() is invoked via ::, ensure private implementation of __call() in superclass is accessed without error. --FILE-- ?php class A { private function __call

Re: [PHP]About the magic function __call

2008-08-27 Thread Paulo Sousa
now, im getting errors on a php5.2.5 system, and its working as expected on a php5.2.6 system. --TEST-- When __call() is invoked via ::, ensure private implementation of __call() in superclass is accessed without error. --FILE-- ?php class A { private function __call($strMethod

[PHP] Randomly missing a function

2008-07-17 Thread Miles Thompson
An online signup script is randomly missing part of the task. These scripts are involved: sub_signup.php include/cc_proc.php - does the CC (credit card) processing include/user_maint.php - inserts the new subscriber into the database When the CC processing finishes, with the success flag,

Re: [PHP] Randomly missing a function

2008-07-17 Thread Micah Gersten
Try returning a value from CreateUser and checking it before sending the E-Mail. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Miles Thompson wrote: An online signup script is randomly missing part of the task. These scripts are involved: sub_signup.php

Re: [PHP] Randomly missing a function

2008-07-17 Thread Shawn McKenzie
Micah Gersten wrote: Try returning a value from CreateUser and checking it before sending the E-Mail. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Exactly! You'll find that CreateUser() is called, however for whatever reason the user isn't created. Do

Re: [PHP] Randomly missing a function

2008-07-17 Thread Miles Thompson
MIcah, Duh!! So damned obvious. We'll try that. Thanks - Miles On Thu, Jul 17, 2008 at 5:42 PM, Micah Gersten [EMAIL PROTECTED] wrote: Try returning a value from CreateUser and checking it before sending the E-Mail. Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] Beware of round() function

2008-04-09 Thread Kirk . Johnson
On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these

Re: [PHP] Beware of round() function

2008-04-09 Thread Jim Lucas
[EMAIL PROTECTED] wrote: On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal

Re: [PHP] Beware of round() function

2008-03-26 Thread tedd
At 10:55 AM -0600 3/25/08, [EMAIL PROTECTED] wrote: Thanks for the info, Jeremy. Regardless of the technical details, my code still broke. I am little discouraged that an operation that should be so simple has these sorts of gotchas. Not that this helps/hurts your observation. What I find

Re: [PHP] Beware of round() function

2008-03-25 Thread Kirk . Johnson
Thanks for the info, Jeremy. Regardless of the technical details, my code still broke. I am little discouraged that an operation that should be so simple has these sorts of gotchas. BTW, I ended up casting to int as my solution. Kirk Jeremy Privett [EMAIL PROTECTED] wrote on 03/24/2008

[PHP] Beware of round() function

2008-03-24 Thread Kirk . Johnson
Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these special values are 120, 140, 230, which are returned as

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
[EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. -- Jeremy Privett C.E.O. C.S.A. Omega

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
Jeremy Privett wrote: [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. Also, as a

Re: [PHP] Beware of round() function

2008-03-24 Thread Martín Marqués
On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal format. Some of these special

[PHP] Help for openssl_pkcs7_verify function

2008-03-17 Thread Carlo Carbone
I need help for this function to verify a p7m file . The funcion return always error value ( -1 ) this is the sintax that I use to verify the sign on the file openssl_pkcs7_verify(prova.p7m, PKCS7_BINARY ,prova.pdf, array(c:\cert.pem) ); I 'm a winXP user and the path of PHP is place in the

Re: [PHP] Help for openssl_pkcs7_verify function

2008-03-17 Thread Stut
a winXP user and the path of PHP is place in the system path as mentioned in the setup note why it don't work ? where is the problem ? somebody could help me ? Just guessing since I'm not familiar with the function, but on a basic PHP syntax level you need to escape

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Richard Lynch
You probably do not have GD installed... Does ?php phpinfo();? list GD as one of your extensions? If not, install it. On Thu, February 7, 2008 6:57 am, Legolas wood wrote: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Børge Holen
On Thursday 07 February 2008 17:17:30 David Giragosian wrote: On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote: Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:50 PM, Børge Holen [EMAIL PROTECTED] wrote: am I readin an comercial but wait, there's more! Order within the next 6.3 seconds and you'll receive a cloned version of my first born, ABSOLUTELY FREE! -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--;

[PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread Legolas wood
Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal error*: Call to undefined function imagefontwidth() in */var/www/v603/includes/functions.php* on line *28* when line 28 and its surrounding lines are: ##

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread Jochem Maas
Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal error*: Call to undefined function imagefontwidth() in */var/www/v603/includes/functions.php* on line *28* that would tend to

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread Daniel Brown
On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote: Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal error*: Call to undefined function imagefontwidth() in

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread David Giragosian
On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote: Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal

[PHP] Re: Fatal error: Function name must be a string

2008-01-02 Thread M. Sokolewicz
Adam Williams wrote: I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST[perform] == View Contracts )

[PHP] problem with pcode function

2007-07-17 Thread Ross
on line 26 ?php function pcaStoredNearest($origin, $units, $distance, $items, $account_code, $license_code, $machine_id) { //Build the url $url = http://services.postcodeanywhere.co.uk/xml.aspx?;; $url .= action=stored_nearest; $url .= origin= . urlencode($origin

[PHP] default values in function call behaves differently in PHP5.2.4 and PHP5.0.4

2007-07-09 Thread dor kam
Hi list. I am quite new in the area. I found a difference between PHP 5.2.4 to 5.0.4 in case of passing parameter to function, with default value: f1($par=0); in 5.2.4 the par is assigned to zero AFTER function call and thus, par is always ZERO ! The desired code in 5.2.4 should probably be:

[PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
Kelvin Park wrote: I'm getting the following fatal error message: *Fatal error*: Cannot instantiate non-existent class: domdocument in * /home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3 * when running this code: // Initialize new object for DOMDocument $doc = new

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread Nathan Nobbe
On 7/8/07, M. Sokolewicz [EMAIL PROTECTED] wrote: You don't have the DOM extension installed (req. PHP5 in case you're not There is no DOM extension it is part of the PHP5 core; this from the DOM documantation http://www.php.net/manual/en/ref.dom.php in the online handbook: *Installation There

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
Actually, I'll have to correct you on that. Everything in PHP is an extension, even the standard functions (which are part of the 'standard' extension). Some extensions are built-in while others are not (ie. standard, in PHP5, the DOM module is built-in). However, this does not mean they are

  1   2   3   4   5   6   7   8   9   >