Closed Thread Icon

Topic awaiting preservation: Converting ASP to PHP...please help (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12176" title="Pages that link to Topic awaiting preservation: Converting ASP to PHP...please help (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Converting ASP to PHP...please help <span class="small">(Page 1 of 1)</span>\

 
e-maestro
Bipolar (III) Inmate

From: Northwestern Lower Michigan, USA
Insane since: Apr 2001

posted posted 04-15-2002 16:22

I'm trying to do these ASP assignments for my class in PHP.

I am working through some tutorials and a PHP book, but need some extra help as some of this stuff is a bit more complicated than where I am now.

Can anyone tell me what the PHP equivalents are for the following ASP functions, methods, or what ever you call them?

ASP Session.Contents("firstName")
PHP ?

ASP Response.Write(Session.Contents(curVariable));
PHP print("...")

ASP Application.Lock();
PHP ?

ASP Application.Contents("guestCounter");
PHP ?

ASP Application.Unlock();
PHP ?

ASP Request.QueryString("fistName")
PHP


We are supposed to creat a guessing game in ASP. Here are the instructions:

Record each user's number of guesses in the Session object.
Record user names and hight scores in the Application object.
Include features that allow users to view the list of names and high scores.

Can anyone send me to some tutorial or give me some pointers on what to look at so I can figure this out in PHP?
Basically it looks like I need to understand Sessions, and Applications. It appears that there are Sessions in PHP, but I don't see anything about Applications. What do I use instead?

Any help will be greatly apprecated!

THX!


GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-15-2002 16:30

sorry, i dont do ASP so i cant translate for you, but to learn php, the manual is always a good start!
http://www.php.net/manual/en/

for sessions: http://www.php.net/manual/en/ref.session.php

i dont know about applications, what are they for in ASP?

edit: typo

[This message has been edited by GRUMBLE (edited 04-15-2002).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-15-2002 17:28

Same issue here I don't know what these do.

IF you can describe the what the functions do in ASP then I'd point you in the right direction.

NOTE** you may find there is not a direct correlation between the ASP and PHP methodologies so there may not be an exact PHP equivalent. Just taking a quick look at this (and I don't know ASP) I'm thinking there is no true "application object" equiv in PHP (at least not by default).



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

[This message has been edited by bitdamaged (edited 04-15-2002).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-15-2002 19:28

http://asp2php.naken.cc/


bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-15-2002 19:35

Wow now that's an interesting link Max.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-15-2002 21:13

e-maestro:

quote:
I'm trying to do these ASP assignments for my class in PHP.



The main question is why? You would probably be better off just doing it in ASP. To do this kind of thing (unless your assignment is really simple) could result in more hassle and work than if you were to just get a good grasp of ASP (in the end it could be a easiest option).

mr.maX: Nice link.

Emps

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-15-2002 22:25

(emps that's actually covered in another thread)



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-16-2002 02:19

bitdamaged: Ooops I missed that one:
www.ozoneasylum.com/Forum12/HTML/000808.html

Thanks,

Emps

e-maestro
Bipolar (III) Inmate

From: Northwestern Lower Michigan, USA
Insane since: Apr 2001

posted posted 04-16-2002 03:39

Yup Emperor...you found it. I know it probably doesn't make any sense but....me taking this class doesn't either I have decided.

mr maX... very interesting link, and I would use it if I could figure out how the @#%! to do it!!!
I downloaded the file and unzipped it, but the instructions are not written in English or Spanish, therefore I can't understand what to do next.

I think all you coding types are language impaired!

OK, guys...I have the "www.php.net" address memorized by now...and I'm sure it is a wonderful reference source for all of you that understand this stuff already, but info overload for the rest of us. If someone will tell me the key for understanding how to use all that wonderful info in a practical way I would be most grateful!

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-16-2002 06:50

I don't know what you downloaded, because everything I have is written in plain English...

Instructions how to use program (in English): http://asp2php.naken.cc/howto.php

Program download (you need Windows Binaries): http://asp2php.naken.cc/download.php


« BackwardsOnwards »

Show Forum Drop Down Menu