Top 10 Social Media Blogging Tools to Promote Blogs

Why use Social media sites as content sharing platforms for blogging? - The presence of social media sites over the World Wide Web is increasing manifold every day, and the best social media websites have become dominant in the blogging world due to their sheer power of delivering boundless referral + search engine traffic to active blogs and websites they love. 

This has made a big makeshift. Every blogger must have to rely on the top social media sites to get a good part of the over all traffic to their web pages. Social media traffic is an integral part of blogging in order to promote your blog sites. SEO experts and bloggers do include these top social media sites in their list of best SEO tools to promote blogs or websites fast. 


top-social-media-tools-promote-blogs-SE_-blogging-best-tools
Top Social media Tools to Promote a Blog

For better results in your blogging  area you must share your blog content and on these best social sharing platforms. 


Here in this blog post you would get a list of top social media tools where you should be active to promote your blog. Create, curate, share, and participate are the rules that are going to be in the top place of your SEO or blogging tools list.   

   

#1. Create pages about your blog on some of the most popular social media sites-



It's a known fact : Google, yahoo, Bing -they all love the content shared on Social media Networking sites. So, go ahead, hurry up, n' create social media pages for your blog at least on the following social media giants : Facebook, Google Plus, and Twitter,
Give your blog a new height by sharing content on these top 100 best social networking sites

#2. Sharing your blog posts on social bookmarking sites-

Sharing your content on social bookmarking sites is very crucial, at least on Pinterest, Delicious, Reddit, Stumbleupon, Yahoo Bookmarks, Google Bookmarks, Friendsfeed . 
You may get list of 1000's good bookmarking sites easily, but for the best and safe results  try Best 100 bookmarking sites.

#3. Google, Yahoo bookmarking - 

Do you know that you can submit bookmarks to Google and Yahoo? if not, submit every url of your blog to Google and Yahoo bookmarks and get a weight-age on their search results. Submit free to best bookmarking offered by search engine giants - 
Google Bookmarks  Yahoo Bookmarks

-> Drive social media traffic by being active on social sharing sites : 

#4. Quora.com 



A marvelous community site which is growing very rapidly and can be seen on any search engine's results pages. 


Answer others questions and ask yourself on the topics your blog is based on. Don't worry, they have topics based on any subject and interests. You may follow topics and share everything you create. While answering the questions you can use your links, and most importantly can create blogs, posts, topics of your own. 

I can't describe it all here. Check out my own weblogs at Quora and connect with me.

#5. List.ly

Listly is a great tool for bloggers that can be used to drive good traffic and backlinks towards your blog posts. Make things in forms of lists. Other publishers can share, add, and follow your lists. 
In this way you can promote your blog to a bigger audience. Make your profile, share it on other networks. Listly is a great web where you should create your portfolio. All is free. You may connect with me on Listly

#6. Sccop.it 

Believe me, Scoop.It is here to stay for ever. Very promising and fast growing social sharing site that works on the basis of creation and curation. You can curate others content, connect, and share your posts automatically on Facebook, Twitter, Google, Tumblr, Yahoo, Wordpress, etc. 
You may have already seen Scoop.it content coming in Google searches. Don't believe? Ok, search for "best bookmarking software" in Google and the 4th website link is from Scoop.It . This is a post from one of my blogs. You can create up to 5 channels at Scoop.It. 
Promote your blogs on ScoopIt
#7. Plurk   

Plurk is not only a bookmarking site as though by many, but a full fledged networking site with their own search engine where people make searchs and results are displayed only from Plurk content. That's the reason bloggers use Plurk to promote their posts on this reputed system. Plurk has a system that works based on sharing and viral capabilities. Promote your blogs on Plurk

#8. MyLot 

A very supportive and encouraging community of bloggers and webmaster that always stay alive and active @MyLot . Write, share small posts that get good community response and web traffic. Blog and Blogging at MyLot 

#9. Gravatar - 

Every one who is active only has their own portfolio or Avatar. Agreed? and what is the best website that offers online Avatar creating services? I know, most of you know that it's none other than Gravatar. 

