php-windows Digest 1 Jul 2002 08:58:58 -0000 Issue 1219
Topics (messages 14481 through 14498):
filemtime()
14481 by: James Mclean
14482 by: Peter
14483 by: Matt Parlane
Re: function call ????
14484 by: toby z
Re: errormessage: undefined variables - why define them?
14485 by: Uwe Birkenhain
14487 by: Steve Yates
Re: 404 error not being triggered for files with a php extension
14486 by: Steve Yates
Re: Problems acessing post data
14488 by: Steve Yates
Vars not accepted in script.php?var=xy
14489 by: Uwe Birkenhain
14490 by: Uwe Birkenhain
14491 by: Rich Gray
HELP!!!
14492 by: Brian McGarvie
14493 by: Jarrad Kabral
14494 by: Julie Meloni
14495 by: Brian McGarvie
14496 by: Brian McGarvie
14497 by: Julie Meloni
Re: php error logging
14498 by: Joris Pinnoo
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 ---
Hi,
Anyone know if the function filemtime() is available in php, running
under IIS 5 on Windows 2000 Server?
(i hate windows, why cant the world use Unix?)
Cheers
--- End Message ---
--- Begin Message ---
do a search for it in the manual :) if it works on php unix it will work with php
windows :)
-----Original Message-----
From: James Mclean [mailto:[EMAIL PROTECTED]]
Sent: Monday, 1 July 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] filemtime()
Hi,
Anyone know if the function filemtime() is available in php, running
under IIS 5 on Windows 2000 Server?
(i hate windows, why cant the world use Unix?)
Cheers
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi James...
Yep - filemtime() works fine on Windows.
And to answer Peter - it's not safe to assume that if something works on
*nix PHP, it will work on Windows PHP - have a look a usleep(), or perhaps
the entire PCNTL function family.
Thanks,
Matt
"James McLean" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
>
> Anyone know if the function filemtime() is available in php, running
> under IIS 5 on Windows 2000 Server?
>
> (i hate windows, why cant the world use Unix?)
>
> Cheers
--- End Message ---
--- Begin Message ---
thnx bruce, paul, chris, cal .......
but i ve tried it
inlcude doesnt work
i keep gettin this error:
Warning: Failed opening
'http:\localhost\cat_disply.php' for inclusion
(include_path='C:\WINDOWS\system32\inetsrv\php') in
e:\final project\zroot\z3.php on line 3
my tries to make line 3 work are:
1. $cat = include 'http:\\localhost\cat_disply.php' ;
2. $cat = include 'cat_disply.php' ;
and even without $cat variable
3. require_once(cat_disply.php);
4. require(cat_disply.php);
5.require($DOCUMENT_ROOT . "cat_disply.php");
and i get another error (for require):
Fatal error: Failed opening required 'e:/final
project/zrootcat_disply.php' (include_path='E:\final
project\zroot') in e:\final project\zroot\z3.php on
line 3
i even tried return $cat; in cat_dislpy
but nothing seems to be working
out of sheer desperation i tried changing the include
path in php.ini to my localhost but to no use
will someone plz help ????
& im mailin on the "right" list now .....
thnx a millllllllion ... everyone ....
toby ...
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--- End Message ---
--- Begin Message ---
It was again very easy,
I woke up this morning (at 6) and remembered that there are different
possibilites to adjust the behavior of errormessages in php.ini - and that
was it: "show all errormessages and warnings" - what I never have on the
server. And then php will will warn me - and will later fill that variable
with an empty string.
Thanks for the help,
Uwe
But there remains the question why the programs are not running anyway - but
I will try first.
I nice and sunny week to everybody!
Uwe Birkenhain schrieb in Nachricht
<[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 ---
--- Begin Message ---
"Uwe Birkenhain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> - is it now neccessary to define variables before I use them???
No, but realize 4.2 changed how variables are referenced. By default
register_globals is set to off now.
- Steve Yates
- Make headlines! Use corduroy pillow cases!
/ Taglines by Taglinator - www.srtware.com /
--- End Message ---
--- Begin Message ---
"Ian Tuck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> 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.
To possibly save you some head-beating and wall dents, I reported this
several months back. See http://bugs.php.net/bug.php?id=14409. That also
references an Apache issue number (mod_cgi/8683) in case you can add
anything that might speed a solution. Seems like *something* should realize
there's no file present.
- Steve Yates
- "Let's face the obvious. Yesterday we were nerds. Today we're the
cognetive elite. Let's conquer." - Chester G Edwards
/ Taglines by Taglinator - www.srtware.com /
--- End Message ---
--- Begin Message ---
"Jo�O" Paulo Batistella" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> OK under Linux but nothing happens on Windows.
I bet they are different PHP versions? With 4.2, you must use
$_POST['varname'], since by default the register_globals .INI file option is
turned off.
- Steve Yates
- I'm pink...therefore, I'm SPAM.
/ Taglines by Taglinator - www.srtware.com /
--- End Message ---
--- Begin Message ---
Hi,
I try to use PHP on my Win98 PC. It is mainly running but there is a
problem:
When I want to submit variables in the url
(http://localhost/script.php?var=xy),
the script will not know them and show me the message "Notice: undefined
variable var ..."
Conditions which depend on var will not work.
I thougt that perhaps there has something to be enabled in php.ini - but
couldn't find anything.
The next problem, which is perhaps connected to the first:
When using something like:
while ($row = mysql_fetch_array($result)) {
$name = $row[name]; }
I get the message:
"Notice: Use of undefined constant name - assumed 'name' in ..."
It is working and can be suppressed by not let php show the warnings - but
I'm surprised about it.
Has anybody the right hint for me?
Uwe
PS.: Those scripts run very well when used on the webserver - but not at
home.
--- End Message ---
--- Begin Message ---
When uploading this question, I received an older answer:
> - is it now neccessary to define variables before I use them???
No, but realize 4.2 changed how variables are referenced. By default
register_globals is set to off now.
- Steve Yates
and that's it: when I set register_globals to 'on' it's working - thank's
Steve!
But since it is recommended to use 'off' (and will be standard in the
future):
does that mean that it's not longer possible to pass variables in an URL????
greetings,
Uwe
Uwe Birkenhain schrieb in Nachricht
<[EMAIL PROTECTED]>...
>Hi,
>I try to use PHP on my Win98 PC. It is mainly running but there is a
>problem:
>When I want to submit variables in the url
>(http://localhost/script.php?var=xy),
>the script will not know them and show me the message "Notice: undefined
>variable var ..."
>
>Conditions which depend on var will not work.
>
>I thougt that perhaps there has something to be enabled in php.ini - but
>couldn't find anything.
>
>
>The next problem, which is perhaps connected to the first:
>When using something like:
> while ($row = mysql_fetch_array($result)) {
> $name = $row[name]; }
>
>I get the message:
> "Notice: Use of undefined constant name - assumed 'name' in ..."
>
>It is working and can be suppressed by not let php show the warnings - but
>I'm surprised about it.
>
>
>Has anybody the right hint for me?
>
>Uwe
>
>PS.: Those scripts run very well when used on the webserver - but not at
>home.
>
>
--- End Message ---
--- Begin Message ---
1st issue: If you are using v.4.2.x of PHP then globals are turned off by
default as a security measure. You can either switch back on globals defined
bt default by changing register_globals to On in your php.ini file (not a
good idea for security however) or change your code to use the super global
array i.e. $_GET['var']
2nd issue: try $row['name'] in single quotes
HTH
Rich
-----Original Message-----
From: Uwe Birkenhain [mailto:[EMAIL PROTECTED]]
Sent: 01 July 2002 08:46
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Vars not accepted in script.php?var=xy
Hi,
I try to use PHP on my Win98 PC. It is mainly running but there is a
problem:
When I want to submit variables in the url
(http://localhost/script.php?var=xy),
the script will not know them and show me the message "Notice: undefined
variable var ..."
Conditions which depend on var will not work.
I thougt that perhaps there has something to be enabled in php.ini - but
couldn't find anything.
The next problem, which is perhaps connected to the first:
When using something like:
while ($row = mysql_fetch_array($result)) {
$name = $row[name]; }
I get the message:
"Notice: Use of undefined constant name - assumed 'name' in ..."
It is working and can be suppressed by not let php show the warnings - but
I'm surprised about it.
Has anybody the right hint for me?
Uwe
PS.: Those scripts run very well when used on the webserver - but not at
home.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have a failrly complex web-application...
Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running php as cgi), Integrates
with MySQL and MS Access...
My Problem is...
It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try to use IE
5.0 (PC) it does'nt!
Anyone care to help me out? Had similar problems and might be able to enlighten me?
--- End Message ---
--- Begin Message ---
sorry you'll have to be a little more specific than "it doesnt work, whats
wrong"
Jarrad Kabral
-----Original Message-----
From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
Sent: Monday, 1 July 2002 6:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] HELP!!!
I have a failrly complex web-application...
Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running php as cgi),
Integrates with MySQL and MS Access...
My Problem is...
It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try
to use IE 5.0 (PC) it does'nt!
Anyone care to help me out? Had similar problems and might be able to
enlighten me?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
BM> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try to use
IE 5.0 (PC) it does'nt!
PHP doesn't know what browser you are using, nor does it care (unless
you tell it to). Provide more information about what "isn't working"
and someone can probably help you out. For example, if "isn't
working" means "my cookies aren't being accepted", then someone will help
you with testing cookie settings in your browser. And so on.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
It is using sessions from the outset...
As soon as I goto the URL it IE5.0 warns about cookies and i obviously allow it to
make it...
> -----Original Message-----
> From: Brian McGarvie
> Sent: 01 July 2002 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] HELP!!!
>
>
> I have a failrly complex web-application...
>
> Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running
> php as cgi), Integrates with MySQL and MS Access...
>
> My Problem is...
>
> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac),
> however when I try to use IE 5.0 (PC) it does'nt!
>
> Anyone care to help me out? Had similar problems and might be
> able to enlighten me?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Entering data in the form and then pressing submit... it just stays at the form,
doesn't even try to progress...
> -----Original Message-----
> From: Julie Meloni [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 9:20 AM
> To: Brian McGarvie
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] HELP!!!
>
>
> BM> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac),
> however when I try to use IE 5.0 (PC) it does'nt!
>
> PHP doesn't know what browser you are using, nor does it care (unless
> you tell it to). Provide more information about what "isn't working"
> and someone can probably help you out. For example, if "isn't
> working" means "my cookies aren't being accepted", then
> someone will help
> you with testing cookie settings in your browser. And so on.
>
>
> - Julie
>
> --> Julie Meloni
> --> [EMAIL PROTECTED]
> --> www.thickbook.com
>
> Find "Sams Teach Yourself MySQL in 24 Hours" at
> http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
>
>
--- End Message ---
--- Begin Message ---
BM> Entering data in the form and then pressing submit... it just stays at the form,
doesn't even try to progress...
View Source and verify that you have a form action present.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
sorry, I forgot to tell. I'am running IIS
still any good ideas?
thanks,
Joris
"Alex Elderson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Let your webserver log for you.
>
> if u run apache with VH do:
>
>
> <VirtualHost <snip>>
> <snip>
> ErrorLog c:/web/logs/webserver.hardinxveld.netflex.nl-error_log
> CustomLog c:/web/logs/webserver.hardinxveld.netflex.nl-access_log
common
> <snip>
> </VirtualHost>
>
> in your php.ini:
>
> ;error_log
>
> ----- Original Message -----
> From: "Joris Pinnoo" <[EMAIL PROTECTED]>
> Newsgroups: php.windows
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 27, 2002 12:26 AM
> Subject: php error logging
>
>
> > in php.ini my error_log directive has a specific value :
c:\php\error.log
> >
> > so all the errors are logged in one file.
> >
> > how do you make multiple log-files? each file containing the errors from
> one
> > specific website.
> >
> > any ideas?
> >
> > thanks,
> > Joris Pinnoo
> >
> >
>
>
>
--- End Message ---