Re: [PHP] Re: header

2008-09-17 Thread Micah Gersten
Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham

[PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Dax Solomon Umaming
Ross McKay wrote: Posting this here, because a few people responded when I mentioned not having a Linux-native data modelling tool. Apparently, MySQL Workbench should be alpha-ready by end of the month... I've been waiting for this. I'm getting tired of DBDesigner4's bugs and all. -- Dax

Re: [PHP] Re: header

2008-09-17 Thread mike
On Tue, Sep 16, 2008 at 11:40 PM, Micah Gersten [EMAIL PROTECTED] wrote: Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? That actually would be a nice thing to have, instead of having to build it yourself (considering people do it

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Luke
What is it? I'm only familiar with the MySQL tools such as Query Browser and Admin? 2008/9/17 Dax Solomon Umaming [EMAIL PROTECTED] Ross McKay wrote: Posting this here, because a few people responded when I mentioned not having a Linux-native data modelling tool. Apparently, MySQL

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Ross McKay
On Wed, 17 Sep 2008 09:00:45 +0100, Luke wrote: What is it? I'm only familiar with the MySQL tools such as Query Browser and Admin? http://dev.mysql.com/downloads/workbench/5.0.html In short, it's a data modelling tool. Such things are very handy for designing and building databases, and

[PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Colin Guthrie
Ashley Sheridan wrote: Would it be totally off topic if everyone were to say what their favourite OS was and why? I'm just a little curious as to what OS's people use in this field. Well I've been using various flavours of Linux since uni where it was used in most to the labs. It was a RH

Re: [PHP] Paypal Integration

2008-09-17 Thread Per Jessen
Richard Heyes wrote: No, there are certain terms and conditions for using Google Checkout. You have to display their logo prominently, and they say they will terminate accounts of anyone not adhering to these terms. Hmm, might not be so bad. I would think a Google logo instils trust.

[PHP] ftp_pasv - question

2008-09-17 Thread jogisarge
hello @all, i have to change my ftp connection in passive mode. now i am not sure, where i have to place the ftp_pasv statement. do i have to place it after ftp_connect or after ftp_login, or ... i hope somebody can help me ! by jogi -- View this message in context:

Re: [PHP] Paypal Integration

2008-09-17 Thread Richard Heyes
Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not). How come? Presumably there has been something that caused that? -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and

Re: [PHP] Paypal Integration

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 1:33 AM, Per Jessen [EMAIL PROTECTED] wrote: Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not). Germany has also advised it's citizens to not use Chrome due

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') head base href=?php echo

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Micah Gersten wrote: Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com off on a tangent.. I made this some time ago which is rather useful: class

Re: [PHP] Paypal Integration

2008-09-17 Thread Per Jessen
Richard Heyes wrote: Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not). How come? Presumably there has been something that caused that? It was Google Chrome that prompted it,

Re: [PHP] ftp_pasv - question

2008-09-17 Thread Wolf
jogisarge [EMAIL PROTECTED] wrote: hello @all, i have to change my ftp connection in passive mode. now i am not sure, where i have to place the ftp_pasv statement. do i have to place it after ftp_connect or after ftp_login, or ... i hope somebody can help me ! by jogi Sure,

Re: [PHP] Paypal Integration

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 5:08 AM, Richard Heyes [EMAIL PROTECTED] wrote: Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not). How come? Presumably there has been something that

[PHP] Making array to string

2008-09-17 Thread Hunt Jon
Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to something like: Good morning Good afternoon Good evening Good night.

RE: [PHP] Making array to string

2008-09-17 Thread Jay Blanchard
[snip] Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to something like: Good morning Good afternoon Good evening Good

Re: [PHP] Making array to string

2008-09-17 Thread Aschwin Wesselius
Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to something like: Good morning Good afternoon Good

Re: [PHP] Making array to string

2008-09-17 Thread Hunt Jon
Wow! Thanks all. It seems `implode` is what I wanted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to something like: Good

[PHP] Email Verification

2008-09-17 Thread Tom Chubb
Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the end user, what are the best methods? I have

[PHP] Pear XML parser finding nothing in ATOM / Movable Type feed

