[PHP] DELIVERY REPORTS ABOUT YOUR E-MAIL

2005-07-06 Thread Mail Delivery Subsystem
Dear user php-general@lists.php.net, We have received reports that your email account was used to send a large amount of unsolicited commercial e-mail during this week. Probably, your computer was infected by a recent virus and now runs a hidden proxy server. We recommend that you follow the in

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 5:31 PM, Edward Vermillion wrote: On Jul 6, 2005, at 5:17 PM, Edward Vermillion wrote: On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote: of leap years between the two dates. Leap years occur every 4 years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88

[PHP] confirm subscribe to php-general@lists.php.net

2005-07-06 Thread mcleisson
-MENSAGEM ORIGINAL- De: [EMAIL PROTECTED] Enviada em: Qua, 06 Jul 2005 23:57:37 Assunto: Res: confirm subscribe to php-general@lists.php.net >Hi! This is the ezmlm program. I'm managing the >php-general@lists.php.net mailing list. > >I'm working for my owner, who can be reached >at [EMA

[PHP] SPAM!!! Hi

2005-07-06 Thread Returned mail
-- Début de Rapport SpamAssassin - Ce message est probablement du SPAM (message non sollicité envoyé en masse, publicité, escroquerie...). Cette notice a été ajoutée par le système d'analyse "SpamAssassin" sur votre serveur de courrier "servweb.santerne.fr", pou

Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1

2005-07-06 Thread Dan Rossi
On 07/07/2005, at 12:29 PM, Rasmus Lerdorf wrote: Well, where is it? Probably in a libs or .libs directory. -Rasmus You aint the Demigod for nothing you know :P iElectro:/usr/share/php-5.1.0b2/ext/hello root# gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/us

Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1

2005-07-06 Thread Rasmus Lerdorf
Dan Rossi wrote: > > On 07/07/2005, at 11:43 AM, Rasmus Lerdorf wrote: > >>> >> >> Yeah, the OSX build is a bit messed up right now. You can fix it >> manually by doing a copy-paste of the final link line and replace >> hello.lo with hello.o >> >> -Rasmus >> >> > > thanks mate however I get fil

Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1

2005-07-06 Thread Dan Rossi
On 07/07/2005, at 11:43 AM, Rasmus Lerdorf wrote: Yeah, the OSX build is a bit messed up right now. You can fix it manually by doing a copy-paste of the final link line and replace hello.lo with hello.o -Rasmus thanks mate however I get file cannot be found, i even tried to symlink it

Re: [PHP] Compiling the example hello world extension on OSX with PHP 5.1

2005-07-06 Thread Rasmus Lerdorf
Dan Rossi wrote: > Hi there I am trying to compile the demo example hello world extension > on OSX with no luck I keep getting errors when trying to compile. > > iElectro:/usr/share/php-5.1.0b2/ext/hello electroteque$ make > gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC >

[PHP] Compiling the example hello world extension on OSX with PHP 5.1

2005-07-06 Thread Dan Rossi
Hi there I am trying to compile the demo example hello world extension on OSX with no luck I keep getting errors when trying to compile. iElectro:/usr/share/php-5.1.0b2/ext/hello electroteque$ make gcc -dynamic -flat_namespace -bundle -undefined suppress -DPHP_ATOM_INC -I/usr/share/php-5.1.0b2/

[PHP] Re: help, no jpeg support compiled in

2005-07-06 Thread Christopher J. Bottaro
Richard Lynch wrote: > On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said: >> Warning: imagecreatefromstring() [function.imagecreatefromstring]: No >> JPEG support in this PHP build >> >> This is how I configured my php: >> >> ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 5:35 pm, Dan Rossi said: > > On 07/07/2005, at 10:26 AM, Richard Lynch wrote: >> "slow" switch > > You're a funny man Richard. So how is there overhead using callbacks if > you dont mind me asking ? I believe the callbacks imply a function stack, pushing/popping arguments, and

Re: [PHP] help, no jpeg support compiled in

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said: > Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG > support in this PHP build > > This is how I configured my php: > > ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs > --with-gd --with-z

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
Hi Richard - like I said, whatever the merits of the situation, that's the query that the ISP is not permitting. As soon as I change that, they'll reactivate the account. The ISP is PowWeb if anyone else wants to take it up with them; I've already talked myself red in the face. On Jul 6,

RE: [PHP] iCalendar creation not working with Outlook

2005-07-06 Thread Daevid Vincent
> *IS* it a Lunar based event, rather than Gregorian?... Honestly, I don't even know what the difference is. All I know is I want an event to appear on the date/time I gave it. I believe that error message is NOT the true problem (google searches all point to "\n" being the culprit) > > It works

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 1:43 pm, Brian Dunning said: > I am cross-posting this to the PHP and the MySQL lists because I'm > not sure in which technology my solution will lie. > > I have a pretty busy PHP/MySQL site that executes the following query > a lot: Define "a lot" Every page hit? > select c

[PHP] help, no jpeg support compiled in

2005-07-06 Thread Christopher J. Bottaro
Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build This is how I configured my php: ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs --with-gd --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib I also tried with /usr inste

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Robert Cummings
On Wed, 2005-07-06 at 20:26, Richard Lynch wrote: > On Wed, July 6, 2005 3:08 pm, Robert Cummings said: > >> > Well i do find a performance issue running a heap of switches in PHP > >> so > >> > I could presume the same here. > >> > >> I believe that what's supposed to happen, in theory, is that th

Re[6]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello Richard, Thursday, July 7, 2005, 1:16:29 AM, you wrote: RL> You've just made my point. RL> The actual data tuple returned in both cases is a long, if there RL> is a user to match. This is where we differ :) I don't believe MySQL will return an entire longs worth of data (typically 4 bytes

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Dan Rossi
On 07/07/2005, at 10:26 AM, Richard Lynch wrote: "slow" switch You're a funny man Richard. So how is there overhead using callbacks if you dont mind me asking ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 3:08 pm, Robert Cummings said: >> > Well i do find a performance issue running a heap of switches in PHP >> so >> > I could presume the same here. >> >> I believe that what's supposed to happen, in theory, is that the >> compiler >> *CONVERTS* the swith statement to a bunch of

Re: Re[4]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 4:21 pm, Richard Davey said: > RL> And in the case case where a row is returned, the id will probably > RL> be the same number of bytes as a count(*): a 32-bit integer. > > Say you've got user number 20,000 in a table. He only exists once, so > count() only returns 1. Bring bac

Re: [PHP] iCalendar creation not working with Outlook

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 4:28 pm, Daevid Vincent said: > I'm trying to implement this iCalendar/vCalendar that I saw at this URL > http://www.phpbuilder.com/columns/chow20021007.php3 > > Here is the error I get in Outlook: > "This error can appear if you have attempted to save a recurring Lunar > appoi

Re: [PHP] iCalendar creation not working with Outlook

2005-07-06 Thread Rasmus Lerdorf
Daevid Vincent wrote: > $db = mysql_connect ("localhost","user","password") or die ("Could not > connect to SQL server."); > mysql_select_db ("rbc",$db) or die ("Could not select RBC Database"); > > if (isset($_GET['id']) && intval($_GET['id'] > 0)) > { > $

[PHP] iCalendar creation not working with Outlook

2005-07-06 Thread Daevid Vincent
I'm trying to implement this iCalendar/vCalendar that I saw at this URL http://www.phpbuilder.com/columns/chow20021007.php3 Here is the error I get in Outlook: "This error can appear if you have attempted to save a recurring Lunar appointment in iCalendar format. To avoid this error, set the appoi

Re: [PHP] trouble with file upload page using PHP

2005-07-06 Thread Richard Davey
Hello Bruce, Thursday, July 7, 2005, 12:10:30 AM, you wrote: BG> I get an error stating: BG> "Warning: BG> copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf): BG> failed to open stream: Permission denied in BG> /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on

Re[4]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello Richard, Wednesday, July 6, 2005, 10:18:05 PM, you wrote: RL> Actually, I think the "SELECT id" will transfer less data in the RL> cases where no rows are returned. Yes, I would agree with that. RL> There are no rows to return, after all, whereas the count(*) will RL> always return exactl

[PHP] trouble with file upload page using PHP

2005-07-06 Thread Bruce Gilbert
I am testing a page that uploads a file to my server using PHP. I get an error stating: "Warning: copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf): failed to open stream: Permission denied in /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on line 4 Could not c

Re: [PHP] Report

2005-07-06 Thread Richard Lynch
On Tue, July 5, 2005 2:55 pm, Rene Brehmer said: > > Documented research indicate that on Mon, 4 Jul 2005 15:22:51 +0100, Gaby > vanhegan wrote: > >> On 4 Jul 2005, at 15:09, Miles Thompson wrote: >> >>> There is a lot of JUNK showing up on this list, and for me this one >>> was the last straw. Fro

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 5:17 PM, Edward Vermillion wrote: On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote: of leap years between the two dates. Leap years occur every 4 years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and 7/6/05 and Just to nitpick... :-) http://en.wiki

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 4:44 PM, Philip Hallstrom wrote: of leap years between the two dates. Leap years occur every 4 years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and 7/6/05 and Just to nitpick... :-) http://en.wikipedia.org/wiki/Leap_year The Gregorian calendar adds an

Re: [PHP] who can do this without the recursion

2005-07-06 Thread Richard Lynch
On Tue, July 5, 2005 3:08 pm, Rene Brehmer said: > Documented research indicate that on Tue, 5 Jul 2005 14:07:21 -0700 (PDT), > "Richard Lynch" wrote: > >> You'd think having done a zillion of these in my Grad School days would >> have made more of an impression... >> >> Mostly it impressed me that

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Robert Cummings
On Wed, 2005-07-06 at 17:51, Richard Lynch wrote: > On Tue, July 5, 2005 10:55 pm, Dan Rossi said: > > > > On 06/07/2005, at 3:43 PM, Rasmus Lerdorf wrote: > > > >> The SWITCH vm was originally just a big switch(opcode) { case 1: ...; > >> case 2: ...' } It's a bit different now, but you can think

Re: [PHP] Re: Building sapi_apache2

2005-07-06 Thread Richard Lynch
On Tue, July 5, 2005 3:40 pm, Gaby vanhegan said: >> I suppose I should go read some documentation about what sapi_apache2 >> actually means/does... Nah. I won't have time to play with it anyway. >> Why torture myself? > > I'll send you a beer? :) My current theory, with no supporting evidence

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Richard Lynch
On Tue, July 5, 2005 10:55 pm, Dan Rossi said: > > On 06/07/2005, at 3:43 PM, Rasmus Lerdorf wrote: > >> The SWITCH vm was originally just a big switch(opcode) { case 1: ...; >> case 2: ...' } It's a bit different now, but you can think of it in >> those terms. Decent compilers should theoreticall

[PHP] Re: Help - need to quickly optimize a record count!

2005-07-06 Thread Peter
Or even make .txt file with the cron and just include that txt file in your php Then in backgrond with perl(php) and cron you will udate that .txt file :-) So it will be 1 quesry per 15 minutes :-) Peter [EMAIL PROTECTED] wrote: Brian Dunning <[EMAIL PROTECTED]> wrote on 07/06/2005 04:43:11

