[SOLVED]Not sure if it is a question for a php forum...
Moderator: General Moderators
Code: Select all
<%
dim numvisits
response.cookies("NumVisits").Expires=date+365
numvisits=request.cookies("NumVisits")
if numvisits="" then
response.cookies("NumVisits")=1
response.write("Welcome! This is the first time you are visiting this Web page.")
else
response.cookies("NumVisits")=numvisits+1
response.write("You have visited this ")
response.write("Web page " & numvisits)
if numvisits=1 then
response.write " time before!"
else
response.write " times before!"
end if
end if
%>
<html>
<body>
</body>
</html>DAMN I wrote some ASP
Oh god I made a terrible mistake!
Haven't I mentioned that I know nothing about asp?
I am just saving the pages with that extension so that I can use some features
of asp, like including a file I want in every page of my site for aesthetical reasons ! If I change their extension to php I will destroy their appearance
and I don't have the time to do it all over again.
I am really sorry, that is why I didn't get what you were saying!
Haven't I mentioned that I know nothing about asp?
I am just saving the pages with that extension so that I can use some features
of asp, like including a file I want in every page of my site for aesthetical reasons ! If I change their extension to php I will destroy their appearance
and I don't have the time to do it all over again.
I am really sorry, that is why I didn't get what you were saying!
You should give us some information
1) what is your server? (apache or IIS)
2) how much do you know php?
3) how much do you know asp?
4) how much do you know about programming?
Remember, there is no one-way!! There are many ways to make things work.
As a developer i can say nothing about "aesthetical reasons" but one thing that
aesthetical reasons HAVE NO RELATION WITH CODING.
5) how can you save asp pages?
6) what features? including a file like in include() function in PHP?
And the last thing : I'm sorry but i did not get anything from what you are saying, too.
1) what is your server? (apache or IIS)
2) how much do you know php?
3) how much do you know asp?
4) how much do you know about programming?
Remember, there is no one-way!! There are many ways to make things work.
As a developer i can say nothing about "aesthetical reasons" but one thing that
aesthetical reasons HAVE NO RELATION WITH CODING.
5) how can you save asp pages?
6) what features? including a file like in include() function in PHP?
And the last thing : I'm sorry but i did not get anything from what you are saying, too.
1) My server is IIS
2)I know as much php as I need to know so that I can create a survey system
3)I don't know asp
4)I guess you already formed an opinion...
The reason I am in this forum is because I KNOW there is not just one way to make things work and I asked if anyone could tell me a way I haven't thought of. I do have some restrictions though, which I explained from the beggining, that I know only javascript and php and that I can't change some things.
I used asp because I can include a file that contains tables I need in every page of my site (maybe you haven't heard of that use). That is what aesthetical means, it's not a file with functions but an html file with tables that have links, acknowledegments and pictures I want in every page.
5)when you save a file you can choose what extension you want it to have, for example I write in a .txt file and I save it as an .html file. I think you know that... So you can save it as an .asp file as well.
6)No it's not like php include as far as I know
I don't want to waste anybody's time here , I'm honest when I say I'm sorry and I appreciate every help. But please don't interpret my politeness as weakness and stupidity.
Thanx for everything and most of all for the time you dedicated in this.
2)I know as much php as I need to know so that I can create a survey system
3)I don't know asp
4)I guess you already formed an opinion...
The reason I am in this forum is because I KNOW there is not just one way to make things work and I asked if anyone could tell me a way I haven't thought of. I do have some restrictions though, which I explained from the beggining, that I know only javascript and php and that I can't change some things.
I used asp because I can include a file that contains tables I need in every page of my site (maybe you haven't heard of that use). That is what aesthetical means, it's not a file with functions but an html file with tables that have links, acknowledegments and pictures I want in every page.
5)when you save a file you can choose what extension you want it to have, for example I write in a .txt file and I save it as an .html file. I think you know that... So you can save it as an .asp file as well.
6)No it's not like php include as far as I know
I don't want to waste anybody's time here , I'm honest when I say I'm sorry and I appreciate every help. But please don't interpret my politeness as weakness and stupidity.
Thanx for everything and most of all for the time you dedicated in this.
4.
this is the same way we include footer.php's to all of our pages.
a php file can contain tables and other HTML-things too. so you can use include() of PHP
So no need to use ASP.
5.so you are saving them manually (this is the informatin i asked of)
FORGET THE ASP, and lets write the whole page using PHP.(what ever the extention is, you can include it.)
yes actually i heard aout thatI used asp because I can include a file that contains tables I need in every page of my site (maybe you haven't heard of that use).
a php file can contain tables and other HTML-things too. so you can use include() of PHP
5.so you are saving them manually (this is the informatin i asked of)
FORGET THE ASP, and lets write the whole page using PHP.(what ever the extention is, you can include it.)