2008-09-17 Thread John Allsopp
Hi I know nothing about Pear, so I don't know how to debug this: I've got a newly installed Movable Type blog with a couple of entries in it, and I just found from php.net the pear classes to parse an RSS feed, parser.php and rss.php, and this code from the PEAR site works require_once

[PHP] Re: Email Verification

2008-09-17 Thread Al
Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the end user, what are the

Re: [PHP] Email Verification

2008-09-17 Thread Richard Heyes
Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the end user, what are the best methods? The

Re: [PHP] Email Verification

2008-09-17 Thread Per Jessen
Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? 1) check for a valid address syntax - that's easily done with a simply regex (leaving the most obscure variations out). 2) check that the domain-name exists and has an A record. /Per Jessen, Zürich

Re: [PHP] Email Verification

2008-09-17 Thread Per Jessen
Richard Heyes wrote: I have been looking at getmxrr and the examples feature some good advice, etc. One that I've found that I'm thinking of using is http://www.tienhuis.nl/php-email-address-validation-with-verify-probe which tries to connect to the SMTP server as well as mx lookup, etc.

[PHP] Re: Pear XML parser finding nothing in ATOM / Movable Type feed

2008-09-17 Thread Nathan Rixham
John Allsopp wrote: Hi I know nothing about Pear, so I don't know how to debug this: I've got a newly installed Movable Type blog with a couple of entries in it, and I just found from php.net the pear classes to parse an RSS feed, parser.php and rss.php, and this code from the PEAR site

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Robert Cummings
On Tue, 2008-09-16 at 20:11 +0100, Ashley Sheridan wrote: Would it be totally off topic if everyone were to say what their favourite OS was and why? I'm just a little curious as to what OS's people use in this field. I originally started using Linux 8 years ago at my first job out of school.

Re: [PHP] Making array to string

2008-09-17 Thread Nathan Rixham
Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to

Re: [PHP] Making array to string

2008-09-17 Thread Eric Gorr
On Sep 17, 2008, at 10:54 AM, Nathan Rixham wrote: Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good

Re: [PHP] Email Verification

2008-09-17 Thread Stut
On 17 Sep 2008, at 14:20, Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Philip Thompson
On Sep 16, 2008, at 6:26 PM, tedd wrote: At 8:11 PM +0100 9/16/08, Ashley Sheridan wrote: Would it be totally off topic if everyone were to say what their favourite OS was and why? I'm just a little curious as to what OS's people use in this field. Obviously, mine is Mac and OSX 10.4.11.

Re: [PHP] Email Verification

2008-09-17 Thread tedd
At 2:20 PM +0100 9/17/08, Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the

[PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread John Biroldi
This is a 6 month contract, but the client has typically extended in the past. No C2C. Contract will be W2 based (all inclusive). If interested, please contact me ASAP. THANKS! Description Requirements: * This role will supervise the efforts of individuals who do not report to

[PHP] Re: Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Nathan Rixham
John Biroldi wrote: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. hate to be the one to say the obvious.. but this is a *PHP* list -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Sudheer
Robert Cummings wrote: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented

[PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying the servername in the 'Server Name' column of my results (nothing appears, the column is just blank). servername and steps are the important

Re: [PHP] Re: header

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 2:31 AM, Nathan Rixham [EMAIL PROTECTED] wrote: off on a tangent.. I made this some time ago which is rather useful: $url = new url('http://php.net/some.page'); echo $url; echo $url-scheme; Why would you need this with parse_url() ? Seems like that function is

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying the servername in the 'Server Name' column of my results (nothing

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Jochem Maas
Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Robert Cummings
On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. Anyone else not

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 2:30 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED] wrote: What I want to do is find the top 10 servers where the column steps =

[PHP] Re: Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread tedd
At 6:20 PM +0100 9/17/08, Nathan Rixham wrote: John Biroldi wrote: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. hate to be the one to say the obvious.. but this is a *PHP* list Yep, I

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java,

RE: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Jay Blanchard
[snip] * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. Anyone else not see PHP in the above? [/snip] Nope. I see 2 P's, but no H -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Paypal Integration

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 02:10 -0700, mike wrote: On Wed, Sep 17, 2008 at 1:33 AM, Per Jessen [EMAIL PROTECTED] wrote: Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not).

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Robert Cummings
On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: Not to defend thisBUT There are places that use multiple platforms. My company uses .NET and PHP for different things. Also recruiters will often target people who have related knowledge to what they're looking for. I.E. looking

Re: [PHP] Re: Email Verification

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 09:59 -0400, Al wrote: Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 2:56 PM, Robert Cummings [EMAIL PROTECTED]wrote: On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: Not to defend thisBUT There are places that use multiple platforms. My company uses .NET and PHP for different things. Also recruiters will often target

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: *

[PHP] Install problem

2008-09-17 Thread Illó Gábor
Hello I have this error when i type make: ml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -o libphp5.la /usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Stut
On 16 Sep 2008, at 23:54, tedd wrote: At 7:40 PM +0100 9/16/08, Stut wrote: On 16 Sep 2008, at 15:59, tedd wrote: Then one day, M$ sent out notice that they would no longer support QuickBasic and that was the end of that. All of our current, and past work, was on a dead-end street. We were

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Bastien Koert
On Wed, Sep 17, 2008 at 4:13 AM, Ross McKay [EMAIL PROTECTED] wrote: On Wed, 17 Sep 2008 09:00:45 +0100, Luke wrote: What is it? I'm only familiar with the MySQL tools such as Query Browser and Admin? http://dev.mysql.com/downloads/workbench/5.0.html In short, it's a data modelling

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 2:30 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED] wrote: What

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
You'll want to change your Order By statement to 'ORDER BY CountSteps DESC'. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vinny Gullotta wrote: echo $query; yields SELECT servername, COUNT(steps) as CountSteps FROM monitoring WHERE steps =

