Re: [PHP] looking for a good FormMail PHP script

2004-08-14 Thread raditha dissanayake
Juan Nin wrote: Hi I'm looking for a good FormMail PHP script which beheaves like Matt Wright's FormMail.pl script (but lacks it's exploitable problems :) I found several on the net, but didn't like them too much... any recommendations? you have obviously not looked at the PHP manual. -- Raditha

[PHP] Getting the size of a mysql table using php

2004-08-14 Thread Brent Clements
How does one get the size of a mysql table using php? I tried taking a look at how phpmyadmin does it but got lost in the code. Anyone have any simple or elegant ways of doing this? -Thanks Brent

Re: [PHP] Getting the size of a mysql table using php

2004-08-14 Thread Greg Donald
On Sat, 14 Aug 2004 01:52:31 -0500, Brent Clements [EMAIL PROTECTED] wrote: How does one get the size of a mysql table using php? I tried taking a look at how phpmyadmin does it but got lost in the code. Anyone have any simple or elegant ways of doing this? show table status like

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in

[PHP] Re: Open all subdirectories in a directory

2004-08-14 Thread Hannes Magnusson
On 14 Aug 2004 12:52:12 - [EMAIL PROTECTED] (Phpdiscuss - Php Newsgroups And Mailing Lists) wrote: Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name.

Re: [PHP] Open all subdirectories in a directory

2004-08-14 Thread John Holmes
PHPDiscuss - PHP Newsgroups and mailing lists wrote: Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is

[PHP] Re: str_replace - is it case sensitive

2004-08-14 Thread Hannes Magnusson
On Sat, 14 Aug 2004 14:37:09 +0100 [EMAIL PROTECTED] (Andrew W) wrote: Is the str_replace function case sensitive, I cant seem to find any answer on the PHP manual website or in my books. Yes. For case in-sensitve use str_ireplace Look at the PHP manual one more time under See also If it

[PHP] php die function for MySQL connection errors

2004-08-14 Thread John Gostick
Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL server); $db =

[PHP] Problem with submit form if type is image

2004-08-14 Thread fkeessen
Dear all, Can you please help me with the following? I have written the following script: If i have a input type image; the script doesn't go to the prospect2.php. If i have a input type=submit everything works super! Can someone help me? Frank

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
John Gostick wrote: Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL

[PHP] dropdown box displays empty rule

2004-08-14 Thread fkeessen
Dear all, Can you have a look at the following problem; If the value $selected is filled with a value it must be matched against $rowu-naamreis. If it's matching then it must be the SELECTED value in the drop down box.. The problem is that it displays now a blank rule..

RE: [PHP] String compare of 7 text strings

2004-08-14 Thread Ford, Mike [LSS]
-Original Message- From: Brent Clements To: [EMAIL PROTECTED] I wanted to see if anyone has an easier way to do this. The end result is this: I need to compare 7 different text strings(which are in an array). They should all be the same, if they are not the same, a message should be

RE: [PHP] php die function for MySQL connection errors

2004-08-14 Thread Ford, Mike [LSS]
-Original Message- From: John Gostick Sent: 14/08/04 15:19 I have a quick question about using the PHP die() function. [...] I changed the code to this: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL server); $db =

