Re: [PHP] Removing empty elements from an array

2002-04-28 Thread eric.coleman
function filter($array) { if ( !is_array($array) ) { die("Must be an array!"); } foreach($array as $key => $value) { if($array[$key] == "") { unset($array[$key]); } } return($array); } - Original Message - From: "Craig

Re: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread eric.coleman
You can also use $page = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Dennis Moore'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, April 27, 2002 8:49 PM Subject: RE: [PHP] Sessions and Query

Re: [PHP] php+myslq+IDE

2002-04-05 Thread eric.coleman
http://dev.zaireweb.com/phpcoder.exe That should be the file - Original Message - From: "Charles Little" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 4:59 AM Subject: RE: [PHP] php+myslq+IDE > > Try PHP Coder (not Maguma's Version, becuase PHP Coder kicks

Re: [PHP] request for comments

2002-04-03 Thread eric.coleman
I don't like it, it looks like you copied php.net - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Lee Doolan" <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 8:21 PM Subject: Re: [PHP] request for comments > First thing I noticed: > Website l

Re: [PHP] php+myslq+IDE

2002-04-03 Thread eric.coleman
Try PHP Coder (not Maguma's Version, becuase PHP Coder kicks it's ass) I can email you the installed, as there site seems to be down now.. Eric - Original Message - From: "javier" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, April 03, 2002 4:40 PM Subject: [PHP] php+myslq+IDE > Is the

Re: [PHP] Environment Variables & Functions Incompatible???

2002-04-03 Thread eric.coleman
They did not break backwords compatiblity, because $HTTP_*_VARS works on all the new versions of PHP so far, it's just not Super Global... Eric - Original Message - From: "arti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 10:40 AM Subject: [PHP] Environme

Re: [PHP] Can not get session value???

2002-04-03 Thread eric.coleman
Yes, you have to call session_start() on every page you want to access/pass session variables Eric - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 10:22 AM Subject: RE: [PHP] Can not get session value??? > Do you ha

Re: [PHP] What's wrong with the Array? I"m baffled!

2002-04-03 Thread eric.coleman
Why not try using if(empty($sumItUp[$name])) { // rest of code - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 10:14 AM Subject: [PHP] What's wrong with the Array? I"m baffled! > Hi! > > I'm a little baffled o

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
I have an IDEA If your familiar with OOP Write a class that is like a "WRAPPER" to the ODBC functions. Then, you can connect once, and keep the connection ALL this using just odbc_connect This is what I have done, and if you would like, I can write a quick one. Eric - Original Message ---

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
Why won't you just use odbc_connect ? - Original Message - From: "Maris Kalnins" <[EMAIL PROTECTED]> To: < Sent: Wednesday, April 03, 2002 3:07 AM Subject: [PHP] odbc_pconnect doesnt reuse connection > Hi! > > Configuration: WinXP, the latest Apache, PHP4 > > The problem is that every ti

Re: [PHP] Mail function acting a bit differently

2002-04-02 Thread eric.coleman
Why not just do foreach($form as $key => $value) { $form[$key] = stripslashes($form[$key]); } Eric - Original Message - From: "lmlweb" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, April 02, 2002 11:04 PM Subject: Re: [PHP] Mail function acting a bit differently > I've answered myself

Re: [PHP] PHP and MS Access

2002-04-02 Thread eric.coleman
If you want, I can give you an ODBC Db abstraction layer.. there are only a few things not complete on it, it's at abuot 90% - Original Message - From: "Maxim Maletsky" <[EMAIL PROTECTED]> To: "'Rance Hall'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 6:31 PM

Re: [PHP] Forum with PHP, without using mySQL..

2002-04-01 Thread eric.coleman
phpBB v2.x can run on alot of db's MS Access MS SQL Server... MySQL DB2 Postgre And a few others i think... - Original Message - From: "James Arthur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 8:58 AM Subject: Re: [PHP] Forum with PHP, without using mySQL..

Re: [PHP] return

2002-03-31 Thread eric.coleman
But to answer your question The purpose of return, is to "return" a value.. function test($var) { return addslashes($var); } $foo = "Yes, I'am Very Awsome"; $foo = test($foo); echo($foo); // echo's, Yes I\'am Very Awsome Understand? - Original Message - From: "Rasmus Lerdorf" <[E

Re: [PHP] ask for suggestion about printing

2002-03-31 Thread eric.coleman
This can be done easily... And since when does PDFLIB cost money? I thought it was free... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, March 31, 2002 2:02 PM Subject: [PHP] ask for suggestion about prin

Re: [PHP] Another ?

2002-03-30 Thread eric.coleman
Probably Opera - Original Message - From: "Sean Kennedy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 30, 2002 12:28 PM Subject: [PHP] Another ? > Hello, > > Whats the HTTP_USER_AGENT for opera? > Thanks, > > -Sean > Kennedy > > > -- > PHP General Mailing List

Re: [PHP] RE: RE: $HTTP_USER_AGENT

2002-03-30 Thread eric.coleman
try if( eregi("NS", $HTTP_USER_AGENT) ) { echo('You are using Netscape!'); } elseif( eregi('IE', $HTTP_USER_AGENT) ) { echo('Your using IE'); } else { echo('No Clue what the hell your using'); } - Original Message - From: "Sean Kennedy" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] $HTTP_USER_AGENT

