Re: [PHP] webhost --0T-->

2003-09-17 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hey, > > /* > >hmm.. whats with the weird quoting style? only david is allowed to > > use weird characters :) > */ > > Whatdayamean? as far as I know he has not copyrighted the right to be weird > ok? there are a lot of weirdos on this list and why shou

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
off the top of my head: SELECT AVG(age), SUM(salTotal) FROM blah WHERE section = 3 i'm not sure if you can use the 2 functions in the same query, you might have to break it into 2 queries. Craig -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 200

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey, > I had created a custom regex for his '%' quote so my colors work > properly on his replies. Now i'm going to have create one special > for yours :) If you do that I guess I will just have to change my quoting style everytime i send a mail :-D Cheers, -Ryan We will slaughter you all! - T

Re: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Ryan A
Hey, Thanks for replying. Actually I made that example simple, i actually need the average of 7 to 9 fieldsand i dont want to run 7 selects :-( I know its been done on elancebut how? Thanks, -Ryan > off the top of my head: > > SELECT AVG(age), SUM(salTotal) > FROM blah > WHERE section

Re: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Curt Zirzow
* Thus wrote Craig Lonsbury ([EMAIL PROTECTED]): > off the top of my head: > > SELECT AVG(age), SUM(salTotal) > FROM blah > WHERE section = 3 > > i'm not sure if you can use the 2 functions in the same query, > you might have to break it into 2 queries. Yes you can. And if you have other fields

[PHP] Need Help With gethostbyname()

2003-09-17 Thread Dan Anderson
I have a section of my script where I call gethostbyname($hostname) . For some host names that are not registered (according to register.com) I am still getting an IP address returned? What is happening? -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 3:21 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Feeling a bit brain dead, please help in maths: > averages > > > Hey, > Thanks for replying. > > Actually I made that e

Re: [PHP] Q on Regular Expressions

2003-09-17 Thread jsWalter
Thanks for the pointer, but this only deals with date/time in EPOCH range. I'm trying to handle dates pre-epoch. Thanks Walter "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote jsWalter ([EMAIL PROTECTED]): > > I have a fairly complicated regular express

[PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Well, try only the toplevel domain... For example, I have like hns345667dsvdtrt34.telia.com, I doubt that is registred, but telia.com sure is... I hope.. :S -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Dan Anderson" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED]

[PHP] Re: Q on Regular Expressions - solved

2003-09-17 Thread jsWalter
Once again, I ask a stupid question, wotk on it some more and find the answer under my nose. Thanks anyway, I have what I'm looking for. Walter BTW: If you would like to know what I did, or even look at it and comment... === /* American Standard Format - accepts SLASH or DASH

RE: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Jennifer Goodie
> > I have a section of my script where I call gethostbyname($hostname) . > > For some host names that are not registered (according to register.com) > > I am still getting an IP address returned? > > > > What is happening? > Well, try only the toplevel domain... For example, I have like > hns3456

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread DvDmanDT
Ok, I was wrong about top level stuff... My point was that you don't register every box at like register.com, you only register secondlevel.. Register.com only checks second level (I guess), while php queries the name on some dns server, which gives php another dns server and so on, until it finds

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Evan Nemerson
urch.org/bind-verisign-patch.html Djbdns patch: http://tinydns.org/djbdns-1.05-ignoreip.patch PowerDNS patch: http://www.imperialviolet.org/binary/powerdns.patch Userfriendly :) http://ars.userfriendly.org/cartoons/?id=20030917&mode=classic -- damaged ---

[PHP] innodb and persistant connections

2003-09-17 Thread daniel
Hi there why is it that innodb is playing up with persistant connections i turned it off and it seems fine for now , also sometimes mysql_query on innodb tables dont result true even though the query is fine, so therefore if ($this->query()) { do something } else { die error } sometimes dies an

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote Ryan A ([EMAIL PROTECTED]): ... % > /* % > That would be terrible for anyone behind a firewall. Leave it at once ... % % hmm.. whats with the weird quoting style? only david is allowed to % use weird characters :) ROFLMAO A comp

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Curt -- ...and then Curt Zirzow said... % % * Thus wrote Ryan A ([EMAIL PROTECTED]): % > % > /* % > >hmm.. whats with the weird quoting style? only david is allowed to % > > use weird characters :) % > */ ... % % I had created a custom regex for his '%' quote so my colors work Oh, c'mon... Y

Re: [PHP] Re: Need Help With gethostbyname()

2003-09-17 Thread Curt Zirzow
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]): > > > I have a section of my script where I call gethostbyname($hostname) . > > > For some host names that are not registered (according to register.com) > > > I am still getting an IP address returned? > > > > > > What is happening? > > > Well, tr

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hey David, % Thanks for replying. Sure thing! % % % Voteing will be allowed only to clients who register and confirm their % email % % addresses, plus only 1 vote per IP and we will be using cookies... % % /* % That would be terrible for anyone behind a

RE: [PHP] webhost --0T-->

2003-09-17 Thread Martin Towell
[snip] /* HTH & HAND */ Meant to ask you this before...whats HAND? [/snip] Looks like noone's replied to this question, it's: Have A Nice Day... HTH Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Problem sending HTML formated mail

