Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    steven t
    steven t's Avatar
    Guest

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

    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.

  2. #2
    Joe
    Joe's Avatar
    Guest
    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.

  3. #3
    Joe
    Joe's Avatar
    Guest
    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.

  4. #4
    dhvrm
    dhvrm's Avatar
    Guest
    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/

 

 

Quick Reply Quick Reply

Click here to log in


What is the number after 87?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Website designing? HTML CODES?
    By Omar Tahir in forum Discuss HTML
    Replies: 0
    Last Post: 02-03-2011, 04:06 AM
  2. how to execute 'asp.net' and 'php' codes offline?
    By Abhishek Chouksey in forum Discuss PHP
    Replies: 0
    Last Post: 09-02-2010, 04:08 AM
  3. Replies: 1
    Last Post: 05-21-2009, 06:29 AM
  4. PHP offline website.....................?
    By vulpix_foxfire_2000 in forum Discuss PHP
    Replies: 0
    Last Post: 04-14-2009, 03:42 AM
  5. Designing a website using php.?
    By jishnu b in forum Discuss PHP
    Replies: 0
    Last Post: 04-03-2009, 04:22 PM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •