Click to See Complete Forum and Search --> : Asp==php ?


Ben Rogers
03-17-2004, 02:30 PM
I was wondering, can ASP perform all of the functions that PHP can, most namely: $_GET, $_POST, and include()? I want to use Webmatrix hosting bcuz it has no ads, but I use a tonnage of essential PHP, and I'll need to be able to convert it to ASP....

The Cheat
03-17-2004, 03:34 PM
Dont go to the dark side man! :eek:

(yeah they can both do that, thats basic stuff any server side language can do.)

PeOfEo
03-17-2004, 04:10 PM
wmh does not even support asp. WMH supports asp.net which is far superior to asp classic. Asp is about as capable as php I would say but php is not platform dependent (thus it can run on a cheaper os), and it is faster. But asp.net on the other hand can match or beat php in speed, is fully object oriented, has increadible language flexability, and I would say is the best technology out there at this time. But the next version of php could give asp.net a run for its money.
http://forums.webdeveloper.com/showthread.php?s=&threadid=29318
look at this thread, it disgusses some of the differences between asp classic and asp.net

ps: yes asp and asp.net can print data, get data, query data bases, connect to smtp, do includes, they can do the same things php can do. Infact so can cgi and jsp, they will all be able to do those fundamentals.

Ben Rogers
03-17-2004, 06:35 PM
Sorry, I mean ASP.net. Thanks Peo and Cheat. I may make the change soon.. as for the different versions of PHP it makes no difference to me as long as my scripts run properly.

Sam
03-17-2004, 07:00 PM
just out of curiosity peo, does asp have any sort of GD library for graphics on the fly?

Ben Rogers
03-17-2004, 08:05 PM
GD library..? Graphics on the fly...?

