HI,
Im trying to learn .net. The programming language is really simple.. I have looked at code samples... but I just cant figure out how to put it on a webpage.. ?
lol.. ok php..
PHP is complied at runtime. That means, you dont have to worry about compiling.
All you need is a server that supports php. And you just have to put some php code in a file, and name it with the extenstion .php.
I'll try and make it simple in a series of steps:
1) Get access to a server running php
--- (a) You can rent a php server online , just search google for web hosting, and see if they support php. This is usually included in the features. This costs around $10 a month. You will then have to purchase a domain, and have it pointed to your webserver. Ask your hosting support for this.
---(b) You can install an apache server on your home computer. Search google for apache on windows. This is free. Your domain will be http://localhost/ by default.
2) Create a php file.
--- (a) A php file is a text file with the extension .php.
--- (b) The php file starts with <?php and ends with ?>
--- (c) example: <?php echo 'This is PHP'; ?>
3) Save your php file in a web accessible directory.
--- (a) A web accessible directory is one that is acessible over HTTP. This is any folder in your web server, that you can access from the browser.
--- (b) In most apache servers, this is any folder above 'public_html' or 'www'.
As to learning php: I'd use http://www.php.net
They have all the php functions, some examples and user contributed notes. Easy to read and understand.
Note: geocities, and other free hosting usually dont offer php. You have to spend around $10 a month to get a php enabled server.
Most everything from there on is asking your web server support.