Re: [PHP] Data Enryption

2005-01-12 Thread Jochem Maas
Greg Donald wrote: On Thu, 13 Jan 2005 03:37:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: (no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone knows what thats worth ;-) - just a but of humour guys!) actually IMHO a ZCE is worth a heck of alot more than an MSCE (on paper at

Re: [PHP] Re: Fw: Identify which function called another

2005-01-12 Thread Jochem Maas
Ben Ramsey wrote: Lars B. Jensen wrote: Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? I still question whether its correct to design a function which requires this. I thought the idea of encapsulating code inside a

Re: [PHP] Data Enryption

2005-01-12 Thread Greg Donald
On Thu, 13 Jan 2005 06:36:44 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > No offence, but as you are a ZCE, this might lead people that that function is > useful and might actually use it. http://php.net/mcrypt in the comments section is where I found them. I wouldn't protect the pentagon with

RE: [PHP] Identify which function called another

2005-01-12 Thread Michael Sims
Lars B. Jensen wrote: > Is there any way, I from one function can identify which other > function called it, without parameter passing the name manually ? You can get this information from debug_backtrace()... http://www.php.net/manual/en/function.debug-backtrace.php -- PHP General Mailing Lis

[PHP] Fw: Identify which function called another

2005-01-12 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? In code, something like where I would like to have function c identify if it was called by function a or b -- Lars B. Jensen, Internet Architect CareerCross Japan

[PHP] Re: Fw: Identify which function called another

2005-01-12 Thread Ben Ramsey
Lars B. Jensen wrote: Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? Please don't post twice in an hour if you haven't yet received your answer. With that in mind, I have an answer for you. :-) Use debug_backtrace()

Re: [PHP] Data Enryption

2005-01-12 Thread Greg Donald
On Thu, 13 Jan 2005 03:37:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > (no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone > knows what thats worth ;-) - just a but of humour guys!) Yeah that's hilarious. -- Greg Donald Zend Certified Engineer http://destiney.com/ --

Re: [PHP] delete part of array

2005-01-12 Thread Jochem Maas
Leif Gregory wrote: Hello Sebastian, Wednesday, January 12, 2005, 5:22:20 PM, you wrote: S> how do i delete keys from an array if it has no values? S> eg, this: array_merge($name); Try it that way first. If not, read the manual entry first (see below) - and understand what the function actually do

Re: [PHP] delete part of array

2005-01-12 Thread Jochem Maas
Sebastian wrote: how do i delete keys from an array if it has no values? eg, this: what does the value have to do with it??? other than that you want to remove items where the value is 'empty'. also 'no value' is vague, do you mean an empty string or do you mean NULL? --- try the array_values() f

Re: [PHP] geographic search engine

2005-01-12 Thread Richard Lynch
Brian Dunning wrote: >>> I realized one day that at a distance of a hundred miles or less, I >>> just >>> didn't *CARE* about curvature of the earth, and replaced that trig >>> with >>> your basic Cartesian distance. > > True, but be aware that this is only true when all of your coordinates > are i

[PHP] Identify which function called another

2005-01-12 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? In code, something like where I would like to have function c identify if it was called by function a or b -- Lars B. Jensen, Internet Architect CareerCross Japan

Re: [PHP] Data Enryption

2005-01-12 Thread Jochem Maas
Jason Wong wrote: On Thursday 13 January 2005 01:55, Greg Donald wrote: On Wed, 12 Jan 2005 18:09:08 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: I'm no expert on crypto (and never will be either! designing good crypto is something best left to the very very very very best in terms of computer sc

[PHP] Re: [PHP-WIN] HTML in PHP to a File

2005-01-12 Thread Leif Gregory
Hello MikeA, Wednesday, January 12, 2005, 6:46:46 PM, you wrote: M> echo "The test is starting"; M> $echowrite = "echo "; M> $echowrite."This is the first line."; M> echo "You should have seen the first line by now."; M> Did not work! Hey I'll try anything to get this to work! LOL Not sure h

Re: [PHP] sendmail crash

2005-01-12 Thread Jochem Maas
Richard Lynch wrote: > Michiel van der Blonk wrote: > ... > > Is the above the ACTUAL email you are sending? > > Or merely a demonstrative sample? > > Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not be > surprised by the messages above... > Richard, what do you consider huge.

