473,785 Members | 2,317 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does not work

This may be to simple for the level of material I've already seen here,
but nothing ventured.

I have two web page linked from
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

They are supposed to do the same thing. These pages are Test10 and
Test20 namely print out "Hello World"

Test10 works (after a fashion)

Test20 does not work. The code from this page is
<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>
I will be grateful if someone will tell me why this does not work

In advance, thanks

Frank
to*****@fullcha nnel.net

Jul 17 '05 #1
8 2207
i'm totally not that much into php! :B but i think this is an easier way to
encapsulate your php code:

<?php
$myvar = "Hello World 06/23/05";
echo $myvar;
?>

am i right guys?

if it still doesn't work.. first thing i'd check is, if my php is installed
right.

Greets
Jeroen

<to*****@fullch annel.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
This may be to simple for the level of material I've already seen here,
but nothing ventured.

I have two web page linked from
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

They are supposed to do the same thing. These pages are Test10 and
Test20 namely print out "Hello World"

Test10 works (after a fashion)

Test20 does not work. The code from this page is
<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>
I will be grateful if someone will tell me why this does not work

In advance, thanks

Frank
to*****@fullcha nnel.net

Jul 17 '05 #2
I thought, I'd tried that variation earlier (it did not work either).
The code shown in my original message is the way it is now -- after
trying a lot of variations. There is now a third link on the index page
with this variation -- I seemed to not work again.

The point of Test10 is to demonstrate to me at least that php is
actually working -- I just do not understand why Test10 works and all
of the variations of Test20 do not.

I do thank you for your input -- there is nothing like revisiting the
issue to see what I missed.

F.

Jul 17 '05 #3
to*****@fullcha nnel.net wrote:
This may be to simple for the level of material I've already seen here,
but nothing ventured.

I have two web page linked from
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

They are supposed to do the same thing. These pages are Test10 and
Test20 namely print out "Hello World"


Is your server set up for php to parse files with a '.htm' extension? Try
renaming them test10.php and test20.php to see if that works.

I've no experience of using tags such as <script lang="php"> what the other
poster suggested seems a reasonable thing to try.

BTW I'm not a php guru so others may give a better answer.

Pete

--
http://www.petezilla.co.uk
Jul 17 '05 #4
to*****@fullcha nnel.net wrote:
This may be to simple for the level of material I've already seen here,
but nothing ventured.

I have two web page linked from
http://www.rhodeisland-aa.org/ricsmeetings/index.htm

They are supposed to do the same thing. These pages are Test10 and
Test20 namely print out "Hello World"

Test10 works (after a fashion)
It does defintely _NOT_ work, use^Wview the source
Test20 does not work. The code from this page is


PHP isn't called to parse your scripts, either have your webserver parse
these .htm as php (see archive of list, it's been asked a couple of time
the last few weeks). Or rename to files/url to something that is parsed
by php (usually .php).

Jul 17 '05 #5
See my reply to the next message and thank you very much

Jul 17 '05 #6
I changed the extension of Text21 from htm to php. It now works. Thank
you very much.

I am curious why Text10.htm works but the others do not -- could you
provide some insight into that.

I'm a newbie but I know enough to learn from those that have gone
before me.

I do not understand "use^Wview the source ". Would you please take just
a few more minutes to tell me what "use^Wview the source" means?

Thanks in advance.

Jul 17 '05 #7
to*****@fullcha nnel.net wrote:
I changed the extension of Text21 from htm to php. It now works. Thank
you very much.

I am curious why Text10.htm works but the others do not -- could you
provide some insight into that.
As Daniel pointed out it does not work, non of the .htm ones does. It's
just that you php script is actually somewhat parseable as html in the
first example.
I'm a newbie but I know enough to learn from those that have gone
before me.

I do not understand "use^Wview the source ". Would you please take just
a few more minutes to tell me what "use^Wview the source" means?


Right click on the document when it's open and select "View Page Source"
on firefox, should be something similar on other browsers. The Source
you see at this point should not contain any php at all, since php
should be run at the server before the page is sent to the browser.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCw8ssZeV xmdI1of8RAg5EAJ 4tlE/fPfWvH3DBaAJ2Fa PUCWkvNwCgstp4
dOxwFdigiRRCpyi +nnP36KU=
=l/mb
-----END PGP SIGNATURE-----

Jul 17 '05 #8
Thanks I had noted that but did not understand the significance

This is a great group -- thanks all

Niklas Schönberg wrote:
to*****@fullcha nnel.net wrote:
I changed the extension of Text21 from htm to php. It now works. Thank
you very much.

I am curious why Text10.htm works but the others do not -- could you
provide some insight into that.


As Daniel pointed out it does not work, non of the .htm ones does. It's
just that you php script is actually somewhat parseable as html in the
first example.
I'm a newbie but I know enough to learn from those that have gone
before me.

I do not understand "use^Wview the source ". Would you please take just
a few more minutes to tell me what "use^Wview the source" means?


Right click on the document when it's open and select "View Page Source"
on firefox, should be something similar on other browsers. The Source
you see at this point should not contain any php at all, since php
should be run at the server before the page is sent to the browser.


Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4860
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As InternetExplorer But then I cant see when a user exit my objIExplorer and than an error will show up when I try to open a link in the IE window that does not exist... What can I do about this and way does it not work in win 98?
3
3743
by: Julian | last post by:
Hi I am trying to update a date field in my table but some how this simple code does not work, I know the select work because if I write the fields, it will show the data from the table but why the update does not work? <% Set ConnGallery = Server.CreateObject("ADODB.Connection") ConnGallery.Open ConnectionString Set cmdTemp = Server.CreateObject("ADODB.Command")
5
3641
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug puposes only and is not normally visable to the user.) The Thread function is actually in the Form class. Now.. What I am seeing is that when I create an instance of this Class Library's Form, which starts the worker thread, it seems to hose up...
22
2624
by: Robert Bralic | last post by:
CAN anybody tell me any address where I can download some small(1000-2000) lines C++ proghram source. Or send me ,a small(1000-2000) lines C++ program source that I can compille with gpp under Linux Suse 7.1. I can't belive that C++ exists. Thanks in advance ! robert.bralic@si.htnet.hr
12
2953
by: Frank Hauptlorenz | last post by:
Hello Out there! I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a NT 4 based Domain - now it is a Win 2000 Domain. The database server is a domain member. Now sometimes Win 2000 Clients can't connect to the database. They connect over TCP/IP. The db2log says that the function getHostByName failed. It seems to be only on new installed win 2000 Workstations. Already installed WS have NOT this problem.
0
2370
by: Jarod_24 | last post by:
How does tabindex work in ASP .net pages I dosen't seem to work quite like in regular forms. and there isn't any TabStop property either. 1 .How do you prevent a control form beign "tabbed". (hidden textboxes ect.) 2. How do get a control to get focus when the page is loaded (think username textfield on a loginpage) 3. Does the tab-order work just like in regular forms (1 ->2 -> 3 and so on?) 4. How does tabindex work with datagrid...
14
4863
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
89
6079
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
14
3495
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src="" id="eventImage0" class="eventImage"><img src="" id="eventImage1" class="eventImage"></div>
1
7113
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.