Server space for newb learning CGI & PHP

  • Context: PHP 
  • Thread starter Thread starter Math Is Hard
  • Start date Start date
  • Tags Tags
    Php Server Space
Click For Summary

Discussion Overview

The discussion revolves around finding suitable free web hosting options for learning CGI scripting and PHP. Participants explore various methods for setting up a server environment, including using personal computers and existing online resources.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant requests recommendations for free hosting sites to practice CGI and PHP, citing issues with their school lab's server.
  • Some participants express skepticism about the availability of free hosting that allows running PHP or CGI due to security risks.
  • Several participants suggest setting up a local web server on personal computers as a viable alternative, specifically mentioning Windows XP's built-in IIS.
  • One participant shares a link to a paid service that offers a community and support for PHP and Perl, suggesting it as a potential resource.
  • Another participant reflects on their past experiences with free web hosts that supported PHP and ASP but notes that those options are no longer available.
  • Concerns are raised about the difficulty and space requirements of setting up a local server, with some participants providing detailed instructions on configuring IIS and installing PHP.
  • A participant expresses apprehension about the complexity of setting up PHP on IIS but considers it if they cannot resolve their SSH issues.

Areas of Agreement / Disagreement

Participants generally agree that setting up a local server is a good option, but there is no consensus on the availability of free hosting sites that support CGI and PHP. Some express uncertainty about the security and obligations associated with such sites.

Contextual Notes

Limitations include the potential security risks associated with free hosting services and the varying levels of technical knowledge among participants regarding server setup.

Who May Find This Useful

Individuals learning CGI and PHP, those interested in web development, and beginners seeking practical server setup advice may find this discussion beneficial.

Math Is Hard
Staff Emeritus
Science Advisor
Gold Member
Messages
4,663
Reaction score
36
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.

Thanks!
 
Technology news on Phys.org
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.

- Warren
 
Math Is Hard said:
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?
 
I've had two free web hosts in the past that supported PHP and ASP, but they're no longer free.

You should really just setup a PHP web server on your machine, i think that's the best option.
 
chroot said:
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?:redface:

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.
 
Last edited:
http://sdf.lonestar.org

Donate 36 dollars and you'll become a lifetime member of a wonderful community. PHP, Perl, SSH and much more
 
Math Is Hard said:
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
 
Last edited by a moderator:
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.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 59 ·
2
Replies
59
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
1
Views
3K