What is the advantage of using a PHP Framework?

1 Answer

Answer :

answer:The advantage is speed and support. With any framework, you are relying on the work of others to speed up your development process. Because so much has been built in, you don’t have to reinvent the wheel each time. You don’t have to rewrite everything. Plus, you get the support of a community of users when you do encounter a problem. Anytime you find a problem or need, you strengthen the product for the next person or the next project. The downside is that sometimes your particular need is such an edge case that it doesn’t make sense to add into the framework. In that case, you end up doing just as much work as if you didn’t have a framework. It’s basically an open-source or community version of the type of code repositories that most companies keep. Most development outfits write something once and then reuse it across projects. It’s the same type of model.

Related questions

Description : Does GoDaddy have some PHP functions disabled by default?

Last Answer : Doesn’t look that way, but I can’t really tell. Your host does appear to suck.

Description : What's wrong with this simple PHP script?

Last Answer : answer:Do you need a concatenation operator (.) between your string and the variable name ($the_long_url)? But like this: ’”.$var.”’ http://www.gidforums.com/t-965.html

Description : Php logging in problems? learning php?

Last Answer : answer:It means that it got to the end of the file and was expecting a ”}” and didn’t find one. Quick count of your braces: { = 7 } = 6 Yup, you’ve got a mismatch.

Description : Server issue or PHP? - Contact Form Not Sending HTML correctly?

Last Answer : Next time use Pastebin. I think your problem is somehow HTML related, like a missing tag, or validation error. Try just sending a text email and build pieces bit by bit from. Outlook and other email ... in how they parse HTML, whereas Gmail (browser based to begin with), isn't quite as finicky.

Description : Does anyone know how to install the GD library for PHP on Max OS X client (Leopard)?

Last Answer : Here’s a tutorial for installing the GD library for PHP on Mac OS X 10.5.

Description : Is there a function in PHP which automatically adds periods to large numbers?

Last Answer : number_format does this (in addition to decimalization). You can specify the separators to use, which in your case are periods instead of commas.

Description : How do I use PHP to get the node ID for a block?

Last Answer : answer:$node is a widely available object in Drupal. $node->nid will give you the node id of the current node. Your template could look something like this:

Description : How can I create a special character in PHP from a variable?

Last Answer : answer:After playing around with PHP’s eval function for a while, I’ve concluding that doing what you’re trying to do is impossible. The problem is that ’\xAA’ is a single character. It can’t be split in to parts in the same way that the Unicode character ‘a’ can’t be split into parts.

Description : Any ideas for simple, always useful PHP functions?

Last Answer : A regular expression to check if an e-mail address is valid. Tons of examples out there but it gets your hands dirty with a few necessary techniques.

Description : Is there a PHP library or API that would let me quickly build survey questionnaires and dump the captured data to MySQL?

Last Answer : If you are familiar with LAMP and PHP, why not build a little CRUD application?

Description : How can I learn to use Flickr's API in PHP without PEAR?

Last Answer : Use another library, there must be dozens. I work with the Zend Framework which contains one (and since it's loosely coupled, you can use it on its own), but I just realized it requires PHP 5. ... a few of the API kits suggested on Flickr but two use PEAR and the other requires PHP5 ) though.

Description : Is there a PHP library to handle INI files?

Last Answer : I found a couple in phpclasses. This one seems to be the best http://www.phpclasses.org/browse/package/204.html. I haven’t tried it out yet though.

Description : professional way of making a config file php -Php

Last Answer : NEED ANSWER

Description : how to get localstorage value in php ? -Php

Last Answer : You can not directly get a localStorage value in PHP, when script is executed, because localStorage is contained in user's browser, and PHP is running on server. However, you can send the value from localStorage to a server with GET or POST request.

Description : How to use for loop in php ? -Php

Last Answer : Syntax for for loops in php : for (init counter; test counter; increment counter) { code to be executed for each iteration; } Where: init counter: Initialize the loop counter value test counter ... to FALSE, the loop ends. increment counter: Increases the loop counter value Example is here :

Description : How to get the top result of google search with php ? -Php

Last Answer : In order to generate charts, lists, and data about Google Search results, there is one thing you have to do first, and that is to obtain the data. Using simple PHP code you can perform a couple function calls which allow you to store Google Search results for a specific keyword in an array.

Description : Make only ONE submit (View) button instead of 4 in code below?

Last Answer : PS: it's a Wordpress theme plugin, that allows users to browse listings; i want users to be able to choose 4 options and submit their search with only one button; The existing code presents 4 Submit ... categories he wants and press submit, and the result should appear based on AND not or

Description : How can I fix my wordpress template when it will not give me access to the blog or admin?

Last Answer : answer:log in to the server and manually edit controlpanel.php and fix the error on line 14. if you don’t have the appropriate knowledge to log on to the server and manually edit this file, you need to contact the hosting company and request they help you. This may or many not cost you money.

Description : Is there a coldfusion equivalent to the NextGenLinks code snippet?

Last Answer : answer:Since this type of question is out of my league, here is the contact info, so you can ask the expert of Coldfusion his contact sheet even says, Please contact me with any of your questions about ... . Sounds like the guy with your answer!! http://www.bennadel.com/ask-ben/ask-ben-nadel.htm

Description : Is there a quick tutorial for working with the Facebook API?

Last Answer : Here you go

Description : Wordpress experts...exclude category by name instead of ID?

Last Answer : Whats the difference? Can’t you simply look up the cat_name by ID number in the DB? sorry if thats totally wrong, its been a years since I looked at wp.

Description : How can I embed my eBay store into a webpage?

Last Answer : I really hate to say this… iFrame http://www.pillowpersuasion.com/fluther/iframe.html

Description : A good apache server like xampp or wampserver? are there others, right?

Last Answer : I use Acquia stack for Drupal installations. It’s a pretty complete stack, but not as complete as XAMPP. Yet it’s easier to set up new projects with it because it has an easy set up and configuration wizard. You could set it up and use it only as a server.

Description : What would you like to see in a CMS?

Last Answer : I would advise against building your own open source CMS in PHP. With all of the projects already in existence (see http://www.opensourcecms.com/), why not just pick one and contribute to it? ... to name one, makes it really easy to add whatever functionality you want with it's modular architecture.

Description : What are complex views?

Last Answer : I'm not familiar with the Zend Framework, but when people are talking about complex views, I think they're just referring to pages (views) with many different elements, possibly with multiple ... compared with something like our privacy policy (www.ask-public.com/privacy/) which is very simple.

Description : 2 Concurrent Database Connections Per User Versus ...

Last Answer : answer:Establishing a database connection is one of the most expensive database operations. It requires authentication, opening files on a disk, creating memory caches, etc. This might make you think that ... master database only after they have logged in as an "editor" or some similar role)?

Description : How do I patch a drupal module?

Last Answer : answer:The patch you mention is “ready to be committed”, which means it’ll probably show up in the next version. You can apply the patch yourself by copying the code and pasting it at the bottom of fivestar_field.inc in the modules/fivestar directory.

Description : What are the advantages of a PHP5 over PHP4?

Last Answer : PHP5 has better support for classic object-oriented style programming. I'm sure there are other advantages, but that's the one I've heard most. Of course, we're onto something like 5.2 or ... PHP5. Upgrading would allow you to start working with the newer features as you are comfortable with them.

Description : Which is better to use: WordPress or Textpattern?

Last Answer : answer:I’ve tried many different blog software solutions. I love Wordpress and NucleusCMS (I use them both). Try out all different kinds of CMS’s here: http://opensourcecms.com/

Description : What are the major features of Symfony vs. Cake?

Last Answer : answer:I think I have tried all the PHP MVC frameworks. Cake is the easiest to get up and running. I can move it around hosting companies and it works. (after modifying the DB settings) But, I would ask ... in PHP by hand. Django is fast (python) but I have had zero luck installing it on OS X..

Description : What the hell is wrong when i create connection btw navicat and mysql?

Last Answer : answer:This probably isn’t a bug or issue with the MySQL server. The possibilities are: 1) Login password for root is wrong 2) The account doesn’t have a password Have you tried connecting without a password?

Description : Is there a way to make files in a compressed archive writeable after extraction?

Last Answer : answer:Unless I’m misunderstanding, you could use chmod() in PHP to modify the file permissions after extracting them. http://uk.php.net/chmod

Description : What is the most popular PHP framework available?

Last Answer : I’m lazy and will just answer the last question. I use CakePHP when I need too since I’m familiar with it and it gives me the least problems out of the ones I have used. But I avoid them and usually just do everything from scratch.

Description : What is the best php framework?

Last Answer : I have found cake to be the most portable and easy to install. If I had to choose a MVC PHP framework I would go with Cake.

Description : What's the real advantage to php?

Last Answer : answer:Compared to what? You use PHP to output XHTML. PHP is for logic and doing things like talking to a database. But in the end of the day it still spits out XHTML. Other languages (like python, ... static pages you really don't need to touch PHP. Plain old XHTML and CSS are all you really need.

Description : The advantage of following the IEEE Standard for drawing up a Project Management Plan (SPMP) - see IEEE Standard 1059.1 1987 - is a) It is drawn up by representatives from major  ... each organisation for a  particular applicationarea, development team or  technique. e) All of the above.

Last Answer : e) All of the above.

Description : What does Strategy describe? A. The general direction in which an organization plans to move to attain its goals B. Framework for managerial decisions C. Leveraging strengths to gain competitive advantage D. All of these options

Last Answer : All of these options

Description : What does Strategy describe? A. The general direction in which an organization plans to move to attain its goals B. Framework for managerial decisions C. Leveraging strengths to gain competitive advantage D. All of these options

Last Answer : All of these options

Description : Using a PHP page to post "blog" entries on my website.

Last Answer : answer:It shouldn't be too hard- you'll probably want to apply the CSS to the page that is retrieving and displaying the information, not the page you use to enter it. Whatever code is generating your ... CSS classes, id tags, and DIVs to. It's hard to get specific without actually seeing the code.

Description : Anyone using Spry with PHP/MySQL in Dreamweaver CS3?

Last Answer : Why are you asking? Are you already using it, or wondering if it's a good choice of tools?

Description : Best tools to build a collaborative project site using only open-source Apache/Mysql/PHP tools

Last Answer : answer:We've used Trac for a few projects with success. Its not perfect but it is configurable and you can extend it. Of course its geared very much towards software development and I'm not sure ... a specific set of tracking and documenting and were glad we did later on in the development cycle.

Description : Error message when using PHP with MySQL.

Last Answer : Wow! Good luck with that!

Description : How do I check for the existence of a particular MySQL table using PHP? (Using an IF statement.)

Last Answer : answer:I don't know of a preexisting function, so here's one I wrote real quick (untested): function checkTable ($table_name, $database_name) { $my_tables [equal] mysql_list_tables($database_name); while (list($foo) ... , your_database )) { // Table exists } else { // Table does not exist }

Description : Is sending email through an SMTP server on the same machine as my web application more or less efficient than using PHP mail()?

Last Answer : I’m confused by your question. Wouldn’t PHP mail() ultimately be using whatever SMTP server you use to send mail?

Description : Which of the following statements is false   You can make a website without using HTML   You can make a website without using PHP   You can make a website without using CSS   You can make a website without using Javascript

Last Answer :  You can make a website without using HTML

Description : 1-Which digital marketing tactic commonly makes use of the 'takeover' ad format in order to develop customer reach and awareness, and provide for enhanced branding and influence? Choose the appropriate digital marketing ... using the numbered options given: Exhibit: Mark one answer: 4 2 3 1

Last Answer : 2

Description : Which of the following is built on top of a Hadoop framework using the Elastic Compute Cloud? a) Amazon Elastic MapReduce b) Amazon Mechanical Turkc) Amazon DevPay d) Multi-Factor Authentication

Last Answer : Amazon Elastic MapReduce

Description : What is the benefit of using PERT/CPM network as integral component of project management? a. They furnish a consistent framework for planning, scheduling, monitoring and controlling project b. They illustrate ... that the project will be completed by a specific date d. All of the above

Last Answer : d. All of the above

Description : What is a Research Design? (A) A way of conducting research that is not grounded in theory. (B) The choice between using qualitative or quantitative methods. (C) The style in which you present your research ... e.g. a graph. (D) A framework for every stage of the collection and analysis of data. 

Last Answer : (D) A framework for every stage of the collection and analysis of data.

Description : What is a PHP error?

Last Answer : It’s to do with encryption. PHP means Pretty High Privacy or something like that. IT means that the data sent was not encrypted. This might happen on a website that starts with https. What were you doing at the time?