background preloader

Web Development

Facebook Twitter

Web Design. CgiScripts. The cgi module is part of the core library of Python. The simplest CGI script that can be considered interesting involves printing out an HTTP header ("Content-type: text/html") and a Web page. In addition, you might want to handle any incoming inputs from things like HTML forms or request parameters. In the earliest days of CGI, shell scripts were sometimes used to do things like this, so the principles are not particularly advanced. Configuration It can be an annoying experience getting the permissions just right on a script so that Web servers like Apache will run it, but the following checklist may be of some use: Find out which user runs the Web server - it's not often the same one as your own user, and it may be one with very limited permissions. In addition you should make sure your script has the correct **line endings** for your server. Sample Code The following code attempts to combine simple output of a Web page with the processing of input from users viewing the page.

See Also. Python CGI: An Interactive Instruction. Introduction. If you want to learn the basics of PHP, then you've come to the right place. The goal of this tutorial is to teach you the basics of PHP so that you can: Customize PHP scripts that you download, so that they better fit your needs. Begin to understand the working model of PHP, so you may begin to design your own PHP projects. Give you a solid base in PHP, so as to make you more valuable in the eyes of future employers. PHP stands for PHP Hypertext Preprocessor. Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded scripting language.

This is generally a good definition of PHP. When someone visits your PHP webpage, your web server processes the PHP code. It is also helpful to think of PHP in terms of what it can do for you. Reduce the time to create large websites. Before starting this tutorial it is important that you have a basic understanding and experience in the following: HTML - Know the syntax and especially HTML Forms. PHP: Hypertext Preprocessor. JavaScript Tutorial. jQuery: The Write Less, Do More, JavaScript Library. Learn How to Make Websites | Mozilla Developer Network.