php-windows Digest 30 Jun 2002 20:42:19 -0000 Issue 1218
Topics (messages 14477 through 14480):
Re: Programmer Job Posting: Work From Home
14477 by: Saci
Re: 404 error not being triggered for files with a php extension
14478 by: Peter
errormessage: undefined variables - why define them?
14479 by: Uwe Birkenhain
14480 by: Peter
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 ---
Investor put money , you put your work.
If the bussines goes to bankruptcy they lose money you lose time.
If the bussines goes well both gain money.
Nothing special for investor, but a nightware for salary works.
--- End Message ---
--- Begin Message ---
Are you using the CGI version of PHP then and does this give you internal
server errors as well?
The only way around this I think would be to write an error handling
document for Apache, written in PHP. This PHP script could then check to see
if the file exists. If it doesn't, then return a 404 error. If it does exist
then it could return a 500 error.
Using the PHP module for Apache does get rid of this problem though.
"Ian Tuck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi everyone,
> I'm using the most recent security patched version of apache (downloaded
> yesterday, v1.3 series), and most recent PHP (also downloaded yesterday),
> hoping to solve a problem that I'm having, to no avail.
>
> For some reason, when I request a file with a php extension that doesn't
> exist, apache doesn't check to see if it exists before sending it off to
> php.exe. Is there a way to fix this without switching to the module
version
> of php? (if that will fix it). I'm pretty sure that it's a problem with
> apache, as it shouldn't even be *getting* to the php processor, but can't
> see where I've configured it incorrectly.
>
> non-existent htm, or html files all show the correct 404 error.
>
> Any hints, suggestions, tips, or voodoo spells I can use to fix this?
>
> Regards,
> Ian
>
--- End Message ---
--- Begin Message ---
Hi everybody,
I have PHP 4.21 since today running on my win98-PC (YEAH!)
Now I try the programs which I usually use on a webserver -
they work basically, but I get a lot of errormessages like "Undefined
variable: mod in ....."
Two questions:
- is it now neccessary to define variables before I use them??? Or is it a
windows-problem? Or what?
- some of the undefined variables are defined, but in an include-file - why
might this be a problem?
Thank's a lot for any help,
Uwe
--- End Message ---
--- Begin Message ---
if you just say
$some_var = "this"
that defines the variable. but if you had something like
if ($some_var == "that")
without setting $some_var to something beforehand you would probably get an
error.
"Uwe Birkenhain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everybody,
> I have PHP 4.21 since today running on my win98-PC (YEAH!)
>
> Now I try the programs which I usually use on a webserver -
> they work basically, but I get a lot of errormessages like "Undefined
> variable: mod in ....."
>
> Two questions:
> - is it now neccessary to define variables before I use them??? Or is it a
> windows-problem? Or what?
> - some of the undefined variables are defined, but in an include-file -
why
> might this be a problem?
>
> Thank's a lot for any help,
> Uwe
>
>
--- End Message ---