So, create and optimize your online profile at Gravatar which you can also use on blogs that allow comments from Gravatar users. In this way, when a comment on such blogs your Avatar is visible and it makes good sense for getting some traffic for your own sites. You may follow me on Gravatar and will follow you back - promise !  

#10. Web 2.0 sites- 


web 2.0 sites are great tools for blogging and you can promote and rank higher your blog posts by making your profiles and creating some unique articles on them with outgoing links pointing to your blog domain. 

Create some unique posts on wordpress.com, sites.google.com, Weebly, livejournal, tumblr,scribd, Google Groups, my opera, etc. You can also create link wheel using these best Web 2.0 sites. Use this list of top 50 best web 2.0 sites


# Yahoo Answers - 

You must be already familiar with the fact how so much 'Yahoo Answers' appear in the search engine results for the queries/keywords put in question formats. 

There is a very active community on Yahoo Answers and this could be a good source of viral traffic as well as high quality backlinks that stay active for years. 'Yahoo Answers' is a country specific comminity.

How to Generate Leads Via Youtube?

With billions of users, YouTube has made a huge mark till date. Anyone can start with their YouTube channel. A layman or a business house or so. YouTube is not a space only or necessarily meant for the entertainment company or film. It is for everyone & anyone who wants something to share stuff with the Audience. 

YouTube attracts diverse audience especially youth. It is extremely popular amongst them. 
To excel & get maximum out of YouTube as a business or marketer, you have work on video content part at first place. 
There is a huge scope for the businesses to tap the capabilities of this market.
Today in this article, we bring to you five lead-generating strategies for YouTube:-
o. Example could be "click here to check out the blog", "click here to sign up for free trial" etc. You can keep on experimenting with the placement of annotations in your video or making changes in the annotations itself. See to what users respond & connect best.

2- More Personalized, The Better


When you create a personalized version of your video that gives a reflection to the user that it is directed towards them, then it tends to leave a great impact on user's mind. 
Like a personalized video answering prospect's questions can be created by you & shared so that the prospect feel special & converts into your customer. The prospect might even want to share it with his/her friends & you end up having an extended customer base therein.

3- Associate With Company/Brand


Let the audience know which company the video belongs to. What brand it is. They must be able to recognize & associate the content with your company when they watch your video on YouTube. 
In order to make this 'Brand your video' thing possible, what you are required to do is, put an intro card at the starting of the video & a card with your brand logo at the end when your video gets over. Do not forget to mention your website on your video, video description, YouTube page as this is the way that will allow people to locate you online.

4- Utilize Comments Section & Response Feature


Unlike TV ads where you can't talk to the producer of the ads to clarify your queries or other issue, YouTube allows you to read the response of the prospects in comments section. 

You can utilize this feature by responding to the comments then & there. Socialize with the prospects & come up with the videos that users mostly asked for. Make them feel special. Let them notice their voice is being heard.

5- Partnership & Collaboration

Do not just collaborate with anyone. Look out for the most influential youtubers and partner with them to come up with a collaborative video on the topic both the parties are interested in. Moreover try to find the best users in your field to collaborate with them. 

This will get you the advantage of accessing a more wide audience (yours+their) thereby boosting your credibility as a result of partnership with the experts & influential users/youtubers.


Why to Use Twitter for your startup?

The success of any business depends on the success of its marketing efforts. No business can think of growing unless its marketing game is on point. A great product won’t do any good if not marketed properly, a good website design won’t do good unless the content is shared and promoted rightly, No matter how good your technology is but if you fail marketing front, you won’t reap fruits until and unless your marketing game is strong.


Now, as a startup you really need to push hard all your efforts in the right direction  so as to match with the pace at which market is moving. In this article we highlight the reasons why & how Twitter can be the best tool to make your start up a success.



1-      Twitter Is Easy To Learn

It is by far the easiest of all other social media platforms. Reason being there is specific limit for writing. You have to share the information in a precise form keeping it to the word limit of 140 because that is the limit allowed by Twitter. 

This gets easier than writing full blog. People prefer to read stuff which is not time consuming and Twitter posts are very short which gets due attention of the audience/potential customers. But its simplicity brings great responsibility on your shoulder. 

Twitter has millions of users and is very searchable. It depends on you how you reach out your target audience. You can use tools like Zoomph to find influencers in your niche who can become your voice. Also you can join in real-time conversations going on twitter on the topics of your interest related to your industry.


2-      No Monetary Price To Pay

To market your start up on Twitter, you don’t have to pay any price. Twitter is free and does not charge you anything to reach out to the global audience and engage with them. This is yet another very important reason why Twitter is the best tool because it gives your startup maximum exposure that too without having to pay any money.

3-      Source Of Sharing Content


Twitter lets you share your newest thoughts and ideas. You must be responsive to the industry trends and latest issues in peer conversations. You should focus on producing high quality content that people in your niche can relate to and take interest and moreover try to curate a list of twitter influencers as well as leaders in your industry, see their ideas and thoughts and learn.

4-      Networking Opportunities


With social media there are no barriers left associated with networking. Especially if you talk about Twitter, it gives you the opportunities to connect with the high level people which could otherwise be out of reach. Business and people are complimentary. Both need each other. 

On Twitter you can find new opportunities, financial partners, new clients and what not. It helps you meet new people/prospects, engage with them and establish relationship.

5-      Generating Brand Awareness

Learning how to generate brand awareness is extremely important for the success of start up. You need to strategize well on this front. If you think generating brand awareness would involve big budget then it is not so. In most of the cases it doesn’t involve high budget. 

Need is to tap the opportunities that exist. Be consistent and stay committed to your marketing efforts. Engage in the way you would want to be engaged on Twitter. Respect all on that platform. Generate content that is helpful for your niche your target audience. Reflect that you put them first.


Pro Tip:

Keeping all things aside, remember one thing, never spam your audience with irrelevant content. Be creative and intelligent. Quality is important than quantity. 

Do not push your content out of context which makes you look less worthy in the eyes of audience. Keep it simple and make sure your audience can connect to it. 

MS Office 2007 Full Version Serial Keys Free Download

MS Office 2007 Full Version Serial Keys Free Download : adds support to the 2003 versions of Word Viewer, Excel Viewer and Powerpoint Viewer to open DOCX, DOCM, XSLX and PPTX files.
Microsoft Office 2007 is an add-on for Microsoft Office 2000, Office XP and Office 2003 to open, edit and save Microsoft’s newer Word, Excel and Powerpoint formats that were introduced with Office 2007.

What Includes In This MS Office 2007 Free Download?

Microsoft Office 2007 is the most used user friendly product of microsoft that is used worldwide. You can download Microsoft Office 2007 full version from asimbaba.blogspot.com that includes all the advanced features that can be useful for faster business porposes and requirements. This best office software can be used for business, personal and student works as you can easily make documents, businees sheets, powerpoint slides and much more using the advanced tools of office software. The best part is that you cannot complete the install without MS Office 2007 serial key but here we have provided a list of selected product keys that will surely help yout o register MS Office 2007 for free. Try it now and do not forget to share your views about it.  

Serial Keys: Microsoft Office 2007


GMG3P-FHGXW-VTQ94-4QW8F-VG2HM

KJYPC-VDYR6-82242-PFR9R-688VM
DPK3W-F6FGP-9JDGJ-23VQM-TRHYB
R2WBR-GG6HV-GTPMB-RG9B9-YBJVM
VRGRB-3Y8BW-M2HQX-X3Y22-RJ8VM
DH4M2-48DGQ-DYQ6Q-FHDC4-X6QDY

WCRWK-Y637K-4MRCB-2YQXY-4BGWW
KXRCD-KDMKV-3RFDM-MJT8X-GVWVQ
VBWYT-BBWKV-P86YX-G642C-3C3D3
DQDV2-3TV93-3WW78-2CMV4-86QD3
WP6B2-Y9FR6-WG2R6-KH2Q7-P9T33
H7G9G-HQ46M-BKFG7-MPFF4-TMVYD
F3DFQ-BGD6J-87QWY-TMXCV-8B2HQ

