مهربد نوشته: خیر اشتباه فهمیدی میلاد، بالا را دوباره بخوان.خیر عزیزم ، همان طوری که بهت نشون دادم در سی شارپ و کلن دات نت ما امکان وارد کردن مستقیم کد های خارجی رو نداریم و حتمن باید از متد یا دستورات خاص خود زبان استفاده کنیم ، ولی در PHP این امکان وجود داره ، مثالش رو هم بالاتر برات زدم و در مقایسه با مثالی که خودت لینک دادی به روشنی پیداست که نمونه ی PHP خوانا تر و قابل فهم تره برای حتا افرادی که با زبان PHP آشنایی ندارند .
در #C میتوان بسادگی میان HTML کُد دلخواه را نوشت.
همه کتابها نیز اشتباه نوشتهاند. اگر هنوز شک داری لینک مایکروسافت را هم میتوانی یک نگاه بیاندازی...
مهربد نوشته: چنانکه گفتیم، بیشتر بودن کاربران یک چیز نشانه خوب بودن آن نیست.این حرفت رو اصلن قبول ندارم ، ما اینجا در مورد کاربران صحبت نمیکنیم ! در مورد موجوداتی به نام دولوپر صحبت میکنیم که همشون هم غولهای دنیای وب در نوع خودشون هستند و شما نمیتونی چنین ادعایی رو در بارشون بکنی . ما اینجا در مورد یک مساله ی فلسفی بحث نمیکنیم که بخوای نتیجه گیری های فلسفی بکنی که چون استفاده کنندش بیشتره پس بدتره یا دلیل نمیشه مثل همون مثال مسلمانی که زدی ! ما داریم در مورد یک زبان برنامه نویسی صحبت میکنیم که مهم ترین وبسایتهای دنیا رو باهاش نوشتند و در این وبسایتها امنیت ، سرعت ، و کیفیت حرف اول رو میزنه . مطمئن باش سازندگان مثلن ویکی مدیا که هزاران برابر از من و تو بیشتر میدونند از روی برداشتهای شما زبان PHP رو انتخاب نکردند یا حتا شرکت دل از روی برداشت شما نرفته سراغ دات نت !
مهربد نوشته: یکبار دیگر، بیشتر بودن و بزرگتر بودن گروه کاربران یک چیز نشانه بهتر بودن آن نیست.
یکبار دیگر این حرف یک ادعای بی اساس هستش که چرایی اش را پیشتر توضیح دادم .
مهربد نوشته: تا اینجا که تنها گفتی روی PHP سایتهای بزرگتری نوشتهاند، من هم میگویم پس با این حساب
من و تو هم باید برویم مسلمان شویم، چون آدمهای بیشتری مسلمان هستند پس حتما چیز بهتری از خردگرایی است!!
برایت گفتم ، ما در مورد فلسفه بحث نمکنیم ! ما داریم در مورد تکنولوژی و غولهای اون و دشمنان بی پایانشون صحبت میکنیم .
مهربد نوشته: درباره امنیت، سرعت و کیفیت هم که تنها میگویی بهتر است، روی چه حسابی بهتر است؟ benchmark؟
http://www.comentum.com/php-vs-asp.net-comparison.html
مهربد نوشته: همچنان که میتوان دید، PHP در تندی به #C نزدیک هم نمیشود.
خوب اشتباه میکنی عزیزم ! لینکی هم که فرستادی لینک درستی نیست ! حتا خود طرف اینطوری نوشته :
نقل قول:Go ahead and google asp.net vs php speed and you will see that almost all of the posts scream that php is faster, but you will not find any links or evidence backing this up.یعنی آخرش دست پیش رو گرفته که پس نیوفته !
هر کسی که میگه سرعت دات نت از PHP بیشتر یا کارمند مایکروسافته در بخش تبلیغاتش یا اصلن تا حالا با هیچ کدوم این زبانها کار نکرده و درست و حسابی در این باره اطلاعات نداره ! یا فقط رفته دات نت یاد گرفته فکر میکنه از همه بهتره ! درست مثل ماهی تنگ که فکر میکنه کل دنیا همون تنگه بلوری هستش
![3 3](https://daftarche.com/images/smilies/3.gif)
بعد من مطمئن هستم که این بابا اومده مقایسه سرعت PHP با دات نت ، هر دو رو روی ویندوز انجام داده ! دات نت رو ببر روی لینوکس ببین چه بلایی سرش میاد .
مهربد نوشته: متخصصان جهان اما که باشند؟مطمئن باش هر که باشند ، کارشان از من و تو درست تر است که سایت کاخ سفید و یاهو و گوگل را داده اند دستشان ! وگرنه میدادند به ما
![3 3](https://daftarche.com/images/smilies/3.gif)
دست آخر این جدول را هم نگاهی بینداز (لینکش را بالاتر داده ام) :
همان طوری که میبینی ، گوگل ، فیس بوک ، یاهو ، ویکی پدیا ، و وردپرس دارند از PHP استفاده میکنند و مطمئن باش شرکتی مثل گوگل اگر کارش با دات نت راه میوفتاد میرفت سراغ همون دات نت و نمیرفت سراغ PHP . این داستان شمار بیشتر کاربران هم دخلی نداره رو برات توضیح دادم که چرا از بیــــــــــــــــــــــــــــــــــخ غلطه به خصوص در مورد سایتهایی که بالاتر نام بردم . خیلی برام جاله که کسی پیدا شده که میگه سرعت یک زبان که اول باید به یک زبان دیگه کامپایل بشه و بعدش تفسیر بشه و در عین حال با شومپکت تا زبان دیگه عملکردش مشترکه و بار اضافی به سیستم تحمیل میکنه سرعتش بیشتره !!!!!!!!!!!!!!!! (500 تا علامت تعجب هم کمه)
در مورد امنیت که دیگه نیازی به توضیح نیست ، خودت حتمن میدونی که امنیت ویندوزی که قبل از رلیز شدنش در شکم مادرش کرک میشه و سایتش رسمی مایکروسافتش هَک میشه بالاتره یا لینوکس !
این هم باز در مورد مقایسه ی PHP و .NET :
http://enewsz.com/2010/01/19/php-vs-asp-...omparison/
Firstly let me start by saying that I do not claim to be an expert in either PHP or ASP.Net. Although I use ASP.Net daily, I am fairly new to it. I have decided to do little investigation to the age old debate about the difference between PHP and ASP.Net. This is only a short post, but hopefully it will give readers a better understanding of how the two technologies differ. Hopefully this will be as un-bias as possible.
The reason I have chosen to investigate the difference between the two is that non-programmer constantly ask the questions: “What’s the difference between PHP and ASP.Net”, “Why can’t PHP applications talk to ASP.Net applications?” or “That could have been done in PHP so much quicker, for free”. There are so many deciding factors when choosing a web application framework. I will attempt to outline the differences using a For and Against bullet point format for both.
For PHP
* Free
* Open source
* Easier to learn due to its basic scripting language structure and build in functionality
* PHP5 now offers many object orientated development concepts
* Has many free IDEs available that are very impressive and well supported (e.g. Eclipse)
* Runs on Apache server which is open source
* Run on IIS 6.0 and IIS 7.0 due to Microsoft’s implementation of FastCGI open standard
* Has multiple platform support
* Marginally faster due to the overheads imposed by .Net’s Common Language Runtime, which is responsible for intermediate compilation of .Net’s many languages
* Has a huge support base as it is open source
Against PHP
* Although it claims to be free, when using free 3rd party add-ons developers often run into issues when developing commercially available applications (i.e. ownership of code / intellectual rights)
* Most PHP IDEs require lots of add-ons in-order to add similar functions to Visual Studio
* No built in support for AJAX. Requires add-ons.
For ASP.Net
* Can be developed using the stunning Visual Studio.Net IDE that offers vast array of features, that make coding much easier and development more productive
* Developers can download a free scaled down version of Visual Studio that offers an impressive array of features. This is aimed at students and hobbyists
* Runs on IIS (Internet Information Services)
* Applications can be written using many programming languages (e.g VB.Net, C#, J#, C++ COBAL)
* The .Net framework (the engine that ASP.Net is runs on) has more sophisticated error handling capabilities than PHP
* Allows better separation of design and application logic using of code-behind pages and user-controls
* Has built support for AJAX as of .Net Framework 3.5
Against ASP.Net
* Requires a Microsoft licenses
* Requires a basic knowledge of object orientated concepts which can sometimes deter newbie developers
* Single platform and will only run on Microsoft web servers
These bullet points emphasise some of the main differences, advantages and disadvantages of the two languages.
Quotes from other developers for ASP.Net and PHP
For ASP.Net
ASP.Net is Strongly Typed, Object Oriented, Sandboxed, Multi-Syntax, Component Centric, Event Driven, forms oriented, pre-compiled experience.
PHP is a loosely typed, objects optional, fixed syntax, component-less, runtime interpreted, structured programming model.
Joe Stragner
For PHP
In the end, PHP is less expensive, faster, more secure, and able to be deployed from a Linux server that is also less expensive, faster, and more secure than their Windows based counterparts.
Anon
Conclusion
There are many factors that may sway you decision about which web application framework to choose. This decision should be based on the factors above, the kind of career path you want to choose and detailed research. In reality though the decision is usually down to which framework you are exposed to first as many develops get comfortable with on languages syntax and features.
My advice would be to use both; if you can, as each one has its own merits and has earned its place in today’s web application development industry.