Could you recommend a good free site for someone who is just learning to write CGI scripts and PHP, and needs a server to try them out on? I have some space at my school lab, but trying to SSH to it has been bombing out this weekend.
Most free sites are not going to allow you to run your own PHP or CGI code; it would be too much of a security risk. That's not to say that no such sites exist; I just simply don't know of any.
Could you recommend a good free site for someone who is just learning to write CGI scripts and PHP, and needs a server to try them out on? I have some space at my school lab, but trying to SSH to it has been bombing out this weekend.
Why not install a webserver and PHP on your own computer?
Most free sites are not going to allow you to run your own PHP or CGI code; it would be too much of a security risk. That's not to say that no such sites exist; I just simply don't know of any.
Thanks. I saw a couple, but I was afraid of diving in. Didn't know what I might be setting myself up for as far as obligations with them.
MeJennifer said:
Why not install a webserver and PHP on your own computer?
umm, because, I'm a coward?
Job said:
You should really just setup a PHP web server on your machine, i think that's the best option.
Is it very difficult? How much space (approx.) does it take? All I have at home is my little laptop running Windows XP.
Is it very difficult? How much space (approx.) does it take? All I have at home is my little laptop running Windows XP.
It's not very difficult. Windows XP comes with IIS (Internet Information Services) which is Microsoft's Web & FTP server.
You can install IIS by going to Control Panel -> Add/Remove Programs -> Add/Remove Windows Components. In the window that comes up highlight "Application Server" and click details, then select IIS and ASP.NET (so you have the option of ASP).
When IIS is setup you can start using ASP immediatlely. If you have the .NET framework installed (which you probably do), you can also use ASP.NET (after registering the ASP.NET extensions in IIS, but let's not get into that).
IIS's web root folder will default to c:/inetpub/wwwroot/. This is the folder where you throw your asp, php, html, css ..etc files.
For testing your site you use http://localhost which is the loopback network interface. So if you add file myapp.asp in the wwwroot folder it will be accessible from http://localhost/myapp.asp .
To ensure ASP is working properly you can add the following ASP file to wwwroot and see if it works properly:
Code:
<%
Response.Write "This is working"
%>
Installing PHP can be a little trickier. You download PHP from http://www.php.net/ then configure IIS. There's a variety of tutorials that guide you through the process such as http://www.iis-resources.com/modules/AMS/article.php?storyid=4
hmm.. I had not thought about using IIS. I guess I thought I was going to have to have LINUX/Apache on my machine to work with php. I'm pretty naive about that stuff. I had IIS installed on another machine when I was working with some ASP stuff a few years ago and it was a pretty smooth set up. (Except I was a dork and forgot to patch properly and got the NIMDA virus!) The php set up sounds daunting but I might give that a try if I can't sort out my SSH problem. Thanks, Master Shake.
And cronxeh, I will check out that site. I wouldn't mind spending a little dough if it is a good spot for learning. Thanks for sharing.