Latest topics
» Creating a Web Site with Flash
Thu Jan 03, 2008 1:12 pm by passionguy

» SitePoint-The Principles of Beautiful Web Design
Thu Jan 03, 2008 1:11 pm by passionguy

» SitePoint-The CSS Anthology
Thu Jan 03, 2008 1:07 pm by passionguy

» SitePoint-DHTML Utopia Modern Web Design
Thu Jan 03, 2008 1:05 pm by passionguy

» Apress-Beginning HTML with CSS and XHTML
Thu Jan 03, 2008 1:02 pm by passionguy

» Encyclopedia of Internet Technologies and Applications
Thu Jan 03, 2008 1:00 pm by passionguy

» Beginning ASP.NET 3.5
Thu Jan 03, 2008 12:59 pm by passionguy

» Apress-Beginning ASP.NET 3.5
Thu Jan 03, 2008 12:56 pm by passionguy

» Apress-Ajax and REST Recipes
Thu Jan 03, 2008 12:44 pm by passionguy

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Search
 
 

Display results as :
 


Rechercher Advanced Search

Sample PHP program(contd..,)

Wed Jan 02, 2008 6:29 pm by passionguy

3.File Uploading using PHP:

HTML Form(for uploading a file):

Code:



enctype="multipart/form-data">
Filename:
 







upload_file.php(for uploading file):
Code:
if ($_FILES["file"]["error"] > 0)
  {
  echo "Error: " . $_FILES["file"]["error"] . "
";
  }
else
  {
  …


[ Full reading ]

Comments: 0

Sample PHP program

Wed Jan 02, 2008 6:01 pm by passionguy

1.Date.php
Code:
<?php
echo date("Y/m/d");
echo "<br />";
echo date("Y.m.d");
echo "<br />";
echo date("Y-m-d");
?>



Output:
The output of the code above could be something like this:

2006/07/11
2006.07.11
2006-07-11


2.Opening a file using PHP:
filehandling.php
Code:
<html>
<body>



[ Full reading ]

Comments: 0

A sample Suggest program using Ajax

Mon Dec 31, 2007 6:50 pm by xemengen

This program provides a suggestion box similar to Google search box using protototype.js. This script can be downloaded from </html> [url=prototypejs.org]Prototype[/url]

This one is the program which fetches the data from the database
gethint.php
<?php
// Fill up array with names
$q=$_GET["q"];

$con = mysql_connect('localhost', 'username', 'password');
if (!$con)
{
die('Could not connect: ' . …[/"q"]

[ Full reading ]

Comments: 0

Poll
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 4 on Thu Jan 03, 2008 12:34 am
Statistics
We have 6 registered users
The newest registered user is nataliewebb01

Our users have posted a total of 42 messages in 42 subjects