ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Any
Old Operating System: WinNT IIS
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
This is because microsoft's directory structure uses backslashes
, not forward slashes in your
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Any
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Also, make sure that register_globals is set to on in your
php.ini file.
Previous Comments:
ID: 12310
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Any
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
In my php.ini is:
register_globals = ON
if i declare
global $SCRIPT_FILENAME - i get an empty string! On all other servers i
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Any
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Try using $HTTP_SERVER_VARS[SCRIPT_FILENAME]
instead of $SCRIPT_FILENAME.
Previous Comments:
ID: 12310
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Any
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
If i use this code:
$path=dirname($SCRIPT_FILENAME);
the variable $path is empty, because $SCRIPT_FILENAME is empty!
if a
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Feedback
Old Bug Type: Any
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Please replace $SCRIPT_FILENAME with
$HTTP_SERVER_VARS[SCRIPT_FILENAME]
so
ID: 12310
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
PHP doesn't set $HTTP_SERVER_VARS['SCRIPT_FILENAME'], but
$HTTP_SERVER_VARS['SCRIPT_NAME'].
this is bogus.
ID: 12310
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Feedback
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
If i use:
$path=dirname($HTTP_SERVER_VARS[SCRIPT_FILENAME]);
i get:
Warning: Undefined
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Sorry about that...
replace $SCRIPT_FILENAME with $HTTP_SERVER_VARS[SCRIPT_NAME]
if that doesn't work, I am stumped.
--By
ID: 12310
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
If i replace $SCRIPT_FILENAME with $HTTP_SERVER_VARS[SCRIPT_NAME] the dirname
function only returns the path from
ID: 12310
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Michael, I think you should devote some time to read the PHP documentation. You're
trying to make orange juice from apples. That won't
ID: 12310
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Ouch Andy, that seemed pretty harsh.
Anyways, do you have a page up I can look at with phpinfo() in it? If not just make
a
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
ya...
Sorry about my remark.
If you create a page like cnewbill said, you can see all of environmental
variables, server
ID: 12310
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
One last remark before I definitely leave this PR:
Michael, you might also want to subscribe to php-general@,
that can be done by
ID: 12310
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
make sure you have a big mailbox if you subscribe to this mailing list.
You get lots of messages...
Previous Comments:
ID: 12310
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Hi
i just made a page with
?php
phpinfo();
?
http://frifra.dtdns.net:8082/informatik/test.php
ID: 12310
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
I'm assuming you want to be able to call these includes, and you think you need to
know the path?
IMO, there is a much cleaner
ID: 12310
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Please, take this where it belongs: [EMAIL PROTECTED]
Previous Comments:
18 matches
Mail list logo