Help - Search - Member List - Calendar
Full Version: Newbie Debugging Problem
WorkTheWeb Forums > Webmaster Resources > PHP Help
Support our Sponsors!
ft310
At the following address there are two links to two separate pages
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

The pages are Test10 and Test20.

They are functionally and virtually the same (I think, newbie think)

The internals of Test20 are:
<html>
<head>
<title>RICS Test page 02 06/23/05</title>
<script language="php" type="text/php">
<!--
//-->
</script>
</head>
<body>Test Start &gt;&gt;&gt;&gt;
<script language="php">
$myvar = "Hello World 06/23/05";
echo $myvar;
</script>
&lt;&lt;&lt;&lt;Test End
</body>
</html>

Test20 does NOT work while Test10 does WORK (after a fashion).

Will someone please point out to me way Test20 does not work -- I can not
see it.

In advance thanks

Frank

[Email Removed]

Hilarion
QUOTE
At the following address there are two links to two separate pages
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

The pages are Test10 and Test20.

[...]

Test20 does NOT work while Test10 does WORK (after a fashion).

Looks like they both do not work. In both cases there's PHP source
sent to the client instead of being processed by PHP.
Are you sure there's PHP installed on www.rhodeisland-aa.org server
and that it's configured to treat *.htm files as PHP files.
Finally (when achieving the two above) you'll have to make sure
it's configured to treat <script language="PHP"> as PHP opening tag
(if you want to use it).


Hilarion

Tony
Hilarion wrote:
QUOTE
At the following address there are two links to two separate pages
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

The pages are Test10 and Test20.

[...]

Test20 does NOT work while Test10 does WORK (after a fashion).

Looks like they both do not work. In both cases there's PHP source
sent to the client instead of being processed by PHP.
Are you sure there's PHP installed on www.rhodeisland-aa.org server
and that it's configured to treat *.htm files as PHP files.
Finally (when achieving the two above) you'll have to make sure
it's configured to treat <script language="PHP"> as PHP opening tag
(if you want to use it).


Hilarion

It would probably be better to do things the normal way and use the PHP file
extension, and the standard PHP opening & closing tags <?php ?> or <? ?>

--
Tony Garcia
Web Right! Development


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
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-2006 Invision Power Services, Inc.