[PHP] logs(querystring) in php4 or apache?

2002-11-23 Thread Frank Wang
Hi,

In a html i use a form to post data to a php file in a Apache server. I'd
like to take a look at the raw data submitted from the web browser to the
php, where can i find this info? the access.log in Apache does not contain
this info. thanks.

Frank



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] newbie's question

2002-11-15 Thread Frank Wang
Hi,
what is the correct way of testing if a string is empty or not?

fw



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mail and from line overriding

2002-11-15 Thread Frank Wang
Hi,

I have something like following:

$from = "[EMAIL PROTECTED]";
$email = "[EMAIL PROTECTED]";
$msg = "abcde";

 mail($email, $subj, $msg, $from);

the message sent always has the 'from' line taken from php.ini, not $from,
is there a way to override this ? Thanks.

Frank



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] newbie's question

2002-11-15 Thread Frank Wang
Hi,

That looks good to me, thanks.

"Steve Keller" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Err... sorry. The logic was there but my fingers got a bit ahead of my
> brain. The check works, but if you want to just check if it's empty turn
> the conditional to a negative, like so:
>
> if (!$testVar) {
> etc.
> }
>
> That makes it "If NOT $testVar"
>
>
>
>  > I may be crazy, but wouldn't if ($variable) work just as well? If the
> string is empty it'll return a negatory on that check.
>  >
>  > Lemme double check that.
>  >
>  > $testVar = "";
>  > if ($testVar) {
>  >   echo "Yes";
>  > }
>  > else {
>  >   echo "No";
>  > }
>  >
>  > Yeah, ok. That ran just fine under 4.2.3.
> --
> S. Keller
> UI Engineer
> The Health TV Channel, Inc.
> (a non - profit organization)
> 3820 Lake Otis Pkwy.
> Anchorage, AK 99508
> 907.770.6200 ext.220
> 907.336.6205 (fax)
> Email: [EMAIL PROTECTED]
> Web: www.healthtvchannel.org
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php