LT   EN   RU  
Tuesday 30 May 2023 - Independent and informative portal
Register   Login
News subscribe
Subscribe   Unsubscribe
Visits since 2002 09 12 - 69788997
Pages in 40735
Simple PHP mail script

This script is not only educational, but also applicable for practical web development. It allows you to place a simple form for sending emails on any HTML page. The script shows you how to gather user input, perform form validation with PHP, and send an email. As you see, the script is simply one if ... elseif ... else statement. At first, it validates the required form fields. Note that PHP form validation is performed on the server, after sending all the data. Therefore, it would be a good idea to combine server-side form validation with PHP and client-side form...

PHP Include File

You can insert the content of a file into a PHP file before the server executes it, with the include() or require() function. The two functions are identical in every way, except how they handle errors. The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error). These two functions are used to create functions, headers, footers, or elements that can be reused on multiple pages. This can save the developer a considerable amount of time. This means that you can create...

Multiple Page Forms

So you have this long, involved form. Rather than present the user with a myriad of inputs on a single page, you want to break this up into separate form pages. So now you're asking, "How do you make multiple page forms?" I'm glad you asked. It's easy!What's that bit of code do? If you were to place the above code between your opening form tag and the closing form tag, it will look at all values received from the prior page, strips out any HTML tags, replaces any character entities with their appropriate code and writes them to hidden...

Free Software Profile: PHP

PHP is an HTML-embedded scripting language. Like Microsoft's ASP technology, it is designed to be processed on the server side and produce dynamic Web pages. PHP3 is the third version of the interpreter initially developed by Rasmus Lerdorf. It was originally destined to bring dynamic scripting functionality to personal HTML Web pages, which explains why it was christened Personal Home Page. For the second version of PHP, its engine was rewritten so that HTML form management functionality could be added, and its name became PHP/Form Interpreter (PHP/FI) to reflect this change. The arrival of PHP3 coincided with the rise of...

PHP and ASP.NET Go Head-to-Head

The latest incarnation of ASP, ASP.NET, is not completely backward-compatible with previous versions of ASP, as it is a complete rewrite of the software. Previous ASP technology actually has a lot more in common with PHP than with ASP.NET, which is a complete framework for building Web applications. One of the principal features of this model is the flexibility to choose your programming language. ASP.NET works with scripted languages such as VBScript, JScript, Perlscript, and Python, as well as compiled languages such as VB, C#, C, Cobol, Smalltalk, and Lisp. The new framework uses the common language runtime (CLR); your...


Active Server Pages (ASP) is Microsoft's scripting technology for displaying dynamic web pages, ASP programmes mostly use VBScript, JScript. PHP on the other hand PHP is the open source alternative to ASP that runs on multiple operating systems, incuding Linux, Windows solaris and other OS. Speed PHP is relatively much more faster and stable than ASP, ASP is built on a COM-based architecture so when ever a program tries to connect to a database or he calls a COM object there is an overhead on the server, All this COM overhead adds up and slows things down. Under PHP, everything...

Introduction to .NET languages, VS.NET and Extending VS.NET

In other sections previous to this, we have examined the runtime and the Common Type System. Essentially then, a .NET application can be thought of some code to manipulate these types and call methods in the Base Class Library, along with the application's logic. .NET compilers are of different types. .NET Consumers include compilers that let you do simple compilation of script code. On the other hand, .NET Extenders, let you take and extend existing Common Type System types. .NET language compilers do not compile your code directly to X86 (with the exception of one mode of the Visual C++.NET...

Why PHP?

If you are running on a UNIX or Linux platform, you have the choice between Perl and PHP, both excellent for scripting. Where PHP has the edge is in being much simpler for people new to writing scripts, making it more productive in the earlier stages. Perl also relies on having the correct modules downloaded from CPAN for some of the more off-beat functionality, whereas they come as part of the PHP distribution. Of course, there's no reason not have both Perl and PHP! On a Windows platform, there is competition from ASP and Cold Fusion. Here the choice can...

Advantages of PHP Over Java

PHP is an established server-side scripting language for creating dynamic Web pages. PHP was built with the needs of Web developers in mind... Unlike other cumbersome, overhead-laden approaches, PHP is lightweight and focused on the Web - where it can solve complex problem scenarios quicker and more easily than comparable technologies. Java began its life as a programming language and was initially aimed at running client-side applications inside of Web browsers. Over the last few years, the problems associated with these "applets," as they were known, has led Sun and many other Java developers to use the language in other...

PHP 4.0: Dynamic Content for the Web Warrior

PHP 4.0 is not a trivial upgrade to an existing product--it's a total re-write with backward compatibility to the 3.x technology. That's actually quite a feat, because they kept the compatibility with version 3.x while making some radical changes under the hood. First and foremost, the 3.x product was really an interpreted language, each line of code evaluated during the execution of the server side page. With version 4.0, the functional difference is actually quite staggering--the server actually compiles the code on the fly, and then executes the code, with dramatic improvements in speed, as you can guess. There's actually...