PHP Knowledge Base Update -- August 2nd, 1999

From: Date: Tue, 03 Aug 1999 07:36:49 +0000
Subject: PHP Knowledge Base Update -- August 2nd, 1999
Groups: php.kb 
Request: Send a blank email to php-kb+get-17@lists.php.net to get a copy of this message
I've just added a new service to e-gineer to help in the search for domain names. It checks domain availability, trademarks, definitions, synonyms and similar words. Check it out at: http://domainator.e-gineer.com Cheers, Nathan ------------------------------------------------------------ Can I use Javascript to submit two forms simultaneously from the same page? How can I run two cgi scripts with a single form submission? http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/522 ------------------------------------------------------------ Manuel Lemos, M.Brands browsers only submit a form at a time, either by request of the user or programmatically. So you can't use Javascript to submit two forms simultaneously. What you may want to do is to submit a form to a page which code submit the form data to those other two CGI addresses. You may find here an HTTP PHP class that you may use to POST as much forms as you like: http://phpclasses.UpperDesign.com/browse.html?package=3 You could just have the first CGI submit to the second CGI? That would be a lot simpler. I don't even know if it's possible to submit to multiple CGI's. I don't think it is, but if the CGI's return a 204 No Content status, it may be possible. ------------------------------------------------------------ Can I check Unix system passwords from PHP? http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/524 ------------------------------------------------------------ Martin Koistinen Do you really want PHP to authenticate your users based on their system passwords? This is probably not a good idea. Have you considered a simple database of web users or at least Apache's AUTH DB? By authenticating your users with their system passwords, you are asking them to send their passwords in cleartext over the internet each time they log in. You are also creating more accounts which ultimately increases the likelyhood of a break-in. ------------------------------------------------------------ What is ldconfig used for? http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/525 ------------------------------------------------------------ Kim Shrier ldconfig is used to generate a hints file that is used by ld.so to locate and link to shared object libraries at run-time. When you compile a program and link it with shared object libraries, the libraries are not included in the executable program, just references to the global data and functions as well as the name of the shared object file that contains them. When you run the program, the ld.so file that is in your executable has a list of shared object libraries that it was linked with. ld.so is responsible for finishing the link operation by resolving these references at run-time to the shared object libraries. If the shared object libraries are not already loaded into memory, they are loaded now. If they are already in memory, they don't need loading. ld.so then resolves variable and function references by updating the Global Offset Table for global variables and the Procedure Linkage Table for functions. It gets the information for updating these tables from the shared object libraries. It finds the shared object libraries by looking in the hints file. The hints file is built by ldconfig. ------------------------------------------------------------ What happens if the user leaves a form field which is part of an array empty? http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/526 ------------------------------------------------------------ Manuel Lemos If the field is empty, an entry with an empty string will be added to the array.

« previous php.kb (#17) next »