Posts Tagged ‘PHP’

Upload files with Javarscript(MooTools) and Php - FancyUpload

Tuesday, March 31st, 2009 at 15:01:46
5

I found the other day the FancyUpload by Harald Kirschner. I know it’s been around for a while but I just found it.

I had some small problems making it to work though and I didn’t found any complete packages for download to help me surpass my limits.The problems I encountered while setting up the script were caused by my limited knowledge and experience not by any bugs in the script. I had to deal with two problems one the browse button didn’t work for me and second one I received a 404 status error. Both of these issues were fixed and the download package works great.

The script is great it uses MooTools javascript library, flash and php for multiple-file selection menu and queued upload with an animated progress bar. Big thanks to Harald Kirschner who keeps throwing at us tools that help us make the time spent on our sites by the visitors much more pleasant.

Here is a list of some of the features the FancyUpload has:

  • Select and upload multiple files
  • Filter files by type in the select dialog
  • Optional Events to add your own behaviour
  • Show and filter useful file information before the upload starts
  • Limit uploads by file count and/or file size
  • Platform and server independent, just needs Flash 9+ (> 95% penetration)
  • Unobtrusive, since the element is replaced after the swf loaded successfully
  • Cancel running uploads, add files during upload
  • Everything is optional, documented and easy editable

You can download the complete package here
You can also view a working demo here to get a feeling of what this can do.

Generate a random string with php

Friday, January 30th, 2009 at 17:00:51
1

This is a pretty useful piece of code which can be used in all the websites we users are required to login. It’s great for usage in the forgotten password script where you can generate the new password that will be sent to the users. This functions generates a random string that can contain letters, numbers or both also you can set the length of the generate string.

HTML form parser

Monday, January 26th, 2009 at 18:14:22
1

I found myself these days looking for a way to parse an HTML form into an array. Below you can see the solution I used for this task. It can offer you all the data you may need such as form’s elements’ type, name, options in case you want to fill up a number random forms with data knowing only the data for them and the field names. Once you parse the form you will end up with an array that you can iterate through and get the information you need for your tasks.