Re: [PHP] HELP ME!!!!
Hi P. Roescher, @ 12:52:36 PM on 11/16/2001, P. Roescher wrote: input type=checkbox name=?print $name? value=ON You probably want something like: input type=checkbox name=players['?print $name?'] value=ON That may not work, if not: input type=checkbox name=players[] value=?print $name?::ON Then: while(list(,$player) = each($players)) { list($name,$status) = explode('::',$player); /* Optionally: print $name is $statusbr; */ } (all untested) -- -Brian Clark | PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- 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] Help me to win the battle with browser's cache
Hi, me also faced many probs last 3 months back and i overcome that. solution - use session variables.. register login info as session vars and during logout unregister... This is the solution to u'r problem.. - All the best -Balaji - Original Message - From: Olexandr Vynnychenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 12, 2001 7:02 PM Subject: [PHP] Help me to win the battle with browser's cache Hello php-general, I have index.php, which has a href=index.php?logoutLog out/a. When I click it, I am logged out the site. But I type index.php in browser's address bar, press Enter and ... it shows non-logouted page. What should I write in php code to tell browser something like forget about old page, don't display it, get the newest version? Some time ago I tried to do that in several ways and nothing gived 100% result. And other thing I saw was that Netscape and Explorer behave in different ways in such cases. Could someone help me? Maybe this topic was discussed before, but still... I appreciate greatly any suggestion. -- Olexandr Vynnychenko mailto:[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] --- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records. -- 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] Help me to win the battle with browser's cache
Hi I've found some code which i put it into this function. I've never got the meta tag technique to work but this seems to do the trick. Call noCache() before outputting anything to the page. function noCache() { header (Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the past header (Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); // always modified header (Cache-Control: no-cache, must-revalidate); file://HTTP/1.1 header (Pragma: no-cache); // HTTP/1.0 } Regards Girish - Original Message - From: Olexandr Vynnychenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 12, 2001 1:32 PM Subject: [PHP] Help me to win the battle with browser's cache Hello php-general, I have index.php, which has a href=index.php?logoutLog out/a. When I click it, I am logged out the site. But I type index.php in browser's address bar, press Enter and ... it shows non-logouted page. What should I write in php code to tell browser something like forget about old page, don't display it, get the newest version? Some time ago I tried to do that in several ways and nothing gived 100% result. And other thing I saw was that Netscape and Explorer behave in different ways in such cases. Could someone help me? Maybe this topic was discussed before, but still... I appreciate greatly any suggestion. -- Olexandr Vynnychenko mailto:[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] -- 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] Help me please.(Running stand-alone php)
Tina, Thank you for the help Tina :-)) I getting a good experience working with PHP and HTML (forms). Because of my full time job and personal commitments, I haven't been able to spend as much of my free time as I could in my project (Free Gallery Management System). After October I hope to dedicate more of my free time on this project. The project will be open source and public domain. It will be developed with the help of PHP, a and PostgreSQL. More information about the project can be seen at the following web site: http://www.columbia.edu/~mv169/private/gallery_f.html Login Name: guest Password:guest If you have any comments, suggestions or if you want to participate, e-mail me at [EMAIL PROTECTED] Your input is very valuable to me. Adios, miguel --- Tina [EMAIL PROTECTED] wrote: The solution: You have to configure php with --enable-discard-path as in: ./configure --without-apache --enable-discard-path before you compile it. This is documented here: http://www.php.net/manual/en/security.php in the section: Case 4: PHP parser outside of web tree Now when you do !--#include virtual='php.cgi'-- the #!/path/to/php will not show at the top of the page. (The problem was indeed not local to windows). Tina. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
Re: [PHP] Help me please.(Running stand-alone php)
Miguel, I see that your script has the extension .html Rename that file to .php and it normally should work. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- miguel valero [EMAIL PROTECTED] wrote: Unfortunately the -q parameter didn't fix the problem. Is anybody in the PHP mailing list that is familiar with this kind of problem and can tell me how to get rid of the path line in the browser output? Any help will be greatly appreciated. Thanks. --- mike cullerton [EMAIL PROTECTED] wrote: try the -q parameter. i'm guessing here, since i don't run windows nor the cgi version of php. :) on 8/7/01 8:27 AM, miguel valero at [EMAIL PROTECTED] wrote: Mike, I running the scrip from the browser (http://localhost/cgi-bin/test.html) When I comment the first line in the script (#-#!c:\php\php.exe) I get the following error message: Tue Aug 07 09:56:13 2001] [error] [client 127.0.0.1] c:/program files/apache group/apache/cgi-bin/test.php is not executable; ensure interpreted scripts have #! first line I can not run the script w/o the line #!c:\php\php.exe at the top of the script. How can I get rid of the path line on the browser output ? Thanks --- mike cullerton [EMAIL PROTECTED] wrote: i'm not sure i understand how you are running this... if it is a file you are running at the command line, try -q after the php.exe statement. if this is a web page, comment that line out. hope this helps, mike on 8/6/01 1:16 PM, miguel valero at [EMAIL PROTECTED] wrote: When I run the following script under an stand-alone php 4.0.6 and Apache 1.3 (Win95/98), the path to PHP (#!c:\php\php.exe) will show up on the first line of the browser output. #!c:\php\php.exe ?php phpinfo(); ? Is there a way to fix this? How can I get rid of the path line, on the top of the page, on the browser output? Any help will be greatly appreciated. My apologies if this has been covered before, or if this is in the manual, but I couldn't see it thanks. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
Re: [PHP] Help me please.(Running stand-alone php)
The solution: You have to configure php with --enable-discard-path as in: ./configure --without-apache --enable-discard-path before you compile it. This is documented here: http://www.php.net/manual/en/security.php in the section: Case 4: PHP parser outside of web tree Now when you do !--#include virtual='php.cgi'-- the #!/path/to/php will not show at the top of the page. (The problem was indeed not local to windows). Tina. -- 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] help me :)
Arvydas, I did something like this using a tree structure, using stacks. Each item on the stack could have 1 to 3 properties: Name, Parent, URL. If the object on the stack has only a Name property (i.e. Parent and URL are empty) it is assumed that this item is a root node. If the item has a Name and a Parent, is is a child node to the parent, and if it has a Name, Parent and URL, then it is a leaf node to the parent. For example: FolderA FolderB --FolderB(1) --FolderB(2) --ItemB(2)(1) I push onto my stack directory items that have the following properties: AddDirItem(FolderA) AddDirItem(FolderB) AddDirItem(FolderB(1), FolderB) AddDirItem(FolderB(2), FolderB) AddDirItem(ItemB(2)(1), FolderB(2), http://itemb21.whatever) Then, you loop through all of the items, setting the root items as the top of the tree, and continue nesting subitems until you get to a new root item. If you want, I can send you the PHP objects I used to implement this in a dynamic tree. It works quite well, and is extensible to 'n', where 'n' is the number of items allowed due to system/browser constraints. Cheers, Jason Arvydas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, i'm new in php but i have very difficult exercise i must make hierarchical menu witch can be released for example so : First i will get main menu : for example menu1, menu2, menu3... and these menu will have links (this must be released with a href=...) to others submenu : sub1, sub2, sub3 (each menu can have more than one sub menu), and these submenus will go deeper and deeper (depends from some parameters) so - the question is How to make recursive menu ? (menu mus be repaint after any click...) (I have an idea to make function that will produce recursive arrays...) P.S.sorry for poor english :) sincerely, Arvys. -- 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] Help me! What is wrong?
I think this might be a problem... IfDefine SSL AddModule mod_php3.c /IfDefine Shouldn't the IfDefine SSL be say PHP3 rather than SSL? Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here
RE: [PHP] help me!! Cookie
When not explicitly set, a cookie works only for the domain where it was originally set. That means that if the user visits your website using the server IP address, he will receive a cookie that will not work when he uses the domain name instead of the IP address. Therefore, I recomend you set the domain property of the cookie to the name of your domain (not the IP or "localhost"). This way, you will make explicit in which enviroment the cookie works. I am not familiarized with the sintax you are using, I usually use setcookie and session_register for a similar purpouse. Hope I'd been of any help. Cheers. PD. Why don't you publish your problem to the whole php list? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, 18 January, 2001 9:59 AM To: [EMAIL PROTECTED] Subject: [PHP] help me!! Cookie this is not a span mail i wanna only ask you a question of php argument, please help me! i'm working with php3 and IIS, i had set cookie with: name, $session-cookie, $session-timeid+3600, "/"); ? but these cokkie work right only on localhost and not on the others computer of the LAN, the options setting of internet enable Cookie, where is the problem? thank you !!! Per disattivarsi dalla mailinglist : http://www.e-smtech.com/service/multimail/delvis.php3