Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

upload

PHP script Picture Image Upload
Wednesday, 25 January 2012 11:27
// Picture upload PHP script http://www.htmlgoodies.com/beyond/webmaster/article.php/3548746/PHP-Tips--Tricks---A-Picture-Upload-Part-1.htm


//print_r($_POST);

if($_POST["action"] == "Upload Image")
{
unset($imagename);

if(!isset($_FILES) && isset($HTTP_POST_FILES))
$_FILES = $HTTP_POST_FILES;

if(!isset($_FILES['image_file']))
$error["image_file"] = "An image was not found.";


$imagename = basename($_FILES['image_file']['name']);
//echo $imagename;

if(empty($imagename))
$error["imagename"] = "The name of the image was not found.";

if(empty($error))
{
$newimage = "images/" . $imagename;
//echo $newimage;
$result = @move_uploaded_file($_FILES['image_file']['tmp_name'], $newimage);
if(empty($result))
$error["result"] = "There was an error moving the uploaded file.";
}

}

?>


">





if(is_array($error))
{
while(list($key, $val) = each($error))
{
echo $val;
echo "
\n";
}
}
?>



Credits::: Websites Lists and Web4Link.Com

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/N3TZWOxOpHM/14463

 
Upload Large Files or Die Trying
Saturday, 18 June 2011 16:31

I recently spent some time wrestling with various e-commerce/shopping-cart/membership plugins. One of them was of course the popular WP e-Commerce plugin, which uses a directory named “downloadables” to store your precious goods. I had some large files that needed to go into this folder, but the server’s upload limit stopped me from using the plugin’s built-in file uploader to do so.

On most servers, there are limits to how much data you can upload. When dealing with PHP scripts, the upload, download, and similar limits are set in the php.ini file. If you have access to this file, or can create a localized version in the target directory, then increasing the upload limit for large files is as simple as adding these two lines:

upload_max_filesize = 10M
post_max_size = 10M

Unfortunately, there are many hosting/server scenarios where access to php.ini is unavailable. Fortunately, .htaccess provides an alternate method of increasing upload limits. If you have access to .htaccess files, then raising the upload limit is done with these two lines:

php_value upload_max_filesize 10M
php_value post_max_size 10M

With either or perhaps both of these methods in place, you should have no problem uploading large files to your server. But some servers require more advanced configuration to increase upload limits. Such was the case for my WP e-Commerce experiment: hosted on another server, and neither the php.ini nor the .htaccess method were going to work. So I gave up on the built-in uploader and tried just uploading the large files directly via FTP.

Sounds simple enough, and FTP usually works great, but NOT this time. Somehow the WP e-Commerce plugin had locked the downloadables directory via deadly combination of restrictive file permissions and mod_authz_host via .htaccess.

So now I needed a way to bypass both of these measures. Starting with the .htaccess file in the downloadables directory, I logged into my server control panel to take a look. It contains three lines:

order deny,allow
deny from all
allow from none

Unfortunately, this file was created with @chmod($file_handle,0665);, which means its permissions prevent any non-root editing, such as via Plesk or FTP. Looking then at the downloadables directory, the permissions were 775 – less restrictive, but owned by apache, so no editing of that file either. Here it is visually:

[ Screenshot: Editable and non-editable file permissions in Plesk ]
In Plesk, you’re not root, so you’re not modifying files owned by apache

[ CHMOD 665 File Permissions ]
Translating 665 chmod values into plain english (for the .htaccess file)

[ CHMOD 775 File Permissions ]
Translating 775 chmod values into plain english (for the /downloadables/ directory)

When it gets to this point, where everything is locked down and nothing seems to work, there are two ways forward, depending on your host/server setup:

  • On servers without access to SSH, you’ll need to have your host help you
  • On servers with SSH access, you can do it yourself

If you’ve got access, SSH provides numerous ways to get the job done. In this situation, the end-goal is uploading some large files to a locked-down downloadables directory. The easiest way is to log into your server as the root user via SSH, and then use the scp command to upload the file directly. Here is the general syntax:

scp /usr/dir/large.zip 
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 :/usr/dir/

And here is a breakdown of what it means:

[ SSH scp Command ]
How to upload a file via SSH

Here is the scp command as it looks entered in Mac Terminal:

[ SSH scp via Terminal ]
What the SSH scp command looks like in Terminal

So, using this technique to upload a large file to our locked-down downloadables directory, the scp command looks like this:

scp /usr/dir/large.zip 
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 :/usr/downloadables/

If we needed to upload an entire directory, we would modify the command like this:

scp -r /usr/directory/ 
 This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 :/usr/downloadables/

Using one of these commands, it’s possible to upload files and directories of just about any size. If, however, you would rather FTP your content, you can use SSH to change the permissions of restrictive directories, which in my case was the downloadables folder.

To change file permissions via chmod, navigate to the parent directory of your target folder and enter the following command via SSH:

chmod -v 777 target-directory

If the target directory is also protected via .htaccess, as is the case with the downloadables directory, then use chmod to change its permissions as well, and then edit the file as needed to allow access. For example, our target directory is protected by the following .htaccess directives:

order deny,allow
deny from all
allow from none

So to allow access, we could grab our IP and modify the .htaccess code like so:

Order Allow,Deny
Deny from all
Allow from none
Allow from 123.456.789.0

And that’s going to give you all the access you need to upload anything you want. Just remember to restore the original .htaccess rules and file permissions once you’ve finished uploading those precious goods.

© 2011 Perishable Press

Read more: http://perishablepress.com/upload-large-files/

 
FTPix 2.3.7
Wednesday, 21 July 2010 07:00
About FTPix
Provides an easy way to upload and share your pictures on internet. Select a picture, upload it to your FTP and you can now share this picture in many sizes and codes as HTML or forum code or simply the picture URL. Finally, tag your pictures to find them easily!

FTPix allows you to:
- Upload your pictures to your FTP and get the forum/html code straight to your clipboard.
- Capture your desktop or a part of it and upload the screenshot to your FTP.
- Drop your pictures from your browser or your desktop to the drop box, the application window or the Dock icon.
- Get your pictures in thumbnails to fit your web pages or forum posts.
- Tag your pictures for a quick and easy search among all your pictures.
- Synchronize all your computers on a FTP then each one has the same picture list.
- Generate HTML galeries to share your pictures with your friends.

Read more: http://www.apple.com/downloads/macosx/internet_utilities/ftpix.html

 
FTPix 2.3.6
Wednesday, 23 June 2010 07:00
About FTPix
Provides an easy way to upload and share your pictures on internet. Select a picture, upload it to your FTP and you can now share this picture in many sizes and codes as HTML or forum code or simply the picture URL. Finally, tag your pictures to find them easily!

FTPix allows you to:
- Upload your pictures to your FTP and get the forum/html code straight to your clipboard.
- Capture your desktop or a part of it and upload the screenshot to your FTP.
- Drop your pictures from your browser or your desktop to the drop box, the application window or the Dock icon.
- Get your pictures in thumbnails to fit your web pages or forum posts.
- Tag your pictures for a quick and easy search among all your pictures.
- Synchronize all your computers on a FTP then each one has the same picture list.
- Generate HTML galeries to share your pictures with your friends.

Read more: http://www.apple.com/downloads/macosx/internet_utilities/ftpix.html

 
Fun Booth 2.2
Wednesday, 09 June 2010 07:00
About Fun Booth
Lets you take laugh-out-loud funny, scary or outright silly digital videos and photos of yourself. You can e-mail your pictures to friends and family, upload directly to Flickr, upload to FTP, upload to youtube and export to iPhoto. Advanced face detection and built-in controls allow you to modify your camera’s output in real-time. You can add props and make your own. And you can video chat with your friends while wearing props!

Read more: http://www.apple.com/downloads/macosx/video/funbooth.html

 


Taxonomy by Zaragoza Online