php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22760 Echoing Problems
Submitted: 2003-03-18 05:45 UTC Modified: 2003-03-19 03:54 UTC
From: dud_boi at hotmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.1 OS: Windows Server 2003 RC2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dud_boi at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-03-18 05:45 UTC] dud_boi at hotmail dot com
Sometimes on my site, theres an echo problem, where nothing is being echoed. Im not sure if its just me, but your search functions seems to hvaing that problem too..

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-18 05:50 UTC] andrew@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-03-18 06:07 UTC] dud_boi at hotmail dot com
Terribly sorry, i realised that sometimes my code just doenst appear. I have <?php
$var .= $_SERVER['HTTP_REFERER']."<br>";
echo $var;
?>
which i inserted into a file. it doesnt parse the code at all. when i view source, it acutally appears as is. My other php codes are working fine.

p.s. when i search for things on the php.net site, if there are results, they just dont appear
 [2003-03-18 06:08 UTC] dud_boi at hotmail dot com
oops..i realised why.. anyway, your search page still seems to have problems
 [2003-03-18 08:12 UTC] andrew@php.net
Are you getting an 'undefined variable' error from your code?  $var must be initialized before you can concatenate to it...

<?php
/* Initialize the var first */
$var = '';
$var .= $_SERVER['HTTP_REFERER']."<br>";
echo $var;
?>

Also, if there is no referer to the page (easily spoofed) or if the page is loaded directly, it'll return an empty string.

Try that and repost to the report...

~ Andrew Heebner
 [2003-03-18 11:34 UTC] sniper@php.net
user error.

 [2003-03-19 03:54 UTC] dud_boi at hotmail dot com
Im gonna be very embarrased if i say this but i forgot to name is as php instead of html... and even as php it would be no use as my links all appear in an iframe. Terribly sorry to cause so much unwanted trouble..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC