What’s new in PHP 5.4.x ?
March 5th, 2012 . by alecs . No Comments
Hey folks! Did you hear the news? PHP 5.4.0 has just been released and it brings a few important updates that we will discuss about today.
So let’s talk about the great features that have been implemented in this version.
I guess every PHP programmer wrote at least one uploading script and you know that is absolutely impossible to check the uploading progress without using flash or other similar techniques. Fortunately PHP 5.4 is here to show you the light. Using sessions, you can now check the upload progress at any time. How does it work ?
PHPEasy way to upload with PHP and HTML
December 21st, 2011 . by alecs . 3 Comments
In this tutorial I will show you how to upload a file on your server using PHP script and HTML form.
The basics
HTML form
In order to be able to upload a file, make sure your form has:
- enctype=”multipart/form-data”
- method=”post”
<form enctype="multipart/form-data" action="upload.php" method="post"> Please choose a file: <input type="file" name="uploadedFile" /> <input type="submit" name="save" value="Upload" /> </form>
This form will send the post to the file upload.php
PHP script
Now let’s discuss about upload.php.
First thing is to verify if the form was submited correctly. For this, is only necessary to have the following condition:
if($_POST['save']){
// the rest of the script goes here
}
Keep in mind that the uploaded file(s) can be accessed with the $_FILES variable.
HTML . PHPCSS for Beginners – Lesson 1: The basics
November 2nd, 2011 . by alecs . 1 Comment
Hi folks! If you haven’t read the introduction to HTML I advice you to do so here.
So we have this code
<html> <head> <title>My first HTML tutorial</title> <meta name="description" content="Here is the best place to learn HTML" /> <meta name="keywords" content="html,tutorial,beginners" /> <meta name="robots" content="INDEX,FOLLOW" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <div id="header"> <div id="logo">Logo here</div> <div id="menu"> <a href="index.html" title="First page">Home</a> | <a href="about.html" title="About Alecs">About</a> | <a href="contact.html" title="Contact Alecs">Contact</a> </div> </div> <div id="content"> Beautifull content with images and videos and comments goes here. <a href="https://twitter.com/#!/hyperionXS" title="Follow Alecs on Twitter" target="_blank">Click here for more beautifull content</a> </div> <div id="footer"> <div id="footer_links"> <a href="index.html" title="First page">Home</a> | <a href="faq.html" title="Frequently Asked Questions">FAQ</a> | <a href="#header">Go to top</a> </div> <div id="copyright">Copyright © 2011 Alexandru Pandele</div> </div> </body> </html>
Loaded in a browser, the code above looks like this:

But this doesn’t look like a modern website at all ! We need colors, images, different font sizes and much more.
This means we need CSS. CSS stands for Cascading Style Sheet and will help us to bring our website to the next level.



