Re: [PHP] Hi - newbie questions...
At 02:14 PM 1/31/2002 -0500, Michael Kimsal wrote: >>>4th >>>sessions, can they be accessed from an asp script and the other way round? >> >>No, they cannot. They are specific to PHP. > > >not directly, but an ASP script on the same domain should be able to read >the cookie storing the session ID, then pull the info out from a database >(if you're using a db backed to store the session info). > >Short answer is no - probably for the questioner's needs, but it's >possible it can be done in some unique situations. Yes Michael, I didn't think differently enough about the nature of temporary, or session only, cookies. Of course, an ASP script should be able to sort through all the cookies for the same domain and dig out which one stores the session vars. Cheers - Miles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hi - newbie questions...
Miles Thompson wrote: >> 3rd >> does php have application like asp?? > > > Well, PHP is essentially an application like asp in that it parses a > script which normally has a .php extension and either executes commands > embedded within it or echoes HTML. The output from a PHP script is > straight HTML. > > Other than that, you had better re-phrase the question. > I think he meant 'application()' - application-scope variables, like session-scope variables. The answer is 'no', but you can 'roll your own' functionality pretty easily if you need to. Application variable were/are a big pain in the ASP world, ime, because people abuse them. There's rarely MUCH data you need to pass around globally and modify like that that wouldn't be better off in a database. >> 4th >> sessions, can they be accessed from an asp script and the other way >> round? > > > No, they cannot. They are specific to PHP. > not directly, but an ASP script on the same domain should be able to read the cookie storing the session ID, then pull the info out from a database (if you're using a db backed to store the session info). Short answer is no - probably for the questioner's needs, but it's possible it can be done in some unique situations. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hi - newbie questions...
You've got an interesting mix of PHP and HTML questions, and some reading will be required. At 01:56 AM 1/31/2002 +0100, Pafo wrote: >1st >How to start a cookie/how to delete a cookie and how to change/retrive >information from it Search Netscape's site for something like "developer cookie". They originated the cookie spec. There are probably other sites out there which have tutorials on cookies. Once you have that read and comprehended, then check the PHP manual on how cookies are set, starting with the set_cookie() function. >2nd >How to start a session/how to delete a session and how to change/retrive >information from it http://www.php.net/manual/en/ref.session.php and there are a couple of articles out there on the net on how to use sessions which are a little more conversational. >3rd >does php have application like asp?? Well, PHP is essentially an application like asp in that it parses a script which normally has a .php extension and either executes commands embedded within it or echoes HTML. The output from a PHP script is straight HTML. Other than that, you had better re-phrase the question. >4th >sessions, can they be accessed from an asp script and the other way round? No, they cannot. They are specific to PHP. >regards >pafo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Hi - newbie questions...
1st How to start a cookie/how to delete a cookie and how to change/retrive information from it 2nd How to start a session/how to delete a session and how to change/retrive information from it 3rd does php have application like asp?? 4th sessions, can they be accessed from an asp script and the other way round? regards pafo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]