|
Posted by Ralph Hφglund on 01/19/06 11:16
Greg N. skrev:
> Ralph HΓΆglund wrote:
>
>> It is only the general environment that must be properly set that I
>> dont know so much about yet.
>
>
> I'm not sure what the problem is, so I'll give you a very simple example:
>
> A html page, let's call it "sample.html", may look like this:
>
> <html><body>
> <p>hello world
> </body></html>
>
> To get the _same_ output under PHP, you only need to change the file
> type to "php". Hence, the file name will be "sample.php". There is
> nothing in terms of a special environment that you need, other than a
> server that supports PHP.
>
> Now, the example above named "sample.php" works under PHP, but it does
> not use any of PHP's language features yet. To use the language, you
> have to surround the PHP parts of your code with a pair of special
> delimiters: "<?php" and "?>".
>
> <html><body>
> <?php
> echo '<p>hello world';
> ?>
> </body></html>
>
> You may use any number of PHP code blocks on a page, or you may write
> the whole page in PHP:
>
> <?php
> echo '<html><body>';
> echo '<p>hello world';
> echo '</body></html>';
> ?>
>
> That's all there is to it. Of course, there is more to PHP than just
> the ECHO element. Go learn :) .
>
Thanks Greg, yes, I have that figured out , I have programmed in
Perl and Javascript and C++ so it should not be any problems. It
is just a matter of finding the right idea how to design the
thing, as always.
This is the homepage so far: http://web.telia.com/~u30325494/
It is not me on the picture, it's a good friend. He is composing
music. Click on Clips, this is what I have done so far just to
get started. It would of course be nicer with a list within the
homepage with a nice design. The songs are not Sponge Music
compositions, just samples from somewere.
The Admin choice is to get to the page with uploading sound clips
to the directory, protected by password. I seemed to get a rather
good security there. Can you get through the password if you try?
Please comment if you like.
Have a nice day, started snowing here :-) or :-(
Ralph in Schweden
[Back to original message]
|