Jump to content

php / wamp error ?? {Im new...}


shlomikalfa

Recommended Posts

Did you copy/paste your code here?

 

Because code works, as if you had something like that

 

<?php
echo '<br>klftgiuyfg<br />";
?>

 

note ' and " quotes.

 

edit: Seems like php an code tags eat up ' quotes?  ???  There should be a ' before first < br>

Link to comment
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
//there is a line before "klftgiuyfg"
echo "<br>klftgiuyfg<br />";
?>
</body>
</html>

 

I believe works like you want.

Link to comment
Share on other sites

That's it. PHP isn't running, or something. I just copied your whole file:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
//there is a line before "klftgiuyfg"
echo "<br>klftgiuyfg<br />";
?>
</body>
</html>

 

and named the file "test.html" and I get:

 

klftgiuyfg

"; ?>

 

as my output.

Link to comment
Share on other sites

phpinfo()

 

is working... all the tables are in place and filled...

PHP Variables
Variable	Value
_REQUEST["phpinfo"]	1
_GET["phpinfo"]	1
_SERVER["HTTP_HOST"]	localhost
_SERVER["HTTP_USER_AGENT"]	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
_SERVER["HTTP_ACCEPT"]	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"]	en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"]	gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]	ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]	300
_SERVER["HTTP_CONNECTION"]	keep-alive
_SERVER["HTTP_REFERER"]	http://www.phpfreaks.com/forums/index.php/topic,217283.15.html
_SERVER["PATH"]	C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
_SERVER["SystemRoot"]	C:\WINDOWS
_SERVER["COMSPEC"]	C:\WINDOWS\system32\cmd.exe
_SERVER["PATHEXT"]	.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["WINDIR"]	C:\WINDOWS
_SERVER["SERVER_SIGNATURE"]	no value
_SERVER["SERVER_SOFTWARE"]	Apache/2.2.8 (Win32) PHP/5.2.6
_SERVER["SERVER_NAME"]	localhost
_SERVER["SERVER_ADDR"]	127.0.0.1
_SERVER["SERVER_PORT"]	80
_SERVER["REMOTE_ADDR"]	127.0.0.1
_SERVER["DOCUMENT_ROOT"]	C:/wamp/www/
_SERVER["SERVER_ADMIN"]	admin@localhost
_SERVER["SCRIPT_FILENAME"]	C:/wamp/www/index.php
_SERVER["REMOTE_PORT"]	1769
_SERVER["GATEWAY_INTERFACE"]	CGI/1.1
_SERVER["SERVER_PROTOCOL"]	HTTP/1.1
_SERVER["REQUEST_METHOD"]	GET
_SERVER["QUERY_STRING"]	phpinfo=1
_SERVER["REQUEST_URI"]	/?phpinfo=1
_SERVER["SCRIPT_NAME"]	/index.php
_SERVER["PHP_SELF"]	/index.php
_SERVER["REQUEST_TIME"]	1221775057

 

however... other pages that i know that works on my server aren't at home...

-> they are in inside directories, inside WWW..... SomeSubDirs/Page.php....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.