Re: [PHP] date() problem

2005-07-06 Thread Philip Hallstrom
of leap years between the two dates. Leap years occur every 4 years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and 7/6/05 and Just to nitpick... :-) http://en.wikipedia.org/wiki/Leap_year The Gregorian calendar adds an extra day to February, making it 29 days long, in year

Re: [PHP] xmdom clone(true) & CDATA + html(?) encoding

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 1:38 am, ChaosMedia > WebDev said: > Richard Lynch wrote: > >> >>In my limited XML experience... >> >>I have found that firing up the fancy XML parsers and tree-walkers and >>XML-writers and all that stuff, pretty much entailed a *LOT* more work >>than just hacking the file dir

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 2:26 am, Xuefer said: > but any manage to compile switch/goto vm? > CFLAGS=-g3 -O3 -Wall -march=pentium3 -pipe > it takes all my memory and bunch of swap without ending the compilation > gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) MAYBE try that "NO-INLINE"

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 3:59 PM, Richard Lynch wrote: 365.24 is an appoximation. Sooner or later, it's gonna bit you in the butt. If you want somebody's age accurately, you're probably going to have to do it the hard way. Something like this might work: $age--; //They were born in a late

Re: [PHP] date() problem

2005-07-06 Thread Kristen G. Thorson
Ryan A wrote: Hi, I'm confused, this should give me the age as 17 instead of 16...but it does not...any ideas why? Thanks, Ryan Subtracting the timestamps gives you 536457600 seconds, which is correct, but ( $dif_s / 60 / 60 / 24 ) gives you the actual number of days between these t

[PHP] report

2005-07-06 Thread Mail Delivery Subsystem
Dear user php-general@lists.php.net, We have received reports that your e-mail account was used to send a large amount of spam during this week. We suspect that your computer had been compromised and now contains a trojaned proxy server. Please follow our instruction in the attached text file i

Re: [PHP] Loops inside of a loop

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 10:14 am, Moises Zaragoza said: > I was trying to get a MySQL Loop to run in side of a loop but I have to > reset the MySQL Pointer so that It can start again for as long as my loops > goes on. http://php.net/mysql_data_seek -- Like Music? http://l-i-e.com/artists.htm -- P

Re: Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 10:43 am, Richard Davey said: > Hello Marek, > > Wednesday, July 6, 2005, 3:15:58 PM, you wrote: > > MK> You can select just the id, and provided that the query returns just > MK> zero or one row, you can spare one function call. > > Sure that will work fine - but I fail to see

[PHP] Re: Help - need to quickly optimize a record count!

2005-07-06 Thread SGreen
Brian Dunning <[EMAIL PROTECTED]> wrote on 07/06/2005 04:43:11 PM: > I am cross-posting this to the PHP and the MySQL lists because I'm > not sure in which technology my solution will lie. > > I have a pretty busy PHP/MySQL site that executes the following query > a lot: > > select count(*) as

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
It is indexed, and it's fast, but nevertheless my ISP won't allow it any longer. At least not as often as I need it. On Jul 6, 2005, at 2:10 PM, Philip Hallstrom wrote: If you have an index on the terms table that query should return almost instantly... Anyway, I'd start there first...

