Archive for 'Programming'

learn php
Chandan asked:


PHP or HyperText Preprocessor is a server side scripting language used for creating dynamic websites. The script which is initially possessed by the server is then transferred to buyer via HTML files. The language is even used for command-line scripting and client-side GUI applications. More importantly, the back-end tool for PHP is My SQL, the interfacing property of My SQL, an online database, which matches with PHP. So webmasters, who want to make their web sites automated, can zero in on My SQL and PHP, to build dynamic websites.

Benefits of PHP:

* PHP has been breaking new ground in the outsourcing world, with over 1,000,000 websites currently lapping up the benefits of PHP language. Shaking off traditional static image of the websites, the language apparently endows the site with certain level of vibrancy.

* PHP’s written scripts are pretty instrumental in keeping track of the visitor’s activities on your site. Sending out emails to the subscribers, aiding users upload files or images to the site, and driving content on your site dynamically, using databases.

* Small business sites, can utilize PHP to obtain feed back from users on their products and services. The script even aids in creating a form which will allow customers in sending emails to you directly.

* Being a free open source language, the users need not shell out thousands of dollars in licensing fee to acquire PHP. Cost-savings has made PHP the much preferred language over competitors like Microsoft’s ASP.NET and Visual Basic.net and Sun Microsystems’ Java.

* Easy in installation. Moreover, PHP Programs have their base in C & C++ and finds similarity with C++ and C syntax and so it is even easy to learn.

* PHP does not put a load on servers. The code is optimized to make the server’s job easier.

* As much of the processing is moved to the server, collection and use of data becomes more convenient with PHP. Data can be easily stored in databases and used in new ways. Users have access to this centralized data. Web sites can be created by making use of the central reserve much more efficiently.

* PHP gives developers much more freedom to create light, feature rich web sites that reuse common elements while still being connected to extended data sources.

* One of PHP’s primary benefits is a lack of dependence on external programs to run the code. Media files like sound, video and flash require plug-ins to function. Some browsers have the necessary plug-ins pre-installed, but many of the browsers need to download the necessary software to view components of websites. PHP is executed exclusively by the server and therefore requires nothing from the end-user.



Tags: , ,

learn php
Markus Fernandez asked:


The recent boom in field of Information Technology has seen a steep rise in the demand of trained professionals in PHP and MySQL. Software companies specializing in php mysql web development are always searching for skilled professionals for recruitment in several important projects. The current supply of PHP experts is much below par, in terms of potential growth in the industry.

To train the educated work force in this regard various MySQL and PHP training courses have been developed. These courses provide elaborate training to the professionals for developing website with the usage of these languages.

PHP Training Objectives

Two main objectives of php and mysql web development program are:

• To develop skills to create interactive and data-driven sites

• Skill development for database creation in MySQL programming

Prerequisites For Training

The most important criteria for acquiring PHP training is thorough knowledge of HTML. The course should focus on any level in programming for teaching database creation.

On the other hand there are courses for fresher in the field of php and mysql web development. Some institutes like Indus Net Academy, has launched ACE Web Developer course with the aim of teaching real applications in PHP and MySQL. These courses are beneficial for creating awareness among candidates about programming language.

Course Details

Once you get enrolled into these training courses you can acquire knowledge in areas like PHP Programming Fundamentals, Strings Functions, Arrays Functions, HTML/CSS and Forms, File Handling and Email Handling in PHP, Object Oriented PHP and Session Handling etc. On the other hand, the ACE Web Developer course emphasizes on other programming languages such as MySQL Basics, Extended PHP, OOPS in PHP 5, Exception handling in PHP 5, XML / SOAP etc.

Another vital aspect of these php mysql development courses are; 70% hands-on and 30% lecture ratio, as far as the training part of the course are concerned. By engaging the students in live projects the courses ensure that the students have a thorough understanding of the actual application of such programming languages.

So if you have some knowledge about HTML, then you can get online training as well as work as a freelancer for php mysql web development. Some of the requirements essential for learning this programming language are:

• A personal computer at home

• Linux, Windows, MacOS X, or Solaris operating system

• Web server (either Apache httpd or Microsoft IIS)

• PHP 5 or later with the PEAR extensions enabled

• MySQL 4.1 or later (5 or later recommended)

