Author: Rafael Wendel Pinheiro

PHP function to find out the size of a file

Hello people! A few weeks ago I was developing a system where the client requested that in addition to its institutional website it also had a restricted area where he could make digital documents available to his clients. In short, each customer would have a virtual space with documents and other important files and access everything with their username / password.

Well then. When the system is accessed, all files that are available to the user are listed for that user. And this list shows the name of the document, its format, the date of submission, a brief description of what it is about and the size of the file since, obviously, the customer has the option to download it.

Continue lendo

Upload files with jquery and progress bar

Hey guys, how are you? In today’s post we will see a very cool way to put a nice file upload form with progress bar using AJAX (JQuery).

To follow the post, I recommend reading this post , which is where I approach a php function to upload files safely and simply. It is this function that I will use in today’s example.To get started, download JQuery and the JQuery.Form plugin . That done, our directory and file structure should look like this:

Continue lendo

Create code templates in NetBeans

You self-respecting programmer certainly uses some IDE to develop your applications and projects. And don’t give me DreamWeaver, because this tool is far from what we call organization, efficiency and quality when programming.

For those who prefer IDEs to simpler publishers, today’s tip is to speed up your development process. We will be focused on NetBeans , but I believe that other tools also provide this facility.

Continue lendo