[PHP] Display mail

2002-05-10 Thread Uma Shankari T.
Hello, Can anyone please tell me is there any to display the mails like mailing archieve, in one of the folder in Pine.. Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Powers FreeMovie API for Flash

2002-05-10 Thread Jacek Artymiak
"PHP Powers FreeMovie API for Flash" http://www.oreillynet.com/pub/a/javascript/2002/05/09/freemovie.html Jacek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Packages Installed In html/doc root

2002-05-10 Thread Dennis Gearon
I've looked at a bunch of CMS(content management system)'s lately. There are some good ones, and I like the directions they're going. nadmin studio has the most incredible admin front end for midgard that you would believe. It's at: http://cmsdemo.hklc.com just type in demo for each of the blocks

Re: [PHP] Script Cannot Read File Field

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 05:59, Dr. Shim wrote: > I have a very nicely organized form, with a file field. The script can read > all the fields, exepet for this one file field! I have no idea what is > wrong. Maybe its scope? Well, anyhow, I could really use some help. The > form's "enctype" is set

Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 12:17, Rasmus Lerdorf wrote: > See DBG (http://dd.cron.ru/dbg/) I think the OP has already looked at it, and wanted something better :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Re: Debugger

2002-05-10 Thread Rasmus Lerdorf
See DBG (http://dd.cron.ru/dbg/) On Sat, 11 May 2002, Jason Wong wrote: > On Saturday 11 May 2002 04:07, Austin Marshall wrote: > > Jose Leon wrote: > > >>php -l will let you know where your syntax errors are. > > > > > > What? > > > > > > Regards > > > > If you invoke the interpreter from the c

Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 04:07, Austin Marshall wrote: > Jose Leon wrote: > >>php -l will let you know where your syntax errors are. > > > > What? > > > > Regards > > If you invoke the interpreter from the command line (CGI). You can use > the -l flag to enable lint mode... that will check your sc

Re: [PHP] Using function in PHP script n DOCROOT in PHP script insubfolder

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Phil Powell wrote: > How do I fix this problem? I do not want to duplicate the PHP script per > folder as there will be an enormous amount of dynamically-created subfolders > and I will have to copy a version per folder. I want to be able to use the > one PHP script in the DO

Re: [PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Austin Marshall wrote: >> I wonder if it matters from an overhead point of view, is PHP doing >> more work than it ought to using " instead of ' because it's expecting >> variables? > > I'd be interested to see if there were much a difference > performance-wise though. Quic

Re: [PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Analysis & Solutions
Phil: On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote: > > How do I fix this problem? I do not want to duplicate the PHP script per > folder as there will be an enormous amount of dynamically-created subfolders > and I will have to copy a version per folder. I want to be able to use

[PHP] PHP >? for current PEAR

2002-05-10 Thread Brad Hubbard
I'm trying to install PEAR and having some problems. What's the minimum PHP version for the current PEAR? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any difference between these 2 forms of syntax?

2002-05-10 Thread php3
Addressed to: "Richard Davey" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Richard Davey" <[EMAIL PROTECTED]> Sat, 11 May 2002 01:54:43 +0100 > > Hi, > > I am wondering if there is any tangible difference between the following two > commands: > > $x = $foo["status"]

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Austin Marshall
Richard Davey wrote: > "Austin Marshall" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>It all depends on what you use as a key... you just follow the normal >>string standards. If you want a variable evaluated within the key, then >>you must use "s if yo

[PHP] Re: Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Michael Kimsal
Glenn Sieb wrote: > Hi.. it's me again :) > > We have a few different servers here, most of which are FreeBSD, > including our internal web server (Apache 1.3.24). We have PHP 4.2.0 > installed as well. > > Currently I'm running my MSSQL query scripts on a Win2k webserver, as I > can't seem t

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Richard Davey
"Austin Marshall" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It all depends on what you use as a key... you just follow the normal > string standards. If you want a variable evaluated within the key, then > you must use "s if you purely use text then you j

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Austin Marshall
Richard Davey wrote: > Hi, > > I am wondering if there is any tangible difference between the following two > commands: > > $x = $foo["status"]; > $x = $foo['status']; > > The part in question being the use of ' or " around the "status" element of > the array $foo. > Both have the same end resu

[PHP] Re: MySQL or FlatFile

2002-05-10 Thread Austin Marshall
David Duong wrote: > To store large values (100k+) and load them as much as 6+ times within the > same hour what would be better MySql or Flatfile? > > I think it really depends on the content. If you are storing 100K+ per entry it sounds like it is probably something along the lines of an i

[PHP] Any difference between these 2 forms of syntax?

2002-05-10 Thread Richard Davey
Hi, I am wondering if there is any tangible difference between the following two commands: $x = $foo["status"]; $x = $foo['status']; The part in question being the use of ' or " around the "status" element of the array $foo. Both have the same end result in my case, I'm just purely wondering wh

[PHP] DOMXML [revisited]

2002-05-10 Thread Thalis A. Kalfigopoulos
Hi again and sorry to pose same question, but I'm about to pull out my hair here. There were some DOMXML questions in the past 24h but none replied to. Two of us till now have had the same problem: compiled DOM just fine and see it is there with phpinfo(); but cannot use its functions[1]. Can an

[PHP] Re: Layout Help

2002-05-10 Thread Austin Marshall
Jason Soza wrote: > Hey all... I really do want to thank everyone for all the help and > advice you give. I know my questions sometimes are probably more > annoying than anything else, but your input really does help. > > Anyway, I have a stack of 76 playlists I need to consolidate and > displ

Re: [PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Liam MacKenzie
That's strange.. I always compile in this order... 1. MySQL 2. PHP 3. Apache - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 9:10 AM Subject: [PHP] Re: Apache is not rendering php pages. Config problem? I did find the prob!

Re: [PHP] MySQL or FlatFile

2002-05-10 Thread Liam MacKenzie
MySQL - Original Message - From: "David Duong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 10:29 AM Subject: [PHP] MySQL or FlatFile To store large values (100k+) and load them as much as 6+ times within the same hour what would be better MySql or Flatfile

[PHP] Register Globals - Article

2002-05-10 Thread Justin French
Hi all, Since the hot topic of the last few weeks has definately been the new register_globals deal, I thought the following article will be of huge assistance to many. http://www.WebmasterBase.com/article.php?pid=0&aid=758 It's short, to the point, explains why the old way is bad, explains why

RE: [PHP] randomize?

2002-05-10 Thread David Freeman
> I have a group table with 16 items, and I want them to be > randomly put in 4 different groups, with 4 in each group, > I've seen the $rand(x,x) thing, but is there any way to > limit to 4 in each group without 47839 rows of code? :P Wouldn't you just randomise all 16 items and take the

RE: [PHP] Alternating table rows...

2002-05-10 Thread David Freeman
> I've been asked if I can alternate the colors of the > rows to make the report more legible. What I usually do is something like this: if ($colour == "blue") $colour = "red" else $colour = "blue"; Then the bit where you actually output display you use $colour to set display attributes and

RE: [PHP] Layout Help

2002-05-10 Thread David Freeman
> Anyway, I have a stack of 76 playlists I need to consolidate and > display. These are from radio shows, so each playlist has > the date, the name of the radio show, and anywhere from 20 - 27 tracks, > artists, and albums on them. It's really more an sql question than a php question but.

[PHP] MySQL or FlatFile

2002-05-10 Thread David Duong
To store large values (100k+) and load them as much as 6+ times within the same hour what would be better MySql or Flatfile? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-10 Thread David Freeman
> So I should buy a commerical product from zend to > protect my code but since my code will be reversed > engineered anyways then what's the point of buying > from zend? That's your choice. It's also my point. If you can't be 100% secure then perhaps you should be looking at what you're t

RE: [PHP] problems with

2002-05-10 Thread David Freeman
> I've only just picked up on this thread, but why not put > each form inside a element? > > i.e. > > > ... > ... > > includes an implied so if you keep it inside your you'll end up with extra space in your cell. If your table has no dif

[PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Phil Powell
http://$HTTP_HOST/$path/menubar.cgi";, "r"); $menubar = fread($fileID, 100); fclose($fileID); return $menubar; } ?> This function exists in the file "menubar_functions.php" which is in the docroot. I have a PHP script in a subfolder /chat that produces a Fatal Error (call to undefine

[PHP] Layout Help

2002-05-10 Thread Jason Soza
Hey all... I really do want to thank everyone for all the help and advice you give. I know my questions sometimes are probably more annoying than anything else, but your input really does help. Anyway, I have a stack of 76 playlists I need to consolidate and display. These are from radio shows

RE: [PHP] register_globals in php4

2002-05-10 Thread Luc Saint-Elie
Mike, Both of your bit of code are not equal. On my ISP in 4.0.6 isset returned false if the variable was not existing OR empty in 4.2 isset returns true if the variable exists but is empty, so you may want to check with empty instead of isset Luc At 12:16 10/05/2002 +0100, Ford, Mike

Re: [PHP] log analysis

2002-05-10 Thread Josh Edwards
Thanks for replying Miguel I'm new to php and wonder how I would check if the first field is an IP address. Do I open the file fget it and then use a regular expression to check. Also if I want to break up the first line of my array what delimiter do I look at as the fields in the log are sep

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Danny Shepherd
It will be really cool when we can do that (in PHP4.3) but until then you'll have to make do with cURL (http://www.php.net/manual/en/ref.curl.php) HTH Danny. - Original Message - From: "Bert Buckley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 12:07 AM Subje

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Stuart Dallas
On 10 May 2002 at 16:07, Bert Buckley wrote: > I would like very much to retrieve data from an > https server using the file function, but it only > supports an http call. > > 1. Can someone suggest a good alternative http://www.php.net/curl -- Stuart -- PHP General Mailing List (http://www

[PHP] httpS connection with FILE

2002-05-10 Thread Bert Buckley
I would like very much to retrieve data from an https server using the file function, but it only supports an http call. 1. Can someone suggest a good alternative 2. I understand this will be in PHP 4.3. Does anyone know a possible release date. Thanks Bert -- PHP General Mailing List (h

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Andy
I did find the prob! So for all guys struggeling with the same one.. First install apache, then php! I did reinstall apache after php. After compiling php again it is up and running. Thanx guys, Andy "Javier" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] virtual host problem

2002-05-10 Thread Ian Newlands
Re question 2: You can set this using the php_value command in apache. I think you need to have the SAPI version configured for this to work though. You might want to check that out. I have only done this on XP, haven't tried it on linux yet. ServerAdmin [EMAIL PROTECTED] DocumentRoo

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
On 05:11 PM 5/10/2002 -0500, Shaun Thomas wrote: >This could use a few tweaks. Ok I got it now... This exhibits the behaviour I was looking for, and, thanks to you, is much easier to read and maintain! :))) Thanks, Shaun! Glenn $sPrevCompany = $sColor = ''; while ($aRow = mss

Re: [PHP] Apache is not rendering php pages. Config problem?

2002-05-10 Thread Eugene Lee
On Fri, May 10, 2002 at 11:34:28PM +0200, Andy wrote: : "Eugene Lee" <[EMAIL PROTECTED]> asked: : > On Fri, May 10, 2002 at 09:53:10PM +0200, andy wrote: : > : : > : I did just build abpache and php. Unfortuanatelly the http.conf : > : looks quit different to one I did install last year. There is

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Javier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | Cannot load /usr/local/apache/libexec/libp

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
Thanks! I'll play with this!!! :) Glenn On 05:11 PM 5/10/2002 -0500, Shaun Thomas wrote: >This could use a few tweaks. First off, putting mysql_num_rows in the >actual for loop executes it every iteration. Bad. Second, consider >giving your code some readability by returning an associative ar

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Shaun Thomas
On Fri, 10 May 2002, Glenn Sieb wrote: > Thanks for all the hints--here's what my boss and I eventually came > out with: This could use a few tweaks. First off, putting mysql_num_rows in the actual for loop executes it every iteration. Bad. Second, consider giving your code some readability

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
On 04:58 PM 5/10/2002 -0500, Miguel Cruz wrote: >But he's dealing with cases where the company name remains the same but >other data in the row changes (for instance, a company with multiple >offices, where you wanted to list the phone number and address for each). >GROUP BY would discard that oth

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Andy
leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich dann: Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or direct

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Austin Marshall
Miguel Cruz wrote: > On Fri, 10 May 2002, Austin Marshall wrote: > >>>This not only takes care of the table row colors, but also removes >>>duplicate company names so it looks MUCH neater this way : >> >>Is there not a GROUP BY clause in MS SQL? I'm pretty sure there is. If >>you group th

[PHP] Script Cannot Read File Field

2002-05-10 Thread Dr. Shim
I have a very nicely organized form, with a file field. The script can read all the fields, exepet for this one file field! I have no idea what is wrong. Maybe its scope? Well, anyhow, I could really use some help. The form's "enctype" is set to "multipart/form-data", so that can't be the problem.

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Austin Marshall wrote: >> This not only takes care of the table row colors, but also removes >> duplicate company names so it looks MUCH neater this way : > > Is there not a GROUP BY clause in MS SQL? I'm pretty sure there is. If > you group the query by company name

[PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Austin Marshall
Glenn Sieb wrote: > Hey everyone! > > Thanks for all the hints--here's what my boss and I eventually came out > with: > > /* ## > ## And for every row of data we pull, we create a table row... > ## */ > $company = 0; >

Re: [PHP] Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Dave Goodrich
Look into Openlink. We used, they still use, MSSQL with PHP running on Unix/Linux at my last employer. I was a happy customer not a spokesperson. It worked as advertised, no fuss, no problems. In a production environment that is what you want. DAve > Hi.. it's me again :) > > We have a few

[PHP] Re: "Self Destruct Code" & "Copy Protection"

2002-05-10 Thread [-^-!-%-
I agree. We have many out of states clients, and all were required to (and have) sign a contract. There are many ways to deliver contracts, you should not have to risk not getting paid because of delivery logistics. You can use: e-mail fax fedEx, Ups, or any other delivery systems. -use

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Sven Herrmann
> There is no phpmodule in there, so I cant activate it. I did include some > lines from my old config: > > AddType application/x-httpd-php .php4 .php3 .php > AddType application/x-httpd-php-source .phps > if you're using Apache 1.x you need to add: LoadModule php4_modulelibexec/libphp

[PHP] Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Glenn Sieb
Hi.. it's me again :) We have a few different servers here, most of which are FreeBSD, including our internal web server (Apache 1.3.24). We have PHP 4.2.0 installed as well. Currently I'm running my MSSQL query scripts on a Win2k webserver, as I can't seem to get PHP to talk to MSSQL on the F

Re: [PHP] Apache is not rendering php pages. Config problem?

2002-05-10 Thread Andy
there is not much inside the log. (I do asume you mean the logs) Nothing related to that prob. What yould be a propper config command for apache to build. I would like to run php as an apache module apxs Thanx, Andy "Eugene Lee" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: > As we all know ARPA is thet university network, funded by the government > to build an information infrastructure that eventually became the > internet we have today. But the standards for text messaging within the > ARPA net have been added to over the y

RE: [PHP] eregi(mail)

2002-05-10 Thread Nathan Cassano
This is what I have used. Here is an excellent article on Regular Expressions. Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
"1LT John W. Holmes" wrote: > > Read the code again, that's what I first thought, too. He's just not > printing multiple values for the first table cell. So if the current row has > the same company name, just print a blank cell, then print the rest of the > data for that row. In the words of a

[PHP] Re: Using caching to reduce database queries

2002-05-10 Thread Manuel Lemos
Hello, On 05/10/2002 04:15 PM, Jeff Bearer wrote: > Does anybody know of a class, module, extension that caches database > output? > > I've asked this before, and I've looked high and low to no avail. I've > used APC cache to do caching and it works great, but it doesn't save > database queries

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread 1LT John W. Holmes
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> > Glenn Sieb wrote: > > $cname = (strcmp($previous,$line[0]) > > ? $line[0] : " "); > > print (" > BGCOLOR=#$color>\n\t$line[2]\n\t$cname\n\t$line[3]

Re: [PHP] Apache is not rendering php pages. Config problem?

2002-05-10 Thread Eugene Lee
On Fri, May 10, 2002 at 09:53:10PM +0200, andy wrote: : : I did just build abpache and php. Unfortuanatelly the http.conf looks quit : different to one I did install last year. : There is no phpmodule in there, so I cant activate it. I did include some : lines from my old config: : : AddType a

[PHP] Re: eregi(mail)

2002-05-10 Thread Manuel Lemos
Hello, On 05/10/2002 01:48 PM, Liam Gibbs wrote: > Does anyone have a decent eregi statement for > validating e-mail addresses? I've tried the ones on > the site, but there seems to be small bugs with each > of them. They tell me that [EMAIL PROTECTED] is an > invalid e-mail address. You may wan

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Robert Cummings
Glenn Sieb wrote: > > Hey everyone! > > Thanks for all the hints--here's what my boss and I eventually came out with: > > /* ## > ## And for every row of data we pull, we create a table row... > ## */ > $company = 0; >

[PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
Hey everyone! Thanks for all the hints--here's what my boss and I eventually came out with: /* ## ## And for every row of data we pull, we create a table row... ## */ $company = 0; $previous = ""; for ($i =

Re: [PHP] Re: Debugger

2002-05-10 Thread 1LT John W. Holmes
> > php -l will let you know where your syntax errors are. > > What? > He said "php -l will let you know where your syntax errors are." Helping out where I can, ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Alternating table rows...

2002-05-10 Thread Juan Pablo Aqueveque
Just another version. the call ... $RowColor = useColor(); ... echo ''; - Jp At 15:46 10/05/02, you wrote: >[snip] >$rowcount = 0; >while($dbrowa = mysql_fetch_object($dbseta)){ > $dbrowb = mysql_fetch_object($dbsetb); >//change the color of alternating rows >$rowcount ++; >if ($row

[PHP] Re: Debugger

2002-05-10 Thread Austin Marshall
Jose Leon wrote: >>php -l will let you know where your syntax errors are. > > > What? > > Regards > If you invoke the interpreter from the command line (CGI). You can use the -l flag to enable lint mode... that will check your script for parse errors. So in a way, PHP does have a "debug"

[PHP] Diffrence between ob_gzhandler and zlib compression

2002-05-10 Thread Jeff Bearer
I was looking through the new php.ini file and was enabling the output handler of ob_gzhandler then I saw the line about zlib.output_compression. What's the diffrence between the two? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General

[PHP] Re: Debugger

2002-05-10 Thread Jose Leon
> php -l will let you know where your syntax errors are. What? Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
As we all know ARPA is thet university network, funded by the government to build an information infrastructure that eventually became the internet we have today. But the standards for text messaging within the ARPA net have been added to over the years in order to accomodate ever expanding requi

[PHP] Apache is not rendering php pages. Config problem?

2002-05-10 Thread andy
Hi there, I did just build abpache and php. Unfortuanatelly the http.conf looks quit different to one I did install last year. There is no phpmodule in there, so I cant activate it. I did include some lines from my old config: AddType application/x-httpd-php .php4 .php3 .php AddType applicatio

RE: [PHP] Alternating table rows...

2002-05-10 Thread Jay Blanchard
[snip] http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Alternating table rows...

2002-05-10 Thread Philip Olson
Yet even more ways to do it: $i = 0; while ($row = mysql_fetch_assoc($result)) { $bgcolor = ($i++ & 1) ? '#ff' : '#00'; } Or more then two: $colors = array('black','green','blue','yellow'); $i = 0; while ($row = mysql_fetch_assoc($result)) { $bgcolor = $colors[$i++ % 4]

[PHP] header problem - thank you!

2002-05-10 Thread SCOTT . NOVINGER
for all of you that replied to my original post, thank you. all of the suggestions worked and i learned a couple of new things along the way. scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
Robert Cummings wrote: > > The more generic approach: > > function getNextColour( &$lastIndex, $colourList ) > { > return $colourList[(++$lastIndex % count( $colourList ))]; U... $lastIndex++, don't want to start on the second entry :) Cheers, Rob. -- .-. | Robert Cumm

Re: [PHP] Alternating table rows...

2002-05-10 Thread Robert Cummings
The more generic approach: function getNextColour( &$lastIndex, $colourList ) { return $colourList[(++$lastIndex % count( $colourList ))]; } $colours = array ( '#ff', '#00ff00', '#ff' ); $index = 0; foreach( $rows as $aRow ) { echo '' .$aRow .''."\n";

RE: [PHP] Alternating table rows...

2002-05-10 Thread Miguel Cruz
While everyone's kicking in ideas... I don't think modulus (as someone else suggested) is that expensive, but I think this is the cheapest: $evenodd = 0; $color[0] = '#cc'; $color[1] = '#99'; while ($row = mysql_fetch_row($st)) { print "{$row['whatever']}"; $evenodd =

RE: [PHP] Alternating table rows...

2002-05-10 Thread Jay Blanchard
[snip] Is there a way for me to do one of the following: 1) Test to see if $i is an even or odd number? 2) Grab more than one line from the database at a time, and just put in two table rows at once? [/snip] \n"); } elseif ($rowcount <> 1) { print("\n");

[PHP] Using caching to reduce database queries

2002-05-10 Thread Jeff Bearer
Does anybody know of a class, module, extension that caches database output? I've asked this before, and I've looked high and low to no avail. I've used APC cache to do caching and it works great, but it doesn't save database queries, which easily becomes the bottleneck with highly dynamic site.

[PHP] Re: Debugger

2002-05-10 Thread Austin Marshall
Jose Leon wrote: > Hello: > I have been browsing the web for a good solution to debug php code, I > have found several ones, but none of them meet my requeriments. I > create a development tool for PHP (QaDRAM Studio) and I want to be able > to debug php code with it, my question here is: >

Re: [PHP] PHP builds

2002-05-10 Thread Olexandr Vynnychenko
Hello Liam, Friday, May 10, 2002, 9:31:45 AM, you wrote: LM> Hi all, LM> I need some opinions, what are some good modules to build into PHP? LM> I'm starting a hosting service (properly) Incule XSLT module. If I were your client I really needed it. -- Best regards, Olexandr

Re: [PHP] Alternating table rows...

2002-05-10 Thread Glenn Sieb
On 02:47 AM 5/11/2002 +0800, Jason Wong wrote: > if ($i % 2) { odd; } else { even; } Great! Thanks, Jason :))) One thing I love about this list... you guys are more than helpful! :) Glenn --- Glenn E. Sieb, System Administrator Lumeta Corp. mailto:[EMAIL PROTECTED] +1 732 357-3514 (V) +

[PHP] Re: Alternating table rows...

2002-05-10 Thread Glenn Sieb
Austin, you rock :) I've only just started with PHP recently, and was introduced to the ternary operators by reading Rasmus' book (great job, Rasmus!!!), so I'm learning as I go here :) Thanks buddy! Glenn On 01:50 PM 5/10/2002 -0500, Austin Marshall wrote: >$color=($i%2) ? "grey" : "white; wi

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
To tell you the truth, I can't read it. Steve At 01:32 PM 5/10/2002, Miguel Cruz wrote: >On Fri, 10 May 2002, Steve Buehler wrote: > > > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > > > >If I'm reading it

[PHP] Re: Alternating table rows...

2002-05-10 Thread Austin Marshall
Glenn Sieb wrote: > Hi everyone, > > I have a PHP script that reads data from an MS SQL server and outputs > the data into a table. I've been asked if I can alternate the colors of > the rows to make the report more legible. The relevant piece of code > looks like: > > for ($i = 0; $i < mssql

Re: [PHP] Alternating table rows...

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 02:45, Glenn Sieb wrote: > Hi everyone, > > I have a PHP script that reads data from an MS SQL server and outputs the > data into a table. I've been asked if I can alternate the colors of the > rows to make the report more legible. The relevant piece of code looks > like: >

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
Either Google is wrong (probably) or they are now allowing things like spaces into an email address. There are actually several things that are not allowed in a standard email address. Here is the code that I use. ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}

[PHP] Alternating table rows...

2002-05-10 Thread Glenn Sieb
Hi everyone, I have a PHP script that reads data from an MS SQL server and outputs the data into a table. I've been asked if I can alternate the colors of the rows to make the report more legible. The relevant piece of code looks like: for ($i = 0; $i < mssql_num_rows( $stmt ); ++$i)

Re: [PHP] eregi(mail)

2002-05-10 Thread Analysis & Solutions
Folks: On Fri, May 10, 2002 at 01:27:45PM -0500, Steve Buehler wrote: > > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > > $subarray)){ Those characters don't conform to the R

[PHP] problems installing gd2 on linux

2002-05-10 Thread andy
Hi there, I do have some trouble installing gd2 and suse7.2 linux. I did already compile freetype, but now I do get an error I can not handle. Here is the message: make install gcc -I. -I/usr/local/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/inclu de/X11 -I/usr/local/include -I/usr/lib png

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Steve Buehler wrote: > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > If I'm reading it correctly, this will let invalid addresses through. The domain component (after the @ sign) can only

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: > I had always been suspicious about email validators so I did a big long > search on Google about standard address formats. It turns out that aside > from the @ symbol emails have no standard format whatsoever. So ereg('@', > $email) is really the only fu

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
function check_input($array){ global $HTTP_REFERER; $valid = 1; if(gettype($array)=="array") { while (list($index, $subarray) = each($array) ) { if(ereg("required_", $index) && (($subarray == "") || ($subarray == " "))) {

[PHP] Re: DOMXML in 4.2.0 problems

2002-05-10 Thread Mike P
I am having similar difficulties with DOMXML in php4.2.0. phpinfo() indicates all is well with the setup... If you get some response, please share! Thanks! Mike "Thalis A. Kalfigopoulos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to get DOMXML

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
I had always been suspicious about email validators so I did a big long search on Google about standard address formats. It turns out that aside from the @ symbol emails have no standard format whatsoever. So ereg('@', $email) is really the only functional email validator. You also have to thin

Re: [PHP] log analysis

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Josh Edwards wrote: > I'm working on using php to analyse an access log on an apache server. > > If a user inputs a file path I want to be able to use PHP to determine if > it's a log file. Is there a function that will reject if it's not a binary > file. If it's a binary fi

RE: [PHP] register_globals in php4

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Ford, Mike [LSS] wrote: > Also, by using the $_POST, $_GET arrays, you know exactly where the > input is coming from (even if register_globals is also on!). If you > have register_globals set to on, and you just look to see if (say) > $password has a value, whic

Re: [PHP] File Type not working in Uploaded File

2002-05-10 Thread 1LT John W. Holmes
Well, first thing I notice is that in your form you name your file input as "file", yet nowhere in your code do I see you getting any values from _FILES or $file (depending on your version of PHP). So...how do you expect it to do anything with your file if you don't tell it to?? Maybe you left out

RE: [PHP] Semantics, was Destroying Sessions

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Jay Blanchard wrote: > Just to clarify myself above... > if ($var1 = $var2) { . > > In my crazy head, I see $var1 and $var2 to be in a sort of "read-only" state > inside the () of the if statement. For a if statement to be able to change > the values in that instance, wo

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Liam Gibbs wrote: > Does anyone have a decent eregi statement for > validating e-mail addresses? I've tried the ones on > the site, but there seems to be small bugs with each > of them. They tell me that [EMAIL PROTECTED] is an > invalid e-mail address. Well, it currently is

[PHP] stop resend data

2002-05-10 Thread Norman Zhang
How can I disable the resend data feature when going back to an expired page? If I return this page again by typing the URL, I won't be ask to resend data. However, if I hit the back button and go back to the expired page, I will be prompted to click on resend or not. I seem some sites disable thi

  1   2   >