Weird firefox problem

death180

Seasoned Veteran
Joined
Jul 3, 2009
Messages
4,338
Reaction score
0
FP$
1,767
So I have a php file right, here is the contents:

Code:
<?php
echo "Hello world";
?>

Basic right? Yea, the thing is, Firefox doesn't show anything. It's just a blank page.

So let's say I do something a bit more complex like this:
Code:
<?php
$str = "Who's Kai Jim?";
echo $str;
echo "<br />";
echo $str."<br />I don't know!";
?>

Except firefox only shows this:
Code:
"; echo $str."
I don't know!"; ?>

So clearly something with firefox is broken, at least that's what I assume.


For the record, I have the latest released version of firefox and I am using wamp.
 
Uninstall Wamp, Uninstall Firefox.
Install XAMPP, put your website files in htdocs.
Re-install firefox.
 
Reinstall firefox then.
Did you set firefox to the default wamp localhost browser upon installation?
 
That could actually be a Wamp problem. I had php problems aswell with the recent version of wamp. Thats why I moved to XAMPP.
 
Here's the thing, I tried reinstalling both and it didn't work.

But that was on my laptop, it all still works on my main PC.
 
For one your code is not right...... here is your code.

Code:
<?php
$str = "Who's Kai Jim?";
echo $str;
echo "<br />";
echo $str."<br />I don't know!";
?>


this is the right code...

Code:
<?php
echo $str = "Who's Kai Jim?";
echo $str;
echo "<br />";
echo $str."<br />I don't know!";
?>
 
This one didn't work either:
Code:
<?php
echo "Hello world";
?>

Tell me that one is incorrect.

And actually That code is correct because I didn't want to echo that variable, hence why I didn't type
Code:
echo $str = "Who's Kai Jim?";
 
Have you tried using xampp? I have looked up this problem and it seems to be wamp related.
 
Back
Top Bottom