Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Kevin Waterson
This one time, at band camp, Dave M G <[EMAIL PROTECTED]> wrote: > Please understand that I was *hoping* for advice here, as Zend and PHP > are surely highly correlated. But I apologize if I came across as if I > *expected* answers. You raise an interesting point. Whilst PHP uses the Zend Engi

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
PHP List, As was suggested on this list by Paul and Richard, I've resolved the Zend studio/MySQL socket issue by creating a symbolic link from /tmp/mysql.socl to /var/run/mysqld/mysqld.sock. ( ln -s /var/run/mysqld/mysql.sock /tmp/mysql.sock ) But, clearly in my earlier attempts to find a sol

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
PHP List, My apologies to any and all that I may have offended for bringing up Zend specific issues here. I understand that PHP is developed by a huge community of developers whose efforts I appreciate very much. By stating that Zend is the company where PHP originates, I was not trying to s

Re: [PHP] GD to database directly

2006-07-14 Thread Kevin Waterson
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > I'm more concerned about the disaster recovery of a DB from a crashed > hard drive, which has been cluttered up with binary data, making data > recovery. One of the greatest benifits of binary DB storage is a single point

Re: [PHP] Image submit with mouse over

2006-07-14 Thread Tom Rogers
Hi, Saturday, July 15, 2006, 9:13:04 AM, you wrote: SE> Hi all, SE> Brand new to the list, so here's my question. I am SE> implementing a bunch of Dreamweaver templates a SE> designer has built into a PHP app, and one thing SE> she did is create a submit button (image) that SE> uses mouse o

RE: Fwd: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
Oooh, that's pretty neat. I was under the same impression as Andrew, that DEL didn't do the same thing as rm -rf ... Thanks, Mark -Original Message- From: Adam Zey [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 4:35 PM To: Andrew Kreps Cc: PHP General Mail List Subject: Re: Fwd:

Re: Fwd: [PHP] Recurs Directory Delete

2006-07-14 Thread Andrew Kreps
Hey, *that's* where the deltree functionality went. I wondered about that. I just tested that out, and it works like a charm! Thanks for the tip! On 7/14/06, Adam Zey <[EMAIL PROTECTED]> wrote: Andrew Kreps wrote: > [forwarding my response to the list, as the reply function didn't quite > wo

Re: Fwd: [PHP] Recurs Directory Delete

2006-07-14 Thread Adam Zey
Andrew Kreps wrote: [forwarding my response to the list, as the reply function didn't quite work] Actually, that's not true. 'rm -rf' removes all files, directories and subdirectories. Microsoft's del has no analogy to that (although there was a deltree command in older versions of DOS). Yo

Fwd: [PHP] Recurs Directory Delete

2006-07-14 Thread Andrew Kreps
[forwarding my response to the list, as the reply function didn't quite work] Actually, that's not true. 'rm -rf' removes all files, directories and subdirectories. Microsoft's del has no analogy to that (although there was a deltree command in older versions of DOS). You still have to manual

Re: [PHP] Image submit with mouse over

2006-07-14 Thread Skip Evans
My apologies to all. I assumed that JS questions would be entertained as the application is within a PHP app. Sorry, Skip Chris W. Parker wrote: Skip Evans on Friday, July 14, 2006 4:13 PM said: Hi all, Hey. Brand new to the list, so here's my question.

Re: [PHP] Recurs Directory Delete

2006-07-14 Thread Adam Zey
So? Windows has this thing called the "del" command that does the same thing as "rm". Regards, Adam. Mark Steudel wrote: I wish, I'm on an IIS box. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 2:09 PM To: tedd Cc: Mark Steudel; p

[PHP] Image submit with mouse over

2006-07-14 Thread Skip Evans
Hi all, Brand new to the list, so here's my question. I am implementing a bunch of Dreamweaver templates a designer has built into a PHP app, and one thing she did is create a submit button (image) that uses mouse over JS: onMouseOver="MM_swapImage('signin','','/theme/images/admin/button_s

RE: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
Thanks all for the help, I figured it out: This line was giving me grief :) doh! while( false !== ( $file == readdir( $dir ) ) ) Mark -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 12:12 PM To: Mark Steudel Cc: php-general@lists.php.net Subj

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Richard Lynch
On Fri, July 14, 2006 3:34 am, BBC wrote: >> On 7/9/06, BBC <[EMAIL PROTECTED]> wrote: > $tumbsize = 150; > $imgfile = $some_where; > $imgdst = $where_to; > header('Content-type: image/jpeg'); > list($width,$height) = getimagesize($imgfile); > $imgratio = $width/$height; > if($imgratio>1) > { > $

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Richard Lynch
On Sun, July 9, 2006 12:00 pm, BBC wrote: > Hi list... Thank for answering my questions before. I love to be a > member of > this list. Guys... I got another problem with GD library v2. I don't > know > why every time the script run the syntax which uses GD, the page > turned > becomes source code

Re: [PHP] GD to database directly

2006-07-14 Thread Richard Lynch
On Thu, July 13, 2006 6:49 pm, Kevin Waterson wrote: > This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: >> If you've benchmarked on YOUR hardware and have a proven savings, >> fine, post your tests and output. > > Already done in previous threads. Actually, to be pedantic,

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Richard Lynch
On Fri, July 14, 2006 10:57 am, Dave M G wrote: > David Tulloh, >> This sounds like a Zend Studio problem and question. >> It could possibly be a MySQL or even a phpMyAdmin question. >> It doesn't really have anything to do with PHP. >> > I realize that Zend Studio is separate from PHP, but I would

RE: [PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
I wish, I'm on an IIS box. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 2:09 PM To: tedd Cc: Mark Steudel; php-general@lists.php.net Subject: Re: [PHP] Recurs Directory Delete On Fri, July 14, 2006 2:07 pm, tedd wrote: > At 11:55 AM -

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Richard Lynch
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock As far as I know, the default for MySQL out of the box is /tmp/mysql.sock You'd have to complain to Zend Support to get a configure directive for this, if they don't already have one. On Thu, July 13, 2006 11:53 pm, Dave M G wrote: > PHP List, >

Re: [PHP] Recurs Directory Delete

2006-07-14 Thread Richard Lynch
On Fri, July 14, 2006 2:07 pm, tedd wrote: > At 11:55 AM -0700 7/14/06, Mark Steudel wrote: >>I was hoping someone could give me a hand, I'm trying to create a >> delete >>folders function that recursively deletes folders and files from a >> given >>directory. If you want to delete EVERYTHING, an

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Robert Cummings
On Fri, 2006-07-14 at 14:57, tedd wrote: > At 1:42 PM -0400 7/14/06, Robert Cummings wrote: > >You have asked a Zend specific question, the problem lies with Zend it > >would seem, and not PHP. While the two are obviously related, your > >question is not about PHP. > > > >Cheers, > >Rob. > > Rob:

Re: [PHP] Recurs Directory Delete

2006-07-14 Thread Jochem Maas
Mark Steudel wrote: > I was hoping someone could give me a hand, I'm trying to create a delete > folders function that recursively deletes folders and files from a given > directory. Here's what I have so far, but its not working I keep getting > > Warning: rmdir(wwwroot/resources/applications/44

[PHP] Re: regular expression to extract from the middle of a string

2006-07-14 Thread Adam Zey
Steve Turnbull wrote: Hey folks I don't want to "just get you to do the work", but I have so far tried in vain to achieve something... I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls between the 'cn=' and the following comm

Re: [PHP] Recurs Directory Delete

2006-07-14 Thread tedd
At 11:55 AM -0700 7/14/06, Mark Steudel wrote: >I was hoping someone could give me a hand, I'm trying to create a delete >folders function that recursively deletes folders and files from a given >directory. This works for me: before delete"); echo (""); print_r($file_array);

RE: [PHP] List Nastiness (Was: RE: [PHP] Zend Studio, phpMyAdmin, and mysql.sock)

2006-07-14 Thread Jay Blanchard
[snip] To the rest: There has been quite a bit of mean spiritedness on the list lately. I don't know if it is the weather, some strange astrological phenomenon, or something else entirely, but can we tone it down a bit? There has been way too much flame war-esque behavior lately. We're supposed t

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread tedd
At 1:42 PM -0400 7/14/06, Robert Cummings wrote: >You have asked a Zend specific question, the problem lies with Zend it >would seem, and not PHP. While the two are obviously related, your >question is not about PHP. > >Cheers, >Rob. Rob: You're certainly right, but do you think that a developer'

[PHP] Recurs Directory Delete

2006-07-14 Thread Mark Steudel
I was hoping someone could give me a hand, I'm trying to create a delete folders function that recursively deletes folders and files from a given directory. Here's what I have so far, but its not working I keep getting Warning: rmdir(wwwroot/resources/applications/44/series/25/modules/29) [functi

[PHP] List Nastiness (Was: RE: [PHP] Zend Studio, phpMyAdmin, and mysql.sock)

2006-07-14 Thread KermodeBear
Thanks Mr. Rasmussen. (o: To the rest: There has been quite a bit of mean spiritedness on the list lately. I don't know if it is the weather, some strange astrological phenomenon, or something else entirely, but can we tone it down a bit? There has been way too much flame war-esque behavior lately

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Russell Jones
Ill probably get attacked viciously for this with pitchforks and machetes, but I get sick and tired of trying to figure out regular expressions a lot of times, so I use the following functions... getSingleMatch(), getMultiMatch(), getSingleMatchBackwards() function getSingleMatch($start,$end,$co

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Kim Christensen
On 7/14/06, Steve Turnbull <[EMAIL PROTECTED]> wrote: I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls between the 'cn=' and the following comma - in this case 'emailadmin'. $pattern= "/[^=]+=([^,]+)/"; preg_match($pattern,

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Michael Rasmussen
On Sat, 15 Jul 2006 00:57:18 +0900, Dave M G wrote: > > In any case, this list is called PHP "general". Am I really so > unreasonable in thinking that asking about how to set up a PHP development > environment so that I can debug my PHP scripts without it conflicting with > the PHP database admin

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Ray Hauge
On Thursday 13 July 2006 21:53, Dave M G wrote: > PHP List, > > I am trying out Zend Studio for editing and debugging my PHP scripts. > > When I first ran it, it kept giving me this error: > Can't connect to local MySQL server through socket /tmp/mysql.sock > > After some research on the web, I fou

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Paul Nowosielski
You could make a symbolic link from /tmp/ to whereever the real socket is. Then you won't have to change your other configurations. Thank you, -- Paul Nowosielski On Thursday 13 July 2006 22:53, Dave M G wrote: > PHP List, > > I am trying out Zend Studio for editing and debugging my PHP scrip

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Robert Cummings
On Fri, 2006-07-14 at 11:57, Dave M G wrote: > David Tulloh, > > This sounds like a Zend Studio problem and question. > > It could possibly be a MySQL or even a phpMyAdmin question. > > It doesn't really have anything to do with PHP. > > > I realize that Zend Studio is separate from PHP, but I w

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dan McCullough
in phpmyadmin config.default.php you can specify the socket that it should be looking for. have you tried that? On 7/14/06, Dave M G <[EMAIL PROTECTED]> wrote: David Tulloh, > This sounds like a Zend Studio problem and question. > It could possibly be a MySQL or even a phpMyAdmin question. > It

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread Dave M G
David Tulloh, This sounds like a Zend Studio problem and question. It could possibly be a MySQL or even a phpMyAdmin question. It doesn't really have anything to do with PHP. I realize that Zend Studio is separate from PHP, but I would hardly go so far as to say it has "nothing to do with PHP

[PHP] Re: regular expression to extract from the middle of a string

2006-07-14 Thread Al
Steve Turnbull wrote: Hey folks I don't want to "just get you to do the work", but I have so far tried in vain to achieve something... I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls between the 'cn=' and the following comm

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread tg-php
I believe someone gave the regex code for it already, but if you wanted to do it the clumsy way (for those of us who are regex challenged still) here's an alternative: $str = "cn=emailadmin,ou=services,dc=domain,dc=net"; $argsarray = explode(",", $str); foreach ($argsarray as $argstr) { list

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Dave Goodchild
On 14/07/06, Steve Turnbull <[EMAIL PROTECTED]> wrote: Hey folks I don't want to "just get you to do the work", but I have so far tried in vain to achieve something... I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls betwee

[PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Steve Turnbull
Hey folks I don't want to "just get you to do the work", but I have so far tried in vain to achieve something... I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls between the 'cn=' and the following comma - in this case 'emaila

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-14 Thread David Tulloh
This sounds like a Zend Studio problem and question. It could possibly be a MySQL or even a phpMyAdmin question. It doesn't really have anything to do with PHP. You paid Zend for the product, ask them how it works. David Dave M G wrote: > PHP List, > > I am trying out Zend Studio for editing a

Re: [PHP] session_start/session_write_close creates multiple sessioncookie headers. How to fix this.

2006-07-14 Thread Mathijs
Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple ses

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Andrei
I think you should make up your mind what u display to user... image or text... Andrei BBC wrote: > >> On 7/9/06, BBC <[EMAIL PROTECTED]> wrote: >>> I don't know why every time the script run the syntax which uses GD, the >>> page turned >>> becomes source code view. So when we need th

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread BBC
> On 7/9/06, BBC <[EMAIL PROTECTED]> wrote: > > I don't know why every time the script run the syntax which uses GD, the > > page turned > > becomes source code view. So when we need that page in normal view, we had > > to push the 'back button' twice. > > I guess we would need to see some code

[PHP] Re: Multiple sessions

2006-07-14 Thread Tony Marston
I have found a way to allow multiple browser sessions regardless of which browser is being used. Read about it at http://www.tonymarston.net/php-mysql/client-clones.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Philip Thompson" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Kim Christensen
On 7/9/06, BBC <[EMAIL PROTECTED]> wrote: I don't know why every time the script run the syntax which uses GD, the page turned becomes source code view. So when we need that page in normal view, we had to push the 'back button' twice. I guess we would need to see some code samples to get thing

[PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread BBC
Hi list... Thank for answering my questions before. I love to be a member of this list. Guys... I got another problem with GD library v2. I don't know why every time the script run the syntax which uses GD, the page turned becomes source code view. So when we need that page in normal view, we had t