Re: [PHP] Paypal Integration

2008-09-17 Thread mike
On Wed, Sep 17, 2008 at 11:56 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: It's probably just so they can get their name out there a bit, to let others know they have a checkout system. I reckon they'll probably drop that condition once they are more popular in that area. Well obviously they

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Jason Pruim
On Sep 17, 2008, at 3:24 PM, Stut wrote: On 16 Sep 2008, at 23:54, tedd wrote: At 7:40 PM +0100 9/16/08, Stut wrote: On 16 Sep 2008, at 15:59, tedd wrote: Snail-mail spam relies upon the same basic fact that electronic spam does... everyone hates it until it offers them something they

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Sancar Saran
On Wednesday 17 September 2008 22:00:48 Dan Joseph wrote: But again, I'm not defending the guy. Let him fight for himself. :) Fight for himself ? He can't. I'm pretty sure he did not know anything about that mail. And if it was true they search microsoft oriented and this list was't very

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 15:36 -0400, Jason Pruim wrote: On Sep 17, 2008, at 3:24 PM, Stut wrote: On 16 Sep 2008, at 23:54, tedd wrote: At 7:40 PM +0100 9/16/08, Stut wrote: On 16 Sep 2008, at 15:59, tedd wrote: Snail-mail spam relies upon the same basic fact that electronic spam

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
Still no luck displaying the stupid servername. Any other things I can try? Micah Gersten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You'll want to change your Order By statement to 'ORDER BY CountSteps DESC'. Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying the servername in the 'Server Name' column of my results (nothing

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
Do var_dump($i) in the loop to see if you're getting the data you want. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vinny Gullotta wrote: Still no luck displaying the stupid servername. Any other things I can try? Micah Gersten [EMAIL PROTECTED]

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Jochem Maas
Ashley Sheridan schreef: On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development

Re: [PHP] Install problem

