Archive for October, 2009

php
Neilesh asked:


I am new to php. I want to know how many number of concurrent users can a normal php site with mysql database with around 15 to 20 tables can handle?

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: , ,
php
Olof N asked:


How do i create a php page that will automatically redirect & login to a password protected directory on my website, so that the user doesn’t have to input the user & password to access the site.

Tags: , ,
php
ElQuestionaire asked:


I have a homepage (MyHome.php). On the homepage, I’d like to display the latest 3 posts from another page (Post.php). For example. I want to include the first 3

tags from Post.php into a
tag on MyHome.php. Is it possible to do this?

Tags: , ,
php
Jouke E asked:


I need a PHP script that can show files / file names in a table or column. Customizable too. Can you supply me with a tutorial link, the script, or other helpful means of helping me solve my problem?

Tags: , ,
php
jordan asked:


I am new to php and I just took over a site that was built without using file fragments. I know in jsp I would use a jspf file but I’m not sure how to do this with php.

Tags: , ,
php
Vijay asked:


I am a php programmer. I would like to become a professional web developer. How do I develop my web development skills and what things are necessary to improve to become a professional web developer.

Tags: , ,
php
*~Star~* asked:


What’s the difference between PHP, IFrame and DIV Coding when your coding a layout?

Tags: ,
php
Pet O asked:


My website is due on Christamas and I want it Jam packed with features, I would like to have comment boxes as one. I know a little php,medium java, and alot of html. Loooking at a code of a nice comment box would help.And I dont want to download or use someone ele’s script.

Tags: , ,

learn php
Aditya patel asked:


What is PHP?

 

PHP is a popular and widely used programming language used for website

Development. PHP stands for PHP: Hypertext Preprocessor. PHP is server side scripting language for creating Web pages. PHP is very easy to understand & learn. It supports most common databases like Oracle, Sybase and MySQL. It also includes external libraries to generate PDF documents and parsing XML. It is an open-source language which is used by large group of developers.

 

Web Software Outsourcing has successful PHP developers. Various PHP Web Programming solutions include Ecommerce Solutions, shopping carts with content management system, CRM Solutions, Community tools Web Calendars, Chat software and Discussion forum. Our PHP Development Service enables clients to store and display content on their site effectively. PHP is a server side scripting language that facilitates developer in making dynamically driven websites.

 

What are PHP benefits?

 

PHP is a free open source language. That means you don’t have to pay thousands of dollar as the license fee to acquire PHP. Best of all, it is easy to install. The most striking feature of it is that it is easy to learn. PHP is used by millions of people and developers around the world. There are thousands of websites on the internet which are written using PHP.

 

Advantages of the PHP development services:

 

• Low development and maintenance cost

• High performance and reliability

• Ability to embed itself into the HTML code

• Compatible with servers like Apache and IIS

 

PHP can greatly develop the functionality of your website. It allows you to write scripts which let your visitors interact with you through your website. In your business PHP website, you can get feedback of your products and services from your customer. Our PHP Development Service has strength, addition and support for web standards making it the perfect fit to create and arrange modern web applications.

 

PHP Development Services assists organizations to deploy their collaboration, resource planning, customer and supplier management systems as web applications. Global organizations that compete for customer loyalty and new revenues take their business to the internet, today’s most powerful media that captures almost all aspects of human endeavors through billions of web pages.

 

With an excellent team of experienced PHP developers has successfully completed numerous PHP Web Programming like E-Commerce shopping carts with content management system, CRM Solutions Community tools Web Calendars, Chat software and Discussion forum. Our PHP Development Service enables clients to effectively store and display content on their site.

 

By constantly upholding the highest standards of business ethics and commitment to quality Web Software Outsourcing have successfully positioned at the pinnacle of the industry. We have highly skilled software professionals to create complicated, enterprise-class frameworks effectively in PHP. PHP software professionals work closely with you to analyze your needs through detailed assessment processes, which examine your existing systems as well as business goals. You can outsource all your PHP Development Requirements to us and focus on other core business activities.

 

For getting more information, please visit www.websoftwareoutsourcing.com.



Tags: , ,
« Previous posts Next posts » Back to top