diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-10-20 18:32:31 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-10-20 18:32:31 +0400 |
commit | c869427b57f14dd3df22408e3504eea44e9ded3a (patch) | |
tree | b6b39e6fc3772fc93e69a1f2c192529984abde21 /libs | |
parent | c9206ce1e7be77e9042a78d5cffbb0ec2f3e70e0 (diff) |
Remove unused file
Diffstat (limited to 'libs')
-rw-r--r-- | libs/open-flash-chart/php-ofc-library/ofc_upload_image.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php b/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php deleted file mode 100644 index 0261f9aeae..0000000000 --- a/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php - -// -// In Open Flash Chart -> save_image debug mode, you -// will see the 'echo' text in a new window. -// - -/* - -print_r( $_GET ); -print_r( $_POST ); -print_r( $_FILES ); - -print_r( $GLOBALS ); -print_r( $GLOBALS["HTTP_RAW_POST_DATA"] ); - -*/ - - -// default path for the image to be stored // -$default_path = '../tmp-upload-images/'; - -if (!file_exists($default_path)) mkdir($default_path, 0777, true); - -// full path to the saved image including filename // -$destination = $default_path . basename( $_GET[ 'name' ] ); - -echo 'Saving your image to: '. $destination; -// print_r( $_POST ); -// print_r( $_SERVER ); -// echo $HTTP_RAW_POST_DATA; - -// -// POST data is usually string data, but we are passing a RAW .png -// so PHP is a bit confused and $_POST is empty. But it has saved -// the raw bits into $HTTP_RAW_POST_DATA -// - -$jfh = fopen($destination, 'w') or die("can't open file"); -fwrite($jfh, $HTTP_RAW_POST_DATA); -fclose($jfh); - -// -// LOOK: -// -exit(); - - -// -// PHP5: -// - - -// default path for the image to be stored // -$default_path = 'tmp-upload-images/'; - -if (!file_exists($default_path)) mkdir($default_path, 0777, true); - -// full path to the saved image including filename // -$destination = $default_path . basename( $_FILES[ 'Filedata' ][ 'name' ] ); - -// move the image into the specified directory // -if (move_uploaded_file($_FILES[ 'Filedata' ][ 'tmp_name' ], $destination)) { - echo "The file " . basename( $_FILES[ 'Filedata' ][ 'name' ] ) . " has been uploaded;"; -} else { - echo "FILE UPLOAD FAILED"; -} - - -?> |