Sam
03-17-2004, 08:18 PM
yes, php has a wide variety of image manipulation functions (http://www.php.net/manual/en/ref.image.php)

pyro
03-17-2004, 09:01 PM
Originally posted by samij586
yes, php has a wide variety of image manipulation functions (http://www.php.net/manual/en/ref.image.php) Yes, very cool; very sexy... :p

PeOfEo
03-17-2004, 09:32 PM
asp.net does have the drawing capabilities of php. System.net.drawing. ASP.NET also has the socket capabilities of php with system.net.sockets. I might ad that asp.net can do it very sexily as well :D

Sam
03-17-2004, 09:46 PM
at least it doesn't make you use VML (AKA SATAN)

PeOfEo
03-17-2004, 09:53 PM
VML is really useless, who makes you use that? I have used system.drawing to resize images to dynamically create thumbnails and just to get them down to a size under 100k. System.drawing is also commonly used to do dynamic charting to make things like polls etc.

buntine
03-17-2004, 10:23 PM
I would think .NET can beat PHP in every aspect, except for widespread use, of coarse. :D

pyro
03-17-2004, 10:24 PM
I won't even start... :p

buntine
03-17-2004, 10:26 PM
No, please, start...

I wasnt enforcing that its a fact, i really just wanted someone to tell me how much they disagree with me :D

The Cheat
03-17-2004, 10:35 PM
Originally posted by buntine
I would think .NET can beat PHP in every aspect, except for widespread use, of coarse. :D
php is free
asp is $$$$$$$$

not every aspect.

buntine
03-17-2004, 10:52 PM
Nope, actually .NET is completely free...

PeOfEo
03-17-2004, 11:04 PM
Originally posted by The Cheat
php is free
asp is $$$$$$$$

not every aspect.
.net framework
http://www.asp.net/download-1.1.aspx?tabindex=0&tabid=1

web matrix editor
http://www.asp.net/webmatrix/download.aspx?tabindex=4 (asp.net can be done in any text editor, but this is a very good free editor with intellitext etc)

free asp.net hosting project
http://webmatrixhosting.net

cassini web server
http://www.asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1

It will not cost you a dime to use asp.net, its completly free. MSSQL server is a great data base but is pricy, but ms has a free version, MSDE.

Basically the only thing that you pay for to use asp.net with is the operating system, and the chances are you are running an nt based os already so if you want to host it yourself no problem.

The Cheat
03-18-2004, 12:08 AM
ok well thats good to hear :)

my bad on that

Sam
03-18-2004, 01:05 AM
Originally posted by PeOfEo
VML is really useless, who makes you use that? I have used system.drawing to resize images to dynamically create thumbnails and just to get them down to a size under 100k. System.drawing is also commonly used to do dynamic charting to make things like polls etc.
Yeah it is... when converting powerpoint to a web doc, ms does its graphics entirely in vml... I started a php interpreter/vml->png converter, but haven't got around to finishing it yet...

PeOfEo
03-18-2004, 01:41 AM
maybe they do it because it is the only markup that can do imagerly. But it is not really graphics because it is just modding the shape of an element. vml is a waste of time because the support is so horrible.

Sam
03-18-2004, 02:12 AM
yeah, I thought about making a vml -> svg converter, but svg still needs a plugin on IE... too bad... its quite awesome

Ben Rogers
03-18-2004, 03:37 PM
Originally posted by pyro
Yes, very cool; very sexy... :p

I NEVER thought I'd hear you say that *shudders*, I kind of always pictured those eyes as a picture of you... but inmy opinion, PHP is more.. er... user friendly.

pyro
03-18-2004, 04:28 PM
Yes, I was talking about PHP's GD functions. :)

PeOfEo
03-18-2004, 04:34 PM
Originally posted by omega
I NEVER thought I'd hear you say that *shudders*, I kind of always pictured those eyes as a picture of you... but inmy opinion, PHP is more.. er... user friendly. then asp.net? That opion could easily change. Asp.net has excelent language flexability, no matter what language you are used to you can find a syntax almost identical to the one you have used. I came from 2 years of vb experience when I started asp.net (now I know java but have not tried j# yet, but I like c#) so I mainly use vb.net. I did not have to learn a new language at all, just the sql statement syntax.

buntine
03-18-2004, 08:14 PM
Agreed, i dont see how you could think PHP is more user-friendly...:eek:

You can use similar languages when writing ASP.NET applications.

Regards.

Sam
03-18-2004, 08:58 PM
Perhaps its just me, but I seem to find that their are much more resources available on php (especially free ones). and the best part? you don't even need them. The manual for the entire language is on 1 site with examples and all. Due to the fact that ASP supports so much, its next to impossible to contain all that knowledge w/o a nice $50 book

buntine
03-18-2004, 09:16 PM
True. .NET is still a new language (it was only released in 2000) so the resources avaliable are nothing compared to that of PHP.

Though, new sites are emerging all the time.

I think i would rather fork out some cash for a book, however.

Regards,
Andrew Buntine.

Ben Rogers
03-18-2004, 10:46 PM
I don't think it's possible to memorize EVERY function and EVERY variable. I've found some research neccesary for every test or real script I've done.

pyro
03-18-2004, 10:49 PM
Not every function and parameter (well, it may be possible, but...), but if you use the language enough, you will end up knowing the common ones... Thankfully, with php.net just around the corner, even if you don't remember them, they are easy enough to find.

Ben Rogers
03-18-2004, 11:01 PM
That's what I meant by research. Go to php.net, punch in a few keywords, and voila...

The Cheat
03-19-2004, 12:05 AM
also you can download the manual

Sam
03-19-2004, 12:05 AM
Originally posted by pyro
Not every function and parameter (well, it may be possible, but...), but if you use the language enough, you will end up knowing the common ones... Thankfully, with php.net just around the corner, even if you don't remember them, they are easy enough to find.
misread this at first... thought you were saying php .NET not php.net...

buntine
03-19-2004, 12:37 AM
Yer, i was surprised to hear about php .NET :p

PeOfEo
03-19-2004, 02:03 AM
lol, wouldn't supprise me. It would be a wondeful swipe wouldn't it... might be in legal limbo forever but microsoft could probably get away with blatantly gobbling it up.... But jsp on the other hand... no, because sun is lame.... I know of plenty of good asp.net sites myself.
www.4guysfromrolla.com <-- my fav
www.411asp.net
www.123aspx.net
www.15seconds.com

There are many more, but those are some of the ok ones. But their are more and more sites all the time. asp.net is mainly done with c# and vb.net, though other language possibilities are numberous, but you will be able to find caches of resources on vb.net and c# in any google search. I would also rather buy a book myself, easier to read and comes with proven scripts and I have an appendix with some of the less commonly used structures in vb.net and c# and string functions incase I forget them (which is not often)... Stuff like try catch that is.
Edit: it being so new can be a downsite when looking for tutorials (though I never find trouble) but being new is a good reason to use asp.net because you would not need to move for a long time and asp.net can offer the most at this time feature wise since it was building on existing technologies. Asp developers should definatly get moveing because pretty soon they are going to need it, more and more compainies are moving over from asp classic to asp.net, the effect is not dramatic or instantaneous since asp can run side by side with asp.net, but new pages (the whole sites are not being recodded generally) are being coded in asp.net. www.blizzard.com is a good example of the power of asp.net, they control battle net and have all of the serers communicationg, the game servers and updating account records and they do use dnyamic charting with asp.net, most frequently in the warcraft3 sections. Unfortunatly blizzard is not a champion of valid code so asp.net power is the only thing I can use their site as an example of.

http://www.battle.net/war3/ladder/w3xp-player-profile.aspx?Gateway=Azeroth&PlayerName=FlinxSL2 <-- warcraft3 player profile
http://www.battle.net/war3/ladder/w3xp-player-stats.aspx?Gateway=Azeroth&PlayerName=FlinxSL2 <-- extensive tracking on the same player that I chose at random.
http://www.battle.net/war3/ladder/reports/last-week/Azeroth/w3xp-reports-game-type-usage.shtml http://www.battle.net/war3/ladder/war3-chart-view.aspx?Gateway=Azeroth&Chart=%2fwar3%2fladder%2freports%2flast-week%2fazeroth%2fw3xp%2fGameTotalsByDay.png<-- charts drawn with asp.net using system.drawing. They have a very nice setup, now yes a lot of this is backlog server ap stuff and asp.net is mainly used for just the charting and communication with the game servers and displaying data base servers... but its still a nice setup

Ben Rogers
03-19-2004, 03:43 PM
Geh. too complex for me.