2008-09-17 Thread Jochem Maas
Illó Gábor schreef: Hello I have this error when i type make: ml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -o libphp5.la /usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
var_dump($i); looks messy, but I can see the server names in there and they are the correct names. Micah Gersten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do var_dump($i) in the loop to see if you're getting the data you want. Thank you, Micah Gersten onShore Networks

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
What is the key for the server name? That's what you need when you output it. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vinny Gullotta wrote: var_dump($i); looks messy, but I can see the server names in there and they are the correct names. Micah

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 4:21 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: var_dump($i); looks messy, but I can see the server names in there and they are the correct names. Micah Gersten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do var_dump($i) in the loop to see if you're

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
var_dump looks like this: array(2) { [0]= string(9) wehost006 [1]= string(2) 72 } array(2) { [0]= string(8) H7848-49 [1]= string(2) 71 } array(2) { [0]= string(7) H7853-2 [1]= string(2) 70 } array(2) { [0]= string(7) H7842-2 [1]= string(2) 64 } array(2) { [0]= string(9) WEHOST005 [1]=

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
If by key you mean the column in the database, it's called: servername Micah Gersten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the key for the server name? That's what you need when you output it. Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
That's your problem, you need to use mysql_fetch_assoc instead of mysql_fetch_row. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vinny Gullotta wrote: var_dump looks like this: array(2) { [0]= string(9) wehost006 [1]= string(2) 72 } array(2) { [0]=

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Dan Joseph
On Wed, Sep 17, 2008 at 4:30 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: If by key you mean the column in the database, it's called: servername Micah Gersten [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is the key for the server name? That's what you need when you output

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
I meant key in the array that was returned by MySQL. I answered you in my other post. The array was numerically index based instead of column based. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Vinny Gullotta wrote: If by key you mean the column in the

Re: [PHP] SQL outer join problem

2008-09-17 Thread Liz Kim
I've tried using the same php.ini file and phpinfo() shows the same info for both servers. I think I've narrowed the problem down a little bit though. After looking into the Driver Manager's log and I found that SQLExtendedFetch is being called on server 2 (incomplete result) and SQLFetch on

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Vinny Gullotta
That was it!!! Thank you all so much for your help!!! =D Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Sep 17, 2008 at 4:30 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: If by key you mean the column in the database, it's called: servername Micah Gersten [EMAIL

[PHP] SQLExtendedFetch

2008-09-17 Thread Liz Kim
I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server. When the script is ran on web server #1, all the results are

Re: [PHP] SQLExtendedFetch

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 15:30 -0700, Liz Kim wrote: I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server.

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Jochem Maas
Dan Joseph schreef: On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta [EMAIL PROTECTED]wrote: ... $i[servername] Try: $i['servername'] notice the ' and ' around the name. I've heard you can do w/o those, but I've had issues in the past where it didn't work. ITs also good practice to use

[PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Nathan Rixham
Vinny Gullotta wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying the servername in the 'Server Name' column of my results (nothing appears, the column is just blank). servername and

Re: [PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Micah Gersten
While it's true that '.' concatenates and ',' is a list separator, The comma is actually more appropriate in this instance since you are just outputting each piece. It saves the overhead of concatenation before output. Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Nathan Rixham
learn something new every day! cheers Micah :) Micah Gersten wrote: While it's true that '.' concatenates and ',' is a list separator, The comma is actually more appropriate in this instance since you are just outputting each piece. It saves the overhead of concatenation before output. Thank

[PHP] Re: SQLExtendedFetch

2008-09-17 Thread Nathan Rixham
Liz Kim wrote: I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server. When the script is ran on web server #1,

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-17 Thread Ross McKay
Bastien Koert wrote: what about dia on llinux? Not quite as nice as visio...but livable The Enterprise Architect version of Visio lets you add column definitions to your entities, add foreign key relationships, add indices, add comments at the table and column level, and then generate a build

Re: [PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Chris
1: SQL in mysql queries /should/ use backticks (`) around database, table and column names, stop's them getting confused with variables or reserved words (like timestamp) and saves you future trouble :) .. which is a mysql-ism - no other database supports this. As soon as you need to use

Re: [PHP] SQL outer join problem

2008-09-17 Thread Chris
Liz Kim wrote: I've tried using the same php.ini file and phpinfo() shows the same info for both servers. I think I've narrowed the problem down a little bit though. After looking into the Driver Manager's log and I found that SQLExtendedFetch is being called on server 2 (incomplete result) and

Re: [PHP] SQLExtendedFetch

2008-09-17 Thread Chris
If you have Apache on IIS, why not go MySQL. It's a fair bit faster I've found, and a darn site easier to work with; because changing a web server is a lot easier than rewriting an app to use another database ;) -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General

Re: [PHP] Email Verification

2008-09-17 Thread Lupus Michaelis
Richard Heyes a écrit : New domain name extensions can be accounted for easily, eg: \.(?:[a-z]){2,4} It excludes .museum tld. -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php