File Upload in PHP

PHP Upload is very simple to use code. Create a folder name with photos in same folder and use the below code. The following code is used to only upload word document (.doc) and PDF. You can manipulate the file types to use the code according to your requirements.

HTML Code:

<form action=”" method=”post” enctype=”multipart/form-data” name=”form1″ id=”form1″>
Upload File:
<input type=”file” name=”photo” id=”photo” />
<input type=”submit” name=”upload” id=”upload” value=”Upload” />
</form>

PHP Code:

<?php
$photoname=$_FILES['photo']['name'];
$phototype=$_FILES['photo']['type'];
$photosize=$_FILES['photo']['size'];
$phototmp=$_FILES['photo']['tmp_name'];

$str=str_shuffle(“abcedfghijklmn”);
$new=substr($str,0,5);

$newfile=$new.$photoname;

//echo $phototype;
//echo $photoname.”<br>”.$phototype.”<br>”.$photosize.”<br>”.$phototmp;
if(($phototype==”application/pdf” || $phototype==”application/msword”) and ($photosize <=100000) )
{
if(move_uploaded_file($phototmp,”photos/$newfile”))
{
echo “uploaded”;
}
else
{
echo “sorry”;
}
}
else
{
echo “Sorry filetype not matching”;
}
?>

Thanks

Mohammed Azharuddin

Posted in PHP | Leave a comment

How to Remove “Welcome to the FrontPage” from Joomla

After installation of Joomla, Everything looks fine in Joomla. You can enable or disable modules, articles etc. But most of the beginners face this issue. “Welcome to the FrontPage” will be display above the articles. The Welcome to the FrontPage is not a module or article. It is the Title for the Default Menu Home. Follow the below procedure to remove this line.

Login to administrator -> Menus -> Main Menu -> Home -> Parameters (System) (Right side) -> Show Page Title -> Select No

This will solve the issue.

Web Trainings offer Online Joomla Training in 20 Hours. Call on 9052425444 for further details.

Posted in Joomla | Tagged | Leave a comment

Quality Content for Search Engines

Many SEO faced problems related to duplicate content by spammers. In many situations many competitors has copied the content from Web Trainings and claim as their own content. When we contact regarding the content copy, the competitors would say we are offering same course, we have not copied etc. But thanks to the new update by Google, which will keep the copy cats away from Search Engines.

With new algorithm update, Google has made many changes for issues related to duplicate content, which will affect the ranking of many websites. The websites with original content will rank higher and duplicate content won’t rank better in search engines.

Update: The Algorithm changes has been made global in April.

Read the complete Post :Official Google Blog: Finding more high-quality sites in search: “e”

Posted in SEO | Tagged | 1 Comment

What is Web Designing Course ?

Website is Collection of HTML Pages which are linked together to form a website. Websites are broadly divided in to static and dynamic websites. Static websites are created using HTML / CSS / Java Script etc while to create a Dynamic Website you need knowledge of Server side Scripting Language (PHP, ASP or JSP etc). In web designing course you will learn how to create professional websites.

Are you interested to become a Professional Web Designer and Create websites for clients and companies. Web Designing Course is intended to teach the concepts of Designing, Development, Optimization to enable you to work on websites.

In Web Designing Course you will learn the following softwares :

  • Basics of Web Technologies
  • Adobe Photoshop
  • Adobe Flash
  • Adobe Dreamweaver
  • HTML / XHTML
  • CSS
  • Java Script Basics
  • Web hosting
  • Website Testing
  • SEO Basics

Web Trainings institute offer Web Designing Course in Hyderabad for both classroom and Online Web Designing Course. Call us on 9052425444 for further details.

Posted in Web Design | Tagged | Leave a comment

Free Jewellery Template Design

Free Jewelery Template Design

Jewellery Website Template

Posted in Templates | Leave a comment