[PHP] code

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Codes attached. In this page i used filetype instead of is_dir. ?php $dir = jdkcoders/; function getfiles($dir) { if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if($file!='.' $file!='..')

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header(Location: http://your.server.name/path/to/errors/servererror.php;); are you sure? -- Raditha Dissanayake.

Re: [PHP] String compare of 7 text strings

2004-08-14 Thread Hannes Magnusson
if ( count ( array_unique ( $array ) ) == 1 ) { // all fields have the same value } we could post solution to this problem for ever... - Hannes On Sat, 14 Aug 2004 15:24:03 +0100 [EMAIL PROTECTED] (Mike Ford) wrote: -Original Message- From: Brent Clements To: [EMAIL PROTECTED] I

[PHP] Re: dropdown box displays empty rule

2004-08-14 Thread Kim Steinhaug
Well, seems you have some confusing logic here, since you print out the option before you check if it should be checked. To top it off, when its accually checked you write out an empty value, which really doesnt make any sence at all. A quick rewite would be :

[PHP] phpMyAdmin equivalent

2004-08-14 Thread Watty
Does anyone know of a program equivalent to phpMyAdmin for managing PostgreSQL databases? Watty

Re: [PHP] phpMyAdmin equivalent

2004-08-14 Thread raditha dissanayake
Watty wrote: Does anyone know of a program equivalent to phpMyAdmin for managing PostgreSQL databases? Watty bet you didn't google for phppgadmin -- Raditha Dissanayake. http://www.radinks.com/sftp/ |

Re: [PHP] Using Post like Get

2004-08-14 Thread Kim Steinhaug
Since you are on the same server, I hope you mean the same domain. If not the session variable wouldnt work very well. But if you infact are on the same domain, you should look into the session variable and store everything you need. From what I know there are now limits on how much you can store

RE: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Watty
You can't google for something you don't know about ;) Thanks for that, looks exactly what I was looking for Watty -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 16:29 Cc: [EMAIL PROTECTED] Subject: Re: [PHP] phpMyAdmin equivalent

Re: [PHP] String compare of 7 text strings

2004-08-14 Thread Kim Steinhaug
* Ed Lazor wrote : Nice solution =) My thoughts exatly, :D -- Kim Steinhaug - There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't.

[PHP] Re: Problem with submit form if type is image

2004-08-14 Thread Torsten Roehr
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, Can you please help me with the following? I have written the following script: If i have a input type image; the script doesn't go to the prospect2.php. If i have a input type=submit everything works super! Can someone help

Re: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Curt Zirzow
* Thus wrote Watty: You can't google for something you don't know about ;) Haven't you heard? Google has ESP and can read your mind.. You just have to keep thinking this phrase: Google: phpMyAdmin PostgreSQL equivalent Curt -- First, let me assure you that this is not one of those shady

[PHP] RE: [PHP-DB] How to create a new Table in prostgresql from a Webinterface

2004-08-14 Thread Watty
Try phppgadmin -Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 16:32 To: [EMAIL PROTECTED] Subject: [PHP-DB] How to create a new Table in prostgresql from a Webinterface Hello, Never I have done this before (no need) but now I need to

Re: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Jason Wong
On Saturday 14 August 2004 23:25, Watty wrote: You can't google for something you don't know about ;) Surely it would have crossed your mind to check on the postgresql site? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting *

RE: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Watty
I'm an ignorant human being :| Watty -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 17:11 To: [EMAIL PROTECTED] Subject: Re: [PHP] phpMyAdmin equivalent On Saturday 14 August 2004 23:25, Watty wrote: You can't google for something you don't

Re: [PHP] String compare of 7 text strings

