The Lizard Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsCommunityThe Lizard Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 3rd, 2002, 07:07 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via Yahoo to fakker
Question PHP... or ASP??

I am currently developing two sites for clients, one in PHP and the other in ASP...

I find that there are advantages and disadvantages to using both....

PHP is much cheaper to use than ASP (with the hosting in mind) but I find ASP has more functionality....

I am only a mere beginner(ish).... so I'd just like to hear a few peoples opinions on it!!

Matt F
manchester, UK

www.facer-designs.co.uk

Reply With Quote
  #2  
Old July 3rd, 2002, 07:11 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to Lindset Send a message via AIM to Lindset
I haven't really tried ASP.. but I like PHP's syntax much better (I looove curly braces) I also like the fact that it's open source, and it has a great community..

Can't think of anything else meaningful to say right now
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #3  
Old July 3rd, 2002, 07:16 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via Yahoo to fakker
I think that PHP is much easier to get variables from the URL and from a FORM....
with ASP you need to tell the code where to get the variable value from.. ie: $variable = request.querystring("variable") but with PHP all you seem to need to do is simply call $variable..

Unless I am mistaken!!
I have created one complex site using ASP... but I am tending to favour PHP at the moment....I think that both are very well supported on the net.. the amount of help you get find is brilliant!

I tend to use www.asp101.com for my ASP and www.phpbuilder.com (obviously) for PHP!

I have found that this site seems to be the best for articles and the forum though!!

__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #4  
Old July 3rd, 2002, 07:19 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Quote:
Originally posted by fakker
I think that PHP is much easier to get variables from the URL and from a FORM....
with ASP you need to tell the code where to get the variable value from.. ie: $variable = request.querystring("variable") but with PHP all you seem to need to do is simply call $variable..

Unless I am mistaken!!


Actually.. after PHP 4.2.1 register_globals is off by default.. this means that you have to use the superglobal arrays introduced a few versions earlier to access the get and post variables..

$_GET['var']
or
$_POST['var']

This might seem like a bad thing, but really, it's a good thing.. (Security, readability)


Reply With Quote
  #5  
Old July 3rd, 2002, 07:23 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via Yahoo to fakker
that is actually quite interesting actually.... I had a problem when I installed my PHP server jobby...that it didnt recognise a variable $id for example... I went in to my php.ini file and changed some setting ... register_globals (maybe?!) to ON....

should I declare the variables at the beginning of each page??

ie:

global $ID

or the like??

Reply With Quote
  #6  
Old July 3rd, 2002, 07:28 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to Lindset Send a message via AIM to Lindset
If $id was set with either the get or post method you should access it using $_GET['id'] or $_POST['id'], depending on which method is in use of course..

These arrays are superglobals, meaning you don't have to declare them as globals..

http://www.php.net/manual/en/reserved.variables.php

You could also use $_REQUEST, and you can read about it in the link above..

Reply With Quote
  #7  
Old July 3rd, 2002, 07:32 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via Yahoo to fakker
thanks for that! I didnt realise that is how you get the value!
I thought it was somehow assigned automatically!

Thanks!

Reply With Quote
  #8  
Old July 3rd, 2002, 07:54 PM
ebroyles ebroyles is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 2 ebroyles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post ASP v PHP

I have worked in both PHP and ASP, and as you stated, both have advantages and disadvantages. I have developed a complex Content Management System (CMS) for my employer in ASP connecting to a SQL Server database through ADO. I'm using Chili!Soft ASP with Apache on a Solaris 8 box rather than IIS (due to the unbelievable lack of security in IIS). This setup works quite well.

[NOTE]I write my ASP code in JavaScript (JScript) instead of the usual VBScript. I prefer JScript because it functions more like an object oriented language and is much easier to read and write IMHO. JScript has a large number of built-in objects and functions, though VBScript probably has more, as it's Microsoft's own language.[END NOTE]

I've also developed some customized CMS for clients on a freelance basis using PHP. The requirement was to develop the system in PHP because it is free and runs on so many different platforms. I built these CMS to custom requirements in a short timeframe using PHP 4 on a RedHat Linux server. I find PHP to have a multitude of very handy functions for performing trivial and non-trivial tasks (both common and uncommon). If I had to guess, I'd say PHP has far more built-in functions (and configuration options) than ASP. The support community is enormous and you don't need to have a third-party commercial server (such as Chili!Soft ASP) to run PHP on non-Windows platforms.

I'm not sure whether ASP or PHP is faster, but if I've noticed any difference in performance, it's been in the favor of PHP. I'm actually hoping to install PHP at work and begin (slowly) transitioning the system from ASP to PHP. Though the corporate push is for JSP, which is another story altogether.

Reply With Quote
  #9  
Old July 3rd, 2002, 11:36 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I originally started off with PHP and im slowly (when i get time, which is limited) learning ASP. VBscript seems more complex to get the same thing done in PHP, it might be this or im creating a excuse because i hate MS.

Reply With Quote
  #10  
Old July 4th, 2002, 01:14 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 8
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
in my opinion, PHP is easier then ASP and is much faster & efficient. PHP is a good choice if you have past experience with C oriented languages.

__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #11  
Old July 4th, 2002, 01:55 AM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I have been using ASP and PHP for 4 years, and I would say that PHP is easier to use, has more functionality, and generally a more approachable userbase. I wrote devArticles.com with PHP, and it was extremely easy compared to other sites that I've done (such as www.techbuy.com.au) with ASP.

I have worked at all levels (from small business to enterprise) with both, and PHP wins hands down because it can be used cross platform, and I can still run my old VB/C++ COM's using its COM() functionality.

All in all, PHP is my preferred language of choice for everything I do these days.

Reply With Quote
  #12  
Old July 4th, 2002, 06:00 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
in asp defence (what am i getting myself into) more professional sites use asp, as clients think "wow, its microsoft it must be good", well thats what ive been told by a professional asp developer, but php is deffiently easier to program in.

[note] ive really put my foot in it by sticking up for asp[/note]

[note to self] dont stick up for microsoft u moron[/note to self]

Reply With Quote
  #13  
Old July 4th, 2002, 11:00 AM
ebroyles ebroyles is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 2 ebroyles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post

Quote:
in asp defence (what am i getting myself into) more professional sites use asp, as clients think "wow, its microsoft it must be good", well thats what ive been told by a professional asp developer, but php is deffiently easier to program in.

Yes, I suppose due to Microsoft's marketing and market presence, clients favor ASP, though these are typically the folks that have no technical expertise. Unfortunately the enterprise is reluctant to embrace open-source for lots of (silly) reasons. For one, they figure if it's free, it can't be as good as something that is not free. This is ironic since cost is almost always a consideration for enterprise purchases. (Perhaps in the current economy we'll see more enterprises go the open-source route in a move to cut costs.) Plus technical support is always a consideration for enterprise purchases, and while the open-source community has an enormous support base, you usually can't call someone on the phone in a crisis situation and get immediate help. And security is a concern (though Microsoft has proven time and again that its server OS and IIS are less secure than Linux and Apache, respectively).

But the enterprise is slowly coming around. HP is seeking to "drive the benefits of Linux into the heart of the corporate enterprise" (see http://www.compaq.com/products/servers/linux/index.html). Reuters recently announced support for Linux in the financial services industry. IBM is spending $1 million to create a factility for demonstrating Linux to Wall Street (see IBM To Open Manhattan Linux Showroom). The company will set up Linux on their eServer running WebSphere, DB2, Lotus Domino and Tivoli (see Taking Linux To Where the Money Is).

I definitely favor PHP and other open-source technologies (I personally think Apache is the world's best web server). I hope to see more open-source products adopted by the enterprise, as I think it will heap benefits upon both the enterprise and the open-source community.

Reply With Quote
  #14  
Old July 4th, 2002, 06:32 PM
Kenneth Kenneth is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Norway, Alta
Posts: 10 Kenneth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool well

I've only used PHP, and I will never switch to ASP (unless something drastic happens). It's open-source, it's very easy to learn and use and it has everything you would want from a programming language (for web that is

Reply With Quote
  #15  
Old July 4th, 2002, 07:15 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
I've only used PHP, and I will never switch to ASP (unless something drastic happens). It's open-source, it's very easy to learn and use and it has everything you would want from a programming language (for web that is


Kenneth, your summed it up in a box, alas the perfect statement. need we say more?

Reply With Quote
  #16  
Old July 5th, 2002, 10:40 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via Yahoo to fakker
it is interesting to see everyone's views on this matter... I think I am going to stick to PHP from now on... I thought ASP was quite widely used.... obviously I was wrong!
I have only a "beginners" book of PHP and an advanced book of ASP.. so that's why I thought ASP had more features...



oh well, looks like I'm off to the book shop to get my advanced PHP coding manual!!

Anyone suggest a decent reference book?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsCommunityThe Lizard Lounge > PHP... or ASP??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek