HTML to PHP offline? New to website designing, need to convert to php to use codes.?

  • Thread starter Thread starter steven t
  • Start date Start date
S

steven t

Guest
I'm creating a website with html.

Right now, I have all my CSS and my HTML stuff saved on my usb:
G:/

G:/Website/tutorial/htdocs/index.html
is my homepage.

Do I need to get a host first and do everything to convert to php then? or is there a way I can actually do all this offline?
I've also used a program to convert my index.html file to index.php and I've created a .htaccess with

DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php .html .htm .php

in it.

I'm completely confused about this stuff and can someone explain to me how I can change it to php? I want to take advantage of some codes..

Thanks.
 
WAMP is a fine server but there are smaller, easier to set up servers that you can use for testing purposes, and that will run from your flash drive.

Here are links to a few:
http://www.uniformserver.com/index.php
http://www.usbwebserver.com/ (The site is in German but the program is in english)
http://www.server2go-web.de/

NOTE:
When the server is running you should be able to point your browser to http://localhost , http://127.0.0.1 , or http://127.0.0.1:8080 (this for USBwebserver for sure)to get to your home page. Otherwise(if the address says something like "G:/Whatever") you are accessing the file directly and not through the server. So server-side scripts will not work.
 
WAMP is a fine server but there are smaller, easier to set up servers that you can use for testing purposes, and that will run from your flash drive.

Here are links to a few:
http://www.uniformserver.com/index.php
http://www.usbwebserver.com/ (The site is in German but the program is in english)
http://www.server2go-web.de/

NOTE:
When the server is running you should be able to point your browser to http://localhost , http://127.0.0.1 , or http://127.0.0.1:8080 (this for USBwebserver for sure)to get to your home page. Otherwise(if the address says something like "G:/Whatever") you are accessing the file directly and not through the server. So server-side scripts will not work.
 
If you want to process PHP code, you need a PHP server. If you want to execute htaccess directives, you need to run Apache.

Google "WAMP server" and you will find many distributions of the appropriate software to run on your own PC.

You can also use a free Web host, though I know of none that allow you to make htaccess file edits.

http://www.dougv.com/blog/2007/03/12/good-free-web-hosting-companies/
 
Back
Top