.asp Pages |
![]() ![]() |
.asp Pages |
Apr 20 2008, 12:48 AM
Post
#1
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 |
I am wanting to use .asp pages for my personal blog instead of .html pages, and I was wondering how I could go about doing that.
|
|
|
|
Apr 20 2008, 01:26 AM
Post
#2
|
|
![]() i did your boyfriend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 3,335 Joined: Feb 2004 Member No: 4,071 |
Why do you prefer asp pages over something like.. lets say, php?
|
|
|
|
Apr 20 2008, 01:45 AM
Post
#3
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 |
Because I attended this Computer Network Technology conference that I was selected to go to and they said that .asp pages were better than .html or .php pages. So I said hmm maybe I should convert my website's pages to .asp.
|
|
|
|
Apr 20 2008, 04:26 AM
Post
#4
|
|
![]() i did your boyfriend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 3,335 Joined: Feb 2004 Member No: 4,071 |
It's only really useful if you have something you actually want to do with ASP. If you're just hosting a regular site with a few pages, there's no real use... you might as well stick with a few php includes.
In any case, asp includes work pretty much the same as php, you use the tag to include the file you like, wherever you want its content to show up. But there are two ways of including. Virtually/Absolutely or Relatively. Let's say you are working inside a file that is located in a folder called "dir" and you want to include a file that is located in a subdirectory of "dir" called "subdir." So, to put it more visually: QUOTE Root
Absolutely: This assumes that the file is being called starting from your server's root directory. It doesn't matter where you are currently on the server, it will automatically assume that you are starting from your root. QUOTE <!--#include virtual="dir/subdir/file.asp" --> Relatively: This indicates that you are calling the file relative to your current position on your server. QUOTE <!--#include file="/subdir/file.asp" --> another example is if the file was in the same folder ("dir") then it would simply be: QUOTE <!--#include file="file.asp" --> Hope this helps. |
|
|
|
Apr 20 2008, 06:28 AM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
I worked as an ASP developer for over four years. I can tell you, without a doubt, that for a personal blog, ASP offers no advantages whatsoever over PHP.
That said, to make an ASP-based website, you a Windows webserver running Microsoft IIS. Then, you should write your webpages in a language supported by your version of ASP. That's about it... A full tutorial on an ASP language like VBScript is beyond the scope of this post. Really, though, ASP offers no real advantages over PHP; and if you want something "better" than PHP, go with Python or Ruby. |
|
|
|
Apr 20 2008, 03:16 PM
Post
#6
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 |
I just want to say thanks to both of you. You both helped me out and made me change my mind about asp. So I guess I'll stick to php.
|
|
|
|
Apr 21 2008, 01:16 AM
Post
#7
|
|
![]() sang loves hayden. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 3,373 Joined: Feb 2004 Member No: 5,687 |
Glad you got your answer, Alvin.
TOPIC CLOSED. |
|
|
|
![]() ![]() |