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
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
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
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
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
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
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
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
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 ---
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
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
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
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..
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
28 matches
Mail list logo