Re: [PHP] logging page views, which method is better????

2001-01-15 Thread Rick Widmer
And the answer about merging logs for webalizer is: Is there a way to create a combined report showing hits to a number of separate servers all handling the same web sites. I am guessing all you have to do is feed it each of the log files in turn, and make sure you don't duplicate them. I

Re: [PHP] Re: Includes vs. Functions

2002-07-18 Thread Rick Widmer
At 09:20 PM 7/17/02 -0500, Michael Sims wrote: $superglobals = array(var1, var2, var3, var4, var5, ...); Now inside the function you can do this: function somefunction ($somevar) { global $superglobals; foreach($superglobals as $varname) { global $$varname; //resolves to $var1,

Re: [PHP] Re: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in .....

2002-07-18 Thread Rick Widmer
At 11:02 PM 7/18/02 -0300, you wrote: Is PostgreSQL started with the -i switch? (I think that's the one; it exposes it to tcp/ip connections.) Check your PGSQL docs to be certain. This is not the problem. Have you run a page with phpinfo? Is PostgreSQL support compiled into your

Re: [PHP] Re: How to add new user to the domain

2002-07-24 Thread Rick Widmer
At 09:35 PM 7/23/02 -0500, Richard Lynch wrote: Any one please let me know how to use PHP to add new user to a domain for using mail (sendmail). Remember what Richard said... mucking around with real users is DANGEROUS! I solved the problem with Qmail, vchkpw and qmailadmin. No coding on my

Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0

2002-07-24 Thread Rick Widmer
At 10:22 AM 7/24/02 -0400, Scott Fletcher wrote: It work very nicely The whole process take 30 to 45 minutes for just one server. I wonder how does someone did 12 computers in 10 minutes. Cool! For me the key to upgrading many servers is to compile once then copy the resulting files to

Re: [PHP] Re: Help reg. create user and allocate space

2002-07-29 Thread Rick Widmer
At 04:55 AM 7/29/02 -0500, Richard Lynch wrote: I am using PHP-4.1.1, postgresql on Linux. I want the following functionality, I dont know how to implement it. Each time a new user registeres, I want to create mail account by the name he specifies and allocate him some space of the

Re: [PHP] inserting info into db

2002-07-29 Thread Rick Widmer
At 01:56 PM 7/29/02 +, Tyler Durdin wrote: I have a DB that will take answers to an 82 question survey, but i have the survey divided into 4 html pages(forms) of 20 or so question per page. The people taking the survey are not required to fill out every question on the survey. i was

Re: [PHP] Re: threads in Apache 1.3

2002-09-06 Thread Rick Widmer
At 08:04 PM 9/5/02 -0500, Richard Lynch wrote: I use persistant database connections and I wonder, if one connection is always in use by one page or by more? Each thread will end up having a connection. Actually, it will have a connection for *each* username/password combination used to

Re: [PHP] Re: replacing mail()

2002-09-18 Thread Rick Widmer
Liam Mackenzie [EMAIL PROTECTED] wrote in message 002a01c25f00$54a01050$0b00a8c0@enigma">news:002a01c25f00$54a01050$0b00a8c0@enigma... I've spent over 6 months trying to get sendmail to work to my liking, don't talk to me about sendmail! :-P I know the feeling. I use qmail now.

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Rick Widmer
At 11:35 AM 9/20/02 -0400, pierre.samson wrote: Well, I'm in no hurry, so I'll try to make it work. It just seemed to me that with ssl and mpm's incorporated it worth the upgrade. From today's Apache week newsletter: the Apache 2.0 interface is still undergoing steady change, Don't expect

Re: [PHP] date

2002-12-03 Thread Rick Widmer
Hi, please could someone tell me how i can return a month in text from an int ie getMonth(12) How about: $Months = array( , 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ); echo $Months[12]; // Dec Rick -- PHP General

Re: [PHP] formating numbers date

2002-12-04 Thread Rick Widmer
At 04:58 PM 12/4/02 -0700, Jeff Bluemel wrote: I'm displaying a date that I get from a informix database query - the date format is as follows; 2002-12-04 23:21:49 I want it to display as 12/4/2002 11:21:49 PM $Hour = substr( $Date, 11, 2 ); if( $Hour ) 12 { $Hour = $Hour - 12; $AMPM =

Re: [PHP] formating numbers date

2002-12-04 Thread Rick Widmer
At 11:51 AM 12/5/02 +1100, Justin French wrote: on 05/12/02 11:37 AM, Rick Widmer ([EMAIL PROTECTED]) wrote: $Hour = substr( $Date, 11, 2 ); if( $Hour ) 12 { $Hour = $Hour - 12; $AMPM = 'PM'; } else { $AMPM = 'AM'; } echo substr( $Date, 5, 2 ), '/', substr( $Date, 8, 2

Re: [PHP] Middle Number

2002-12-06 Thread Rick Widmer
At 09:45 PM 12/6/02 -0500, Stephen wrote: How can you find the meadian (or middle number) of a list of numbers? If there is an even amount of numbers, how would I still find it? load the list into an array, in numeric order... then: $List = array( 1,2,3,4,5,6 ); $Middle = ( count( $List ) -

Re: [PHP] Middle Number

2002-12-07 Thread Rick Widmer
At 07:05 PM 12/7/02 -0500, Stephen wrote: Wouldn't this only work for an even ammount of numbers? Like 1, 2, 3, 4 has 4 numbers... Did you try it? I'd hate to think I've done more work to solve your problem than you have... Even: $List = array( 1,2,3,4,5,6 ); $Middle = ( count( $List )

Re: [PHP] Finding Mode

2002-12-07 Thread Rick Widmer
At 07:12 PM 12/7/02 -0500, Stephen wrote: Another math question... How would I find the mode (number that repeats most often) of an array? Then, if there isn't a number that repeats most often, tell the user that. For each entry in the array, count the number of times a value occurs: while(

Re: [PHP] String to an Array

2002-12-07 Thread Rick Widmer
At 11:15 AM 12/8/02 +1100, Justin French wrote: I *think* either: ? $str = im the one trying to do this; echo $str[0]; ? OR ? $str = im the one trying to do this; echo $str{0}; ? Works -- you'll have to experiment, but I believe the second way is correct, and will echo the first (0th)

Re: [PHP] key pairs

2002-12-17 Thread Rick Widmer
At 04:44 PM 12/17/02 -0500, 1LT John W. Holmes wrote: What I was thinking is that you have one table with Order_ID Name Address Flag - Here you flag this as SHIP_TO or BILL_TO etc... That layout would be better than: Order_ID Ship_name Ship_address Bill_name Bill_address etc... Which is what

Re: [PHP] Is __FILE__ still current or is there something newer?

2002-12-23 Thread Rick Widmer
At 03:05 PM 12/22/02 +, z z wrote: __FILE__ is useful to know the current script's path __FILE__ is a 'constant' defined by the Zend Engine that tells you the name of the current file. If you are in an Include the name of the included file is returned, if you are in the main file its

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Rick Widmer
At 03:06 AM 12/23/02 -0200, Alexandre Soares wrote: Hi All, Where I can get more information about a free library to plot 2d and 3d data information, http://www.aditus.nu/jpgraph/ Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problem with Include

2002-12-24 Thread Rick Widmer
At 08:04 AM 12/24/02 +0300, sport4ever wrote: maybe there is something wrong with php.ini notice that I faced with this problem just after I upgraded to (PHP 4.2.1), (Apache2), everything was great before! The last I heard PHP + Apache2 is pretty much experimental, and not recommended for

Re: [PHP] Beginner examples?

2002-12-26 Thread Rick Widmer
At 09:02 PM 12/23/02 -0800, Chris Rehm wrote: John W. Holmes wrote: http://www.google.com/search?sourceid=navclientie=UTF-8oe=UTF-8q=php+ mysql+tutorial ---John W. Holmes... The Internet is a wealth of resources, but some of them aren't as good as others. If people here have had great success

Re: [PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Rick Widmer
At 09:40 AM 12/27/02 +0800, Denis L. Menezes wrote: Hello friends, I am making a website for our school. My requirement is that when any student searched for a particular club, the logo of the club abd the chairperson's phot should automatically be shown dynamically on the top of the page.

Re: [PHP] CLI delay

2002-12-27 Thread Rick Widmer
At 03:55 AM 12/27/02 -0500, Maciek Ruckgaber Bielecki wrote: has anyone an idea of how can i do some kind of decent delay (instead of some shell_exec doing pings) :-P Have you tried sleep()? http://www.php.net/manual/en/function.sleep.php Rick -- PHP General Mailing List

Re: [PHP] PHP 4.3.0 released

2002-12-28 Thread Rick Widmer
At 08:40 PM 12/27/02 -0700, The Doctor wrote: Is it just my or are there problems with static Aapche 1.3.27 compiles? I don't know if it is _just_ you, but my static install compiled and is running just fine. SuSE 8.0 php 4.3.0 Apache 1.3.27 Mod_SSL 2.8.12-1.3.27 OpenSSL 0.9.6h ming

[PHP] Re: [PHP-DEV] Re: [PHP] PHP 4.3.0 released

2002-12-28 Thread Rick Widmer
At 11:29 AM 12/28/02 -0700, The Doctor wrote: On Sat, Dec 28, 2002 at 04:04:14AM -0700, Rick Widmer wrote: At 08:40 PM 12/27/02 -0700, The Doctor wrote: ./configure --with-apache=../apache --with-mysql --with-pgsql=/usr --enable-cli --enable-calendar --enable-debug=no --with-config-file=/web

Re: [PHP] Auto_incerement value

2002-12-30 Thread Rick Widmer
At 06:41 AM 12/30/02 -0300, Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? http://www.php.net/manual/en/function.mysql-insert-id.php Rick -- PHP General Mailing List

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 06:20 PM 12/30/02 +0800, Jason Wong wrote: On Monday 30 December 2002 18:13, Boget, Chris wrote: I'm switching from a MySQL environment to PGSQL and I'm going through and trying to learn the differences between the two. The things that bothered me the most: o Pg doesn't have

RE: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 04:41 AM 12/30/02 -0600, Boget, Chris wrote: You can do this in mysql. I just don't know why you can't do this in pgsql. The basic answer to why the interfaces to the databases differ is because the PHP interfaces reflects the C interface provided by the database authors. Most PHP

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 07:59 AM 12/30/02 -0600, Michael Sims wrote: On Mon, 30 Dec 2002 04:11:02 -0700, you wrote: , or the types SET and ENUM. I'm not sure what SET is, never used it, Color set( 'red', 'green', 'blue' ) can contain only the following values: NULL;'blue'; 'green'; 'green,blue';

Re: [PHP] Date problem

2002-12-31 Thread Rick Widmer
At 05:23 PM 12/31/02 +0800, Denis L. Menezes wrote: Hello friends. Is there a routine in PHP I can use to find if today's date fits between the commencing date and the ending date? SELECT * FROM Table WHERE NOW() = StartDate AND NOW() = EndDate Rick -- PHP General Mailing List

Re: [PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Rick Widmer
At 10:11 AM 12/31/02 -0500, Carl Bélanger wrote: I just upgraded to php 4.3.0 and all by bulletin board are now returning error about the mail function: Fatal error: Call to undefined function: mail() in /var/wwwx/htdocs/forum/private.php on line 687 What could be missing? ./configure

Re: [PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread Rick Widmer
At 02:57 PM 12/31/02 -0500, David T-G wrote: ...and then Tularis said... % % Usually, % using mysql to handle your tables is *way* faster than letting php % handle it. Yes, do as much as you can in the database. The people who wrote it spent a lot of time trying to optimize it. % % In your

Re: [PHP] use included GD of external

2002-12-31 Thread Rick Widmer
At 03:13 AM 1/1/03 +0100, Richard Pijnenburg wrote: Hi list, What is better to use? The included GD library or the external ( Boutell.com ) GD library? Unless you have to use the external library because other things are sharing it, just use the GD that comes with PHP. We are talking about

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Rick Widmer
At 02:07 AM 1/2/03 +0800, Jason Wong wrote: On Thursday 02 January 2003 01:26, Carl Bélanger wrote: Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
% different ways of connecting tables with LEFT JOIN. USING( fieldname ) % connects the table being joined, with the table listed right before it, % using the same fieldname in both. The ON syntax allows you to use % differently named fields, and/or a different table. I still don't get what

Re: [PHP] Using mail() for mailist list app

2003-01-02 Thread Rick Widmer
At 06:33 PM 1/1/03 -0500, Michael J. Pawlowsky wrote: Personally I simply get the e-mail addresses spit out to me from the database and then I input them into a application made just for bulk mailingt. You can also easily write a quick perl or shell script to send it out from a file of names

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
At 06:32 AM 1/1/03 -0500, David T-G wrote: I still don't get what a left or right or outer or inner join is... The reason I chose LEFT JOIN are: o You get better control over how the query is executed. o Values from the first table are returned even if there is no associated entry in the

Re: [PHP] PHP Testing

2003-01-02 Thread Rick Widmer
At 05:25 PM 1/2/03 -0800, Jim Lucas wrote: VirtualHost * DocumentRoot /some/path/public_html php_admin_value engine On try php_admin_value php_engine on|off Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 servers for mail implementation

2003-01-03 Thread Rick Widmer
At 07:11 PM 1/2/03 -0800, Roger Thomas wrote: dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. This doesn't have much to do with PHP. In fact

Re: [PHP] Re: PHP memory usage

2003-01-03 Thread Rick Widmer
At 01:25 AM 1/3/03 -0200, Fernando Serboncini wrote: function a(myclass c) { return c; } would create another copy of c in memory. Things get a bit larger when you go with linked-list like structures in classes, where you have to take really good care to don't duplicate data. If you're not

Re: [PHP] Defaults in drop down list...

2003-01-06 Thread Rick Widmer
At 11:54 AM 1/6/03 -0600, Steven Kallstrom wrote: select name=state option value=AL{$stateselected['AL']}Alabama/option option value=AK{$stateselected['AK']}Alaska/option option value=AZ{$stateselected['AZ']}Arizona/option . /select

Re: [PHP] $_SERVER content

2003-01-08 Thread Rick Widmer
At 12:00 PM 1/8/03 +0100, Fritzek wrote: Hi folks, I've seen a lot phpinfo() on different platforms, different PHP versions with different web servers. Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and HTTP_REFERER. someone knows

RE: [PHP] apache + mod_php question

2003-01-08 Thread Rick Widmer
At 05:16 AM 1/9/03 +1000, Timothy Hitchens \(HiTCHO\) wrote: use: apachectl graceful It will reload the config's and allow operation to continue!! Yes, in many cases this is the best option. The only time I've found it will not work is when you are adding or changing SSL certificates. For

Re: [PHP] PHP Encoders and GPL License

2003-01-17 Thread Rick Widmer
At 04:45 PM 1/17/03 -0800, [-^-!-%- wrote: Since PHP itself is open source, then wouldn't that prohibit a developer from encoding any PHP product? Please correct me, if I'm wrong. I'm just curious. GPL isn't the only way to license open source. PHP is not GPL for just that reason. See the

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Rick Widmer
At 01:54 PM 10/1/02 +0200, Erwin wrote: James Mackie wrote: Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload the configuration files as per the

Re: [PHP] PHP XML

2002-10-15 Thread Rick Widmer
At 09:25 AM 10/15/02 -0500, Chris Boget wrote: Let me preface this by saying that I know the benefits of using XML It seems to me most of the benefits of XML actually go to the hardware and network suppliers. They get to sell you bigger storage for the bloated data, faster processors for the

Re: [PHP] PHP XML

2002-10-15 Thread Rick Widmer
At 09:25 AM 10/15/02 -0500, Chris Boget wrote: Do you realize more benifit for the back end processes when using XML that makes any additional time it takes to display a page to the user worth it? Just ask the user if they really want to wait longer for something they can't even see,

[PHP] Re: [PHP-DB] Enum table entry

2002-10-19 Thread Rick Widmer
At 11:48 PM 10/18/02 -0500, Shiloh Madsen wrote: For instance, a series of checkboxes with items such as abjuration, conjuration, divination, and others, which will all have a numeric value which gets plugged into the enum field. for instance, if a user selected abjuration, and divination,

Re: [PHP] Most current non-beta version, and bcc

2002-11-07 Thread Rick Widmer
At 02:38 PM 11/7/02 -0600, Jill S wrote: so again I'll ask - Are the 4.2.3 downloads at the top of the page at: http://www.php.net/downloads/ beta versions or non-beta versions? 4.2.3 is currently the latest stable released version of PHP. Yes, that means NOT BETA. Anything that makes it

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Rick Widmer
When running PHP as a static binary, how does it handle text (HTML code) that falls outsize of the ?PHP ? tags. Is the text ignored or outputted? Outputted. This can be very handy. One thing I use it for is customizing configuration files where only a small percentage of the overall text

Re: [PHP] Method for displaying Downline

2002-11-30 Thread Rick Widmer
At 06:47 PM 11/29/02 -0800, Daren Cotter wrote: Must you send three separate requests to the list? One is enough. You might find some useful information here: http://marc.theaimsgroup.com/?l=php-generalm=95423103630080w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Method for displaying Downline

2002-11-30 Thread Rick Widmer
IT IS CONSIDERED VERY RUDE TO SPAM THE LIST WITH REPEATED MESSAGES ONE IS ENOUGH!! Yes, I am shouting. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread Rick Widmer
At 11:16 PM 12/1/02 -0800, Troy May wrote: I'm getting nailed with a bunch of returned emails like this: [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments What's going on? Each one has a different address, but the