2003-09-17 Thread Juan Carlos Borrero
- Original Message - From: "Juan Carlos Borrero" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 8:11 PM Subject: Re: [PHP] Problem sending HTML formated mail > > - Original Message - > From: "David T-G" <[EMAIL PROTECTED]> > To: "Juan Carlos Bor

Re: Fw: [PHP] Problem sending HTML formated mail

2003-09-17 Thread Curt Zirzow
* Thus wrote Juan Carlos Borrero ([EMAIL PROTECTED]): > > - Original Message - > From: "Juan Carlos Borrero" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 17, 2003 8:11 PM > Subject: Re: [PHP] Problem sending HTML formated mail > > > > > > - Original Me

[PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Hi all, I have a a timestamp in a DB (14 digits) that I want to display like I want in my pages. I tried to use strtotime, mktime and date functions with no success... it always return the current timestamp instead of the one I have stored. This is what I've done so far: for ($x = 0; $x <

Re: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:38:50 PM, you wrote: CA> Hi all, CA> I have a a timestamp in a DB (14 digits) that I want to display like I CA> want in my pages. I tried to use strtotime, mktime and date functions CA> with no success... it always return the current timestamp instead of the CA

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Thanks Tom, but using only the strtotime() and later the date() functions, the page throus the following error: Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on line 52 Now my code looks like this: $date1 = strtotime($row[lugar_lastinsert]); $date2 = date("d \de m \de Y H

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
[snip] > I have a a timestamp in a DB (14 digits) [/snip] strtotime() tries to convert textual dates into a UNIX timestamp. eg "10 September 2000" since you've supplied a 14 digit timestamp to strtotime(), the function will throw back unexpected results. can we get some sample data from the l

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cesar Aracena
Sure. One result is 20030918014916. That sound like MMDDHHMMSS to me right? Thanks, Cesar Aracena www.icaam.com.ar -Mensaje original- De: Cody Phanekham [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 18 de Septiembre de 2003 02:04 a.m. Para: [EMAIL PROTECTED] Asunto: RE: [PHP] MySQL

Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Tom Rogers
Hi, Thursday, September 18, 2003, 2:53:53 PM, you wrote: CA> Thanks Tom, but using only the strtotime() and later the date() CA> functions, the page throus the following error: CA> Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on CA> line 52 CA> Now my code looks like thi

[PHP] program_root in phpdoc

2003-09-17 Thread daniel
Hi there any phpdoc heads out there know how to set the program_root to show the exact path to the files, there is no setting for this in the config files, let me know cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] STILL NOT SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Scott, thanks for the suggestion, but my php.ini is the same as yours. And I still have the problem. Any idea why $_SESSION[] variables would loose data on my server type and not on another? Jami Moore LightSpark Digital Designs [EMAIL PROTECTED] http://www.lightsparkdigital.com/ -Original

RE: Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
I'd have to agree with Tom, it would be better to do the formatting using the DB since MySQL stores its timestamp differently than the UNIX timestamp. however, if you really want to do it in PHP you can use MySQL's function UNIX_TIMESTAMP() to convert the db timestamp to a unix timestamp, then u

<    1   2