News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
feed this:

Ian Christian's Blog:
Handling Uploaded file in symfony's admin generator
March 12, 2010 @ 11:03:15

Ian Christian has an informative new post for the Symfony developers out there. He's figured out a way to handle uploaded files with Symfony's admin generator relatively easily, changing the filename option.

When a file is uploaded using sfForm in the admin generator, by default the filename that's used is a random string, which can look bad in URLs. If you want to change this, it's not immediately obvious how - but it is incredibly simple.

The Symfony project does have some documentation on the topic, but it's not the easiest to read. It basically boils down to is defining a function in your extended class based on the name of the file where you can change the name however you'd like. Code snippets are included to make the point a bit more clear.

0 comments voice your opinion now!
symfony framework tutorial upload admin



NETTUTS.com:
CodeIgniter from Scratch File Uploading and Image Manipulation
February 23, 2010 @ 08:09:17

On NETTUTS.com there's a recent tutorial - the ninth part of the "CodeIgniter from Scratch" series - posted (by Burak Guzel) for all of the users of this popular framework out there. It looks at, starting from the very beginning, how to create an upload and image manipulation script for use in the framework.

In lesson nine of our CodeIgniter series, we'll build a small image gallery that allows you to upload files, and automatically create thumbnails

He links to the previous eight parts of the series if you need to catch up as well as the source code for this installment so you can follow along with the screencast. For those more on the go, you can also download the screencast and watch it whenever.

0 comments voice your opinion now!
tutorial file upload image manipulate screencast


Programming Facts Blog:
Upload large(Big) files in PHP using .htaccess
February 17, 2010 @ 13:19:06

Rakshit Patel has posted a tip to the Programming Facts blog that those out there wanting to upload larger files through your application - change your settings via one of three ways to tell PHP it's okay.

I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size [...] If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.

The method's pretty much the same in each of the three methods. You can either have the settings in your httpd.conf (if you have access to it), in the php.ini or in a .htaccess file in the directory your PHP script is in.

0 comments voice your opinion now!
upload large file tutorial phpini httpdconf htaccess


Kae Verens' Blog:
multiple file uploads using HTML5
December 29, 2009 @ 09:57:05

Kae Verens has come up with a tutorial using a feature of HTML5 - multiple file uploads.

As a response to a reported bug where Chrome was taking ages to load up a flash multiple-file uploader, I've updated KFM to use HTML5's multiple-file input box where possible.

The code examples in the post show how to use a square bracket ("[]") set in the name of a file upload field, how they're handled on the PHP side and how they can be accessed in the FILES superglobal.

0 comments voice your opinion now!
html5 multiple file upload


Developer.com:
Managing File Uploads with the Zend Framework
November 06, 2009 @ 07:56:50

On Developer.com today there's a new tutorial that looks at working with file uploads in Zend Framework applications and looking more specifically at the Zend_File_Transfer component.

Chances are you've become well acquainted with the Web-based mechanism used to upload files to the Web. But how does this mechanism actually work? What process results in the file being transferred from your computer to the remote server? In this tutorial I'll show you how to create your own file upload mechanism using the popular Zend Framework, which makes accepting, validating, and processing uploaded files a walk in the park.

They look at creating a simple upload form and how to tie a Zend_File_Transfer instance to the backend of it to make uploading and validating the files a simple process. You can find out more information on the component here and another related component, Zend_ProgressBar, here.

0 comments voice your opinion now!
zendframework file upload zendfiletransfer


SitePoint.com:
How To Handle File Uploads With PHP
July 10, 2009 @ 10:25:50

New on the SitePoint "PHP & MySQL Tutorials" blog today Kevin Yank has posted another excerpt from the "Build Your Own Database Driven Website Using PHP and MySQL" looking at handling file uploads in PHP.

An common challenge faced by PHP programmers is how to accept files uploaded by visitors to your site. In this bonus excerpt from Chapter 12 of [the book] you'll learn how to accept file uploads from your web site visitors securely and store them.

The tutorial introduces the $_FILES superglobal and how you can use it to access the file information about the uploads the user's can make. He also mentions some of the functions that can be used on the files (like is_uploaded_file).

1 comment voice your opinion now!
book excerpt tutorial upload file


Content with Style:
Custom Zend Form Image Upload Element
June 29, 2009 @ 22:20:06

On the Content with Style blog Pascal Opitz looks at creating a custom Zend form element for uploading images.

It really is time to post something, isn't it? Here is a quick way to have an image preview inside of a form based on Zend Form. I am using the auto include mechanism for this one, utilizing the PEAR naming convention, and all my files will sit underneath a Shared folder within the library folder.

Their custom element is created in a two pieces - the form element itself and a custom view helper to define how the form element is displayed. An example of its use is also included.

0 comments voice your opinion now!
tutorial upload image custom zendform zendframework


Christian Stocker's Blog:
Upload Progress Meter - Common issues and some answers
March 31, 2009 @ 09:31:49

On the Liip blog today Christian Stocker has posted about a few common issues developers seem to have with the upload progress meter extension and a few answers to help them out.

After I released uploadprogress 1.0.0 some days ago and finally declared it as stable, it's time to write that blogpost about some of the limitations and caveats one has to know.

The post links to a demo and answers a few different questions on issues such as:

  • Running it on other modules than mod_php on Apache ( like fastcgi)
  • Checking if files are too big
  • The position and content of UPLOAD_IDENTIFIER within the form is important
  • Why not use $_SESSION for the info?
  • It segfaults, when I don't include UPLOAD_IDENTIFIER

See the PECL page for the extension for more information.

0 comments voice your opinion now!
upload progress meter pecl question answer common issue demo


NETTUTS.com:
Diving into PHP
March 13, 2009 @ 11:11:28

On the NETUTS.com website they've posted a part of their "Dive into PHP" series (part thirteen) cross-posted from the ThemeForest blog (subscribe here). In this edition the vidcast looks at how to handle file uploads in PHP.

By posting short ten minute episodes, beginners can easily digest each lesson, rather than become overwhelmed with more information than their minds are able to consume. [...] In this lesson, you'll learn how to upload files, and how to use regular expressions to ensure that inappropriate file types aren't uploaded to your server.

You can follow along with the vidcast and check out the demo or just skip straight to the source code to get going right away. Links to some of the other video tutorials are also included for things like working with variables, regular expressions and getting started with MySQL.

0 comments voice your opinion now!
introduction video vidcast series file upload source demo


Christian Stocker's Blog:
Upload Progress Meter for Windows - The next take
March 13, 2009 @ 09:38:35

Christian Stocker has posted about "the next take" on the PHP upload progress meter extension - a new version that plays a bit nicer on Windows than before.

The uploadprogress extension for PHP never really worked on Windows and since I don't have a Windows development environment I could never do a proper analysis of the problem. Until this week, when Tomas Holusa sent me an email telling me about some VCWD_RENAME problems on Windows.

A patch that was submitted a while back confirmed the issue and a new patch was written and submitted to take care of the problem. You can try out the new extension on Windows with either the normal Wind32 build or Win32 nts build.

0 comments voice your opinion now!
upload progress meter windows patch vcwdrename fail extension



Community Events









Don't see your event here?
Let us know!


opinion framework release conference symfony sqlserver microsoft podcast zendframework facebook hiphop wordpress performance job zend windows feature developer extension codeigniter

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework