php-windows Digest 30 Oct 2002 10:22:23 -0000 Issue 1414
Topics (messages 16614 through 16621):
Re: 404 documents
16614 by: Jim Hunter
16617 by: Dash McElroy
16619 by: DaMouse
Re: PHP IIS 5.0 Include files and baldness
16615 by: Cam Dunstan
php sessions
16616 by: Mark Anderson
how install php under iis 6
16618 by: Ali YUKSEL
RE : Subject: Faxing from php
16620 by: neil smith
4.3.0pre2 load problems
16621 by: user.domain.invalid
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Use:
$HTTP_HOST
it will give you the typed in URL.
Jim Hunter
-------Original Message-------
From: DaMouse
Date: Tuesday, October 29, 2002 02:16:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] 404 documents
I there a way to have the .php page pickup the url that was typed in e.g.
usertype= www.mydomain.com/wRongurl
$_SERVER[FILE_NOT_FOUND] = www.domain.com/wRongurl
echo "The lost page was: $_SERVER[FILE_NOT_FOUND]";
--- End Message ---
--- Begin Message ---
>From Rasmus' tips and tricks presentation at PHPcon:
(www.lerdorf.com/tips.pdf)
Apache's ErrorDocument directive can come in handy. For example, this line
in your Apache configuration file:
ErrorDocument 404 /error.php
Can be used to redirect all 404 errors to a
PHP script. The following server variables are of interest:
$REDIRECT_ERROR_NOTES - File does not exist: /docroot/bogus
$REDIRECT_REQUEST_METHOD - GET
$REDIRECT_STATUS - 404
$REDIRECT_URL - /docroot/bogus
Don't forget to send a 404 status if you choose not to redirect to a real
page.
<? Header('HTTP/1.0 404 Not Found'); ?>
-Dash
Egotism is the anesthetic given by a kindly nature to relieve the pain
of being a damned fool.
-- Bellamy Brooks
On Tue, 29 Oct 2002, DaMouse wrote:
> I there a way to have the .php page pickup the url that was typed in e.g.
> usertype= www.mydomain.com/wRongurl
>
> $_SERVER[FILE_NOT_FOUND] = www.domain.com/wRongurl
>
> echo "The lost page was: $_SERVER[FILE_NOT_FOUND]";
>
--- End Message ---
--- Begin Message ---
thankyou for your help is there variables for
403 and 500 also?
----- Original Message -----
From: Dash McElroy <[EMAIL PROTECTED]>
To: DaMouse <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:43 AM
Subject: Re: [PHP-WIN] 404 documents
> From Rasmus' tips and tricks presentation at PHPcon:
> (www.lerdorf.com/tips.pdf)
>
> Apache's ErrorDocument directive can come in handy. For example, this line
> in your Apache configuration file:
>
> ErrorDocument 404 /error.php
>
> Can be used to redirect all 404 errors to a
> PHP script. The following server variables are of interest:
>
> $REDIRECT_ERROR_NOTES - File does not exist: /docroot/bogus
> $REDIRECT_REQUEST_METHOD - GET
> $REDIRECT_STATUS - 404
> $REDIRECT_URL - /docroot/bogus
>
> Don't forget to send a 404 status if you choose not to redirect to a real
> page.
>
> <? Header('HTTP/1.0 404 Not Found'); ?>
>
> -Dash
>
> Egotism is the anesthetic given by a kindly nature to relieve the pain
> of being a damned fool.
> -- Bellamy Brooks
>
> On Tue, 29 Oct 2002, DaMouse wrote:
>
> > I there a way to have the .php page pickup the url that was typed in
e.g.
> > usertype= www.mydomain.com/wRongurl
> >
> > $_SERVER[FILE_NOT_FOUND] = www.domain.com/wRongurl
> >
> > echo "The lost page was: $_SERVER[FILE_NOT_FOUND]";
> >
>
>
--- End Message ---
--- Begin Message ---
Craig,
Do you really need an include file?? Why not a simple IF statement in the
same script that treats the form?
if(isset($missing) == false){
echo "Please go <A HREF='creditapp.php'>back to the form</A> and fill out
the $missing field. Thank you "; } else {
// process the form data normally
}
otherwise, if missing.inc is in the same directory as your script and
permissions are not an issue then it should include properly anyhow
regardless of where the include path is set to in php.ini
cheers CD.
.
----- Original Message -----
From: "Craig Blanzy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 5:03 AM
Subject: [PHP-WIN] PHP IIS 5.0 Include files and baldness
I'm ripping my hair out, mainly because my customer is really getting antsy
for this to work. He has a credit app online running on our NT server under
IIS 5.0 It calls and include file (missing.inc) when it finds an empty
field once the form is submitted. The missing.inc is suppose to say sorry
but you left $missing blank. Instead of doing that, it just reloads the
credit app. Any help at all would be much appreciated.
This is the include file (missing.inc) in it's entirety
<?php
if(!isset($missing)) $missing = "";
echo("<center><font color='#000000' face='verdana'
size='7'><b>Oops!<br><br></font><font color='#000000' face='verdana'
size='4' class='ninept'>The $missing field was not filled
out.<br><br></b></font>\n");
echo("<font color='#000000' face='verdana' size='4'
class='ninept'><b>Please go <A HREF='../creditapp.php'>back to the form</A>
and fill out the $missing field. Thank you.</b></font></center>\n");
?>
I did set the include_path in my php.ini I've set it to
.\inc;c:\php\includes
It deffinatly seems to be accesing the missing.inc file. If i change the
permisions on missing.inc i can get it to ask me for a password everytime i
submit the form, that's how i know it's tryign to read the file, it just
doesn't seem to do anythign with it.
--- End Message ---
--- Begin Message ---
Hi!
I'm running an apache server 1.3.24 and php 4.2.1 as a module on
win2000 professional. i just cant read the cookies from the clients
nor can the session_start, session_register and other functions of
this library.
does anyone have a solution?
thanks in advance
mark
Sent by Medscape Mail: Free Portable E-mail for Professionals on the Move
http://www.medscape.com
--- End Message ---
--- Begin Message ---
how install php under iis 6?
--- End Message ---
--- Begin Message ---
Yes - from any email client in fact. As long as you dont abuse the service
(it has limits on the number of faxes per day), look here :
http://www.tpc.int/faxbyemail.html
I have tried it and it works - may be up to 5 mins before the fax call is
made so don't pull your hair out waiting :-)
The service is currently free and run by a network of ISPs including Demon
internet in the UK. If you are using for commercial use I recommend you
speak to your ISP as many have this service available for a small fee.
Regards,
Neil Smith
At 22:13 29/10/2002 +0000, you wrote:
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
From: "Radovan Radic" <[EMAIL PROTECTED]>
Date: Tue, 29 Oct 2002 14:47:49 +0100
Subject: Faxing from php
Hi
Is there any solution for sending fax through php?
I need to generate document ,get fax number from database and send the
document to the fax number.
There is an example on http://codeproject.com/isapi/aspfax.asp in ASP, but
it dodnt work for me, although i cant say i know much about faxing
softwares.
Radovan
--- End Message ---
--- Begin Message ---
When i run php.exe it complains
Missing php_ctype.dll and php_tokenizer.dll
Where are they ?
--- End Message ---