PHP

PHP Frameworks: Zend and CakePHP reducing coding time {3}

by Ruben S
The internet is filled with more websites every day.Every quarter more of the worlds commerce is conducted through e-commerce, more entertainment sites are charging people to view content, and more every day people are placing new information onto websites. But how can all these websites be built so fast? How can you make secure sites to share your log on information, passwords and financial information? The simple answer is that code is reused. Most sites share many similarities that can be quantified and made into a standard procedure. There is a database that is queried, data that is processed, and an end user that needs to see the information. The task of breaking up the components of a website into smaller parts that can be reused can be done in many different ways and through many different programming languages (Porębski, B. , Przystalski, K. , & Nowak, L., 2011). In this article I will be going over two popular frameworks that are built on php, Zend Framework and CakePhp Framework. The first section of my article will discuss what PHP is. Then I will share the pros and cons of each framework that has been built upon it. I will conclude with a brief description comparing what one framework may do when compared to the other. Though interest in Zend and CakePHP has been dwindeling in the past several months, they still have a large base of users. read more...

Secure Database Access {4}

by Hieu H
Many PHP programmers have become accustomed to connecting to their databases, mainly MySQL, via direct calls. The most popular ways are to use the MySQL and MySQLi API’s. However, as of PHP 5.1+, PDO, or PHP Data Objects was introduced as a third API. Since PHP has shifted towards being a more object oriented language from its procedural beginnings, using the PDO class allows us to be more consistent in our methodologies. Some of the major benefits of using the PDO class instead of direct SQL calls include increased security and more streamlined code. read more...

ASP.NET VS PHP {4}

by Jamal A
The article I read for this week explains the top six reasons to use. Net. In this article author compared ASP .NET VS. PHP.  According to the author, there are quite a few reasons that make the ASP.NET better than PHP. First of all speed, all .NET applications, ASP.NET applications are compiled. This makes them much faster than PHP, whose applications are interpreted. Furthermore, author mentioned that ASP.NET is written using Object Oriented programming languages of your choice. PHP is just a simple scripting language in comparison to .NET languages like C++, C#, Visual Basic.NET, Java Scrip.NET, and so on. However according to the author, the PHP is definitely more clean and concise than classic ASP (with vbscript or javascript), but it’s a mess compared to C#, J#, or even VB.NET, which are the common languages used for ASP.NET apps. ASP.NET scales much better than PHP or classic ASP does, but it costs more to host on account if it needing to run on a windows server. Author mentioned that PHP is the better choice for a quick and dirty site that doesn’t need a ton of code. read more...

More than 20,000 websites are likely infected with malware {Comments Off on More than 20,000 websites are likely infected with malware}

by Taylor G
Google warned this week that as many as 20,000 websites could have been hacked and injected with JavaScript redirect malware.  Google sent out a message this week that said, “Specifically, we think that JavaScript has been injected into your site by a third party and may be used to redirect users to malicious sites.”  They warned owners to look for files containing “eval(function(p,a,c,k,e,r)”.  Apparently the code can be placed in HTML, JavaScript, or even PHP files.  The malware could’ve even affected the owner’s configuration files.  Google wanted to make it clear that this malware should be removed to fix the vulnerability to protect site visitors, as well as updating this software and maintaining contact with their web hosts for technical support.  This isn’t the first time Google has had an anti-malware campaign, in July Google excluded more than 11 million URLs from a specific domain, “co.cc”, because they were said to be used by cybercriminals to spread antivirus programs and conduct drive-by attacks. read more...

Building a voice control system for navigating the web. {4}

by Cary C
The journal article I have chosen is somewhat dated as it is five years old, but I still find it interesting because I believe it may describe one of the first major technology breakthroughs made possible through ASP.NET 2.0.  The authors compare four different technologies in their paper: Active Server Pages (ASP), ASP.NET 2.0, Java Server Page (JSP), and Hypertext Preprocessor (PHP).  Their research indicated that ASP.NET 2.0 had the highest communication success while also having the lowest response time.  Their testing involved pitting a Microsoft solution (Windows 2003, MSSQL 2005, and IIS) versus a LAMP solution (Linux, Apache, MYSQL).  Their goal was to develop a solution that would allow users to navigate through webpages using verbal commands rather than using their mouse or keyboard. read more...

Joomla incorporates MySQL {1}

by Ermie C
This article is about how the new edition of Joomla has now made it possible to use Microsoft SQL Server, PostGreSQL, and MySQL.  This multi-database support has become a great plus for business owners that use Joomla for their websites.  There won’t be as much hassle by being limited to just one database structure.  This is because the creators have only made previous Joomla versions to only incorporate MySQL.  However, with the new integration of multi-database functions, the use of PHP could allow Joomla to connect with the new database tools.  There’s a couple of new things they added also; the ability to incorporate a search engine function and something called stemming where it assumes the word that is being searched.   Then there is also auto completion.  In a nutshell, they have made the interface for Joomla, a lot more user friendly and this is what will attract new customers and keep the long lasting consumers of 1.6 million websites. read more...

ASP.NET over PHP? {2}

by Carlos R
The article I selected this week is about the battle between ASP.NET and PHP. The author specifically states that he himself is a PHP guy, but is now learning about ASP.NET, and he has been fairly impressed with what it’s capable of doing. He goes on in the article explaining .NET framework, how there is two main parts: The CLR, and the hierarchical set of class libraries. The article argues and gives six reasons why people should use ASP.NET. The first reason detailed is speed, he states that the applications are compiled, which makes it much faster than PHP. The second reason given is the fact that ASP.NET offers more language support compared to PHP. Third reason is the choice of development environments, because you have the freedom to download a free version of ASP.NET called Web Matrix, and with MS SQL, you have way more advantages over PHP. The fourth reason solely states that ASP.NET is part of .NET, and that alone provides a lot of benefits. The second to last reason is that it’s actually cheaper to develop for ASP.NET than PHP. This is due to the fact that there are simplified free versions of it, but purchasing it is definitely more expensive. The last reason the author argues in the article is that it is cross platform. He feels that right now it is pretty much tied to the Windows platform, but could become very cross-platform in a few years. read more...

Comparing ASP.NET with PHP {Comments Off on Comparing ASP.NET with PHP}

by Cole O’C
ASP.NET and PHP are both very powerful, widely used tools for developing dynamic web pages. It can be incredibly difficult to choose between which one to use, or if to use both via Microsoft IIS, and can change on a per-project basis. In terms of performance, ASP.NET is generally considered faster due to being compiled language as opposed to PHP’s interpreted language. That said, the most important factor of quality performance is good design and implementation. The security of the program hinges strongly on the expertise of programmers rather than the languages themselves. As for cost, it is rather hard to beat PHP’s amazingly affordable price of free. However, some commercial controls and/or libraries can be purchased for PHP, which should be taken into consideration. Hosting services are also usually cheaper for PHP due to there being more hosting providers. However, the cost of ASP.NET may be justified because you can use it in conjunction with other Microsoft products such as Visual Studio and SQL Server. In terms of ease of development, ASP.NET has a higher level of abstraction and is more object-oriented than PHP, which means that ASP.NET is more likely to produce reusable code. For further information, there are two articles at the bottom that can help a developer choose which is best for them: the article from NetroStar is concise and is what I summarized here, while the article from PerfectWebTutorials is quite verbose and comprehensive. read more...

Learning Multiple Server-Side Computer Languages {Comments Off on Learning Multiple Server-Side Computer Languages}

by Tuyen H

In the article “Design and Delivery of Multiple Server-Side Computer Languages Course” the authors write about why information system (IS) students need to learn multiple server-side computer languages such as Java, .NET, or PHP. According the authors, every computer language has its own advantages and weaknesses. Java’s execution performance may be more efficient than ASP.NET; however, ASP.NET is more popular because of the popularity of Windows platform. On the other hand, PHP is open source, fast and easy to develop. PHP is also widely used in many small scale service-oriented applications. Moreover, XML is one of many important languages which IS students should learn. XML is widely use in web applications, and it is easy to learn. Finally, the authors conclude “One of the most important aspects of effective IS education is to help IS students to develop problem solving skills to meet the challenges of the fast changing IS field.” read more...