• Internet Explorer 6 or Firefox 2

PHP programmers can now get quality work through the Internet from the freelancing websites. It is an open source language and is free to install and use. This is the main reason for the increase in the popularity of this language.



Tags: , ,

learn php
Ronald W. Firquain asked:


When you are trying to learn a new programming language like PHP, it can get a bit intimidating, especially if you have never had experience with other programming languages before. But trust me, the toughest hurdle is really the starting point. Once you have gotten over that, it is really just a matter of keeping your focus and practicing. Be patient and learn the steps one at a time and you will get there. Here are some tips to help you learn simple PHP:

Learn the basics.

To learn a new language, specifically a programming language, you will need to have basic computer skills. Before you can learn PHP, you need to have a basic background on HTML. This is necessary to make PHP easier to grasp. Plus, you can alternate between the two later on using the same document.

PHP is a language that uses scripting and often used with HTML to supplement functions that HTML lacks. With PHP, you can collect and process data, make comparisons and calculations things that you can not do with HTML. Using this skill, you can create other functions to produce data that is more specialized.

Get the tools.

To create PHP pages, you will need a text editor. A plain text editor is a program that lets you edit files in plain text. These are the ones that come with extensions such as. php, .cgi, .html, etc. These types of text editors will not save formatting on the file, only the plain text. If you have been using a text editing program for your HTML file, that will do. you will probably use either Notepad (for Windows) or Text Edit (for Mac).

Get an FTP.

A File Transfer Protocol or FTP is used to exchange files from your computer to a remote server. This is the one we use to connect on a LAN or to an Internet site.

Get busy.

Once you have the right tools, you will have to practice creating files using PHP. There are some very important stuff that you will need to learn, including basic mathematics and IF statements and using variables. you will have to go through these first before you can hope to build a reliable PHP file.

Once you know your way around these skills, you can then start learning about loops. Loops are just your basic true or false statements that will perform repetitive actions again and again until certain conditions are met. After mastering the loops, you can then learn how to write your very own functions. Once you have learned how to manipulate the codes to create your desired result, there is virtually no limit to what you can do.

Online resources for learning simple PHP

You can not possibly learn simple PHP from a single short article like this, so it is best to expand your knowledge and turn to other resources like books and online sites. Some sites to check out:

PHP.About.com

There are several articles on this site that discuss the most basic information you need to know to learn simple PHP. This is a great source for web based tutorial that features clear step by step instructions on using PHP, HTML, XML and MySQL databases.

PHP Buddy.com

This site contains Quick Start tutorials on PHP and scripts that will make it easy for you to learn the program easily. This includes a brief introduction and learning basic PHP syntax. There are also valuable tutorials on using cookies, data inscription and working with functions and sessions using PHP.

PHP Freaks.com

This is a site for people who want to learn both PHP and MySQL. The site has 90 tutorials on PHP, more than 400 PHP code examples and nearly 3,000 articles that discuss various information, tips and tricks to make learning simple PHP quick and easy.



Tags: , ,

learn php
Jim Keller asked:


Let’s face it - there are a lot of development frameworks out there, especially for PHP. CodeIgnitor and CakePHP come to mind immediately as leading PHP frameworks, but in this article I’m going to give some compelling reasons as to why you should be doing your PHP development with the Fuse PHP Framework. Fuse is a Model/View/Controller framework for PHP.

1. FUSE is easy to get running

The installation scripts included with Fuse guarantee that you’ll have a working install a few minutes after downloading.  Fuse was built so that PHP developers don’t have to feel like they were learning an entirely different language in order to make use of the framework. The syntax and structure follow normal PHP conventions, and everything from the method names to parameter order was designed to be as intuitive as possible. Let’s face it - everyone wants to use the newest, best, and most appropriate tool for the job. However, developers will often shy away from doing things differently because of the learning curve. They fear that introducing new technologies or methodologies will increase their project timeframe and decrease productivity. Fuse was built with a deadline-oriented mentality in mind: you can get started quickly, and you don’t have to know every in and out of the framework to start building your project.

2. Data access has never been easier

Fuse’s data modeling makes accessing your data easier than you ever thought possible. The management scripts will give you create, read, update, and delete access right off the bat, and customizing your queries is as simple as can be. Let’s say you want to list your products, but also include their category_name, which lives in the product_categories table. In Fuse, all you have to do is open your ProductController and add this line:

public $list_options = array( ‘include’ => ‘product_categories’ );

That’s it. Now when you iterate through your products, you can use the variable <{category_name}> in your template to display the category name for your product. Let’s say we only want to display 20 categories? Try this:

public $list_options = array( ‘include’ => ‘product_categories’, ‘limit’ => 20 );

Fuse offers a whole slew of data methods just like these, and your queries can be as simple or as complicated as you need them to be. You will rarely have to write a query, but if you want to, Fuse even offers an object to take the headache out of writing queries . And, as always, if you just want to hand code a query the old fashioned way, Fuse will never stop you. A core principal of Fuse is that it’s designed to aid the programmer, not force him or her into the methodologies that we’ve deemed best.

3. A simple but extremely powerful templating engine

Fuse contains its own robust, intuitive templating engine that allows you to truly separate your code from your presentation. As with everything else, the templating system was designed to be intuitive, and “designer friendly”. Want to loop through the products we fetched above? Try this:

<{ITERATOR products}>

name: <{name}>


category: <{category_name}>





<{/ITERATOR}>

Want to apply a function to one of your fields? How about we only display the first 200 characters of our description:

<{ITERATOR products}>

name: <{name}>


category: <{category_name}>


description: <{ print(substr(description, 0, 200)) }>




<{/ITERATOR}>

Maybe our products can be in more than one category, and we want to fetch them? After adding a one line method to our Product model that looks like this:

public function get_categories() {

return $this->product_categories->fetch_all();

}

We can do:

<{ITERATOR products}>

Name: <{name}>

Categories:

<{ITERATOR get_categories()}>

<{name}>

<{/ITERATOR}>

<{/ITERATOR}>

Yes, <{name}> will know that when you’re in the products loop, you want the product name and when you’re in the product categories loop, you want the category name.





4. Searching your data has definitely never been easier.

Your client tells you that they want to be able to search records with any combination of title, date, description, id, and author. You know this is going to be an annoying task of using if/then statements to build a search query. Unless you’re using Fuse, where you can do it all with a few lines of code. The FuseDataController object, which handles all of the wheeling and dealing your app does with the database, has builtin search capabilities that will automatically sanitize data, generate the search query, and maintain the search session across pages. All you have to do is tell it which fields a user can search on, and it’s ready to go. You can search fields values directly, with wildcards on either side, between two date intervals, or even have Fuse automatically parse strings like “restaurant AND (mexican OR Thai)” simply by setting your ‘filter_type’ to ‘parsed_boolean’.

5. Builtin management of photos for albums, user profiles, etc.

Let’s say you’re building a site that allows users to create a profile, add photo albums, then add photos to those albums. You’re going to want several different sizes - a full sized image, a thumbnail for browsing, and a tiny thumbnail for a contact sheet type of display. You also want to watermark each image with your site’s logo. This can be a pretty tedious task if you’re not using the FusePhotoController, which should have you up and running in about a half hour if you’re slow.

6. Simple but fully featured, scalable user management and ACL

A lot of sites need user authentication. I’ve seen a lot of custom implementation in my time, and because of the complexity of doing it right, mostly they rely on a very basic user scheme that allows little or no granularity or scalability when it comes to setting permissions. Fuse has a simple to implement, but fully granular and scalable user authentication and permissions scheme built right in. Need to associate users with groups that all have different permissions? No problem. Have a user who’s in the “editors” group, but shouldn’t have access to delete an article? Just add a restriction for that user. Need to set it up so that when a user tries to access a restricted page, they are asked to login, then redirected back to the original page on success? It’s already done. Password encryption? SHA-1, MD5, and crypt() are all supported. I could go on. You can read about it on your own here

7. Integration with existing non-Fused projects

I mentioned above that Fuse endeavors to never prevent the developer from doing what he or she needs to do. If you have a project that’s already done in standard, inline PHP, Fuse can go right alongside your existing code without upsetting any of the existing functionality. In fact, if you include the Fuse bootstrap in one of your existing php scripts, you can add Fuse functionality to that script without having to edit any of the existing code. I have several projects right now that were handed to me as inline PHP, and I put Fuse right on top of it without having to re-code a single line of the existing project. However, I can now use Fuse moving forward for new features and updated functionality.

Conclusion

There you have it. Just a selected list of reasons you should switch to Fuse. Today. For the project you’re working on. Right now. Make things easier on yourself. I’ve introduced a lot of people to MVC development and Fuse and, without fail, every single one has said, after just one project, that they could never possibly go back to their old methodologies of inline scripting and manually writing every query. Comments welcome.



Tags: , ,

learn php
Rightway Solution asked:


If you are a budding web developer or are looking to learn a web programming language then you really should consider learning php. In this article I’ll present 10 good reasons why php should be one of the modern web programming languages on your professional development short-list.

1: Free, experienced support from a 1000 php communities

Actually, there are probably many more than 1000 communities that can provide you with php help. There are literally hundreds of dedicated PHP web development forums and hundreds more that have php sub-forums. Help for the php beginner is literally a forum post away. Generally speaking you’ll find an answer to your problem in a very short time. Getting help from more experienced php coders is a great pleasure because it can remove a lot of the uncertainty accompanying learning something new.

2: The cost of an open source application is nothing

Unlike other propriety coding languages (notably Microsoft’s aspx language) you don’t pay a cent to get started with php programming. In fact you don’t need to obtain or download any php software to begin. Simply use an open source editing tool and start coding. Upload your code to a cheap hosting account and you are away. You can readily obtain open source editors from a variety of sources. A search on Google for “php editors” returns hundreds of possibilities. As you progress you can download packages such as LAMP or WAMP so you can see php in action in a live server environment.

3: Open source has better security – because everyone knows what is in it

Again, unlike propriety web serving systems, everyone can see what php is made of. Some people will argue that this makes php less secure because everyone knows what php specific exploits exist. My view is that the open nature of PHP literally “forces” the php developers and community to keep abreast of security issues and to respond to them as soon as possible. Be aware however that it is easy to make simple security mistakes with php – and all languages suffer from this characteristic – you just need to do your research to keep your web applications secure.

4: Hundreds of existing php code examples

In addition to forums that provide advice and experience for free you’ll also find hundreds of examples that will help you get started and move ahead as a PHP Programmer. From simple code to connect to a database, more complex examples that allow you to grab data from an external website or a full-blown example of AJAX and php integration it is all there for you to study, take apart and build upon.

5: Scores of existing code frameworks

Frameworks are a relatively recent development and they can save you heaps of time and heaps of heartache. Simply, frameworks are like pre-fabricated houses. A team of developers have combined their efforts to solve the problem of repetitive programming tasks. Frameworks allow you to get up and running with both simple and complicated web applications in a matter of hours. There are scores of php frameworks for a wide variety of tasks. Again a simple search on Google will provide you with a large array of frameworks to choose from and explore.

6: Interoperability with web 2.0 applications

Modern web 2.0 applications are largely characterized by mashups and desktop style user interfaces. php is an excellent choice for interacting with other websites and providing rich user experience. Simple php commands like curl or fopen allow you to grab data from other websites with relative ease. Php works well with javascript so you can provide your end users with modern, responsive interfaces that are way beyond the old static interfaces of days past.

7: Many content management systems use PHP If you decide that you want to be a website designer or programmer then php is an excellent choice. Many of the modern content management systems (CMS) use php. Wordpress, Drupal, Joomla – these very popular CMS packages all use php. Each CMS usually has a vibrant php developer community. And if you become expert in one or more php-based CMS then you stand a very good chance of finding ongoing work customizing CMS packages for clients or website providers.

8: php is scalable to the largest web applications

Some of the most frequented and popular websites on the planet use php. PHP will scale up to meet the most exacting requirements for websites such as Joomla.org and Wordpress.com. These websites provide 24X7 availability for thousands ofconcurrent users without skipping a beat. If you have the next Facebook or Myspace application in mind then php is definitely a development language worth considering.

9: Most web hosting companies support it

Most of the website hosting providers will support php. It is a standard component of most Linux based hosting accounts. Remember we talked about LAMP and WAMP earlier? Well the ‘P’ stands for php. If you want your applications to run on Linux-based (and some Windows-based) web hosting platforms then php is an obvious choice.

