[PHP] Re: [PHP-DB] LDAP multiple actions in modify?
If this suggestion isn't what you're after then it's probably because I don't fully understand your problem, but here goes... if you are simply replacing an old password with a new one in a directory entry you don't need to delete and then add; instead you would use... ldap_mod_replace to replace the value of userPasswd for the specified entry. (see http://www.php.net/manual/en/ref.ldap.php) If you need to do this for multiple entries you would simply repeat the process in a loop specifying a different dn and newPasswd each time. I've got a feeling this isn't going to answer your question. Post more information about your problem if this is the case. Cheers the noo, Derek - Original Message - From: "Matt McFarlane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 2:09 PM Subject: [PHP-DB] LDAP multiple actions in modify? > Using jsp I can create an array of multiple actions and pass them to an ldap > server as one request. Is there a way to do this using php. > > Specifically I need to perform a delete action on "userPassword" where > value="oldPassword" and an add action passing "userPassword" and > value="newPassword". The actions must be contained in a single request and > the delete function must specify the old password. > > Thanks. > > Matt McFarlane > Wheaton College > [EMAIL PROTECTED] > > > > > -- > PHP Database 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] Re: Loading message
I suspect that PHP does all of it's work and, only when complete, will it send the generated html to the client. No matter what you try and do there's no way you can output the progress of your script to the browser while it is still being parsed. I could be wrong, but this is my understanding of it. Is your script really taking that long to be parsed that you need a loading progress bar or is the html (including graphics etc) just very big? Anyway, Hope this helps Derek - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]>; "_lallous" <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 11:27 AM Subject: RE: [PHP] Re: Loading message > I will try experimenting with that. > > But my situation is: > > A page with multiple php file includes. The page loads on to the includes, > loads them and continues to load the includes below. > I want to display some sort of text while the include still isn´t loaded. > > Likewise i would like to display some sort of loading message while a > database search is active. > > - Daniel > > > -Original Message- > > From: _lallous [mailto:[EMAIL PROTECTED]] > > Sent: den 25 oktober 2001 13:14 > > To: [EMAIL PROTECTED] > > Subject: [PHP] Re: Loading message > > > > > > the page won't ever showup unless the webserver finishes > > processing the PHP > > file, therefore the "Loading ..." will appear while the page is > > waiting for > > its component to finish loading (images, javascripts, flash files, ) > > > > therefore what you're asking for has a javascript solution: > > > > 1)make a with width and height about 1000 and absolute position w/ > > z-index=1000 > > 2)add a body.onload event so that when the pages loads you hide > > that layer. > > 3)that layer can hold any text or tags as you want like: "Please wait" > > > > this division's code: > > > style='left:0;top:0;width:1000;height:1000;position:absolute;z-ind > ex:1000;ba > > ckground:black'>Please wait > > > > > > > > > > > > function hidelayer() > > { > > if(document.all) > > document.all['loadinglayer'].style.visibility="hidden"; > > else > > document.layers['loadinglayer'].visibility="hide"; > > } > > > > > > hope that helps > > "Daniel alsén" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hi, > > > > > > is there a easy way in php to display text like "Loading..." while > > elements > > > on a page is being loaded from the server? > > > > > > Regards > > > # Daniel Alsén| www.mindbash.com # > > > # [EMAIL PROTECTED] | +46 704 86 14 92 # > > > # ICQ: 63006462 | # > > > > > > > > > > > -- > > 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 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] Re: Loading message
If what I've said is correct, then in simple terms... your php code will take a set amount of time to execute everything, then the html and web page cmoponents are sent to the browser, then the browser interprets the html and displays the page. One of the stages listed above seems to be running slow. I'm fairly new to PHP and haven't attempted to time how long a php script takes to execute, but you should test this and if it's slow, then I suppose you want to try and optimise the script. if you save everything on the web page and examine the size of the file this might give you an indication as to whether it's a bandwidth problem. You could save the html and all components, upload them to the server as a normal static web page and compare the download times with the dynamic, PHP-generated page. copy the html generated into an html editor that highlights html syntax errors - your browser might be having problems interpreting the html. If your page starts to display content immediately and then takes a while to complete AND if I'm correct in saying the PHP finishes before the generated page is sent to the browser then it's unlikely to be a slow PHP script that's the problem. Hope this helps, Derek - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "Derek Mailer" <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 11:45 AM Subject: RE: [PHP] Re: Loading message > > Is your script really taking that long to be parsed that you need > > a loading > > progress bar or is the html (including graphics etc) just very big? > > Parts of the page is rather heavy loaded. The main php file loads fine and > displays it´s contents until it reaches one of the heavy includes (heavy > because it gets data from another website). > So, in effect, the page loads and displays all content, make pauses when > hitting heavy includes, and then continues. > > - Daniel > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] htpasswd
go to http://www.php.net/manual/en/ref.filesystem.php and read up on things like fopen, fclose, etc. This will explain how to write to any kind of file including htpasswd files if necessary. Good Luck Derek - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 3:59 PM Subject: [PHP] htpasswd > Can php write to a htpasswd file? If it can will someone point me in the > right direction. > > TIA > Gary > > > -- > 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] preventing multiple submissions
I have a problem with a form on my website. it's part of a shopping cart application, whereby the form consists of a list of products and the user enters the quantity they require of each product in the field provided. Everything works okay except for the fact that if someone hits the submit button more than once the products will be added to the 'cart' more than once. I've tried altering the script that handles the posted form info, but the problem persists. I've also simplified the page that loads after adding products to the shopping cart so that it loads quicker (people are less likely to click the submit button more than once). Can anyone suggest a solution? Thanks in advance for any help. Regards, Derek ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. **
Re: [PHP] Building Dynamic Value list using ohp
A couple of things about the code... 1) - mysql_connect ('localhost', 'root', 'monty'); should be $mysql_link = mysql_connect ('localhost', 'root', 'monty'); 2) - You only pass you can read more about it all and copy and adapt the code snippter from http://www.php.net/manual/en/ref.mysql.php - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 2:54 PM Subject: Re: [PHP] Building Dynamic Value list using ohp > Thanks Gottfried, but that doesn't change the response I get. > > Any more suggestions. > > George P in Edinburgh > > PS I am hoping to come over to Frankfurt for the conference in November > (boss might pay) > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "George Pitcher" <[EMAIL PROTECTED]> > Sent: Wednesday, September 26, 2001 2:46 PM > Subject: Re: [PHP] Building Dynamic Value list using ohp > > > > hi! > > > > try: > > > > $query = "select HEI from heronuser"; // line 22 > > > > greetinx! > > gottfried > > > > > Hi all, > > > > > > I'm having a problem with dynamically building a value list. > > > > > > My code: > > > > > > > > mysql_connect ('localhost', 'root', 'monty'); > > > mysql_select_db ('Heronsql'); > > >$query = ("select HEI from heronuser"); // LINE 22 on original script > > >$result = mysql_query($query, $mysql_link); > > > if(mysql_num_rows($result)) { > > >// show all HEIs as options in select form > > >while($row = mysql_fetch_row($result)) > > >{ > > > print("$row[0]"); > > >} > > > } > > > ?> > > > > > > But this generates: > > > > > > "Parse error: parse error in c:\program files\apache > > > group\apache\htdocs\bizflyers\login.php on line 22" > > > > > > Any suggestions? > > > > > > Regards > > > > > > George > > > > > > > > > _ > > > Do You Yahoo!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > > -- > > > 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] > > > > > > > -- > > GMX - Die Kommunikationsplattform im Internet. > > http://www.gmx.net > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] Building Dynamic Value list using ohp
oops...I was going to add... 2) - $result = mysql_query($query, $mysql_link); doesn't require the $mysql_link argument, try $result = mysql_query($query); Another general comment is that you have copied a bit of your code that seems to include the root password to mysql. Not a good idea - you should check and edit your code if necessary before posting. Hope this helps - good luck Derek - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 2:54 PM Subject: Re: [PHP] Building Dynamic Value list using ohp > Thanks Gottfried, but that doesn't change the response I get. > > Any more suggestions. > > George P in Edinburgh > > PS I am hoping to come over to Frankfurt for the conference in November > (boss might pay) > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "George Pitcher" <[EMAIL PROTECTED]> > Sent: Wednesday, September 26, 2001 2:46 PM > Subject: Re: [PHP] Building Dynamic Value list using ohp > > > > hi! > > > > try: > > > > $query = "select HEI from heronuser"; // line 22 > > > > greetinx! > > gottfried > > > > > Hi all, > > > > > > I'm having a problem with dynamically building a value list. > > > > > > My code: > > > > > > > > mysql_connect ('localhost', 'root', 'monty'); > > > mysql_select_db ('Heronsql'); > > >$query = ("select HEI from heronuser"); // LINE 22 on original script > > >$result = mysql_query($query, $mysql_link); > > > if(mysql_num_rows($result)) { > > >// show all HEIs as options in select form > > >while($row = mysql_fetch_row($result)) > > >{ > > > print("$row[0]"); > > >} > > > } > > > ?> > > > > > > But this generates: > > > > > > "Parse error: parse error in c:\program files\apache > > > group\apache\htdocs\bizflyers\login.php on line 22" > > > > > > Any suggestions? > > > > > > Regards > > > > > > George > > > > > > > > > _ > > > Do You Yahoo!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > > -- > > > 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] > > > > > > > -- > > GMX - Die Kommunikationsplattform im Internet. > > http://www.gmx.net > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] Building Dynamic Value list using ohp
what's the error you're getting now? if you aren't getting any error, but it just isn't working try something like...(note that I haven't tested this code). $drop_down_list = ""; $link = mysql_connect ('localhost', '', '') or die ("Could not select db"); mysql_select_db ('Heronsql') or die ("Could not connect"); $query="select distinct HEI from heronuser"; $result = mysql_query ($query); $num = mysql_num_rows($result); for ($i = 0; $i < $num; $i++) { $HEI = mysql_result($result, $i, "HEI"); $drop_down_list .= "$HEI"; } mysql_close($link); $drop_down_list .= ""; echo "$drop_down_list"; Cheers the noo, Derek - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 3:42 PM Subject: Re: [PHP] Building Dynamic Value list using ohp > Thanks for everyone's help but this is still failing to work. > > Revised code is: > > $link = mysql_connect ('localhost', '', '') >or die ("Could not select db"); > mysql_select_db ('Heronsql') >or die ("Could not connect"); > $query="select distinct HEI from heronuser"; >$result = mysql_query ($query); // I've also tried with ($query, $link) > if(mysql_num_rows($result)) { >// show all HEIs as options in select form >while($row = mysql_fetch_row($result)) >{ > print("{$row[0]}"); >} > } > mysql_close($link); > ?> > > Any more suggestions (please)? > > George > - Original Message - > From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]> > To: "'George Pitcher'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, September 26, 2001 3:17 PM > Subject: RE: [PHP] Building Dynamic Value list using ohp > > > > 1. this: > print("$row[0]"); > should be this: > print("{$row[0]}"); > or like this: > echo ''.$row[0].''); > > The reason for it is that within double quote you can parse for 'simple' > variables only (es: $var, not $var[]). Otherwise it gives you a parse > error. > > 2. this: > mysql_connect ('localhost', 'root', 'monty'); > better be this: > mysql_connect ('localhost', '', ''); // for security > reasons obviously, you don't wanna give the password our to the group, > even so it is your local server (you might not be original with the > password on production machines, no?) > > > Hope it helps, > Maxim Maletsky > > PHPBeginner.com > > > > > -Original Message- > From: George Pitcher [mailto:[EMAIL PROTECTED]] > Sent: mercoledì 26 settembre 2001 15.31 > To: [EMAIL PROTECTED] > Subject: [PHP] Building Dynamic Value list using ohp > > > Hi all, > > I'm having a problem with dynamically building a value list. > > My code: > > mysql_connect ('localhost', 'root', 'monty'); > mysql_select_db ('Heronsql'); >$query = ("select HEI from heronuser"); // LINE 22 on original script >$result = mysql_query($query, $mysql_link); > if(mysql_num_rows($result)) { >// show all HEIs as options in select form >while($row = mysql_fetch_row($result)) >{ > print("$row[0]"); >} > } > ?> > > But this generates: > > "Parse error: parse error in c:\program files\apache > group\apache\htdocs\bizflyers\login.php on line 22" > > Any suggestions? > > Regards > > George > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > -- > 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 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] > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when c
Re: [PHP] Sessions Variables and refresh pages
I'm not sure I fully understand the problem, but I think I can have a guess at it based on my past experiences... if you have a php page that starts a session with session_start() and, say for example, you then try and echo the session id with session_id() it will not be displayed on screen until you actually refresh the page or move to another page that calls the session id. In other words, the session id seems to be set when the session is started, but isn't availale to use in your script until the page is re-loaded. This is based on what I can remember from 8 months ago and I haven't tested it out, but I believe this is the sort of problem being described in this thread. Cheers the noo, Derek - Original Message - From: "Karina Gómez Salgado" <[EMAIL PROTECTED]> To: "Rasmus Lerdorf" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 8:18 PM Subject: Re: [PHP] Sessions Variables and refresh pages > again with the problem i discovered that the problem is that the reload is > needed when i use the session variables in the queries, otherwise there are > not problem. Even if i only want to display the session variable in the > result page, i need to do a reload. > > > > > > > Karina wrote: > > > Well, I don't understand it too, i don't know why with normal variables > > there are not problem and with session variables i need to refresh the > > page to see the results after the submit form. > > > > The mechanism is this: > > > > query 1 with parameter >ACCESS FORM --- > results > > only > >session_register(uid) shown with refresh > >session_register(pwd) (get parameter from > > REQUEST_URI) > > > > > > if i do this: > > > > query 1 > (NOT ACCESS) --- > results with no problem > > > > > > I hope than somebody can give me some ideas... because this is driving > > me crazy.. > > > > THks, > > Karina > > > > -- > > 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 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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] Sessions Variables and refresh pages
Karina, If this is the problem you are getting and you can't find a way around it, you could start the session on a splash or index page so that when you move from that first page into the main part of the website, the session has already been started and all session variables are available. This is more of a quick-fix than a techncal solution, but it should work. After experimenting with using session id's to track users I opted for using cookies. Not because I was having too many problems with sessions, but more for the benefits that I could get using cookies in that particular application. Cheers the noo, Derek - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karina" <[EMAIL PROTECTED]> Cc: "Derek Mailer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 5:50 PM Subject: Re: [PHP] Sessions Variables and refresh pages > Both of SID and session_id() should return the current session id after > session_start() has been called. > > -Rasmus > > On Wed, 3 Oct 2001, Karina wrote: > > > Yes, it is. > > > > This is exactly the problem. Do you know a way to solution this ? > > > > Thks, Karina > > > > --- > > > > > > I'm not sure I fully understand the problem, but I think I can > > have a guess > > at it based on my past experiences... > > > > if you have a php page that starts a session with > > session_start() and, say > > for example, you then try and echo the session id with > > session_id() it will > > not be displayed on screen until you actually refresh the page > > or move to > > another page that calls the session id. > > > > In other words, the session id seems to be set when the session > > is started, > > but isn't availale to use in your script until the page is > > re-loaded. > > > > This is based on what I can remember from 8 months ago and I > > haven't tested > > it out, but I believe this is the sort of problem being > > described in this > > thread. > > > > Cheers the noo, > > > > Derek > > > > > -- > 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] > ** This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return e-mail. This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by Business Information Publications Limited (BiP). E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time.You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents. ** -- 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]