instead of making php on my computer, how can i make it send the same as it shows on my computer for others, or how do i host this site so everyone else can see it?
Printable View
instead of making php on my computer, how can i make it send the same as it shows on my computer for others, or how do i host this site so everyone else can see it?
Its not a good idea to host your own site, but if you must, then you need to Port Forward 80 to your computer.
Shared hosting is the cheapest @ as low as $5 a month. This is typically LAMP and you can use a domain name.
There is also free webhosting, although i am not sure if there are many sites that allow php scripts to run on their sites. With free hosting, you typically get a subdomain (like mysite.freehosting.com)
i see that if you type like http:/ip/c: then it says forbidden, is that a good thing or a bad thing, does this mean they have acess to all my computer?
By default, files which are not in the DocumentRoot of the web server cannot be accessed. Your network setup will determine weather or not the server can be accessed from another (external) location.
If you connect with a modem and don't have a firewall then should disconnect the modem and not plug it in again until you have a firewall; because no only will the web server be visible, so will all the other services you have running (such as Windows file sharing). Once you have the firewall installed you will need to open port 80 to allow connections to the web server.
If you connect via a LAN, through a switch or equivalent then you will need to configure NAT to change the IP address to that of your local machine.
My suggestion will be not to host it from a PC. You can open up additional vulnerabilities by running extract services on your machine and exposing them to the world. :)
if i run a site, will anyone be able to harm my computer or anything related to that?
If you run a public web server on your home computer then that brings some problems:Quote:
Originally Posted by Justa Lol
- Yes there is a possibility of hackers getting in.
- Your computer will need to be on 24/7 if you want the site up 24/7
- It will cause your internet connection to degrade if there are visitors browsing your site, and if you or your family is using your connection, e.g. on YouTube, when people are browsing your site, it's going to make your site very slow, unless you have a very strong broadband connection.
- If you get a lot of hits, then you could exceed your internet connections bandwidth limit
- Electricity bills if running it 247
I suggest you google for Free PHP hosting.:wave: