Results 1 to 9 of 9

Thread: html to php?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    246

    html to php?

    How do you tell a .html file to load a .php file? Kinda like they go to my site and it redirects them to the news.php file... I can't figure out how to just get it to go to the news.php instead of index.html... so i want the .html to load the .php

    Thanks,
    Jizz

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: html to php?

    Why don't you just make the news.php page index.php instead?

    Are you using Apache?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    246

    Re: html to php?

    yes.

    i think i need a mysql server... how hard is this to setup on my linux pc?

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: html to php?

    It depends whether you want to install it from source or not. If you want to install from source then its fairly simple if you follow the INSTALL file. But if you want to install it from a rpm then this link will help you out

    http://dev.mysql.com/doc/refman/5.0/en/linux-rpm.html

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: html to php?

    If you have apt-get on your linux box, then it should just be one line in a shell to set it up.


    - ØØ -

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    246

    Re: html to php?

    Ok, so I downloaded this.

    http://dev.mysql.com/get/Downloads/M.../mirror/mysql/

    and then I installed with YaST.

    But where would it show up? How do I finish installing it? Sorry.. this is my first day on a linux.. trying to get my http server working correctly lol.

    Also, Can I host domain names off of a computer? Right now my http server is at http://mrtikki2.no-ip.org/ but I would like it to be at www.venomsource.com .

    Thanks for all the help!

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Posts
    246

    Re: html to php?

    alright.. i got mysql working... is there a way to host a domain name off of my computer now?

  8. #8
    Hyperactive Member OMITT3D's Avatar
    Join Date
    Mar 2006
    Posts
    368

    Re: html to php?

    Quote Originally Posted by NoteMe
    If you have apt-get on your linux box, then it should just be one line in a shell to set it up.


    - ØØ -
    Not everyone uses that distro

    How do you tell a .html file to load a .php file? Kinda like they go to my site and it redirects them to the news.php file... I can't figure out how to just get it to go to the news.php instead of index.html... so i want the .html to load the .php

    Thanks,
    Jizz
    <meta http-equiv="Refresh" content="5;url=news.php">

    5 = the amount of seconds.
    news.php = file or website you can also do http://google.com etc

    alright.. i got mysql working... is there a way to host a domain name off of my computer now?
    No that is not posible.

  9. #9
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: html to php?

    Quote Originally Posted by jizzmasterflex
    alright.. i got mysql working... is there a way to host a domain name off of my computer now?
    You will need a domain name registered and pointing to your IP which should hopefully be static. You can also use a service such as dyndns.org if you have a dynamic IP. Most routers these days have support for those services.

Posting Permissions

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



Click Here to Expand Forum to Full Width