>
>I think it's just "test.html", although I am not 100%
>sure. I will check that. Maybe this is the reason...

I hit this early on too.
I write my code on a windows machine, and upload it using cute-ftp to the 
server, which is linux.
I started out trying to make files like "file.ext" on windows, but windows 
"helps" by capitalizing the first letter for you. The results on upload 
were inconsistent, sometimes it ended up as "file.ext" and sometimes as 
"File.ext"

I've settled on a capitalization scheme that seems to satisfy both systems, 
that files are always of the form "File.ext"
When I upload and download in this form, then it stays the same.

One exception, on the main page, I have "index.html" which is simply  a 
copy of "Index.php" renamed. This is so that requests to www.server.org/ 
will come up correctly.

Probably there's a place to fix that in apache, but I haven't gone after it 
yet.



>I will try that. What does phpinfo() function does?
>Will it return on the screen the info if my server
>supports php?


Yes, and it tells you what sort of information you can use through internal 
variables. A good page to keep hanging around for those "can I do.." questions.

> > >3. Now suppose I write a seperate php script as a
> > >seperate file, like test.php. How do I refer to it
> > >from html file in order to make the php script
> > work?
> > >And can I start my web page directly with php? If
> > so
> > >how?
> >
> > (In index.html)
> > <A HREF ="test2.html"> Try the test thing </A>
>
>??? I don't understand it. You refer to another html
>file... Will it make a php script work??? How?

Sorry, I wasn't clear.
On a properly configured server, you can have .html files with and without 
php code inside, and .php files as well.

Basically, the server figures it out :)


>Correct me if I am wrong, but I think the following
>will make a link to another html file...

Yes. The idea was that the second file could be pure html, or Php that 
generates html.

Here's what my normal "Index.php" looks like.

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="description" content="The main page">
<meta name="GENERATOR" content="Notepad">
<? include($DOCUMENT_ROOT . "/headmeta.inc")?>
<title>Page Title.</title>
<link REL="SHORTCUT ICON" href="favicon.ico">
</HEAD>
<? include ("Header.inc")?>
<? include("Index.inc") ?>
<? include($DOCUMENT_ROOT . "/Footer.inc") ?>
<? include($DOCUMENT_ROOT . "/Do_webtrends.php") ?>
</body>
</html>


The body of the page is in "Index.inc".
Headmeta, Header, and Footer are the "structure" of the page, in this case 
using HTML forms.
Do_webtrends is actually a java script, that tracks users for me.

This is a little tricky to get right, but in the end, pages take only 
minutes to create, since all you do is copy and rename Index.php to 
Newpage.php, and put the content in Newpage.inc.
You have to change only one line in Newpage, so that it includes 
Newpage.inc rather than Index.inc.

Probably some clever person will pipe up and show us how not to have to 
change that line :)


>Really? Than how can you save a php file with php
>extension? Do you save in .txt and rename? Or do
>something else?...

File, Save as, Index.php  No problem.



>What do you mean by "mouseover"?
>Can it be actually done with CSS?

When your mouse is over this area, do something.
Web search on "mouseover" and "java"

As to CSS, probably so, but don't ask me. :)



>Yes, I know some of my questions may seem 'bizarre' to
>you. That's because I try very much to learn and many
>things confuse me... I'm not a programmer... and I try
>to learn.

I went through this starting Xmas eve in 1999.
By Feb 2000, I had a server online. Between then, I taught myself the 
essentials of Linux, Apache, PHP, and MySQL. (With of course a lot of help 
from groups like this one.)
It wasn't great, and I've made a lot of progress since then, but it was up 
and running!

--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to