RHMX7-M3T4C-2JF7R-VTDJV-KPBMB
FR6D9-89FTC-87WC6-MM4PB-G6VYB
QK6DQ-6K9HJ-YRVP4-GWVR4-KGQD3
VVRMB-8RQG2-K2K3B-X3P6G-PR9Q3
FWQ4V-XYYWD-V7HB6-G3922-4D4BD
RV29T-JVXGX-968YT-RFC79-RRT33

System Requirements


 Monitor Resolution 1024×768
 Processor or Higher
 256 MB of RAM or Higher
 Windows XP SP2, Vista SP1, and Win 7
 512mb ram recommended or higher for Outlook Instant Search, Business Contact Manager
 1GHz Processor recommended or higher for Business Contact Manager
                                                                


MS Office 2007 Full Version Serial Keys Free Download

Adobe CS6 Portable RedGiant Plugins Free Download

 Adobe CS6 Portable RedGiant Plugins Free Download : Adobe when Effects CS6 package allows you to deliver medium visual effects and motion graphics quicker than ever before with new world Performance Cache. Extend your creative thinking with integral text and form extrusion, new mask rotation choices, and therefore the quick, easy-to-use 3D Camera hunter.
New options:
Create visual effects quicker in Adobe when Effects CS6 package with world Performance Cache, that optimizes and keeps your previews thus you'll beat deadlines rather than looking forward to frame updates. Boost your creative thinking with a replacement 3D engine for text and form extrusions, a 3D camera hunter, and variable-width mask rotation.

Adobe CS6 Portable RedGiant Plugins Free Download
Adobe CS6 Portable RedGiant Plugins Free Download
3D Camera hunter
Track 3D components with complete management over depth of field, shadows, and reflections. mechanically analyze and place 3D track points onto second footage within the background whereas you're employed.

Ray-traced, extruded text and shapes
Extrude absolutely ray-traced text and shapes natively and take full advantage of reflections, atmosphere maps, and more.

Variable mask rotation
Precisely specify feather values at anyplace on a mask, not simply at its vertices. management drop-off and form of rotation, leading to an enormous boost to inventive flexibility.


Rolling Shutter Repair
Remove rolling shutter artifacts like skew and wobble while not forcing stabilization.
Adobe CS6 Portable RedGiant Plugins Free Download
Adobe CS6 Portable RedGiant Plugins Free Download
New and updated effects
Enhance your creative thinking with ninety new and updated integral effects, together with the entire 16- and 32-bit CycoreFX HD suite.

Avid AAF and FCP seven XML file import with professional Import AE

Import and work with files created in Apple flick professional seven or earlier versions, still as Avid Media musician and Symphony, rental you integrate when Effects with skilled production workflows.



Adobe CS6 Portable RedGiant Plugins Free Download

Windows 8.1 Pro 32/64 Bit Official ISO Free Download

Windows 8 is initial release in Windows operating systems after Windows 7, produced by Microsoft for use at personal computers, including desktops, laptops, tablets, and home theaters. The Development of Windows 8 started before its release  in 2009. Its existence was first announced at 2011, and followed by this release of three pre_release versions from September 2011 to June 2012. 

New York , Oct. 25 , 2012 _ Microsoft Corp. today announced the global availability of the popular Windows operating system, Windows 8. Beginning Friday, Oct. 26, consumers at worldwide will be able to experience all that Windows 8 has to offer, including a stylish new user interface and a wide range of applications with the grand opening of Windows Store. As a result of the close work with hardware partners, more than 1,000 certified PC and tablets, including Microsoft Surface, will be available for the launch of Windows 8 _ making it the best lineup of PCs across the Windows 8 and Windows RT ecosystem.
Windows 8.1 Pro is advance and professional version. Microsoft CEO Steve Ballmer said “We have re-imagined Windows and result is a stunning lineup of new PCs,”. “Windows 8 brings together the best of PC and tablet. It works perfect for work anywhere  and play and it is alive with your world. Every one of our customers will find a PC which they will absolutely love.”
Microsoft has been updated user experience within the Latest Windows 8.1 Versions, Where Windows 8.1 Professional is the best ever, So we’re providing it’s MS Genuine ISO here;

System Requirements:

Windows 8.1 Pro user Interface works great at the same hardware that powers Windows 7:
  • Processor : Minimum 1 Giga Hertz ( GHz ) or faster
  • RAM : Minimum 1 Gigabyte GB for 32-bit and 2 GB  for 64-bit
  • Space at Hard disk : 16 GB for 32-bit and 20 GB for 64-bit
  • Graphics card : Microsoft Direct-X 9 graphic device or higher
  • To use touch you need a tablet or monitor that supports multi-touch
  • To access Windows Store or to download and run any apps, you have to connect Internet and your screen resolution at least 1024 x 768
English version :
Windows 8.1 Pro-32_bit Version ( x86 )                    Download ( 3.5 GB )
Windows 8.1 Pro-64_bit Version ( x64 )                    Download ( 2.5 GB )
Sample 25 Character Key: xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Some Working Free Product Keys License List Available Here:
2GVN8-TV3C2-K3YM7-MMRVM-BBFDH
7HBX7-N6WK2-PF9HY-QVD2M-JK49V
7HBX7-N6WK2-PF9HY-QVD2M-JK49V
2GVN8-TV3C2-K3YM7-MMRVM-BBFDH
FFX8D-N3WMV-GM6RF-9YRCJ-82KT7
BDDNV-BQ27P-9P9JJ-BQJ96-KTJXV
D2GBF-NGBW4-QQRGG-W38YB-BBFDH
NBWPK-K86W9-27TX3-BQ7RB-KD4DH
39DQ2-N4FYQ-GCY6F-JX8QR-TVF9V
N4WY8-DVW92-GM8WF-CG872-HH3G7

Complete PHP+MySQL Training with Projects

PHP stands for HyperText Pre-Processor, which is a popular server side scripting language and I’m one of the fans of PHP myself. I shared a tutorial already for PHP lovers about uploading files/images in this server side scripting language and I wanted to take some time to make a complete video tutorials series of this awesome web development tool. So I’m here with my complete video course of PHP which is having 23 video tutorials right now, but I hopefully can say that I’ll update this course time to time, and my aim is to make 100 video tutorials by 2014. I’ll be adding all PHP related tutorials to this playlist, which I’m gonna share on this page. However, you can also subscribe to my YouTube channel for all of my tutorials. Now let’s talk about this complete video course.

Why PHP video training is important?

As you know there are hundreds of websites on the internet who provide PHP training through text articles or by online examples, but I thought the video is 100 times better than a text-based tutorial, therefore, I’ve taken the responsibility and as far as I can, I’d like to present something that is worth watching. And PHP is very important to learn now a days, because this is the most used popular web development language and is free of cost open source .

What will we be learning during this course?

I’ve started the course from an introduction which doesn’t have enough theory, because I like practical work in a programming language, therefore, You’ll just come to know about the tools which we’ll be using to run PHP properly on our local server. However, after few basic classes ofEcho command, Local variables, Global Variables, IF & Else statements, Header command, include command, require command and other simple commands, I’ve straight taken you to creating different applications in PHP.

How many applications we’ll be creating in this course?

We’ll be creating applications as many as possible, the first application I’ve taught you in this course is; an online calculator which we’ve simply created by using IF statement in PHP, and after calculator I’ve created an online currency calculator in this course.
And the most important projects of this course are; creating a complete registration form in PHP with admin panel for viewing the users’ data, for deleting the users and for editing the users.
In the future I’ll add more projects to this playlist such as creating a CMS (Content Management System) in PHP along with a website which will be having a separate admin panel, A social network site using PHP with all of great features and also I’ll be creating an eCommerce online shopping center using PHP.
There will be more small projects added to this PHP course in the future.

How to Upload Files to Web Server in PHP?

PHP is a server side scripting language and mostly used for creating dynamic web pages. The live examples of PHP are: Facebook.com, WordPress.com, Joomla.com and many other websites. PHP is an open source free of cost web language which is used by millions of web developers now a days. It simplify your online web projects and applications and adds beauty to them. I’m myself a lover of PHP and studying it for couple of months. I am also interested to teach PHP on this blog by making video tutorials and text-based tutorials for all those who want to learn practical usage of PHP. So today, I have a tutorial for you in which we’ll be discussing how to upload files to web server via PHP.
If you are interested in learning PHP then you might know about a complete offline package for Using PHP called “XAMPP” and also “WAMP”. So before starting learning PHP you must have installed either “XAMPP” or “WAMP” which provide you a complete environment for making web applications in PHP.
Whether you install xampp or wamp, after installing the software you’ll find its folder directly in your C: drive. There will be a folder called “htdocs” (in Xampp) & “www” (in wamp) in your installed folder, so this is your root folder and you’ll have to save all your files there in that folder, and after creating a file or new folder there. You’ll just open it on your browser with this address:http://localhost/test/file.php, so in this example localhost is my local server and the test is a folder which I created inside “htdocs” folder and the file.php is my file inside test folder. Also after installing the xampp or wamp package check the installation by entering this address in your browser: http://localhost, so if it is installed correctly then it should work just fine.
These two software have all the necessary tools which are required in order to run PHP on your computer, because PHP is not a normal web language like HTML, CSS & JavaScript. It is an advance server side language which needs to be execute by a server. Now lets start the tutorial about adding files via PHP.

How to add images in PHP?

There are many type of files you can upload to your server via PHP such as images, videos, text files and so on. But we’ll upload some images in today’s tutorial and you can also add other files by using the same method.
In order to upload files to your web server or local server, you’ll need to create a new file by using Notepad or Notepad++ or Dreamweaver.
For uploading files we’ll need to create an HTML page to show the uploading options to the users, and we can create a script in PHP for uploading the files into our server. However, you can use a single HTML page in which you’ll insert all the HTML and PHP codes together. Here is the simple HTML code which we’ll need to receive the data from the user, and for this purpose we use HTML forms:
<center>
<form action=”file.php” method=”post” enctype=”multipart/form-data”> 
<table border=”2″>
<tr height=”100″><td>Upload A file:</td>
<td><input type=”file” name=”file”></td></tr>
<tr height=”100″><td>Click Upload File:</td><td><input type=”submit” name=”submit” value=”Upload File”></td></tr>
</table>
</form></center>
In above coding you can see we added a form in HTML and its attributes are: actionmethod andenctype, these three attributes are very important in order to receive data like images & videos etc. The file.php will be the file to which the user will be sent after clicking the upload filebutton. Method is post for receiving the data and it is indeed the best method in PHP. Also the enctype is very very important in this case, because we must need it for receiving data like images and videos etc. Images and videos have multiple parts such as their names, types, sizes and so on. So therefore, we add enctype in this. The rest coding is just for making the form readable.
Now here is the PHP simple script for above form: 
if (isset($_POST[‘submit’])) {
$name=$_FILES[‘file’][‘name’];
$type=$_FILES[‘file’][‘type’];
$size=$_FILES[‘file’][‘size’];
$tmp=$_FILES[‘file’][‘tmp_name’];
echo “$name <br> $type <br> $size”;
}
In above PHP script we used the $_POST array with an if statement, because we earlier mentioned in form that we’ll get the data via Post method, and we created 4 different variables for all the parts of the file such as name, type, size and tmp; and we collected the data via another default PHP array $_FILES which is used for getting files’ data. And in last we printed the data and when the user will click the upload file button he will see the name of the image, type of the image, size of the image on the same page. We did this because we wanted to check our script whether it’s working or not.

How to validate the files before uploading?

Now the interesting part is here. We can’t allow people to upload the files as they want. We’ll validate the variables for allowing people to upload only the specific kind of files. We’ll validate the type of the files, the size of the files and after that we’ll save the files somewhere on our local computer or in web server. So here is the complete PHP script for validating the files uploading them:
<?php
if (isset($_POST[‘submit’])) {
$name=$_FILES[‘file’][‘name’];
$type=$_FILES[‘file’][‘type’];
$size=$_FILES[‘file’][‘size’];
$tmp=$_FILES[‘file’][‘tmp_name’];
if ($name==”){
echo “<script>alert(‘Please Select a file from computer!’)</script>”;
exit();
}
if (($type == “image/jpeg”) || ($type == “image/gif”) || ($type == “image/png”)) {
if (file_exists(“images/” . $_FILES[“file”][“name”]))
{
echo “This file $name is already exist!<br> please try another one..”;
exit();
}
if ($size <= 50000){
move_uploaded_file($tmp,”images/$name”);
echo “<center><font color=red>File was uploaded successfully!</font><br>Uploaded Image is here<br><img src=’images/$name’> </center>”;
}
else {
echo “Size of the image $size is larger than 50kb and it’s not allowed… <br> image size must be less than 50kb..”;
}
}
else {
echo “$type this is not a valid type of file<br>only upload Jpeg, PNG and Gif images”;
}
}
?>
In above example I’ve given the complete PHP script altogether. In this script we added all the necessary validations and also we uploaded the file to our server via the move_uploaded_filedefault PHP command.
In above example, we said in an if statement that only Jpeg, PNG & gif type of images will be allowed to upload, also we said that size must be less than 50kb, and we also used a query which checks for the existing file names, this query will stop the script if it finds a file which is already existing. And finally we added the file to our computer by using move_uploaded_file function.
We also printed the image on the same page. So when you’ll upload an image and click the upload file button the image will be shown on the same page. And we moved the uploaded file to a folder called “images” which you should create inside the folder where you’ve kept the file.phpfile. However, if you don’t want to save the images inside a folder then change: $tmp,”images/$name” to only $tmp, $name and also change <img src=’images/$name’> to <img src=’$name’> so it will be uploaded directly to the same folder where the file.php is existing.
Now for your clarification the final code including both HTML and PHP which you can directly copy and paste inside a blank notepad document, you’ll have to just save it as file.php and will have to save it inside “htdocs” folder in the xampp or wamp installation folder, here is the complete code:
<html>
<head>
<title>Uploading Files via PHP</title>
</head>
<body>
<center><form action=”file.php” method=”post” enctype=”multipart/form-data”>
<table border=”2″>
<tr height=”100″><td>Upload A file:</td>
<td><input type=”file” name=”file”></td></tr>
<tr height=”100″><td>Click Upload File:</td><td><input type=”submit” name=”submit” value=”Upload File”></td></tr>
</table>
</form></center>
<?php
if (isset($_POST[‘submit’])) {
$name=$_FILES[‘file’][‘name’];
$type=$_FILES[‘file’][‘type’];
$size=$_FILES[‘file’][‘size’];
$tmp=$_FILES[‘file’][‘tmp_name’];
if ($name==”){
echo “<script>alert(‘Please Select a file from computer!’)</script>”;
exit();
}
if (($type == “image/jpeg”) || ($type == “image/gif”) || ($type == “image/png”)) {
if (file_exists(“images/” . $_FILES[“file”][“name”]))
{
echo “This file $name is already exist!<br> please try another one..”;
exit();
}
if ($size <= 50000){
move_uploaded_file($tmp,”images/$name”);
echo “<center><font color=red>File was uploaded successfully!</font><br>Uploaded Image is here<br><img src=’images/$name’> </center>”;
}
else {
echo “Size of the image $size is larger than 50kb and it’s not allowed… <br> image size must be less than 50kb..”;
}
}
else {
echo “$type this is not a valid type of file<br>only upload Jpeg, PNG and Gif images”;
}
}
?>
</body>
</html>
Now after saving the file check it on the browser with this address:http://localhost/test/file.php and you’ll find the HTML form which will be showing the file upload field and uploading button, just upload a picture and click the button; you’ll see the result, but making it sure you’ve created  a folder ‘test’ inside ‘htdocs‘ and have saved thefile.php inside test folder.
This tutorial was for uploading files to your local server by using XAMPP or wamp packages, but you can also use this tutorial for uploading files to your online web server.

Kategori

Kategori