php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19893 Output not displayed with $_SERVER
Submitted: 2002-10-13 23:18 UTC Modified: 2002-10-14 20:47 UTC
From: pickleman78 at sbcglobal dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.3 OS: Windows ME
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pickleman78 at sbcglobal dot net
New email:
PHP Version: OS:

 

 [2002-10-13 23:18 UTC] pickleman78 at sbcglobal dot net
I sem to have this problem. I recently upgraded to PHP 4.2.3. Since it has register_globals turned off, I went through and attempted to modify my code to the new format. I seem to keep having this one problem though.

When I view this in a browser(IE 5.5) <form action=<?php echo($_SERVER('PHP_SELF']); ?> method=post> it will not give me any output, no warnings, no errors, nothing. When I isolated just this piece of code, and put it in a seperate document, it should have had the output of
<form action=mypage.php method=post>, but for some reason it would not parse it. I have no clue why this is happening. Is it a bug, or am I just stupid?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-14 01:05 UTC] cynic@php.net
try it with a different client, like wget or cURL.
also, what does this script output?

<?php
    error_reporting(E_ALL);
    header("Content-Type: text/plain");
    print_r($_SERVER['PHP_SELF']);
?>



 [2002-10-14 07:52 UTC] michael dot mauch at gmx dot de
Is this just I typo in your bug report or is this copied and pasted from your actual file?

<form action=<?php
echo($_SERVER('PHP_SELF']); ?> method=post>
             ^

Should be:

<form action=<?php
echo($_SERVER['PHP_SELF']); ?> method=post>
 [2002-10-14 20:46 UTC] pickleman78 at sbcglobal dot net
Hmmm, yes that was a typo in that, and it seems typo work now.... After my computer restarted, it worked perfectly, thanks for the help though
 [2002-10-14 20:47 UTC] pickleman78 at sbcglobal dot net
urgh.. too bad I didn;t know how this bug system works... Hmmm.. I guess I will mark it as bogus because it wasn't real.... hmmmm
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC