Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Tuesday 3 January 2017

New PHP discharge brings another speed help

Form 7.1.0 of the dialect likewise backs nullable sortsThe PHP 7 line, which appeared a year back, has gotten its first point discharge overhaul, enhancing execution and including nullable sorts.

Adaptation 7.1.0 likewise offers capacities like a void return sort and class steady perceivability modifiers. However, a key PHP advocate focused on execution. The update "[provides] up to 35 percent better execution in CPU-concentrated workloads," said Zeev Suraski, CTO at PHP devices maker Zend.

Nullable sorts in 7.1 permits a check sort to be of some sort or invalid. "Sort statements for parameters and return qualities can now be set apart as nullable by prefixing the sort name with a question mark. This connotes and in addition the predefined sort, invalid can be passed as a contention, or returned as an esteem, separately," documentation states.

Variant 7.1 likewise underpins class consistent perceivability to reflect the conduct of strategy and property perceivability. "Class steady might be characterized as open, private or ensured. class constants announced with no express perceivability watchword are characterized as open," as indicated by the proposition.

A "void" return sort in PHP 7.1 makes it clear that a capacity plays out an activity as opposed to delivering an outcome. An iterable pseudo-sort, then, can be utilized as a parameter sort to show that a capacity requires an arrangement of qualities while not thinking about the type of the esteem set. "This sort is practically equivalent to callable, tolerating numerous sorts rather than one single sort," documentation states.

PHP 7.2 is slated to present an Argon2 secret word hash. "Argon2 addresses a few key drawbacks of existing calculations in that it is intended for the most noteworthy memory filling rate, and compelling utilize different figuring units while as yet giving barrier against tradeoff assaults," the documentation states.

Unpatched Vulnerability Affecting PHP 7 Servers 

PHP 7 is influenced by an unpatched helplessness that opens servers running the most recent branch of the PHP programming dialect to assaults.

The powerlessness, yet unpatched is a piece of a trifecta of bugs uncovered amid a presentation by Yannay Livneh, Check Point analyst, at the current year's 33rd Chaos Communication Congress.

Vulnerabilities influence PHP 7's unserialize system 

Every one of the three bugs influence PHP's unserialize component, the way toward changing over a surge of bytes once more into a PHP question.

The CVE recognizable proof markers of the three bugs are CVE-2016-7478, CVE-2016-7479, and CVE-2016-7480.

As indicated by a specialized report discharged by Livneh, the primary bug is a Denial of Service (DoS) issue, however which can be abused remotely and used to bring about a PHP server to expend an excessive amount of memory, hang the site, and even close down the server procedure.

The other two bugs are remote code execution (RCE) vulnerabilities that permit an assailant to execute noxious code on the server, which in a few situations may empower the gatecrasher to assume control over the whole server.

One bug remains unpatched 

Livneh says he educated the PHP group of the issues in August and September this year. The PHP group pushed a bugfix on October 13, with the arrival of PHP 7.0.12, and on December 1, with the arrival of PHP 7.1.0.

The PHP group settled just two of the three issues at the season of composing, with one bug remaining unpatched. Bleeping Computer has connected with Stanislav Malyshev, an individual from the PHP group, to ask about the status of the last bug. As indicated by Malyshev, the PHP group doesn't "typically have particular discharge dates for individual bugs."

"The arrivals of PHP are done like clockwork, with the following one anticipated January fifth," Malyshev said. "Once the settle for the specific bug is prepared, it is discharged in the following planned discharge."

Livneh says the three bugs can be abused utilizing a system he beforehand point by point in August. The specialist has not determined which of the three bugs remained unpatched.

Bleeping Computer has connected with Livneh to ask if there is confirmation that any of the three bugs has been misused in nature.

The unending adventure of serialize/unserialize issues 

The serialize/unserialize component (changing information objects into memory bytes and the other way around) has been a noteworthy reason for issues in prior PHP renditions, and it creates the impression that it will be the same for PHP 7.

A bug in the PHP serialize instrument has already permitted specialists to hack into PornHub.

So also, issues with the unserialize operations additionally influence Java applications, and a noteworthy bug has been utilized to bargain some PayPal administrations this year.

The following is Livneh showing his three issues that influence PHP 7's unserialize component at the current year's Chaos Communication Congress.

Thursday 29 September 2016

If programming languages were vehicles:

If programming languages were vehicles:


C was the great all-arounder: compact, powerful, goes everywhere, and reliable in situations where your life depends on it.


                                                                   



C++ is the new C — twice the power, twice the size, works in hostile environments, and if you try to use it without care and special training you will probably crash.


                                                                       



C♯ is C++ with more safety features so that ordinary civilians can use it. It looks kind of silly but it has most of the same power so long as you stay near gas pumps and auto shops and the comforts of civilization. A well-known heavily muscular intimidator keeps touting it.




Java is another attempt to improve on C. It sort of gets the job done, but it's way slower, bulkier, spews pollution everywhere, and people will think you're a redneck.





Python is great for everyday tasks: easy to drive, versatile, comes with all the conveniences built in. It isn't fast or sexy, but neither are your errands.




Perl used to serve the same purpose as Python, but now only bearded ex-hippies use it.



LISP is programming stripped down to the bare essence. It's been around since forever. Using it makes you stronger, but only an athlete or a maniac can make a living with with it.






Haskell is like a hipster version of LISP.









PHP is this hand-me-down deathtrap that you only use because you're stuck with it, and when you hit a speed bump the wrong way it sets you and your passengers on fire.





Go is a shiny new toy that tech nerds say will be the way of the future, but it's only practical if you limit everything you want to do to stay within its range.



COBOL probably seemed like a good idea at the time.




MATLAB is what scientists use to do special scientist things.


R is what scientists use when they can't afford MATLAB.




OCaml is this funny shaped thing that Europeans like for some reason.





This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a freak golf cart.







If you're wondering about this choice of cars, and if they fit the facts; then repeat to yourself 'it's just a j

Thursday 15 September 2016

Which Programming language you like to choose : PHP V/S .Net

Welcome to a battle of two heavyweights. In one corner, we have PHP, the most popular scripting language on the internet with millions of dedicated developers and an even larger legion of fans. In the other corner, we have a ASP.net, a platform backed by Microsoft itself that can use any .NET supported language.

So which is better? In this article, we’ll compare PHP and ASP.net and tell you which platform is better suited for your project. For a more detailed overview of PHP, check out this course on PHP for absolute beginners. If you are partial to ASP.net, take a look at this course to learn ASP.NET MVC.

PHP Overview

PHP stands for Hypertext Preprocessor. PHP originated as a scripting tool that has quickly taken over the internet thanks to its easy learning curve and large developer community. According to one estimate, PHP is installed on over 244 million websites with server support from virtually all major hosts. PHP is also free and boasts a number of frameworks to simplify web development.

Some of the major websites written in PHP include WordPress and Facebook.

ASP.NET Overview

ASP.NET was developed by Microsoft to provide developers with an easy scripting tool for building web pages and web applications. It is a successor to ASP (Active Server Pages), another platform pioneered by Microsoft in the mid-90s. You can code ASP.NET using any .NET supported language, which made it especially popular among .NET developers. Microsoft’s early domination of the web browser market with IE was also responsible for increasing the popularity of ASP.NET.

Some of the major websites that use ASP.NET are PlentyOfFish.com and MySpace.

The question now is: what language should you choose if you are starting out as a programmer?

Costs

This is a no-brainer – PHP is completely free, while ASP.NET is a Microsoft product. This means there are certain costs associated with ASP.NET development, namely:

Buying Windows, since ASP.NET development is possible only on a Windows machine. This shouldn’t be a problem for most people. If you use a Mac or Linux, you can use the Mono project to use ASP.NET on your machine.

ASP.NET requires Windows hosting. Until a few years ago, Windows hosting used to be significantly more expensive than Linux web hosting. This is hardly true today; you can easily find Windows hosts for almost the same price as Linux web hosts.

A development environment. The most popular IDE (Integrated Development Environment) for ASP.NET is Visual Studio. Microsoft also offers a free version of VS called VS Express.

As a beginner, you won’t have to specifically shell out extra for using ASP.NET, but once you upgrade to the professional stage, you will need something like Visual Studio, which can set you back by a few hundred dollars.

PHP, on the other hand, is entirely free, runs on Linux web hosting, can be used on Windows, Mac or Linux, and is supported by a number of free and paid IDEs.

Winner: PHP

Scalability

Both ASP.NET and PHP are highly scalable. Consider that Facebook, the second most heavily trafficked website in the world, was originally built in PHP, while MySpace, the website Facebook dethroned as the world’s favorite social network, was built in ASP.NET. This illustrates that both ASP.Net and PHP are highly scalable, as long as the programmer knows how to scale their application.

Winner: Tie

Performance

Performance for most web applications is a function of the interaction between the script, the database and the server. Most web applications written in PHP follow the LAMP stack – Linux (OS), Apache (server), MySQL (database) and PHP (scripting language). The LAMP stack is extremely popular for web development, and thus, has been optimized extensively for improved performance.

The database used most often with ASP.NET is MSSQL (Microsoft SQL Server), although you can also use MySQL with it. The performance different between a ASP.NET+MSSQL stack and a PHP+MySQL stack are very small with PHP+MySQL edging out ASP.NET.

Another factor that affects performance is the OS and file system used on the server. Most tests indicate that Linux and ext4 file system have better I/O performance than Windows and the NTFS file system. Thus, there’s a good chance a PHP application running on a Linux web host will slightly outperform a similar ASP.NET application running on a Windows host.

Winner: PHP

Support

PHP is free and among the most popular scripting languages online. There’s a huge open source developer community that regularly contributes to PHP development. The open-source community also tends to be very helpful, which is a big bonus for beginners.

ASP.NET, on the other hand, is a Microsoft property. While you’ll find plenty of developer boards run by ASP.NET enthusiasts, the scene is nowhere near as vibrant as PHP’s.

Winner: PHP

Availability of Tools and Editors

Most PHP developers prefer using text editors like VIM and Notepad++ instead of a full-fledged IDE. If you did want to use an IDE, however, you’ll find solid support for PHP in free editors like Eclipse.

ASP.NET is also supported by most IDEs but is mostly used with Microsoft Visual Studio. Microsoft VS is one of the most powerful, feature-rich and flexible IDEs around, even though it is not free. Thus, if you’re willing to shell out the cash, you’ll find that no PHP editor/IDE comes even close to Visual Studio.

Winner: Tie

Using Visual Studio? This course on C# with Visual Studio will help you get started.

Ease of Learning

PHP wins this one, hands down. ASP.NET is usually written in C# (pronounced C ‘Sharp’). C# is built on C which can be difficult to learn for most beginners. Its syntax is complicated and difficult to read, even for experienced programmers. People new to programming will find ASP.NET hard to pick up.

PHP, on the other hand, is very easy to pick up (so much so that most seasoned developers consider PHP coders as ‘newbies’). You can learn a few simple lines of code and start tinkering with WordPress themes almost right away.

Winner: PHP

Language Popularity

According to the TIOBE  Language Index, PHP ranks as the 6th most popular language online. ASP.NET, on the other hand, doesn’t even show-up in the top 20.

Winner: PHP

Conclusion

Unless you are already familiar with the .NET framework or want to stick to Microsoft technologies, there is no discernible need to use ASP.NET over PHP. PHP can do everything that ASP.NET can, and it can do it for free.

Now that you’ve decided to use PHP, take this course to learn PHP programming from scratch.

What do you prefer – PHP or ASP.NET? Let us know in the comments below!

+P and P Infotech : Web Solution, Web Design and development Indore 

What Are Some Tips For Making Marketing Ads?

  Did you know that people who are interested in ads are 50% more likely to buy a product than organic visitors? If you are willing to creat...