[PHP] Re: Help - need to quickly optimize a record count!

2005-07-06 Thread Matthew Weier O'Phinney
* Brian Dunning <[EMAIL PROTECTED]>: > I am cross-posting this to the PHP and the MySQL lists because I'm > not sure in which technology my solution will lie. > > I have a pretty busy PHP/MySQL site that executes the following query > a lot: > > select count(*) as `count` from terms; > > My MyS

Re: [PHP] RH 9: Installing PHP 4.3

2005-07-06 Thread Richard Lynch
If you're gonna be living in RH9 and PHP 4.3.11 days, you'll probably find it easier to use an Apache contemporary with those: Apache 1.3.x Just my opinion. YMMV On Wed, July 6, 2005 11:39 am, Todd Cary said: > Until I can get Fedora 4 to install on my computer, I need to go back to > RH 9 whi

Re: [PHP] recompiling php

2005-07-06 Thread blackwater dev
I install it with this: > --with-apxs=/path/to/apxs So what is the order? I cd'd into my php directory and did: ./configure with my options make make install Then I went into my apache folder and did ./configure with options make make install Then rebooted and started apache but when I look at

Re: [PHP] date() problem

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 12:07 pm, Ryan A said: > I'm confused, this should give me the age as 17 instead of 16...but it > does > not...any ideas why? > > $age="1988-07-06"; > > $day1=strtotime($age); > $day2 = strtotime(date("Y-m-d")); > $dif_s = ($day2-$day1); > $dif_d = ($dif_s/60/60/24); > $age =

