RE: [PHP] explorer
You can't (SERVER vs Client) you cannot make Php open an program on the client computer. If you want to get a file from your computer that is a simple HTMLTag. Please explain if that is not what you meant. -Original Message- From: kNish [mailto:[EMAIL PROTECTED] Sent: Saturday, November 10, 2007 6:41 AM To: php-general@lists.php.net Subject: [PHP] explorer Hi, How if, it is possible to open a windows explorer with a path specified in it, thru a php script. BRgds, kNish -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] explorer
On Sat, Nov 10, 2007 at 09:33:17AM -0500, Bastien Koert wrote: > > on the local machine? no. you can simulate an explorer for files on the server An will automatically display a browse button that opens a user environment specific file browser (aka "explorer"). -- "Market-like arrangements ... reduce the need for compassion, patriotism, brotherly love, and cultural solidarity as motivating forces. Harnessing the "base" motive of material self-interest ... is perhaps the most important social invention mankind has achieved." -- C. L. Schulte, Public Use of the Private Interest, 1977 Rick Pasotto[EMAIL PROTECTED]http://www.niof.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] explorer
on the local machine? no. you can simulate an explorer for files on the server bastien > Date: Sat, 10 Nov 2007 18:10:39 +0530> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] explorer>> Hi,>> How if, it is possible to open a windows explorer with a> path specified in it, thru a php script.>> BRgds,>> kNish>> --> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> _ Express yourself with free Messenger emoticons. Get them today! http://www.freemessengeremoticons.ca/?icid=EMENCA122 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Explorer-like "drill down" interface
Y'know? I started fiddling with the drill-down I had made and found that the thing only worked on the latest Mozilla. Seems the developers made the same mistake I did in what is supposed to do. Looks great on one browser :-) I wound up with another alternative: a folder view with "wayback's" to ascend in the tree. The code that works better on all browsers can be seen on http://www.jwfarrell.com/listtree.php. I'll make the code and support files available to anyone who wants a copy. Apologies for the pretty (but ineffectual) version 1. :-) Bill = Bill Farrell Multivalue and *nix Support Specialist Phone: (828) 667-2245 Fax: (928) 563-5189 Web: http://www.jwfarrell.com __ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Explorer-like "drill down" interface
I would recommend using javascript for the expanding/contracting list stuff and I don't know of any vulnerablilities in MySQL Server... - Mike D >I have two questions: > >1. I would like to build a php page that contains a Windows >explorer-like drill down mechanism, where clicking the '+' beside an >item will expand the sub-items below (which can also have a '+' or >'-' on the left) and clicking the '-' will collapse the item. Is >there any existing code for that or hints how I can do it? > >2. I have allowed packets through my firewall destined for port >3306, the mysql server. So I can connect to the server from a remote >machine. Are there any known security vulnerabilities in the mySQL >server? > >Many thanks, > >Rich -- Mike Dunlop Webmaster Animation World Network [EMAIL PROTECTED] http://www.awn.com (323) 606-4238 office (323) 466-6619 fax 6525 Sunset Blvd. GS10 Los Angeles, CA 90028 USA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Explorer-like "drill down" interface
Hi Richard, There are a couple out there... I created one for myself (V1."un") that does something similar... It relies on a couple of support files for mime-types and icons. Here's the code... if you like the idea, I can zip up the icons and extension-to-mime folders and send it to ya. My website (www.jwfarrell.com) is supposed to be online later this afternoon (after a week of promises from my ISP), so you'll be able to look at the code in action. B listtree.php \n"; ?> Browse the Documentation Tree Folder contents \n"; $DocArray = explode( '/', $TargetFolder ); $DocDirectoryArray = array_slice( $DocArray, 1 ); $DocDirectory = implode( '/', $DocDirectoryArray ); $CurrentFolder = "$TargetFolder"; //echo "Doc Directory is $DocDirectory\n"; $FullPath = explode( '/', $DocDirectory ); $PreviousDirectoryArray = array_slice( $FullPath, 0, count( $FullPath ) - 2 ); $PreviousDirectory = implode( '/', $PreviousDirectoryArray ); $FullURL = explode( '/', $CurrentFolder ); $PreviousFolderArray = array_slice( $FullURL, 0, count( $FullURL ) - 1 ); $PreviousFolder = implode( '/', $PreviousFolderArray ); } } // init tree - disallow attempts to go above gaol if ( ( !isset( $DocDirectory ) ) | ( strlen( $DocDirectory ) < strlen( $GaolURL ) ) ) { $DocDirectory = $Gaol; $DocDirectoryArray = array( $DocDirectory ); $CurrentFolder = $GaolURL; $PreviousFolderArray = array( "" ); $PreviousFolder = ""; } if ( ( $Docs = opendir( $DocDirectory ) ) === false ) { die( "$DocDirectory doesn't exist!" ); } while ( false !== ( $Subdir = readdir( $Docs ) ) ) { if ( ( substr( $Subdir, 0, 1 ) != "." ) ) { if ( is_dir( "$DocDirectory/$Subdir" ) ) { array_push( $Subdirectories, $Subdir ); } else { array_push( $SimpleFiles, $Subdir ); } } } sort( $Subdirectories ); sort( $SimpleFiles ); ?> Name Size \n"; echo "\n"; echo " \n"; echo "Documentation Home Page\n"; echo "\n"; echo " \n"; if ( $DocDirectory != $Gaol ) { echo "\n"; echo "\n"; echo " \n"; echo "Top of the Tree\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "Up one level to $PreviousFolder\n"; echo "\n"; echo " \n"; } ?> \n"; if ( ( $Subdir == $LastFolder ) & ( $LastFile == "" ) ) { echo "\n"; } else { echo "\n"; } echo "\n"; echo "$CurrentFolder/$Subdir\n"; echo "\n"; } foreach ( $SimpleFiles as $SimpleFile ) { echo "\n"; if ( $SimpleFile == $LastFile ) { echo "\n"; } else { echo "\n"; } // find the right icon for the file type unset( $Icon ); $SplitName = explode( '.', $SimpleFile ); $NameParts = count( $SplitName ); if ( $NameParts == 1 ) { $Icon = "generic.gif"; } else { $NameParts--; $Extension = $SplitName[ $NameParts ]; if ( is_file( "$MimeTypeFolder/$Extension" ) ) { list( $MimeType, $TheRest ) = file( "$MimeTypeFolder/$Extension" ); $MimeType = rtrim( $MimeType ); if ( is_file( "$IconsFolder/mime_$MimeType.gif" ) ) { $Icon = "mime_$MimeType.gif"; } } } if ( !isset( $Icon ) ) { $Icon = "generic.gif"; } echo "\n"; echo "$CurrentFolder/$SimpleFile\n"; echo "" . filesize( "$DocRoot/$CurrentFolder/$SimpleFile" ) . ""; echo "\n"; } ?> = Bill Farrell Multivalue and *nix Support Specialist Phone: (828) 667-2245 Fax: (928) 563-5189 Web: http://www.jwfarrell.com __ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php