Zend - The PHP Company




Code Gallery: ADMIN


Add values to query string  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (8 votes)
Views: 10190
This function allows to form query string with a values added to it from current query string


Detecting if cookies are on  

Type: code fragment
Added by: ADMIN
Entered: 16/01/2000
Last modified: 08/12/1999
Rating: *** (37 votes)
Views: 17986
This code will allow to detect if user has cookies support for cookies turned on.


File uploading  

Type: code fragment
Added by: ADMIN
Entered: 16/01/2000
Last modified: 08/12/1999
Rating: **** (28 votes)
Views: 61818
File uploading script, can be used on Unix/WIndows


Generate array of radio-buttons  

Type: code fragment
Added by: ADMIN
Entered: 12/01/2000
Last modified: 08/12/1999
Rating: **** (4 votes)
Views: 9675
This code produces a set of radio-buttons with given name, with values and texts taken from the array


Generate options array for select  

Type: code fragment
Added by: ADMIN
Entered: 12/01/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 9284
This code produces a list of OPTION tags from an array, array keys being option values and array items being option texts. It will also pre-select items from the second argument


Print all POSTed variables  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (12 votes)
Views: 9997
Print all variables that arrived by POST, including arrays


Print output from external program  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (9 votes)
Views: 10438
this code will run external program (ls -l) and print all the output


Randomize an array  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 8508
This function will randomize an array (by Richard Lynch)


Two-dimensional arrays in forms  

Type: code fragment
Added by: ADMIN
Entered: 16/01/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 8755
This code will allow you to use two-dimensional arrays with forms in PHP 3




Search