Technology Programming

Use PHP in a File That Supports Mixed Scripting Languages

You already know how to start and finish a PHP file using regular methods. The code below shows the common way of creating a PHP file:

<?phpecho "Hello About.com!"; ?> What you might not know is that you can run this same bit of code using the script tag:
<script language = "php">echo "Hello About.com!"; </script> The script tags can identify a language (PHP or otherwise) who's code you will be running in a section.

This is useful in a file that allows for mixed scripting languages. While it is not a common setup, it is sometimes used. By using the script tags, you can easily identify what language is where, and when it switches.

Related posts "Technology : Programming"

The Importance Of Having a WordPress Business Theme

Programming

Website Design Is Necessary For Your Website

Programming

The Most effective On line Paid Survey Evaluation

Programming

Adelaide SEO - Links And Keywords, How Should They Be Used

Programming

C Programming Compilers for Microcontrollers

Programming

How Should A DJ Make Music Logo That Is Distinct And Cool?

Programming

Call to Action Concepts for Small Businesses

Programming

Microsoft Access Databases in Office 365

Programming

Why web design is crucial for producing world class websites

Programming

Leave a Comment