10: Coding with php is fun!

Hopefully by now I have convinced you that php is a web development language that at the very least is worth serious consideration. And while you consider seriously the option of developing with php I’d like to leave you with this last thought: Coding with php is fun. I have spent countless hours writing simple php applications, customizing php-based CMS packages and generally mucking abut with php. And generally speaking (not counting the odd pulling out of my hair every now and then) every hour with php has been more than worth the effort and extremely rewarding.



Tags: , ,

learn php
sdei asked:


PHP is widely used in web application development. Billions of web applications running on the internet are made in PHP only. PHP requires web server and can be deployed on most of the web servers, operating systems and platforms. PHP provides filter taking input from a file or stream containing text and providing outputs to another stream of data. Though primary purpose of PHP was dynamic pages, however it has proved to be very effective server side scripting language which very effectively helps in providing content from web server to client.

PHP is a powerful server side scripting language and is widely used in creating dynamic web pages. It can also be used from command line and graphical applications. PHP is also known as Hypertext Processor, and can run on UNIX as well as Windows Servers. PHP is widely used in message boards, shopping carts, search engines and much more. Entire sites are developed with PHP only.PHP is used in creating healthcare applications, real estate portals, e learning websites, search engines, website builders, auctions web portals, sites with enormous database. PHP is also used for data mining and data collection purpose. PHP programmers make usage of OOPs concept and generate number of internet pages on the web. Number of frameworks are used , which act as building blocks in design and structure , these are Cake PHP, Zend Framework, PRADO, Symfony etc. The LAMP architecture is quite popular in the web industry as a way of deploying applications.

Using PHP as front end, mySQL is used for backend purpose. MySQL is included in many servers including UNIXs, Windows (95/98/NT/2000) and Macs and frame works like ZEND, CAKE and NEON.. PHP is available under open source license, this means it is free to use and distribute and the user is encouraged to so. The redistribution of PHP source and binary code is allowed without doing many modifications. However while doing so, the copyright statement needs to be present as well. PHP programmer working on PHP, can easily work on any open source scripts available. Some of the open source scripts available for PHP include PHPBB and osCommerce.

smartData is an ISO certified Offshore software outsourcing company involved in offshore software development in PHP. smartData PHP programmers are experts in delivering quality web applications to clients globally. With features like scalable, robust, open source; php is quite popular scripting language with widespread capabilities for web applications to interact on the net.



Tags: , ,

learn php
john dave decano asked:


PHP stands for hypertext processor a server base programming that gives interactivity to a webpage like friendster google etc.

First Exercise:

Open your notepad then type this.

echo”hi”;

appears

hi when you save it to server



Tags: , ,

learn php
Verve Systems asked:


PHP is a open source language which in used in high level scripting, developing dynamic web pages and other web applications.

India is center point of world for PHP programmers because they are efficient enough to provide growing platforms, with the creation of booster websites which increase their site traffic and increase their sales. PHP programmers use open source codes benefit from editing, modifying and updating the source code when there is require. Some programmers with strong basic knowledge and experience of difficulties and benefiting the consumers. In India the pay scale for these programmers are a fraction when compared to other developed countries, which is another reason why India has become the first choice at global market.

PHP and MySQL are very helpful in Content Management System that has become a must for every website to progress properly. When compared to other scripting languages PHP MySQL is preferred by programmers as it is easier to maintain and update. It is accepted as a boon for easy-to program superb web pages.

PHP Development in India has been more of a gift in disguise. With strong domain knowledge and ever-growing PHP programmers, India is a place where most companies would accept challenges with open arms. PHP experts in India have performed commendable jobs in the past. They have managed projects of all sizes and completed difficult task with ease.

PHP acts as a filter, taking input from a file or stream containing text and instructions the outputs for another stream of data. The most common form of the output is HTML. The most popular architecture is the LAMP architecture for deploying web applications. In PHP the P is refer to Python or Perl and it is used as bundle alongside with Linux, Apache and MySQL.

PHP has wide-spread popularity because of the version 4. It is considered as one of the top languages used for server-based scripting. The language is easy to learn. PHP has many arrays and variables which can hold any type of object, where the variables need not be declared, and the syntax is remarkably simple.



Tags: , ,
Back to top