2004-08-14 Thread Jason Wong
On Saturday 14 August 2004 23:12, Hannes Magnusson wrote: if ( count ( array_unique ( $array ) ) == 1 ) { // all fields have the same value } we could post solution to this problem for ever... Indeed: if (count(array_flip($doo)) 1) { // not same } -- Jason Wong - Gremlins Associates -

[PHP] Re: [PHP-DB] How to create a new Table in prostgresql from a Webinterface

2004-08-14 Thread Michelle Konzack
Hello Watty, Am 2004-08-14 17:05:28, schrieb Watty: Try phppgadmin No, because it is my own Webinterface to a Program... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886

[PHP] [PHP-General List] - Cron or script like Cron -

2004-08-14 Thread francesco[AT]automationsoft[DOT]biz
Hi all, I have a script that generate a benchmark report, in *.csv, every day. I want to have the possibility to send me this report every day at the same time, during night, i.e. at the 03.00 am. I know that there is Cron that give me the possibility to do this, but I'm not the server manager

RE: [PHP] [PHP-General List] - Cron or script like Cron -

2004-08-14 Thread Watty
Add the functionality to the script that runs the benchmark. Watty -Original Message- From: francesco[AT]automationsoft[DOT]biz [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 17:34 To: PHP General List Subject: [PHP] [PHP-General List] - Cron or script like Cron - Hi all, I

RE: [PHP] php+iptables

2004-08-14 Thread Ed Lazor
You might want to do a search for PHP Firewall and look at the other projects already out there. http://phpfwgen.sourceforge.net/ -Original Message- From: Joel n.solanki [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 9:53 PM To: Robby Russell Cc: php-users Subject: Re:

Re: [PHP] String compare of 7 text strings

2004-08-14 Thread Hannes Magnusson
if ( count ( array_diff ( $array, array ( $array[0] ) ) 0 ) { // not same } On Sun, 15 Aug 2004 00:24:30 +0800 [EMAIL PROTECTED] (Jason Wong) wrote: On Saturday 14 August 2004 23:12, Hannes Magnusson wrote: if ( count ( array_unique ( $array ) ) == 1 ) { // all fields have the same value

[PHP] Re: [PHP-General List] - Cron or script like Cron -

2004-08-14 Thread Hannes Magnusson
run cron via httpd user? i.e. fputs STDIN crontab -e blablabla - Hannes On Sat, 14 Aug 2004 18:34:10 +0200 [EMAIL PROTECTED] (FrancescoAutomationsoftBiz) wrote: Hi all, I have a script that generate a benchmark report, in *.csv, every day. I want to have the possibility to send me

[PHP] Re: [PHP-General List] - Cron or script like Cron -

2004-08-14 Thread Hannes Magnusson
Don't mail me directly, no good comes from that. Anyway, see my answear below. -Hannes From: francesco[AT]automationsoft[DOT]biz [EMAIL PROTECTED] To: Hannes Magnusson [EMAIL PROTECTED] Subject: Re: [PHP] Re: [PHP-General List] - Cron or script like Cron - Date: Sat, 14 Aug 2004 19:03:02 +0200

Re: [PHP] Re: [PHP-DB] How to create a new Table in prostgresql from a Webinterface

2004-08-14 Thread Jason Wong
On Sunday 15 August 2004 00:38, Michelle Konzack wrote: Am 2004-08-14 17:05:28, schrieb Watty: Try phppgadmin No, because it is my own Webinterface to a Program... What exactly is it that you need help with? Syntax for creating tables are covered in the postgresql manual. If you're really

Re: [PHP] Template Question

2004-08-14 Thread rush
Jonathan Haddad [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their

Re: [PHP] Template Question

2004-08-14 Thread John Holmes
Jonathan Haddad wrote: eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML. If your file starts off in HTML mode, then: $file = file_get_contents('yourfile.php'); eval('?'.$file.'?'); -- ---John Holmes... Amazon Wishlist:

[PHP] RIP Programming

2004-08-14 Thread Harlequin
I know, I know. This is a PHP newsgroup. I just wondered if anyone knew of any RIP newsgroups as I can't seem to find any, or any forums... -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List

RE: [PHP] RIP Programming

2004-08-14 Thread Ed Lazor
Did you Google? RIP programming? And if that doesn't work, you'll probably have to clarify the term RIP. -Original Message- From: Harlequin [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 11:47 AM To: [EMAIL PROTECTED] Subject: [PHP] RIP Programming I know, I know.

[PHP] Language Searching

2004-08-14 Thread Karl Timmermann
Hi, Does anyone how I could accomplish this: Basically, I have a MySQL database of names - some names have Spanish accents in them. I want to build a web interface in PHP to search this database. However, I want the names with Spanish accents to be shown in the search results, regardless if the

[PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-14 Thread John Holmes
Anyone know of a PHP english word password generator? Something that'll produce easy to read and remember codes like buffalo_candy or shipment+plant, etc? I had a look on phpclasses.org, but didn't find anything like this. Or, as an alternative, I'll code it myself if anyone can point me to a

Re: [PHP] Re: Problem with submit form if type is image

2004-08-14 Thread Frank Keessen
Thanks Torsten Roehr, it works! Frank Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, Can you please help me with the following? I have written the following script: If i have a input type

Re: [PHP] Re: dropdown box displays empty rule

2004-08-14 Thread Frank Keessen
Kim, It worked! Thanks, Frank Kim Steinhaug [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, seems you have some confusing logic here, since you print out the option before you check if it should be checked. To top it off, when its accually checked you write out an empty

Re: [PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-14 Thread Jason Wong
On Sunday 15 August 2004 06:33, John Holmes wrote: Or, as an alternative, I'll code it myself if anyone can point me to a dictionary of english words that I could use populate a text file or database to choose from. http://www.dcs.shef.ac.uk/research/ilash/Moby/ -- Jason Wong - Gremlins

RE: [PHP] Language Searching

2004-08-14 Thread Ed Lazor
You should probably run this past the MySQL mailing list. They'll have a lot more success on how to search the database like this. -Ed -Original Message- From: Karl Timmermann [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] PHP templates

2004-08-14 Thread Octavian Rasnita
Hi all, I have seen that there are many templating systems for PHP. Which is the most used and the best you have found? Can you recommend me a free and good templating system? Thank you. Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP templates

2004-08-14 Thread Watty
Try http://smarty.php.net/, I haven't used it myself but I have heard good things about it. Watty -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: 14 August 2004 22:03 To: [EMAIL PROTECTED] Subject: [PHP] PHP templates Hi all, I have seen that there

Re: [PHP] Language Searching

2004-08-14 Thread John Holmes
Karl Timmermann wrote: Hi, Does anyone how I could accomplish this: Basically, I have a MySQL database of names - some names have Spanish accents in them. I want to build a web interface in PHP to search this database. However, I want the names with Spanish accents to be shown in the search

Re: [PHP] PHP templates

2004-08-14 Thread Robby Russell
On Sat, 2004-08-14 at 14:02, Octavian Rasnita wrote: Hi all, I have seen that there are many templating systems for PHP. Which is the most used and the best you have found? Can you recommend me a free and good templating system? I use Smarty on a very frequent basis. It's very flexible

[PHP] Log parsing

2004-08-14 Thread Watty
I have a dynamic IP address, I used everydns.net as a DNS server. I have a bash script that runs with cron that checks the current IP of the machine with the DNS record so that if my IP changes; it can run the update program. I would like to do some thorough availability reports, so I started by

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
Watty wrote: I have a dynamic IP address, I used everydns.net as a DNS server. I have a bash script that runs with cron that checks the current IP of the machine with the DNS record so that if my IP changes; it can run the update program. I would like to do some thorough availability reports, so

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
Watty wrote: I would like to do some thorough availability reports, so I started by writing the result of the bash script to a log file. I want to parse the log file to give me availability reports. The log file is in the form: 08/14/04 09:10:01 [TAB] S - when the IP

RE: [PHP] Log parsing

2004-08-14 Thread Watty
We know because the IP check run every 5 minutes by cron, and if it has no run within 5:01 minutes then the computer is off, or the script isn't working. But we should assume that the computer is off is there is not a record for that 5 minute slot. Alternatively we could write another line into

[PHP] How to determine if date/time is with DST or not ?

2004-08-14 Thread -{ Rene Brehmer }-
hi gang I'm trying to find a simple way to determine if a given date/time is with DST for a given locale at any point in time ... the point is basically to convert date strings into accurate GMT timestamps for storage in the database... Like I've got date strings looking like: Thursday, July

[PHP] What happend to _SERVER?

2004-08-14 Thread Allen Wayne Best
Hello: I am having a spot of difficulty with PHP. I cannot get php to return the values of _SERVER. Here is a test php file. ?php $handle = fopen( /tmp/test.txt , w ) ; fwrite( $handle, REMOTE_ADDR: ) ; fwrite( $handle, $_SERVER[REMOTE_ADDR] ) ; fwrite( $handle, \n\n ) ; fwrite( $handle,

Re: [PHP] What happend to _SERVER?

2004-08-14 Thread Thomas Goyne
On Sat, 14 Aug 2004 15:26:46 -0700, Allen Wayne Best [EMAIL PROTECTED] wrote: Hello: I am having a spot of difficulty with PHP. I cannot get php to return the values of _SERVER. Here is a test php file. print_r($_SERVER); -- Using M2, Opera's revolutionary e-mail client:

Re: [PHP] Log parsing

2004-08-14 Thread John Holmes
John Holmes wrote: Watty wrote: We know because the IP check run every 5 minutes by cron, and if it has no run within 5:01 minutes then the computer is off, or the script isn't working. But we should assume that the computer is off is there is not a record for that 5 minute slot.

[PHP] Re: PHP templates

2004-08-14 Thread Hero Wunders
Hallo! I have seen that there are many templating systems for PHP. Which is the most used and the best you have found? Can you recommend me a free and good templating system? I like Savant because it is small and intuitive. You can find more info on:

Re: [PHP] What happend to _SERVER?

2004-08-14 Thread Allen Wayne Best
Thomas: Thanx for your suggestion. I ran php stuff1.php stuff.out -- start of stuff.php --- ?php print_r(); ? -- end of stuff.php --- with the results of start of output ---

Re: [PHP] looking for a good FormMail PHP script

2004-08-14 Thread Juan Nin
raditha dissanayake wrote: Juan Nin wrote: Hi I'm looking for a good FormMail PHP script which beheaves like Matt Wright's FormMail.pl script (but lacks it's exploitable problems :) I found several on the net, but didn't like them too much... any recommendations? you have obviously not looked

[PHP] Re: What happend to _SERVER?

2004-08-14 Thread Hannes Magnusson
try to alter your ini file; ini_set ( variables_order, EGPCS ); var_dump ( $_SERVER ); - Hannes On Sat, 14 Aug 2004 15:26:46 -0700 [EMAIL PROTECTED] (Allen Wayne Best) wrote: Hello: I am having a spot of difficulty with PHP. I cannot get php to return the values of _SERVER. Here is a test

Re: [PHP] looking for a good FormMail PHP script

2004-08-14 Thread Hannes Magnusson
On Sat, 14 Aug 2004 20:13:23 -0300 [EMAIL PROTECTED] (Juan Nin) wrote: raditha dissanayake wrote: Juan Nin wrote: Hi I'm looking for a good FormMail PHP script which beheaves like Matt Wright's FormMail.pl script (but lacks it's exploitable problems :) I found several on the

Re: [PHP] What happend to _SERVER?

2004-08-14 Thread Justin Patrin
On Sat, 14 Aug 2004 16:08:01 -0700, Allen Wayne Best [EMAIL PROTECTED] wrote: Thomas: Thanx for your suggestion. I ran php stuff1.php stuff.out -- start of stuff.php --- ?php print_r(); http://www.php.net/manual/en/function.print-r.php ?

[PHP] PHP not working with apache2

2004-08-14 Thread Grant
I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on

Re: [PHP] PHP not working with apache2

2004-08-14 Thread John Holmes
Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Grant
--- John Holmes [EMAIL PROTECTED] wrote: Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Allen Wayne Best
thomas: my php.ini has variables_order = EGPCS. Silly me, I forget to put $_SERVER in the print_r statement. so here is the revised file with output: --- start of stuff php -- ?php print_r( $_SEVER ); var_dump( $_SERVER ) ; ? --- end of

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread John Holmes
Allen Wayne Best wrote: Silly me, I forget to put $_SERVER in the print_r statement. so here is the revised file with output: --- start of stuff php -- ?php print_r( $_SEVER ); var_dump( $_SERVER ) ; ? --- end of stuff php

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Curt Zirzow
* Thus wrote Allen Wayne Best: thomas: my php.ini has variables_order = EGPCS. Silly me, I forget to put $_SERVER in the print_r statement. so here is the revised file with output: --- start of stuff php -- ?php print_r( $_SEVER ); typo!

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Allen Wayne Best
john: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. i uninstalled all php rpms, and reinstalled. no change. php-4.2.2-17.2.i386.rpm php-devel-4.2.2-17.2.i386.rpm php-imap-4.2.2-17.2.i386.rpm php-ldap-4.2.2-17.2.i386.rpm

[PHP] forum suggestions

2004-08-14 Thread Robby Russell
I have an existing web application with a fairly large user base, so it has it's own user authentication already. I am looking for a message board/forum that I can tie into the system and not need to do too much hacking to get it to authenticate against my existing system. Something with threaded

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread John Holmes
Allen Wayne Best wrote: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. I'm pretty sure you already said that a phpinfo() page resulted in no output, either. I'd say that, however you did it, PHP isn't installed correctly.

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Jason Wong
On Sunday 15 August 2004 07:45, Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Hannes Magnusson
On Sat, 14 Aug 2004 18:14:48 -0700 [EMAIL PROTECTED] (Allen Wayne Best) wrote: john: ooops! yes, i do. fixed. ran thru the web browser (no change!) fyi, the web server is apache 2.0.40-21.11 on a rh9 box. i uninstalled all php rpms, and reinstalled. no change. php-4.2.2-17.2.i386.rpm

RE: [PHP] Log parsing

2004-08-14 Thread Watty
I have got a messy script working, thanks for the help John. It's attached if anyone would mind helping me hack it up. There is also a copy of a sample log file. Watty -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: 15 August 2004 01:52 To: Watty Cc: [EMAIL

RE: [PHP] Log parsing

2004-08-14 Thread Watty
I'll try that in another way; feel free to give me your hacks for it: ?php $file = file_get_contents( ./ip ); $line = explode( \n, $file ); ## Number of log entries $total = 0; $unavail = 0; $unavaillog = FALSE; ## Establish the standard difference between log entries of 5 minutes $diff =

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Grant
--- Jason Wong [EMAIL PROTECTED] wrote: On Sunday 15 August 2004 07:45, Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I

Re: [PHP] forum suggestions

2004-08-14 Thread Matthew Runo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd suggest Phorum.. http://www.phorum.org It works great for us. You can see an example here: http://resnet.ucsc.edu/phorum/ Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug 14,

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Jason Wong
On Sunday 15 August 2004 10:09, Grant wrote: I have asked about this on the Gentoo list and was told to add -D PHP4 to an apache2 directive. I did that, but it still doesn't work. Then escalate the issue! Or go through the chapter: manual Installation Servers-Apache 2.0 to make sure

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Allen Wayne Best
john: ah-ha! I found the problem! I change ServerSignature Off to ServerSignature On and now all is well.. Thanks everyone for chiming in :)) On Saturday 14 August 2004 21:32, John Holmes pronounced: Allen Wayne Best wrote: ooops! yes, i do. fixed. ran thru the web browser (no