Help - Search - Members - Calendar
Full Version: Problem Using Php Code
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
-- Dan --
Hi guys,
I've got the following line of code
CODE
echo "<meta content=\"0; URL=index.php\" http-equiv=\"Refresh\" >";


which works fine running on my pc. However, when i upload it on here all the escape characters (\) for some reason get removed and the code becomes:
CODE
echo "<meta content="0; URL=index.php" http-equiv="Refresh" >";


which is obviously a bit of a problem.

Is there a reason why this could be happening? I can't see a way round it.

I've tried FTP'ing the files, i've tried editing them directly in the control panel, and i've had no luck with either.
Luke Spragg
CODE
echo '<meta content="0; URL=index.php" http-equiv="Refresh" >';


and what he said below me...
Banjo
http://www.php.net/echo

CODE
echo "<meta content='0; URL=index.php' http-equiv='Refresh' >";
-- Dan --
oh, ok.

It works absolutely fine on other servers though?

Luke Spragg
QUOTE(-- Dan -- @ Mar 24 2008, 03:08 PM) *
oh, ok.

It works absolutely fine on other servers though?

Shouldn't have been working with what you had. Maybe you were using a buggy version of PHP?...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.