Jump to content

can i test a php script that isnt on a server?


SFB
 Share

Recommended Posts

ok, have you installed it yet? if you have, (you are on windows, aren't you?) go to start menu => programs => apache friends => xampp => CONTROL XAMPP SERVER PANEL (or something like that.)then click the start buttons next to Apache and Mysql if you need it.then go to the directory you installed xampp and click on htdocs. all the files you put in this folder will be accessable. you also might want to rename index.php so it won't redirect you to another page. then go to http://localhost/ in your web browser and if you renamed index.php it should show all the files in the htdocs folder. you can click on the links and your php page will act like it is on your web server.LG

Link to comment
Share on other sites

ok thanksis this actually like a real server?could it be used to host my own site?i keep getting this error in my php and i cant figure out what i have to change. Warning: include(/Program Files/xampp/htdocs/template/nav/snav.txt) [function.include]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\sfb\index.php on line 42everything worked on dan's server why doesnt it work on this thing. i changed all of the locations but it still isnt working

Link to comment
Share on other sites

Hosting your own web site has many security issues, unless you are a competent system administrator and are able to lock down the OS and server. Linux seems to do a better job on security, but only if it's set up right.

Link to comment
Share on other sites

If your website is only accessible on your local network then it's not a problem. But if you are running a publicly-accessible server, you will get login attempts and hack attempts from all over the world (usually China) looking for ways into your server. Also if you host you will either need a static IP address (generally fairly expensive) or a dynamic DNS account, plus the bandwidth to actually run the site. If you want your site to do any emailing, you will need to install a configure a mail server, but it seems that most home ISPs block the outgoing mail ports, so that's another reason why it's better to have a static IP if you are hosting. But if you want to go through the trouble of hosting your own server, you will need to read up on security procedures on how to secure the operating system.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...