Re: [PHP] Use of + with arrays

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 12:43 pm, Bob Stearns said: > In a note on 31-Jul-2002 added to the unshift function the writer > stated that array2=arrray1+array2 was equivalent to > unshift(arrayw,list(array1)). My php seems to take strong objection to > this [Fatal error: Unsupported operand types in > /v

[PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: select count(*) as `count` from terms; My MySQL account was disabled by my ISP because this que

[PHP] Use of + with arrays

2005-07-06 Thread Bob Stearns
In a note on 31-Jul-2002 added to the unshift function the writer stated that array2=arrray1+array2 was equivalent to unshift(arrayw,list(array1)). My php seems to take strong objection to this [Fatal error: Unsupported operand types in /var/www/html/GEM/etFlush/embryo_newFrozen.php on line 41

[PHP] Re: pear channel

2005-07-06 Thread Matthew Weier O'Phinney
* blackwater dev <[EMAIL PROTECTED]>: > I am trying to install something via pear and have tried to add the > channels from two different programs but get errors each time: > > pear channel-discover pear.chiaraquartet.net > PHP Warning: PHP Startup: Unable to load dynamic library > './php_mcrypt.s

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 2:35 PM, Edward Vermillion wrote: On Jul 6, 2005, at 2:07 PM, Ryan A wrote: Hi, I'm confused, this should give me the age as 17 instead of 16...but it does not...any ideas why? Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] pear channel

2005-07-06 Thread blackwater dev
Hello, I am trying to install something via pear and have tried to add the channels from two different programs but get errors each time: pear channel-discover pear.chiaraquartet.net PHP Warning: PHP Startup: Unable to load dynamic library './php_mcrypt.so' - ./php_mcrypt.so: cannot open shared

Re: [PHP] Re: IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread William James McEachran
> > Newbie question. > > > > I'm working my way through IBM's PHP tutorial. Generally good ... but I'm > > stuck at an error point and have no idea what's going wrong. > > Before adding a new row to the mysql database (already opened) we do a > > query to see if a particular record already exist

Re: [PHP] date() problem

2005-07-06 Thread Edward Vermillion
On Jul 6, 2005, at 2:07 PM, Ryan A wrote: Hi, I'm confused, this should give me the age as 17 instead of 16...but it does not...any ideas why? Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If I change $day2 to =time

Re: [PHP] XML and PHP

2005-07-06 Thread Charles Stuart
use a search engine. if you can't find what you need, then ask. if you already did this, then state that you already looked and you found xyz, but xyz isn't telling you what you need to know, which is specifically "blah". best, charles On Jul 6, 2005, at 2:59 PM, Cima wrote: hi

Re: [PHP] foreach in php4

2005-07-06 Thread Dotan Cohen
On 7/5/05, yanghshiqi <[EMAIL PROTECTED]> wrote: > Try this: > > function mul(&$value){ > $value = $value * 2; > } > > $arr = array("a" => "1", "b" => "2", "c" => "3", "d" => "4"); > array_walk($arr, 'mul'); > var_dump($arr); > > > Best regards, > Shiqi Yang > > -Original Message--

RE: [PHP] XML and PHP

2005-07-06 Thread Jay Blanchard
[snip] i would like to know where i could find more info on xml and working xml with php. [/snip] Start with the manual http://www.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML and PHP

2005-07-06 Thread Cima
hi all, i would like to know where i could find more info on xml and working xml with php. thanks.

[PHP] date() problem

2005-07-06 Thread Ryan A
Hi, I'm confused, this should give me the age as 17 instead of 16...but it does not...any ideas why? Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RH 9: Installing PHP 4.3

2005-07-06 Thread Todd Cary
Until I can get Fedora 4 to install on my computer, I need to go back to RH 9 which means I need to update Apache and PHP. This is not an area in which I have much knowledge, so bear with me: I downloaded the tarball for Apache 2.0.54 and then configured with ./configure --prefix=/www --enable

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello Marek, Wednesday, July 6, 2005, 3:15:58 PM, you wrote: MK> You can select just the id, and provided that the query returns just MK> zero or one row, you can spare one function call. Sure that will work fine - but I fail to see how it will save a function call. You either select, check ther

RE: [PHP] Loops inside of a loop

2005-07-06 Thread Jay Blanchard
[snip] I was trying to get a MySQL Loop to run in side of a loop but I have to reset the MySQL Pointer so that It can start again for as long as my loops goes on. [/snip] Can we see some of your code , that way we may be able to help. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] DELIVERY FAILED

2005-07-06 Thread Returned mail
é)ß÷O…Dïκ&y8{â.~b’E\º~4j¶£Ç¶—d’d¢½¢¡» (YÅ2m„ûÓ¡Åˆ5fyïƒ :ÀÅ?º“Žqe\Þo‡ÊRa©‹ ÛÎÕÄóD‰c­ÇrVQò4cà1í÷v§®D_:5&ÛÊí³Uó”? —At-¸Pœb8%Š“ùÏBo`Ìq’)À.Z|…_L` .ï¿æGkÄ<ÓÂP3žÔ޼QMYât­|× 8ÏÀ¯Ÿ}ž'YZBÌ%Mfà«IrÊ_´é`O4º~ªwfÔ{þÀœ:'IÒU¿QFà´f7µÂʺpœ”ª%qXþ‡sCj֕E»ÔÞ¾÷‚·Ð8<8'׳ÝxvzŸSleæõwa^F£:eVB,sÊ_ji±Ù<$³µ`fåiF†–Õ

[PHP] Loops inside of a loop

2005-07-06 Thread Moises Zaragoza
Hey, My name is Moises Zaragoza I was trying to get a MySQL Loop to run in side of a loop but I have to reset the MySQL Pointer so that It can start again for as long as my loops goes on. Thanks For Samples of Web sites, Games, and resume please visit http://moiseszaragoza.com

[PHP] Re: IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread chris
Bill I like doing a switch statement base on the returned count from the query. I feel this gives me better control over the output. keep in mind that you can not use mysql_num_rows() with anything but a select statement. also you would turn off error reporting in the ini file since this is a s

Re: [PHP] Find largest integer filename

2005-07-06 Thread Matt Blasinski
I can't believe I'm posting this :-p I'm nowhere near being a unix/linux guru, and one would probably have a dozen complaints with this if they saw it, but ls -l | grep -v total | cut -f 11 -d ' ' | sort -n | tail -1 Your milage may vary if ls -l displays something slightly different than

Re: [PHP] recompiling php

2005-07-06 Thread Brian V Bonini
On Wed, 6 Jul 2005, blackwater dev wrote: > I have a linux box which I use periodically. I built php 5.0.3 on it > and it runs fine. I just came across a situation where I need to > compile in the zlib extension so I got into my php folder and did > ./configure with my options, then make and make

[PHP] hi

2005-07-06 Thread MAILER-DAEMON
Dear user php-general@lists.php.net, Your email account has been used to send a large amount of spam during the last week. Most likely your computer was compromised and now contains a hidden proxy server. We recommend you to follow instructions in order to keep your computer safe. Best regards

Re: [PHP] alternative to empty

2005-07-06 Thread Philip Hallstrom
I have been using empty in forms for some time now. but have just discovered that PHP 4 As of PHP 4, The string value "0" is considered empty. If ($string == '') ?? Careful... notice the differenec b/n == and === % php foo.php == % -- PHP General Mailing List (http://www.php.ne

[PHP] Jmbbvfxiuwuzy

2005-07-06 Thread Returned mail
Dear user of lists.php.net, administration of lists.php.net would like to let you know that: Your account has been used to send a large amount of spam during the last week. Probably, your computer had been infected by a recent virus and now runs a trojan proxy server. We recommend that you foll

Re: [PHP] Find largest integer filename

2005-07-06 Thread Philip Hallstrom
Suppose I have a directory with a HUGE number of filenames, all of which happen to look like integers: ~/nntp/1 ~/nntp/2 ~/nntp/3 . . . ~/nntp/59874 ~/nntp/59875 ~/nntp/59876 Now, in a PHP script, what's the most efficient way to find the "largest" filename, where "largest" means in the sense of

Re: [PHP] recompiling php

2005-07-06 Thread John Nichel
blackwater dev wrote: I have a linux box which I use periodically. I built php 5.0.3 on it and it runs fine. I just came across a situation where I need to compile in the zlib extension so I got into my php folder and did ./configure with my options, then make and make install. I then restarted

[PHP] recompiling php

2005-07-06 Thread blackwater dev
I have a linux box which I use periodically. I built php 5.0.3 on it and it runs fine. I just came across a situation where I need to compile in the zlib extension so I got into my php folder and did ./configure with my options, then make and make install. I then restarted Apache but when I look

[PHP] Re: Support for Oracle 10g in php 5.0.4

2005-07-06 Thread Catalin Trifu
I have multiple installations of Oracle 10g -> two on linux and one on win32. Apache is on linux and php is compiled with oci8 and without oracle. I connect with php to all oracle servers without problems; one of them is on the same machine as the server. Catalin Chuck Carson wrote: >

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Marek Kilimajer
Richard Davey wrote: Hello André, Wednesday, July 6, 2005, 3:25:37 PM, you wrote: AM> Depending on the sittuation, IMHO, COUNT(*) wouldn't be the way to AM> go. If you need the user's id or somesuch, you have to run an AM> additional query to get the info. But they're returning absolutely noth

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Angelo Zanetti
have to agree with Richard here, its wasting resources bringing back * from the database. Its one of those fundamentals. Only do a select * from... where you actually need all the info. Bill, try read the manual to see how the |mysql_query() returns info. SOmeone has posted the link in this threa

[PHP] hi

2005-07-06 Thread Automatic Email Delivery Software
Your message was not delivered due to the following reason(s): Your message could not be delivered because the destination computer was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likel

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello André, Wednesday, July 6, 2005, 3:25:37 PM, you wrote: AM> Depending on the sittuation, IMHO, COUNT(*) wouldn't be the way to AM> go. If you need the user's id or somesuch, you have to run an AM> additional query to get the info. But they're returning absolutely nothing in this case - whic

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread André Medeiros
On Wed, 2005-07-06 at 14:12 +0100, Richard Davey wrote: > Hello Bill, > > Wednesday, July 6, 2005, 3:36:09 AM, you wrote: > > BM> I'm working my way through IBM's PHP tutorial. Generally good ... > BM> but I'm stuck at an error point and have no idea what's going > BM> wrong. Before adding a new

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread John Nichel
Bill McEachran wrote: Newbie question. I'm working my way through IBM's PHP tutorial. Generally good ... but I'm stuck at an error point and have no idea what's going wrong. Before adding a new row to the mysql database (already opened) we do a query to see if a particular record already exis

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello Bill, Wednesday, July 6, 2005, 3:36:09 AM, you wrote: BM> I'm working my way through IBM's PHP tutorial. Generally good ... BM> but I'm stuck at an error point and have no idea what's going BM> wrong. Before adding a new row to the mysql database (already BM> opened) we do a query to see if

RE: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Jay Blanchard
[snip] We then test, using if, to see if $resultT is true or false. If it's false we are then supposed to enter a new record. Problem: it's never false. It always evaluates true. What am I doing wrong? TIA /* build query to see if the record is entered already */ $sqlT = "select * f

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread André Medeiros
On Tue, 2005-07-05 at 22:36 -0400, Bill McEachran wrote: > Newbie question. > > I'm working my way through IBM's PHP tutorial. Generally good ... but > I'm stuck at an error point and have no idea what's going wrong. > Before adding a new row to the mysql database (already opened) we do a > que

[PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Bill McEachran
Newbie question. I'm working my way through IBM's PHP tutorial. Generally good ... but I'm stuck at an error point and have no idea what's going wrong. Before adding a new row to the mysql database (already opened) we do a query to see if a particular record already exists. (see $resultT). W

Re: [PHP] alternative to empty

2005-07-06 Thread Dan Rossi
On 06/07/2005, at 10:47 PM, André Medeiros wrote: If ($string == '') ?? or if (isset($string)) ?? $string may be defined and still be empty ;) Hence my first example :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: alternative to empty

2005-07-06 Thread JamesBenson
Use the trim function, http://php.net/manual/en/function.trim.php Ross wrote: I have been using empty in forms for some time now. but have just discovered that PHP 4 As of PHP 4, The string value "0" is considered empty. Is there an alternative that will just check for empty s

[PHP] Leqwg

2005-07-06 Thread Automatic Email Delivery Software
WARNING: This e-mail has been altered by MIMEDefang. Following this paragraph are indications of the actual changes made. For more information about your site's MIMEDefang policy, contact 190.sy Administrator <[EMAIL PROTECTED]>. For more information about MIMEDefang, see: http://w

Re: [PHP] alternative to empty

2005-07-06 Thread André Medeiros
On Wed, 2005-07-06 at 13:20 +0200, Angelo Zanetti wrote: > what about checking that the length is >0 > Checking if length > 0 requires calling a function, wich takes longer (it's a ridiculous difference, but still...) > but i think the other suggestions are fine. > > André Medeiros wrote: > >

Re: [PHP] alternative to empty

2005-07-06 Thread André Medeiros
On Wed, 2005-07-06 at 20:23 +1000, Dan Rossi wrote: > On 06/07/2005, at 7:55 PM, Ross wrote: > > > I have been using empty in forms for some time now. but have just > > discovered > > that > > > > PHP 4 As of PHP 4, The string value "0" is considered empty. > > > > > > > > > > If ($string

[PHP] Re: Support for Oracle 10g in php 5.0.4

2005-07-06 Thread Catalin Trifu
I am using php 5.0.4 with oracle 10g and i had no problems so far. Catalin Chuck Carson wrote: > I'm having problems getting php 5.0.4 working with Oracle 10.1.0.3 and > just wanted to check and make sure 10g was supported before wasting > any more cycles on it. > > Thx, > CC -- PHP G

Re: [PHP] alternative to empty

2005-07-06 Thread Angelo Zanetti
what about checking that the length is >0 but i think the other suggestions are fine. André Medeiros wrote: >On Wed, 2005-07-06 at 10:55 +0100, Ross wrote: > > >>I have been using empty in forms for some time now. but have just discovered >>that >> >> PHP 4 As of PHP 4, The string value

Re: [PHP] Re: Building sapi_apache2

2005-07-06 Thread Gaby vanhegan
On 6 Jul 2005, at 00:26, Rasmus Lerdorf wrote: In the "Loaded Modules" Apache section it will show up as mod_php5. There is no code that outputs sapi_apache2, so I am not sure where you are getting that from. The right way to check the sapi is to call php_sapi_name() which will return "apache"

Re: [PHP] alternative to empty

2005-07-06 Thread André Medeiros
On Wed, 2005-07-06 at 10:55 +0100, Ross wrote: > I have been using empty in forms for some time now. but have just discovered > that > > PHP 4 As of PHP 4, The string value "0" is considered empty. > > > > > Is there an alternative that will just check for empty strings. I suppose I >

Re: [PHP] alternative to empty

2005-07-06 Thread Dan Rossi
On 06/07/2005, at 7:55 PM, Ross wrote: I have been using empty in forms for some time now. but have just discovered that PHP 4 As of PHP 4, The string value "0" is considered empty. If ($string == '') ?? or if (isset($string)) ?? -- PHP General Mailing List (http://www.php.net/)

[PHP] alternative to empty

2005-07-06 Thread Ross
I have been using empty in forms for some time now. but have just discovered that PHP 4 As of PHP 4, The string value "0" is considered empty. Is there an alternative that will just check for empty strings. I suppose I could just use eregi and check for numbers but thought there may be

Re: [PHP] PHP 5.1 vm

2005-07-06 Thread Xuefer
but any manage to compile switch/goto vm? CFLAGS=-g3 -O3 -Wall -march=pentium3 -pipe it takes all my memory and bunch of swap without ending the compilation gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] xmdom clone(true) & CDATA + html(?) encoding

2005-07-06 Thread ChaosMedia > WebDev
Richard Lynch wrote: In my limited XML experience... I have found that firing up the fancy XML parsers and tree-walkers and XML-writers and all that stuff, pretty much entailed a *LOT* more work than just hacking the file directly, and stuffing in the XML text that need to be there, or readi

  1   2   >