2002-03-30 Thread eric.coleman
Why not echo $HTTP_USER_AGENT and find out? - Original Message - From: "Sean Kennedy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 30, 2002 11:43 AM Subject: [PHP] $HTTP_USER_AGENT > Hello, > > Im making a small php script, but I need to know how to do something.

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
Good one.. hehe Maybe Rasmus was going to notice this, and fix it ;P Hehe, Eric - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 6:41 PM Subject: Re: [PHP] odbc_fetch_array() Not Available? > O

Re: [PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
Well, why would all the other ODBC function works? Thanks, Eric - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 5:58 PM Subject: Re: [PHP] odbc_fetch_array() Not Available? > On Wed, 27 Mar 20

[PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
I am running php 4.1.1, and when i try to use odbc_fetch_array, it says "Call to undefined function" Why is this? Thanks, Eric

Re: [PHP]

2002-03-26 Thread eric.coleman
That would mean that you have some type of output to the browser, i.e. blank line, or some text, before you are calling your session/cookie - Original Message - From: "Vlad Kulchitski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 8:17 PM Subject: [PHP] Hi can

Re: [PHP] Re: Non-Cache in forms?

2002-03-25 Thread eric.coleman
I am putting certin code within comment tags, so it isn't seen... - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 11:00 PM Subject: Re: [PHP] Re: Non-Cache in forms? > On 25 Mar 2002 at 0:29, [EM

[PHP] Non-Cache in forms?

2002-03-24 Thread eric.coleman
Alright, When I submit a form, and shoot out an error, such as "Please fill in email address" and then send them back to the form, the form seems to be blank... Why? What is happening that the form isn't keeping the previously posted data? My error function looks like so function crapout($ms

[PHP] Getting TOTAL DB Size of a MySQL Database

2002-03-16 Thread eric.coleman
Anyone have a small snippet I could use to get the total size of any certin MySQL database.. Just want to disply it in my browser using a little php script, have any ideas? Thanks, Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get the FULL address of a certin page???

2002-03-12 Thread eric.coleman
I have a url like this: http://192.168.1.2/site/add_article.php?sid=5234a0f5acea9aa245dbe9846f6ace1c And I need to be able to RETURN the FULL url, how would i do this? I don't think there is any one function/variable to do this.. I tried __FILE__ but that just returns the path.. Thanks, Eric

Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-09 Thread eric.coleman
I ment, if you re-set it, as im setting it to error_reporting(E_ALL); depending on a value i get from a db query... -Eric - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <> Sent: Saturday, March 09, 2002 6:52 PM Subject: [PHP] Re: Checking to see what value error_report

[PHP] Checking to see what value error_reporting is set at?

2002-03-08 Thread eric.coleman
Is it possible to return what error_reporting is set at currently? If not, think they would be able to throw it into the newest build of php? Thanks, Eric