[PHP] Problem with session_destroy() don't work
Hi, I have a problem with destroing a session. I have made a login page and the login work ok. I register the things i want like that: I try to make the logout page like that: but it dont work. I have a.. PHP - 4.0.5 a.. MySQL - 3.23.32 a.. Apache - 1.3.14 a.. PHPMyAdmin - 2.1.0 a.. Perl - nsPerl 5.005_03 session.auto_start Off session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_lifetime 0 session.cookie_path / session.entropy_file no value session.entropy_length 0 session.gc_maxlifetime 1440 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path c:/php4/sessions session.serialize_handler php session.use_cookies On installed apache on win2000 The session is not destroyd. Session_unset dont work to. Can someone help me? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to Configure the MySql Database?
I don't know to configure MySql Database On Apache Server in Windows System. What I must do? (step by step)
[PHP] Problem about Reading input from a Form
I can't take the variables $user and $address from the form to the php file. Below I have the code.When I test the examble I only see the html text but not the variables. Thank you THE HTML FORM Listing 9.2 THE PROCCESS OF THE INPUT FORM Listing 9.3 $user\n\n"; print "Your address is:\n\n$address"; ?> The files are in the same directory _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem about Reading input from a Form
I put and the POST method but I have the same problem I don't know why, any ideas? Thank you >From: "John Day" <[EMAIL PROTECTED]> >To: "Kostas Karadamoglou" <[EMAIL PROTECTED]>, ><[EMAIL PROTECTED]> >Subject: RE: [PHP] Problem about Reading input from a Form >Date: Mon, 25 Feb 2002 13:00:35 - > >You need to add the POST method to your form tag > > > >Cheers >JD > > >-Original Message- >From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 25, 2002 12:58 PM >To: [EMAIL PROTECTED] >Subject: [PHP] Problem about Reading input from a Form > > >I can't take the variables $user and $address from the form to the php >file. >Below I have the code.When I test the examble I only see the html text >but >not the variables. Thank you > >THE HTML FORM > > >Listing 9.2 > > > > > > > > > > > > > > >THE PROCCESS OF THE INPUT FORM > > >Listing 9.3 > > >print "Welcome $user\n\n"; >print "Your address is:\n\n$address"; >?> > > > >The files are in the same directory > >_ >Chat with friends online, try MSN Messenger: http://messenger.msn.com > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem about Reading input from a Form
I set the register_globals On in the php.ini file but when i do php.info it shows that is off.About the better way, How i can manipulate this variables, can you give me an exable. Thank you >From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> >To: 'Kostas Karadamoglou' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: RE: [PHP] Problem about Reading input from a Form >Date: Mon, 25 Feb 2002 14:30:09 - > > > -Original Message- > > From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] > > Sent: 25 February 2002 14:09 > > > > I put and the POST method but I have the same problem > > I don't know why, any ideas? > > Thank you > > > > > > > >-Original Message- > > >From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] > > >Sent: Monday, February 25, 2002 12:58 PM > > > > > >I can't take the variables $user and $address from the form > > to the php > > >file. > >Which version of PHP? Is register_globals set to Off? If it is, you can >either turn it On (if you have control of the server), or (better!) use the >$HTTP_POST_VARS (4.0) or $_POST (4.1) array. > >Cheers! > >Mike > >- >Mike Ford, Electronic Information Services Adviser, >Learning Support Services, Learning & Information Services, >JG125, James Graham Building, Leeds Metropolitan University, >Beckett Park, LEEDS, LS6 3QS, United Kingdom >Email: [EMAIL PROTECTED] >Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing arguments in the php.ini file
Hi my system has the following characteristics Windows Me Apache for window 1.3... and PHP 4.1.1 When I change an argument from off to on and then restart the Apache server the php.info() function displays thats no changes took place. Exambles like register_global and display_errors. I dont know what is wrong any idea? _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing arguments in the php.ini file
Hi my system is: Windows Me Apache Server for Windows 1.3... PHP 4.1.1 I have the following problem. I change the variables in the C:\WINDOWS\php.ini file but there is no affect. Also after the change I always restart the Apache server and icall the php.info() function. The function's results are not changed. Example I change the register_globals from Off to On but there is no affect also for the display_errors. Any ideas? _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing arguments in the php.ini file
Hi my system is: Windows Me Apache Server for Windows 1.3... PHP 4.1.1 I have the following problem. I change the variables in the C:\WINDOWS\php.ini file but there is no affect. Also after the change I always restart the Apache server and icall the php.info() function. The function's results are not changed. Example I change the register_globals from Off to On but there is no affect also for the display_errors. Any ideas? --- Reply: Try to STOP and then START apache, not restart. If it doesn't work make sure that there is no php.ini file in the c:\phpinstalldir\.but only in your WINDIR. --- After this reply I Stop and then Start Apache but there is no affect It does not work even if i delete the php.ini... in the c:\phpinstalldir\ _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: System wide variable
Darren Whitlen wrote: Hi, I have a PHP script that reads and updates either a small file or a mysql database. This script is called from several places every .5 seconds. I would like to move this file to a variable for extra speed as the file is causing a few problems being accessed so many times. Is it possible to have a writeable variable that has the scope of EVERY script that is run through the parser? Thanks, Darren check this http://pecl.php.net/package/memcache also if the scripts are associated with each other you could check out using a singleton pattern (http://www.google.com/search?q=php5+singleton&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if test
Jochem Maas wrote: please keep posts on list. jekillen wrote: On Jun 17, 2007, at 12:18 PM, Jochem Maas wrote: jekillen wrote: Hello again; does the following test pass if the file is successfully included: if( include( some file ) ) or does it pass with: if( ! include( some file ) ) have you tried it? Well, typically while waiting for a reply, which I thank you for, I did browse through My Oreilly text Programming php which did not have anything definitive, and looking at the manual which did not have anything completely satisfying, I did try it as if( include( some file ) ) and it worked. But I also testing a file that I knew would cause an error, sure enough the else conditional did smear error messages all over the browser window. I have no idea what else condition you mean and I also have no idea what these 'error messages' are or what they have to do with the original question (which I had assumed was about the testing return values from an include statement ... something you could have gleaned from the manual and a couple of tests. So I did: if(file_exists( some file )) { include(some file); } Thanks again JK Im not exactly sure either about what you mean but you could give it a try using try {} catch {} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions in PHP... where to start???
Hi everybody! I have a problem and I was told to check out the sessions part in PHP. What I want to deal with is the following : I have a PHP page with a form, where the user writes some data. These data are then written into a file which is then used in a system command as input for an external program (NOTE: The data MUST be written into a file, it cannot be done elsewhise, because the external program takes a file as input). The thing is that I must somehow create a file everytime a user enters data into the form, so I must learn something on sessions I think. My question is, since I don't have a login system or something like that, but just want to create a different file each time (with the session_id being part of it, so that the file is unique), which session commands do I need? - Yahoo! Mail Use Photomail to share photos without annoying attachments.