PHP picture upload script

It is a very easy and simple PHP picture uploading script.I am giving the source script below

Untitled Document

<form action=”” method=”post” enctype=”multipart/form-data”>
Upload image
Select an image:
<?php
$upload=”img”;
if(isset($_FILES[‘s’]))
{
$filename=$_FILES[‘s’][‘name’];

Continue reading “PHP picture upload script”

Advertisements

PHP online page viewer counter

PHP (hypertext pre processor) has changed the way of web development.Now-a-days we can develop web applications easily by PHP.It has made web developing easier.Now i am presenting an page counter made by php.Sometime in our website we want to see that how many times our webpage is viewed.So this page counter will help to do so.Here is the page counter script.

PHP sorce script:

<?php
$filename=”counter.txt”;
//open the file for reading
$fp=fopen($filename,’r’);
$counter = fread($fp, filesize($filename));
fclose($fp);

Continue reading “PHP online page viewer counter”