[PHP] Re: Recommendations for PHP debuggers?

2006-08-22 Thread Colin Guthrie
Larry Garfield wrote: http://www.zend.com/phpide/ I just tried to install the modular version for my existing Eclipse install. It insists it won't install without feaure org.eclipse.emf (2.2.0). Since it provides no indication of how to get such feature, I haven't been able to give it a

[PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap em/em tag around the first letter of a string? I know it has to be a combination of str_replace() and substr(), but due to my level of sleepiness I am having a lot of trouble working this

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Arpad Ray
?php foreach ($strings as $key = $string) { $strings[$key] = 'em' . $string[0] . '/em' . substr($string, 1); } ? Micky Hulse wrote: Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap em/em tag around the first letter of a string? I

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread David Tulloh
Micky Hulse wrote: Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap em/em tag around the first letter of a string? I know it has to be a combination of str_replace() and substr(), but due to my level of sleepiness I am having a lot

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Stut
David Tulloh wrote: echo em.$string{0}./em.substr($string, 1); I could be mistaken, but I seem to remember reading somewhere that using that syntax to access characters in a string has been removed from PHP6. I suggest you use $string[0] instead. -Stut -- PHP General Mailing List

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Yeah, I do need sleep... Thanks guys for the posts... exactly what I was looking for. Oh, and I did come-up with something similar right after posting: if($configs['access_key'] === true) { $pages[$i][0] = substr_replace($pages[$i][0], 'em'.$pages[$i][0]{0}.'/em', 0, 1); } Thanks again to

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Stut wrote: I could be mistaken, but I seem to remember reading somewhere that using that syntax to access characters in a string has been removed from PHP6. I suggest you use $string[0] instead. (Yes, I am sleep-typing!) Hi Stut, Ah, thanks for bringing that up... Changing this:

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key = $string) { $pages[$key][0] = 'em'.$string[0][0].'/em'.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky -- PHP General Mailing List

[PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
Hi, I want to add some functionality when calling the mysql_query(): function mysql_query($Query) { //do stuff before mysql_query($Query); //do things after } This would just be for one project where I want to record all Queries and the result of

Re: [PHP] Overriding core functions

2006-08-22 Thread Jochem Maas
Peter Lauri wrote: Hi, I want to add some functionality when calling the mysql_query(): function my_query($Query) { //do stuff before mysql_query($Query); //do things after } // or something like: class PeteDB { var $conn;

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
It really looks like I will have to write this myself :( I know it will be good for experience but like someone else has pointed out, I would rather work with someone elses code for the payment parts knowing that it has been totally debugged than getting screwed later on because I missed

Re: [PHP] Shopping cart

2006-08-22 Thread Dan McCullough
There are many payment processing script/classes/examples available that you could use. Just google around for your gateway provider, like PHP and Authorize.net, etc, or go to their site and look for a developer, API or something like that to see if they have done some examples. On 8/22/06,

Re: [PHP] Shopping cart

2006-08-22 Thread Dan McCullough
Commercial product that is good http://www.x-cart.com/ On 8/22/06, Ryan A [EMAIL PROTECTED] wrote: It really looks like I will have to write this myself :( I know it will be good for experience but like someone else has pointed out, I would rather work with someone elses code for the payment

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread tedd
At 4:29 AM -0700 8/22/06, Micky Hulse wrote: Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key = $string) { $pages[$key][0] = 'em'.$string[0][0].'/em'.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky

Re: [PHP] Re: PHP 5, Windows, and MySQL

2006-08-22 Thread mbneto
Hi, I did that but my apache+php still does not recognize the mysql extension. I get no error messages while staring the server but phpInfo does not show the mysql support... php 5.1.4, mysql 5.0.22, apache 2.0.58 On 6/27/06, Jeremy Schreckhise [EMAIL PROTECTED] wrote: Here is the direct

Re: [PHP] Overriding core functions

2006-08-22 Thread Paul Scott
On Tue, 2006-08-22 at 18:39 +0700, Peter Lauri wrote: I want to add some functionality when calling the mysql_query(): Why not simply wrap the mysql_query function in a php function? function query($whatever) { log($whatever); $ret = mysql_query($whatever); //do stuff

[PHP] --with-openssl on x64

2006-08-22 Thread Marten Lehmann
Hello, openssl is compiled for x86 on my system, so the libs are in /usr/lib64 rather than /usr/lib. But configure only looks in /usr/lib and gives me configure: error: Cannot find OpenSSL's libraries How can I change this? Regards Marten -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] --with-openssl on x64

2006-08-22 Thread Brad Bonkoski
Hmm.. in my system, /usr/lib is a sym link to /usr/lib64... but.. Try this configure option: --with-openssl[=DIR] -B Marten Lehmann wrote: Hello, openssl is compiled for x86 on my system, so the libs are in /usr/lib64 rather than /usr/lib. But configure only looks in /usr/lib and gives me

Re: [PHP] Shopping cart

2006-08-22 Thread Paul Scott
On Tue, 2006-08-22 at 05:36 -0700, Ryan A wrote: It really looks like I will have to write this myself :( We need to create a proper one, under a decent licence as a community damnit! Maybe even a generic PEAR object that can be customized/extended to connect to whatever gateway you need to?

[PHP] php-general mailing list active?

2006-08-22 Thread dpgirago
Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks, David [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php-general mailing list active?

2006-08-22 Thread Thomas Munz
maybe you should resubscribe :) on Tuesday 22 August 2006 16:31, [EMAIL PROTECTED] wrote: Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks,

RE: [PHP] php-general mailing list active?

2006-08-22 Thread Jay Blanchard
[snip] Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. [/snip] Yes, it is working -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] php-general mailing list active?

2006-08-22 Thread dpgirago
Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks Jochem, Thomas, and Jay. Anybody know Wez Furlong's email address? I had this problem once

Re: [PHP] php-general mailing list active?

2006-08-22 Thread Rory Browne
Check out lists.php.net On 8/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks Jochem,

Re: [PHP] php-general mailing list active?

2006-08-22 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks Jochem, Thomas, and Jay. Anybody know Wez Furlong's email

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Hey, There are many payment processing script/classes/examples available that you could use. Just google around for your gateway provider, like PHP and Authorize.net, etc, or go to their site and look for a developer, API or something like that to see if they have done some examples.

RE: [PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
Yes, of course I can do that. But I was just lazy and wanted to reuse the function mysql_query that I am already using. -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 7:48 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP]

Re: [PHP] Shopping cart

2006-08-22 Thread Dan McCullough
I believe you can find those out there as well, most of what you need will be available out there, you will be able to find them and then take what you need to work it into your cart, probably would be a good idea to think of all the different pieces and then find the different

RE: [PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
Yes, that could solve it. However, my question was if I can override the core functions :) Similar that I can do Parent::myFunction() in a subclass, I want to do that, but with core functions :) -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006

Re: [PHP] Shopping cart

2006-08-22 Thread Dan McCullough
Another thing to remember is that you dont want to get overwhelmed with all the work when you are going to build your own, a list of 250,000 features will never get done, many have tried, many have failed, so plan what you need to start with and build the other features later. On 8/22/06, Dan

Re: [PHP] Overriding core functions

2006-08-22 Thread Alex Turner
It may be possible to override the core function - I don't actually know. If you just define a new function with the same function it might work OK. The snag I see coming at you like a tonne of bricks is 'how do you call the original function once you have overridden it.'. This like like

Re: [PHP] php-general mailing list active?

2006-08-22 Thread dpgirago
[EMAIL PROTECTED] wrote: Would someone kindly let me know if there is activity on [EMAIL PROTECTED] I have not gotten posts for a few days now, and I'm having no luck connecting to the help, owner or admin addresses. Thanks Jochem, Thomas, and Jay. Anybody know Wez Furlong's email address?

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
You can't just define a new function with the same name. The only way I know to literally redefine the function is using the runkit extension - http://pecl.php.net/package/runkit That allows you to rename functions as well as moving them, so you could rename it to something like

RE: [PHP] Overriding core functions

2006-08-22 Thread Robert Cummings
On Tue, 2006-08-22 at 22:19 +0700, Peter Lauri wrote: Yes, of course I can do that. But I was just lazy and wanted to reuse the function mysql_query that I am already using. You could look into the runkit extension. I believe it allows this. At any rate, using mysql_xxx() is veyr low level and

Re: [PHP] Overriding core functions

2006-08-22 Thread Arpad Ray
Brad Bonkoski wrote: Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
--- Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2006-08-22 at 05:36 -0700, Ryan A wrote: It really looks like I will have to write this myself :( We need to create a proper one, under a decent licence as a community damnit! Maybe even a generic PEAR object that can be

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
I believe you can find those out there as well, most of what you need will be available out there, you will be able to find them and then take what you need to work it into your cart, probably would be a good idea to think of all the different pieces and then find the different

Re: [PHP] Overriding core functions

2006-08-22 Thread Brad Bonkoski
Some already good workarounds given for this question... BUT. Is it even possible to override a core function? Like I wrote a function called 'exit' and I got a parser error, which leads me to believe it is not even possible to override the core functions. Is this true of ALL PHP functions?

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
--- Dan McCullough [EMAIL PROTECTED] wrote: Another thing to remember is that you dont want to get overwhelmed with all the work when you are going to build your own, a list of 250,000 features will never get done, many have tried, many have failed, so plan what you need to start with

Re: [PHP] Shopping cart

2006-08-22 Thread Paul Scott
Please sign up for an account and join the project at http://gforge2.uwc.ac.za/projects/phpcart/ I have started a mailing list, which should kick in in a few hours... --Paul On Tue, 2006-08-22 at 08:47 -0700, Ryan A wrote: --- Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2006-08-22 at

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Please sign up for an account and join the project at http://gforge2.uwc.ac.za/projects/phpcart/ I have started a mailing list, which should kick in in a few hours... --Paul Hey, Signed up there, but how do i join the project? my username is ryan I think you might also want to

Re: [PHP] Shopping cart

2006-08-22 Thread Robert Cummings
On Tue, 2006-08-22 at 09:22 -0700, Ryan A wrote: Please sign up for an account and join the project at http://gforge2.uwc.ac.za/projects/phpcart/ I have started a mailing list, which should kick in in a few hours... --Paul Hey, Signed up there, but how do i join the

Re: [PHP] Shopping cart

2006-08-22 Thread Paul Scott
Hey, Signed up there, but how do i join the project? my username is ryan OK I have added you as a project admin. I think you might also want to change the project name... phpcart is just too common to think that someone else is not using for one of their products. The project name

Re: [PHP] --with-openssl on x64

2006-08-22 Thread Richard Lynch
On Tue, August 22, 2006 8:34 am, Marten Lehmann wrote: openssl is compiled for x86 on my system, so the libs are in /usr/lib64 rather than /usr/lib. But configure only looks in /usr/lib and gives me configure: error: Cannot find OpenSSL's libraries How can I change this? If passing in the

Re: [PHP] Re: PHP 5, Windows, and MySQL

2006-08-22 Thread Richard Lynch
On Tue, August 22, 2006 8:12 am, mbneto wrote: I did that but my apache+php still does not recognize the mysql extension. I get no error messages while staring the server but phpInfo does not show the mysql support... php 5.1.4, mysql 5.0.22, apache 2.0.58 Check the apache error_log file

Re: [PHP] Shopping cart

2006-08-22 Thread Stut
Ryan A wrote: Maybe APC (August php cart :D ) How about SPECS - Simple [PHP|Pluggable] E-Commerce System. I have a few thoughts about this idea and will put something together later today. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Overriding core functions

2006-08-22 Thread Richard Lynch
On Tue, August 22, 2006 6:39 am, Peter Lauri wrote: I want to add some functionality when calling the mysql_query(): function mysql_query($Query) { //do stuff before mysql_query($Query); //do things after } This would just be for one project

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Hey, Hey, Signed up there, but how do i join the project? my username is ryan OK I have added you as a project admin. Thanks I think you might also want to change the project name... phpcart is just too common to think that someone else is not using for one of their

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Maybe APC (August php cart :D ) Obviously you don't run the APC op-code cache ;) :) you got me there Rob, dont have a clue about it. Sorry if I stepped on anyones toes. Cheers! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but

Re: [PHP] Shopping cart

2006-08-22 Thread Richard Lynch
Pretty much, yeah. And apparently the next thing not to do is to run out and start coding your own shopping cart for general release, as every damn one of them got started that way. :-) On Mon, August 21, 2006 3:18 pm, Gerry D wrote: So if I understand you gentlemen correctly, these pre-builds

Re: [PHP] Shopping cart

2006-08-22 Thread Richard Lynch
And if you do NEED those 250,000 features completed in 30 days, you have no choice but to suck it up and use the least-evil of the carts out there. Which brings us back (almost) to the original question... Which pre-packaged PHP shopping cart sucks least? On Tue, August 22, 2006 11:13 am, Ryan

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Maybe APC (August php cart :D ) How about SPECS - Simple [PHP|Pluggable] E-Commerce System. I have a few thoughts about this idea and will put something together later today. -Stut What's in a name? That which we call a rose by :D Not really bothered what its

Re: [PHP] preg_match problem

2006-08-22 Thread Richard Lynch
On Mon, August 21, 2006 2:13 pm, Dave Goodchild wrote: On 21/08/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi. I have to check if the script file belongs to any ov form1.php to form6.php files. Need something like: preg_match('/form*.php/', $_SERVER['PHP_SELF']) wher * kan be any

Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
--- Richard Lynch [EMAIL PROTECTED] wrote: And if you do NEED those 250,000 features completed in 30 days, you have no choice but to suck it up and use the least-evil of the carts out there. Which brings us back (almost) to the original question... Which pre-packaged PHP shopping

Re: [PHP] Shopping cart

2006-08-22 Thread Richard Lynch
On Tue, August 22, 2006 11:52 am, Robert Cummings wrote: On Tue, 2006-08-22 at 09:22 -0700, Ryan A wrote: Please sign up for an account and join the project at http://gforge2.uwc.ac.za/projects/phpcart/ I have started a mailing list, which should kick in in a few hours... --Paul

Re: [PHP] Shopping cart

2006-08-22 Thread Paul Scott
Cron for the mailing list has done its magic, so we can move this off the php-general list, i'm sure much to the relief of all those _not_ interested in this lot ;) Please visit http://avoir.uwc.ac.za/mailman/listinfo/phpcart-devel to subscribe. --Paul On Tue, 2006-08-22 at 10:24 -0700, Ryan A

Re: [PHP] OT alternate website authentication methods

2006-08-22 Thread Andrew Kreps
On 8/18/06, Chris W. Parker [EMAIL PROTECTED] wrote: Ideas: 1. Use flash to allow the user to draw an image. If the original image created during signup is within an acceptable range of the image used to authenticate, let them in. 2. (I saw this somewhere else... don't remember where or what

[PHP] Re: php-general mailing list active?

2006-08-22 Thread Colin Guthrie
[EMAIL PROTECTED] wrote: I don't have a clue why my gmail account hasn't started to get traffic. But it's funny how we get accustomed to the exchange of ideas and cyber-contact with others. I guess I 'm having some withdrawal. ;-) Why not use gmane? I subscribe to the vast majority of my

[PHP] strange mysqli error

2006-08-22 Thread Richard K Miller
Good afternoon. I'm getting a weird mysqli error in my object destructor. Here's an example: ?php $db = new mysqli('localhost', USERNAME, PASSWORD, DATABASE); class Test { function __construct() { global $db; $db-query(SELECT

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
tedd wrote: Not meaning to wake you, but you might consider removing markup from presentation via css. If so, checkout: http://www.w3schools.com/css/css_pseudo_elements.asp Ah, good point! Lol. Looking into that now... all I want is basic access-key support/styling. Thanks for the tip. :)

Re: [PHP] Recommendations for PHP debuggers?

2006-08-22 Thread Larry Garfield
On Tuesday 22 August 2006 00:26, Lester Caine wrote: Larry Garfield wrote: I'm watching this thread closely myself, as I'd love something to use at home (on Linux) that doesn't cost what Zend does. :-) Currently I use PHPeclipse, but it is frankly not that good (the code assistance feature

Re: [PHP] --with-openssl on x64

2006-08-22 Thread Chris
Marten Lehmann wrote: Hello, openssl is compiled for x86 on my system, so the libs are in /usr/lib64 rather than /usr/lib. But configure only looks in /usr/lib and gives me configure: error: Cannot find OpenSSL's libraries Just checked ./configure and it had this option: --enable and

Re: [PHP] --with-openssl on x64

2006-08-22 Thread Chris
Chris wrote: Marten Lehmann wrote: Hello, openssl is compiled for x86 on my system, so the libs are in /usr/lib64 rather than /usr/lib. But configure only looks in /usr/lib and gives me configure: error: Cannot find OpenSSL's libraries Just checked ./configure and it had this option: