PHP Tutorials

11. Multiple File Upload in PHP using IFRAME

By: Tom @ nono . be : 2012-12-05

Description: Handling multiple uploads can be a lot more user friendly with a little help of javascript and form posting to iFrame... To make it all a little bit more edible, you can use AJAX and divs to provide loader gifs etc...


12. Error: Length parameter must be greater than 0

By: capitanqueso : 2012-12-05

Description: If you ever try to upload an empty file using fread(), php may show a nasty warning (according to your "error_reporting") about "Length parameter must be greater than 0" especially if you are parsing this as xml. So in order to handle this error from here you may do the next:


13. PHP file upload with IIS on windows XP/2000 etc

By: [email protected] : 2012-12-05

Description: For those of you trying to make the upload work with IIS on windows XP/2000/XP Media and alike here is a quick todo.


14. PHP file upload prompts authentication for anonymous users

By: Phil Ciebiera : 2012-12-05

Description: On a Microsoft platform utilizing IIS, you may run into a situation where, upon moving the uploaded file, anonymous web users can't access the content without being prompted to authenticate first...


15. PHP file upload (Large Files)

By: xmontero : 2012-12-05

Description: It may happen that your outgoing connection to the server is slow, and it may timeout not the "execution time" but the "input time", which for example in our system defaulted to 60s. In our case a large upload could take 1 or 2 hours.


16. Exception in module wampmanager.exe at 000F15A0 in Windows 8

By: Emiley J : 2012-11-20

Description: Solution for the error: Exception in module wampmanager.exe at 000F15A0 in Windows 8


17. Handling file locks in PHP

By: Cory Christison : 2012-04-05

Description: 'while' can do wonders if you need something to queue writing to a file while something else has access to it. This method is not recommended for use with programs that will be needing a good few seconds to write to a file, as the while function will eat up alot of process cycles.  However, this method does work, and is easy to implement. It also groups the writing functions into one easy to use function, making life easier.


18. HTML table output using Nested for loops in PHP

By: Anonymous : 2012-04-05

Description: Nest for loops are used for handling many difficult situations such as Matrix, Recursion etc..In this example, it is shown how nested for loops are useful for outputting a data array into a table (ie. images). Additionally in this example, the Nested For Loop uses the same iterator as the parent for loop. Well formatted so the resulting code is clean when executed.


19. Count occurrences of a character in a String in PHP

By: Kani : 2012-04-05

Description: Here is another simple example for - for loops. Thsi PHP code shows how to search for a particular character in a String and count the number of occurrences of that character in that string.


20. break out of an if() block in PHP

By: Strata Ranger : 2012-04-04

Description: Although most programmers are aware of this already, if for whatever reason you need to 'break' out of an if() block (which, unlike switch() is not considered a looping structure) just wrap it in an appropriate looping structure, such as a do-while(false):