• 0

PHP or ASP?


PHP vs ASP  

71 members have voted

  1. 1. PHP or ASP?

    • PHP
      57
    • ASP
      14


Question

25 answers to this question

Recommended Posts

  • 0
Do you mean ASP or ASP.NET? There's a huge difference.

If it's old ASP, go with PHP.

+1

If it's ASP.NET, I'd say learn that with C#. From there, learning php will be a breeze for the most part. My reasoning is simple. The C-style syntax of C# translates well to many other languages. The tools for C# are really nice. There are excellent extensions for the latest framework to enable cleaner design and testability. It's compiled instead of interpreted(fast). Excellent component selection. Excellent caching facilities. Excellent database connectivity. LINQ.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589388034
Share on other sites

  • 0

I prefer PHP, it looks easier to learn and iss quite easyonce you get your head around it :p but then i have looked at much ASP, im just going on first glance..

PHP. ASP only runs on windows and why would you want to run a windows web server..?

you can run ASP on a linux system.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589394530
Share on other sites

  • 0

PHP cannot be compared to .NET except in the "it hasn't got this" type way (* 1000).

OT: My opinion of PHP has dropped significantly ever since my server started throwing up "Access Violation" errors (but not on a page refresh) to which there are no fixes whatsoever, only vague suppositions. This coupled with a complete lack of interest in getting the ISAPI module working even halfway decently on Windows Server 2003 (no, I'm NOT going to use the CGI module) leads me to consider the whole thing as unfit for purpose except on Linux box through Apache. Reconfiguring a Windows 2003 server to use Apache proxying to over 50 non-PHP sites in order to get 4 PHP sites working is not worth my time. I'll just have them hosted somewhere else.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589404301
Share on other sites

  • 0

I voted PHP only because most of the web servers I have to deal with are configured with PHP.

I write in both ASP and PHP, and I charge at least double for writing ASP, although usually that's because we're building a proper web application as opposed to a website. PHP cannot compare to ASP.NET - as mrbester said, there are a thousand things that PHP hasn't got - and though you can generally do it in PHP, it takes a hundred extra lines of code, or a horrid hack that isn't portable in an easy fashion especially when you come to start to deal with geographically dispersed load balancing or mirroring of data.

My philosophy is simple - if it's a website use PHP, if it's a web application, use ASP. When you start to run into thousands of lines of code, there is no comparison to MSSQL and ASP.NET, it beats PHP hands down - but for simple websites, CMS, etc etc - PHP beats ASP hands down on speed of execution, speed of coding and portability.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589409074
Share on other sites

  • 0
Bah, in the end, PHP is free and can be installed on a free server. It's also very easy to install on a local machine... and it is possible to install it even without Windows.

ASP and ASP.NET are just as free as PHP and can be installed on any box that'll run it. The only cost you're going to incur is the cost of the Windows OS license. If it's a business solution, chances are you're buying a Windows server anyways. If it's your own box to serve pages to more than 10 people, yes Linux is cheaper.

Good ASP and ASP.NET hosting can be found at around $15/month, which is right around good Linux/PHP hosting.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589414972
Share on other sites

  • 0

In my experience, I find ASP.Net more frustrating. It has a heap of controls to allow to build things rapidly, but if your trying to customize things abit you can get into trouble, or sometimes their solution is just really long winded. I don't particuarlly enjoy them filling my HTML with all their crap. :( With PHP it *can* (although I think I write PHP quicker..) take longer to implement things, but you have more control over it.

Thats just my very random experience, but I'm kinda learning as I go through this huge project so. :p

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589418453
Share on other sites

  • 0
Classic ASP... that's for work, so no way are they gonna let me play with the latest stuff. They prefer methods they know they can depend on

Companies are always slow in this stuff, pretty annoying

Over six years slow? ASP.NET really isn't "new stuff" anymore. There's already been four versions of it (1.0, 1.1, 2.0, 3.5).

IMO, it sounds like they're being cheap. Any company that still creates apps using classic ASP is making a mistake.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589418496
Share on other sites

  • 0
Any company that still creates apps using classic ASP is making a mistake.

Alright then. Whip me up a page with multiple forms, all including WebControls (and therefore are runat="server" and can access ViewState *for that form*), where there is no form processing Factory pattern to deal with the different forms submitted to the one page.

Point deducted for not using <form runat="server"> for all forms (simply posting a HTML <form> to another .aspx and retrieving values doesn't count). Points are also deducted for "solutions" that require JavaScript on the client (for code injection, form redirection / alteration) as that breaks accessibility guidelines. Points further deducted for simply saying "use WilsonWebForms to encapsulate System.Web.UI.Page".

Oh, and I don't want ViewState unnecessarily cluttering up the page. If I wanted to have the client have some record of dynamically entered form values then I'd have used Gears / AIR.

Now whip up a page in Classic ASP (or PHP) that handles multiple forms. Which was easier?

Edit: link edited.

Edited by mrbester
Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589419353
Share on other sites

  • 0
PHP. ASP only runs on windows and why would you want to run a windows web server..?

Have you never used IIS6? How about the newer IIS7?

Comments like that only show that you don't have the capacity to try out other alternatives, or that you are relishing in your Linux fanboy status.

Yes it's true that Apache powers the largest percentage of web servers, and commands around 50% of the market, but IIS is the second most popular webserver, which currently holds around 35% (and with IIS7, this is increasing). This means directly that Windows is the OS of choice for that 35%. IIS6 (along with Sql Server) is one of the most secure platforms available. In fact, the majority of vulnerabilities over the last couple of years aren't even the fault of IIS, just the platforms built around it.

View: April 2008 Web Server Survey

View: Vulnerability Report: Microsoft Internet Information Services (IIS) 6

PHP is a great platform, it's lighweight, easy to use and is fast. There is a substantial community dedicated to producing extensions, web 2.0 frameworks etc.

ASP was great in it's day, but in todays world, developers want a true OO language, and coupling C# (or VB.NET) with HTML has provided this.

The OP asked what we prefer PHP or ASP (read: not ASP.NET). If this is the case, PHP does win, but not by much. ASP also afforded the developer access to the COM environment which makes integration projects viable.

If ASP.NET was thrown into the mix, then IMHO, ASP.NET would win. But ASP.NET is not a language, it is a platform. It provides the developer with a broad yet robust execution pipeline allowing them to tap into ASP.NET at many different stages. It uses the .NET CLR at it's core, providing strict typing, and full OO, threading, garbage management, IPC and the ability to expose services numerous different ways.

And of course with IIS7, this has improved even more because ASP.NET is integrated right down into the core of IIS, allowing you to do much more, like providing Forms based Authentication on non-ASP.NET websites.

View: A low-level Look at the ASP.NET Architecture

View: ASP.NET Integration with IIS7

What you should really do, is actually spend some time looking into viable alternatives. PHP/Linux isn't the holy grail, and neither is ASP or ASP.NET. Developers want freedom, and they have it. It's just biased opinions like yours that keep this ridiculous Microsoft vs The World debates going, and believe me, they are getting boring.

To everyone else: Sorry for the rant, these comments are strictly my own opinion.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589419420
Share on other sites

  • 0
Alright then. Whip me up a page with multiple forms, all including WebControls (and therefore are runat="server" and can access ViewState *for that form*), where there is no form processing Factory pattern to deal with the different forms submitted to the one page.

You know that having two server-side forms right out of the box on the same page is impossible. Regardless, that's a horrible reason for staying with classic ASP.

However, if you still want a reason, I would say: MonoRail. It's TDD-friendly and helps you get around some of the server control issues.

Now whip up a page in Classic ASP (or PHP) that handles multiple forms. Which was easier?

Oh, so we're taking a simple multiple form example and basing our decision over what was easier? How about an application much larger than that? Would you like to deploy your COM components and then cycle the server every time you have to deploy them? Do you like inventing your own custom session state implementation when you need something better? How about TDD?

My quote said: "Any company that still creates apps using classic ASP is making a mistake." I didn't say creating one or two simple pages. I said creating an app. Maybe I should have specified the size. Either way, I still stand by my point.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589419725
Share on other sites

  • 0
PHP cannot be compared to .NET except in the "it hasn't got this" type way (* 1000).

OT: My opinion of PHP has dropped significantly ever since my server started throwing up "Access Violation" errors (but not on a page refresh) to which there are no fixes whatsoever, only vague suppositions. This coupled with a complete lack of interest in getting the ISAPI module working even halfway decently on Windows Server 2003 (no, I'm NOT going to use the CGI module) leads me to consider the whole thing as unfit for purpose except on Linux box through Apache. Reconfiguring a Windows 2003 server to use Apache proxying to over 50 non-PHP sites in order to get 4 PHP sites working is not worth my time. I'll just have them hosted somewhere else.

Windows 2003 and FastCGI - Not normal CGI is the best solution for PHP on Windows IIS, very fast and stable.

Link to comment
https://www.neowin.net/forum/topic/636003-php-or-asp/#findComment-589451043
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • BrowserOS 0.46.0 by Razvan Serea BrowserOS is a free, open-source Chromium-based browser that runs AI agents natively, offering a smarter, more productive browsing experience. It supports Chrome extensions and integrates AI agents to automate tasks, fill forms, and streamline workflows. Your data stays on your computer: you can use your own API keys or run local models via Ollama, making it a privacy-first alternative to tools like Perplexity, Comet, or Dia. With built-in productivity tools and app integrations, BrowserOS boosts efficiency while keeping control firmly in your hands. Being Chromium-based, BrowserOS lets you effortlessly import your bookmarks, passwords, and Chrome extensions in just a few clicks. BrowserOS works with OpenAI GPT models, Anthropic Claude, Google Gemini, and local AI models via Ollama or LMStudio. You can use your own API keys and effortlessly switch between providers. BrowserOS Agent Your AI productivity assistant that organizes and manages your browsing effortlessly Quickly list, group, or close tabs Save and resume browsing sessions Search your history and organize bookmarks Switch instantly to the tab you need BrowserOS Navigator – Automate web tasks with ease Navigate websites and search automatically Interact with pages without manual effort Handle repetitive tasks in seconds What makes BrowserOS special Feels like home - same familiar interface as Google Chrome, works with all your extensions AI agents that run on YOUR browser, not in the cloud Privacy first - bring your own keys or use local models with Ollama. Your browsing history stays on your computer Open source and community driven - see exactly what's happening under the hood MCP store to one-click install popular MCPs and use them directly in the browser bar (coming soon) Built-in AI ad blocker that works across more scenarios! BrowserOS 0.46.0 changelog: Run Claude Code & Codex right in your browser — We've extended the agent harness to bring full coding agents into BrowserOS. Claude Code and Codex now come bundled and plug straight into the assistant, so you can drive your browser with the agent — and the subscription — you already use. A brand new experience — A redesigned new tab, a calmer composer, and a rebuilt command center for switching between agents. The whole assistant is cleaner, faster to reach, and easier to live in. New MCP tools — We rebuilt the browser tool surface from the ground up — a tighter, more reliable set of tools for agents to drive the browser. Plus one-click install of BrowserOS as an MCP server into the agents you already run, with automatic URL sync. Chromium 148 — Updated to the latest Chromium base with all recent upstream fixes and security patches. Streamlined — We've pulled back a few features that weren't getting much use — Skills, Soul, and Memory — so we can focus and ship better versions of them soon. Download: BrowserOS 0.46.0 | 181.0 MB (Open Source) Download: BrowserOS for macOS | 485.0 MB Links: BrowserOS Homepage | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Microsoft finally admits its default Windows 11 25H2, 24H2 action broke key legacy component by Sayan Sen Microsoft last week released Windows 11 KB5094126 and KB5093998 as the latest Patch Tuesday updates. Following that the company also published the accompanying dynamic updates under KB5094149, KB5095971, and KB5094156. So far the company has acknowledged two known issues that have popped up after the release which include bugged-out Office apps as well as the Recycle Bin; though there could be more at play too. Speaking of bugs and issues, Microsoft seems to have finally acknowledged a problem that probably has been around for close to a year. That's because back in July of 2025 the company made a default change to the latest Windows 11 versions, wherein it switched to JScript9Legacy on Windows 11 24H2 and later releases. Hence following the release of version 25H2 in October 2025, JScript9Legacy also remained default-enabled. As a result there has been a compatibility issue ever since then. For those wondering, by switching to JScript9Legacy Microsoft intended to improve the security of modern Windows PCs by reducing vulnerabilities tied to legacy scripting like cross-site scripting (XSS), among others. XSS exploits can allow cyber-attackers to attach malicious code onto legitimate websites and use them to execute the code when a potential victim loads such a website. Hence the new JScript9Legacy engine enforced stricter execution policies and improved object handling, which should help mitigate such attacks. Microsoft today has published a new support article detailing the problem. Neowin spotted it while browsing. The company says that JScript global definitions and execution context may fail to persist across scripts, potentially breaking older dependent apps and web-based components that relied on this legacy behavior. In the article Microsoft has confirmed that the issue stems from its move away from the older jscript9.dll engine in favor of jscript9legacy.dll. As mentioned above, while the newer engine was designed to address vulnerabilities and strengthen security it also changes how JScript handles execution context. As a result functions and definitions loaded by one script could no longer remain available to subsequent scripts once execution ended. The company notes that some applications worked correctly on earlier Windows versions because the older JScript engine automatically retained global definitions and execution state between scripts. Under the newer model though that behavior is disabled by default causing certain legacy workloads and polyfill-dependent scripts to fail. Microsoft says it addressed the problem via the KB5077241 update though the fix had not been enabled automatically in the following updates. As such admins must explicitly turn on persistent JScript execution context using a Registry setting that the tech giant shared today. The configuration can be applied to individual processes or system-wide through the FEATURE_ENABLE_PERSISTENCE registry key. The steps have been outlined below: Run the following command to create the feature control registry key: reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ENABLE_PERSISTENCE" Under this key, create a new DWORD (32-bit) value. Configure the value as follows: To enable persistence for specific processes only: Set the value to 1 for each target process name. To enable persistence for all processes: Add * as the key name and set its value to 1. You can find the official support article here on Microsoft's website.
    • The possibility that milk gathers back into a glass implies that gravity can be 'reversed'.
    • VidCoder 12.20 by Razvan Serea  VidCoder is a DVD/Blu-ray ripping and video transcoding application for Windows. It uses HandBrake as its encoding engine. Calling directly into the HandBrake library gives it a more rich UI than the official HandBrake Windows GUI. VidCoder can rip DVDs but does not defeat the CSS encryption found in most commercial DVDs. You’ll need the NET 8 Desktop Runtime. If you don’t have it, VidCoder will prompt you to download and install it. The Portable version is self-contained and does not require any .NET Runtime to be installed. You do not need to install HandBrake for VidCoder to work. Feature list: Multi-threaded MP4, MKV containers Completely integrated encoding pipeline: everything is in one process and no huge intermediate temporary files H.264, H.265, MPEG-4, MPEG-2, VP8, Theora video Hardware-accelerated encoding with AMD VCE, Nvidia NVENC and Intel QuickSync AAC, MP3, Vorbis, AC3, FLAC audio encoding and AAC/AC3/MP3/DTS/DTS-HD passthrough Target bitrate, size or quality for video 2-pass encoding Decomb, detelecine, deinterlace, rotate, reflect, chroma smooth, colorspace filters Powerful batch encoding with simultaneous encodes Customizable Pickers to automatically pick audio and subtitle tracks, destination, titles and more Instant source previews Creates small encoded preview clips Pause, resume encoding VidCoder 12.20 changes: Updated HandBrake core to 1.11.2. Download: VidCoder 12.20 | 47.0 MB (Open Source) Download: Portable VidCoder 12.19 | 89.3 MB Link: VidCoder Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Jordan Smith earned a badge
      Week One Done
    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      590
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      76
    4. 4
      Michael Scrip
      73
    5. 5
      Steven P.
      66
  • Tell a friend

    Love Neowin? Tell a friend!