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

2005-01-12 Thread Wiberg
Hi there! I'm a total newbie at connecting to diffrent servers, and b2b and such stuff , so I guess this is a simple question for you guys... Another company wants me to access their productinfo thorugh URL, something like this: https://www.anothercompany.com/returnValueOfProductID=1043 If I

Re: [PHP] libphp4.so not created on upgrade

2005-01-12 Thread Rasmus Lerdorf
heath boutwell wrote: --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Well, what is created? Do you get a .libs/libphp4 file with no extension? If so, you can either just rename that to .libs/libphp4.so or run libtoolize --force and re-run ./configure -Rasmus Still no libphp4.so created by make

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

2005-01-12 Thread Zouari Fourat
u can try fopen On Wed, 12 Jan 2005 09:40:26 +0100, Wiberg [EMAIL PROTECTED] wrote: Hi there! I'm a total newbie at connecting to diffrent servers, and b2b and such stuff , so I guess this is a simple question for you guys... Another company wants me to access their productinfo thorugh

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

2005-01-12 Thread Torsten Roehr
I'm not sure if this will work, but hey, you could give it a try. class Car { public static $className = __CLASS__; public static function drive () { return self::$className; } } class Porsche extends Car { public static $className = __CLASS__; }

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

2005-01-12 Thread Torsten Roehr
Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only other solution that comes to mind is a little messy but it lets you get away with no object. Instead of calling the method statically you can use call_user_func_array() with the child class name as a parameter.

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

2005-01-12 Thread Torsten Roehr
Torsten, I also found the following link to be helpful. Check out the user notes from michael at digitalgnosis dot removethis dot com (he did something similar to what I have already suggested, i.e. call_user_func) http://www.php.net/manual/en/language.oop5.static.php Hi Jason, thanks for

[PHP] Offline working

2005-01-12 Thread Lester Caine
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 the 'Download Now' simply gets the first

[PHP] php dot net auto complete search engine

2005-01-12 Thread Zouari Fourat
Hello last days i've seen on php dot net site that the search engine has impleted a new autocomplete option that was disabled soon. anyone know why did they disable it ? is there any disadvantage with that ? i'm interested in the autocomplete option with inputs, i used it with pear :

[PHP] Data Enryption

2005-01-12 Thread Shaun
Hi, 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 the PHP encryption functions and they appear to be one way

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

2005-01-12 Thread Jochem Maas
Zouari Fourat wrote: Hello last days i've seen on php dot net site that the search engine has impleted a new autocomplete option that was disabled soon. anyone know why did they disable it ? is there any disadvantage with that ? AFAIK it was a major resource hit. The complete source of the php.net

Re: [PHP] Data Enryption

2005-01-12 Thread Dirk Kredler
Am Mittwoch, 12. Januar 2005 11:13 schrieb Shaun: Hi, 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 the PHP

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

2005-01-12 Thread Richard Davey
Hello Jochem, Wednesday, January 12, 2005, 10:22:26 AM, you wrote: last days i've seen on php dot net site that the search engine has impleted a new autocomplete option that was disabled soon. anyone know why did they disable it ? is there any disadvantage with that ? JM AFAIK it was a major

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

2005-01-12 Thread Zouari Fourat
if it was js, where's the code ? i didnt find it in the source of google.com and i havent notated any frame/iframe On Wed, 12 Jan 2005 11:22:26 +0100, Jochem Maas [EMAIL PROTECTED] wrote: Zouari Fourat wrote: Hello last days i've seen on php dot net site that the search engine has

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

2005-01-12 Thread James Lobley
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. regards, Ranjan Hi Ranjan, You might

RE: [PHP] weird upload problem

2005-01-12 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: 12 January 2005 01:59 form action=/ enctype=multipart/form-data method=post 1: input type=file

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

2005-01-12 Thread Richard Davey
Hello Zouari, Wednesday, January 12, 2005, 10:55:45 AM, you wrote: ZF if it was js, where's the code ? i didnt find it in the source of ZF google.com and i havent notated any frame/iframe It's JS (what else could it be?!) - more info here: http://uk2.php.net/search.php For Google it's on their

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

2005-01-12 Thread Jochem Maas
Zouari Fourat wrote: if it was js, where's the code ? i didnt find it in the source of google.com and i havent notated any frame/iframe your not looking very hard: first off you need to look in the source of the actual page which you pointed the list to (thanks for that btw, I had not seen this

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

2005-01-12 Thread Jochem Maas
Richard Davey wrote: ... It's JS (what else could it be?!) - more info here: what else? spontaneous self-realising tele-kinetic voodoo. :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array walk and class member functions

2005-01-12 Thread Tom
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

Re: [PHP] Re: Apache 2.0 and Sessions

2005-01-12 Thread Jason Barnett
Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) Search the archives... seriously... guaranteed you will find the answer to this. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual:

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

2005-01-12 Thread Ranjan K. Baisak
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 still not sure from where

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jochem Maas
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

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

2005-01-12 Thread Jason Barnett
By tunnelling the call through Porsche's own drive() method debug_backtrace() will contain two traces, one of them with the correct class name. I tried using reflection but reflecting car by using __CLASS__ doesn't give any information about the classes that extend it. So this doesn't work either.

[PHP] BEGINNERS READ THIS MAIL!!! was: Re: [PHP] Re: Apache 2.0 and Sessions

2005-01-12 Thread Jochem Maas
Dear Beginners, Jason Barnett has a couple links in his sig that every beginner should read for their benefit as well as ours(mine ;-): Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives:

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

2005-01-12 Thread Jochem Maas
Ranjan K. Baisak wrote: This might be a very generic question. generic questions suck - noone here is psychic! :-) (in reference to a Comment made by Martin Norland on php-db@lists.php.net - which still cracks me up everytime I think about it:

[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

[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

Re: [PHP] array walk and class member functions

2005-01-12 Thread Jochem Maas
Jochem Maas wrote: Tom wrote: snip 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;

[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) {

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

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

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

[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

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

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

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

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

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

[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

[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? sacred_cow_warningPlease do not flame me here, different strokes for different folks!/sacred_cow_warning If you're entirely new to coding in PHP ...

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

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

[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

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

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

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

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

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

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

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

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 the

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] 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 spent days

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

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] 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] 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: 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? sacred_cow_warningPlease do not flame me here, different strokes for different folks!/sacred_cow_warning :-) ... And that's

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

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

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:

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

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 to

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

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

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

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

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

[PHP] Re: $_GET $_POST simultaneously

2005-01-12 Thread Morten Rnseth
Bostjan Skufca @ domenca.com wrote: Hello, If I create form like this form name=form action=##_URI_ROOT##/entity/edit.php?a=b method=post input type=hidden name=action value=modify / ... both arrays contain appropriate variables when submitted: ::: $_GET ::: Array ( [a] = b ) ::: $_POST

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,

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

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 weak

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

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

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

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 everyone

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

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

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 is

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] 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 think i

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

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 have

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 ?php phpinfo();? say about your

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

[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] drag and drop CMS made with php

2005-01-12 Thread Chris W. Parker
Andrew Kreps mailto:[EMAIL PROTECTED] 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 to me,

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

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

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

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

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

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

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

  1   2   >