Re: [PHP] delete part of array

2005-01-12 Thread Leif Gregory
Hello Sebastian, Wednesday, January 12, 2005, 5:22:20 PM, you wrote: S> how do i delete keys from an array if it has no values? S> eg, this: array_merge($name); Try it that way first. If not, $name = array_merge($name); But I think I remember the first way working for me. Cheers, Leif Gre

Re: [PHP] delete part of array

2005-01-12 Thread Tatang Widyanto
Sebastian wrote: how do i delete keys from an array if it has no values? eg, this: [name] => Array ( [0] => grape [1] => apple [2] => [3] => orange [4] => [5] => cherry ) to: [name] => Array ( [0] => grape [1] => apple [2] => orange

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Bret Hughes wrote: On Wed, 2005-01-12 at 12:08, Jochem Maas wrote: ... Try this, put your code in a file, say, testparse.php and testparsebracket.php and try something like myseq=`seq 1 1000` time for i in $myseq; do php testparse.php;done time for i in $myseq; do php testparsebracket.php;done of

[PHP] delete part of array

2005-01-12 Thread Sebastian
how do i delete keys from an array if it has no values? eg, this: [name] => Array ( [0] => grape [1] => apple [2] => [3] => orange [4] => [5] => cherry ) to: [name] => Array ( [0] => grape [1] => apple [2] => orange [3] => cherr

[PHP] Re: sending multiple headers (session_start() and setcookie() )

2005-01-12 Thread R. Rajesh Jeba Anbiah
Ben wrote: > Hi all, > > In my .php file, I'm using both session_start() and setcookie() before > tag. It gives me following warning message: > > Warning: Cannot modify header information - headers already sent by > (output started at D:\Apache Group\Apache2\htdocs\YC\songs.php:4) in > D:\Apache G

Re: [PHP] Data Enryption

2005-01-12 Thread Jochem Maas
Greg Donald wrote: On Wed, 12 Jan 2005 18:09:08 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: I'm no expert on crypto (and never will be either! designing good crypto is something best left to the very very very very best in terms of computer science) but I think that the following function represe

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Bret Hughes
On Wed, 2005-01-12 at 12:08, Jochem Maas wrote: > Marek Kilimajer wrote: > > Jochem Maas wrote: > > > >> hi guys, > > > > > >> I always use curly braces around vars placed in double quoted strings, > >> I do this for 2 reasons: > >> > >> 1. I believe It helps the engine because the var delimita

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Kelly
Well I think you have the variable problem fixed. Worked like a charm. But I think I spoke to soon about the mail feature. I cannot get it to mail a form. Could I have not turned something else on? Kelly > Kelly wrote: > > I found other things about this online doing google. I have not fixed

Re: [PHP] Data Enryption

2005-01-12 Thread Jason Wong
On Thursday 13 January 2005 01:55, Greg Donald wrote: > On Wed, 12 Jan 2005 18:09:08 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > > I'm no expert on crypto (and never will be either! designing good crypto > > is something best left to the very very very very best in terms of > > computer scienc

Re: [PHP] geographic search engine

2005-01-12 Thread Richard Lynch
symbulos partners wrote: >> So often php-general is graced with the presence of people with >> multiple personalities.. or are you really the borg? :) > > What?? You used "we" a lot in your post. >>> Any body has any experience with anything similar? >> >> I coded a zip code to distance calculat

Re: [PHP] geographic search engine

2005-01-12 Thread Brian Dunning
I realized one day that at a distance of a hundred miles or less, I just didn't *CARE* about curvature of the earth, and replaced that trig with your basic Cartesian distance. True, but be aware that this is only true when all of your coordinates are in the same general latitude. For example, li

Re: [PHP] geographic search engine

2005-01-12 Thread Brian Dunning
What about UK postcodes? I don't have a source for that - looked into it once and it was too expensive. And I thought the USPS charged obscene prices... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sendmail crash

2005-01-12 Thread Richard Lynch
Michiel van der Blonk wrote: > I am having a problem with sendmail. It gives me a segfault when I use the > Mail and Mail_Mime package right when I call sendmail. > > I am using the following params > Array > ( > [host] => localhost > [port] => 25 > [auth] => 1 >

[PHP] Global Postal

2005-01-12 Thread Richard Lynch
Is anybody aware of any existing world-wide data-collection effort of postal codes in relation to geogrpahical coordinates (long/lat)? Not unlike the commercial data sets only: A) Open Source, Open Content (Commons Content? Whatever.) B) World-wide. At the granularity of *JUST* postal code <-> l

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Richard Lynch
Kelly wrote: > I found other things about this online doing google. I have not fixed > it though. I can get apache to start but PHP will not parse any > variables. It does does remove the code so I know it is running and the > mail() function can be done. It just does not contain any variable >

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Marek Kilimajer
Jochem Maas wrote: Marek Kilimajer wrote: The difference happens at parse time, so if you want to measure any difference execute php script in a loop, not loop inside php script. DOH! nice one Marek, will make an attempt to 'bash' a script together asap (I'm crap at shell scripting! but the chal

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Kelly
I found other things about this online doing google. I have not fixed it though. I can get apache to start but PHP will not parse any variables. It does does remove the code so I know it is running and the mail() function can be done. It just does not contain any variable information. I did an

Re: [PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Leif Gregory
Hello Wiberg, Wednesday, January 12, 2005, 1:40:26 AM, you wrote: W> Another company wants me to access their productinfo thorugh URL, something W> like this: W> https://www.anothercompany.com/returnValueOfProductID=1043 Oddly enough I just happened to run across something that might be useful wh

RE: [PHP] drag and drop CMS made with php

2005-01-12 Thread Chris W. Parker
Andrew Kreps on Tuesday, January 11, 2005 5:45 PM said: > I'm not entirely sure you could make this work, if you're speaking of > a web app. [snip] > I also think it would be entirely browser dependent, which can't be a > good thing. It sounds like a lot of work t

[PHP] PHP + MSSQL win32

2005-01-12 Thread Vincent DUPONT
Hi I try to use PHP with MSSQL on a WINXP station. Usually, on win32 systems this works very well, but today I can't understand the problem. I can connect and execute SELECT statements When I try to INSERT , DELETE or UPDATE a record, I have a PHP ERROR, and a MSSQL error "code 15457" in

Re: [PHP] SQL Server log file

2005-01-12 Thread Jonel Rienton
just to help out, you might wanna try and use the Profiler under the MS SQL programs group http://jonel.road14.com -- I not know English well, but I know 7 computer languages. anonymous On Jan 12, 2005, at 7:54 AM, Zouari Fourat

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-12 Thread Richard Lynch
> Well Richard, I could able to solve it by copying all > dlls into Windows\System32 directory. But still not > sure why I need to copy all dlls into system32 > directory though I have mentioned in php.ini file that > extension_directory=c:\PHP4\extensions. What does say about your php.ini file?

Re: [PHP] Data Enryption

2005-01-12 Thread Jochem Maas
Greg Donald wrote: On Wed, 12 Jan 2005 10:13:08 -, Shaun <[EMAIL PROTECTED]> wrote: I have site that allows users to upload private information to our server. We would like to encrypt the data for security reasons and only allow certain users to be able to un-encrypt the data and view it. I hav

Re: [PHP] drag and drop CMS made with php

2005-01-12 Thread Richard Lynch
Graham Anderson wrote: > is there a php based CMS that exists that allows you to drag/drop and > reorder tracks ? > something akin to itunes or winamp playlist... > > I want users to be able to the change 'order_id' field in the > 'PlaylistItems' table...basically a bunch of UPDATE statements to

Re: [PHP] geographic search engine

2005-01-12 Thread symbulos partners
> So often php-general is graced with the presence of people with > multiple personalities.. or are you really the borg? :) What?? > >> Any body has any experience with anything similar? > > I coded a zip code to distance calculater last week. > > x = 69.1 * ( zip2.lat - zip1.lat ) > y = 69.1

Re: [PHP] PHP5 sprintf() function borken

2005-01-12 Thread hitek
I ran your code through 3000 iterations and it always results in 0.09. This is on Suse 9.2, Apache 2.0.52 and php 5.0.3 > > From: Thomas Munz <[EMAIL PROTECTED]> > Date: 2005/01/11 Tue AM 11:10:37 EST > To: php-general@lists.php.net > Subject: [PHP] PHP5 sprintf() function borken > > Today i th

Re: [PHP] geographic search engine

2005-01-12 Thread symbulos partners
Brian Dunning wrote: >http://www.zipwise.com/ What about UK postcodes? -- symbulos partners -.- symbulos - ethical services for your organisation http://www.symbulos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] geographic search engine

2005-01-12 Thread Richard Lynch
Brian Dunning wrote: > On Jan 11, 2005, at 12:39 PM, Greg Donald wrote: > >> This does not take into account the curve of the earth. In addition >> you'll need a db with the latitude and longitude for each zip code. If you only want "close" things to a given location, the curvature of the earth i

Re: [PHP] geographic search engine

2005-01-12 Thread Jason Barnett
Richard: I found this post incredibly useful. Thank you! Richard Lynch wrote: If you only want "close" things to a given location, the curvature of the earth is pretty insignificant. ... I realized one day that at a distance of a hundred miles or less, I just didn't *CARE* about curvature of the e

Re: [PHP] Checking if

2005-01-12 Thread Richard Lynch
Bruno B B Magalhães wrote: > how to determine if the last char of a string is a '/'... > > The problem, a webpage can be accessed by www.domain.com/page.php or > www.domain.com/page.php/ In addition to the two fine answers posted so far: if ($string[strlen($string)-1] == '/'){ echo "It ends in

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Marek Kilimajer
Jochem Maas wrote: hi guys, I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. 2. it looks nice (easier to read!) I h

Re: [PHP] Data Enryption

2005-01-12 Thread Greg Donald
On Wed, 12 Jan 2005 10:51:31 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: > No offense intended to you sir... but why do you use a static key in > this way instead of using mcrypt? Please forgive my naivete regarding > encryption. Because not everyone's PHP is built --with-mcrypt, and not ever

Re: [PHP] php dot net auto complete search engine

2005-01-12 Thread Jochem Maas
Bret Hughes wrote: On Wed, 2005-01-12 at 05:38, Jochem Maas wrote: Richard Davey wrote: ... It's JS (what else could it be?!) - more info here: what else? spontaneous self-realising tele-kinetic voodoo. :-D We used to call that MTAM (Mental Telepathy Access Method) LOL - I knew there was a prope

Re: [PHP] SQL Server log file

2005-01-12 Thread Jochem Maas
John Nichel wrote: Zouari Fourat wrote: Hello am new to ms sql server and using it for a while, i where searching where to find sql queries log file ? some one have an idea about it ? There's a php question in there somewhere, right? John, you have to look 'beyond the surface' ;-) seriously though

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Jochem Maas
Kelly wrote: High Guys, I don't take drugs ;-) I was about to say ask the php-install list - but it looks like you have been there. I have installed PHP 5.0.3 on an Intel box running Apache 1.3 with a Solaris 9 x86 OS. When I try to restart the Apache server I get this error: Syntax error on li

Re: [PHP] Checking if

2005-01-12 Thread Bruno B B Magalhães
Richard, my solution right know is: if(substr($url,-1) != '/') { $url = $url.'/'; } Simple and fast... :) Regards, Bruno B B Magalhaes On Jan 12, 2005, at 3:37 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: how to determine if the last char of a string is a '/'... The problem, a webpag

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
Jochem Maas wrote: Mehdi Achour wrote: Because it's a change, that should be reverted, or documented. don't top post - its bad form and many people ignore topposts. Mehdi is right to say that debug_backtrace() has changed - but so has the whole engine - I don't think that function was ever meant

Re: [PHP] Data Enryption

2005-01-12 Thread Greg Donald
On Wed, 12 Jan 2005 18:09:08 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > I'm no expert on crypto (and never will be either! designing good crypto > is something best left to the very very very very best in terms of > computer science) but I think that the following function represents > very we

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
Jochem Maas wrote: Morten Rønseth wrote: Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The backtrace doesn't see class b at all, all references to it have vanished into thin air. as a side note - using a function like debug_backtrace

Re: [PHP] geographic search engine

2005-01-12 Thread Lester Caine
Symbulos Partners wrote: Brian Dunning wrote: http://www.zipwise.com/ What about UK postcodes? Expensive. There are a few postcode management sites that provide positional data against the post code, but they all cost quite a bit of money. We are working on a cut down version for key areas, wit

[PHP] Re: $_GET & $_POST simultaneously

2005-01-12 Thread Morten RÃnseth
Bostjan Skufca @ domenca.com wrote: Hello, If I create form like this ... both arrays contain appropriate variables when submitted: ::: $_GET ::: Array ( [a] => b ) ::: $_POST ::: Array ( [action] => modify ... ) Now what I am interested in is if this is valid behaviour regardin

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Marek Kilimajer wrote: Jochem Maas wrote: hi guys, I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. 2. it looks nice

Re: [PHP] Re: Offline working

2005-01-12 Thread Lester Caine
Jochem Maas wrote: Lester Caine wrote: Matthew Weier O'Phinney wrote: * Lester Caine <[EMAIL PROTECTED]>: Because of the problems working with the email version of the php what problems do you have with the email version? from what you say, and other concur, the news version is much more of a dra

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Jochem Maas
Mehdi Achour wrote: Because it's a change, that should be reverted, or documented. don't top post - its bad form and many people ignore topposts. Mehdi is right to say that debug_backtrace() has changed - but so has the whole engine - I don't think that function was ever meant to be used in the w

Re: [PHP] PHP5 Exception tutorial

2005-01-12 Thread Jochem Maas
Thomas Munz wrote: Does anybody know a good PHP5 Exception Tutorial that explain this new function step by step? http://www.zend.com/php5/articles/php5-exceptions.php http://www.php.net/~helly/php/ext/spl/classException.html http://be.php.net/manual/en/language.exceptions.php next google first wo

[PHP] sendmail crash

2005-01-12 Thread Michiel van der Blonk
Hi I am having a problem with sendmail. It gives me a segfault when I use the Mail and Mail_Mime package right when I call sendmail. I am using the following params Array ( [host] => localhost [port] => 25 [auth] => 1 [username] => account [password

Re: [PHP] Re: Offline working

2005-01-12 Thread Jochem Maas
Lester Caine wrote: Matthew Weier O'Phinney wrote: * Lester Caine <[EMAIL PROTECTED]>: Because of the problems working with the email version of the php what problems do you have with the email version? from what you say, and other concur, the news version is much more of a drag! -- PHP General

Re: [PHP] Checking if

2005-01-12 Thread Morten Rønseth
Bruno B B Magalhães wrote: Richard, my solution right know is: if(substr($url,-1) != '/') { $url = $url.'/'; } Simple and fast... :) $url = preg_replace ("|^(.*)/?$|", "\\1/", $url); Regards, Bruno B B Magalhaes On Jan 12, 2005, at 3:37 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: how

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Jochem Maas
Morten Rønseth wrote: Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The backtrace doesn't see class b at all, all references to it have vanished into thin air. as a side note - using a function like debug_backtrace() seems to be a mi

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Richard Lynch
Kelly wrote: > I have installed PHP 5.0.3 on an Intel box running Apache 1.3 with a > Solaris 9 x86 OS. When I try to restart the Apache server I get this > error: > > Syntax error on line 249 of > /etc/apache/httpd.conf: > Cannot load /usr/apache/libexec/libphp5.so into server: ld.so.1: > /usr/ap

Re: [PHP] Re: php style guides

2005-01-12 Thread Tom
Something I've laboured over for years, in various languages (same issue in perl, ASP, JSP...). My personal preference depends on how much of what is being dumped. If it's a really simple page, then do it in line, I tend to indent it as a seperate tree to the php code (ie there are two staggers)

[PHP] PHP5 Exception tutorial

2005-01-12 Thread Thomas Munz
Does anybody know a good PHP5 Exception Tutorial that explain this new function step by step? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
M. Sokolewicz wrote: Jochem Maas wrote: ... I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. consider that belief des

Re: [PHP] Re: php style guides

2005-01-12 Thread Jochem Maas
Jason Barnett wrote: Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? Please do not flame me here, different strokes for different folks! :-) ... And that's fine. The main thing is: aim for consist

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Mehdi Achour
Because it's a change, that should be reverted, or documented. didou M. Sokolewicz wrote: Torsten Roehr wrote: "Morten Rønseth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread M. Sokolewicz
Torsten Roehr wrote: "Morten Rønseth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The backtrace doesn't see class b at all, all references to it have vanished into thin air. I

Re: [PHP] php dot net auto complete search engine

2005-01-12 Thread Bret Hughes
On Wed, 2005-01-12 at 05:38, Jochem Maas wrote: > Richard Davey wrote: > ... > > It's JS (what else could it be?!) - more info here: > > what else? spontaneous self-realising tele-kinetic voodoo. :-D We used to call that MTAM (Mental Telepathy Access Method) Bret -- PHP General Mailing List

Re: [PHP] Data Enryption

2005-01-12 Thread Jason Barnett
function encrypt( $string ) { $key = '&[EMAIL PROTECTED]'; No offense intended to you sir... but why do you use a static key in this way instead of using mcrypt? Please forgive my naivete regarding encryption. $result = ''; for( $i = 1; $i <= strlen( $string ); $i

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Torsten Roehr
"Morten Rønseth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I just tried the example code at > http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 > > The backtrace doesn't see class b at all, all references to it have > vanished into thin air. > > I sp

RE: [PHP] SQL Server log file

2005-01-12 Thread Jay Blanchard
[snip] am new to ms sql server and using it for a while, i where searching where to find sql queries log file ? some one have an idea about it ? [/snip] A MS SQL list might. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Data Enryption

2005-01-12 Thread Greg Donald
On Wed, 12 Jan 2005 10:13:08 -, Shaun <[EMAIL PROTECTED]> wrote: > I have site that allows users to upload private information to our server. > We would like to encrypt the data for security reasons and only allow > certain users to be able to un-encrypt the data and view it. I have looked > at

Re: [PHP] SQL Server log file

2005-01-12 Thread John Nichel
Zouari Fourat wrote: Hello am new to ms sql server and using it for a while, i where searching where to find sql queries log file ? some one have an idea about it ? There's a php question in there somewhere, right? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP Genera

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jochem Maas
Jason Barnett wrote: indeed that page does not make it very clear, it's the generic call_back syntax, which can be used practically everywhere a callback function is expected, the array you pass can be in the form of: array($object, 'methodname') or array('classname', 'methodname') the second ve

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Jay Blanchard wrote: [snip] a, always use them (its faster/better) b, only when absolutely necessary c, go away troll and figure it out for yourself (this one is tempting, n'est pas ;-) d, something I haven't had the presence of mind to think of! [/snip] e. All of the above WTF? :-) - I assume

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The backtrace doesn't see class b at all, all references to it have vanished into thin air. I spent days trying to solve this on my own until I happened upon this thread - it appears tha

RE: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jay Blanchard
[snip] a, always use them (its faster/better) b, only when absolutely necessary c, go away troll and figure it out for yourself (this one is tempting, n'est pas ;-) d, something I haven't had the presence of mind to think of! [/snip] e. All of the above -- PHP General Mailing List (http://ww

[PHP] Re: Offline working

2005-01-12 Thread Lester Caine
Matthew Weier O'Phinney wrote: * Lester Caine <[EMAIL PROTECTED]>: Because of the problems working with the email version of the php lists, I'm forced to use the newgroup interface. Up until recently I could happily get up in the morning and 'Download Now' in Mozilla so I can scan messages quickl

Re: [PHP] array walk and class member functions

2005-01-12 Thread Tom
Thanks very much for the help - both methods work fine. I'd had a look at the array_walk manual, but didn't realise that the second param would accept an array - that's really cool! I don't like the function_exists method much, as I frequently overload class members. Not needed now as I have th

[PHP] Re: use of curly braces with string interpolation.

2005-01-12 Thread M. Sokolewicz
Jochem Maas wrote: hi guys, [[ I original posted this to php-internals because I figured that php-general would not know the answer _ it had to do with intended use of functionality (I couldn't find anything on the web about) and I figured that the guys who wrote/write php would be best equipped

Re: [PHP] php style guides

2005-01-12 Thread Jochem Maas
Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? I generally have my own preference for formatting like if ( condition ) { statements; } which personally I think is ugly and a waste of space ;-) (a

[PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-12 Thread Kelly
High Guys, I have installed PHP 5.0.3 on an Intel box running Apache 1.3 with a Solaris 9 x86 OS. When I try to restart the Apache server I get this error: Syntax error on line 249 of /etc/apache/httpd.conf: Cannot load /usr/apache/libexec/libphp5.so into server: ld.so.1: /usr/apache/bin/httpd: fa

[PHP] Re: php style guides

2005-01-12 Thread Jason Barnett
Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? Please do not flame me here, different strokes for different folks! If you're entirely new to coding in PHP ... and you don't have a codebase already

[PHP] SQL Server log file

2005-01-12 Thread Zouari Fourat
Hello am new to ms sql server and using it for a while, i where searching where to find sql queries log file ? some one have an idea about it ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jason Barnett
indeed that page does not make it very clear, it's the generic call_back syntax, which can be used practically everywhere a callback function is expected, the array you pass can be in the form of: array($object, 'methodname') or array('classname', 'methodname') the second version allows you to u

Re: [PHP] Generic question : migrating from java based RPC server to PHP

2005-01-12 Thread Ranjan K. Baisak
--- Jochem Maas <[EMAIL PROTECTED]> wrote: > generic questions suck - noone here is psychic! :-) Ohh what a answer!!! I don't think anybody is psychic. > 8 pages on PHP+SOAP: > http://www.devshed.com/c/a/Zend/PHP-SOAP-Extension/ > Thanks a lot for your updation. regards, Ranjan

[PHP] Re: Offline working

2005-01-12 Thread Matthew Weier O'Phinney
* Lester Caine <[EMAIL PROTECTED]>: > Because of the problems working with the email version of the php lists, > I'm forced to use the newgroup interface. > Up until recently I could happily get up in the morning and 'Download > Now' in Mozilla so I can scan messages quickly locally. > Since xmas

Re: [PHP] php style guides

2005-01-12 Thread Zouari Fourat
try http://pear.php.net/manual/en/standards.php On Wed, 12 Jan 2005 23:34:59 +1030, Tim Burgan <[EMAIL PROTECTED]> wrote: > Hi everyone, > > What 'rules' do you follow about styling/formatting your PHP code? Do > you follow a guide that is available online? > > I generally have my own preferenc

[PHP] Re: php style guides

2005-01-12 Thread Matthew Weier O'Phinney
* Tim Burgan <[EMAIL PROTECTED]>: > What 'rules' do you follow about styling/formatting your PHP code? Do > you follow a guide that is available online? PEAR standards are fairly well-accepted: http://pear.php.net/manual/en/standards.php > I generally have my own preference for formatting like >

[PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
hi guys, [[ I original posted this to php-internals because I figured that php-general would not know the answer _ it had to do with intended use of functionality (I couldn't find anything on the web about) and I figured that the guys who wrote/write php would be best equipped to answer. well n

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jochem Maas
Tom wrote: > Thanks very much for the help - both methods work fine. I'd had a look > at the array_walk manual, but didn't realise that the second param would > accept an array - that's really cool indeed that page does not make it very clear, it's the generic call_back syntax, which can be used pr

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Jochem Maas
darn, send button again!! (sent too early) Jochem Maas wrote: Jason Barnett wrote: Indeed! I was actually quite surprised that this wasn't the way __CLASS__ resolved... I had to code it to believe it (and I didn't even do that until after you told us __CLASS__ didn't work!) I would like to tha

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Jochem Maas
Jason Barnett wrote: Indeed! I was actually quite surprised that this wasn't the way __CLASS__ resolved... I had to code it to believe it (and I didn't even do that until after you told us __CLASS__ didn't work!) I would like to thank all of those that cared about my problem and tried to find

[PHP] php style guides

2005-01-12 Thread Tim Burgan
Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? I generally have my own preference for formatting like if ( condition ) { statements; } for all conditional statements and loops, as opposed to if (condition) { st

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jochem Maas
Jochem Maas wrote: Tom wrote: Sorry Tom, I hit the send button too early! I mean to add some context to the code below so you would (hopefully) understand what I mean: OR define the function outside of the class e.g. function aFunction($value, $key) { global $aReturnString; $aReturnStri

[PHP] Re: Generic question : migrating from java based RPC server to PHP

2005-01-12 Thread Jason Barnett
Ranjan K. Baisak wrote: This might be a very generic question. I am in a process of migrating my java based RPC server to PHP. Luckily with the help of the list I could able to make sure that all rpc and xml related function are getting excuted in Apache server. I am using Apache2 in WInXP. But sti

[PHP] Re: array walk and class member functions

2005-01-12 Thread Jason Barnett
Tom wrote: Hi I'm batting my head against a wall on this one... I have a class that has a constructor which sets some initial conditions, and then a public function that does some work. I want to be able to call this function from an external array_walk call, but when I try and reference it as $

  1   2   >