Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Scripting > PHP   »   capture and streaming webcam images.

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Jan 10, 2008, 10:04 AM
atlanty
New Member
atlanty is offline
 
Join Date: Jan 2008
Posts: 2
atlanty See this member's comment history on his/her Profile page.
capture and streaming webcam images.

Hi ! it is possible the capture and streaming webcam images in a webpage with PHP ?
I have this source code below in my server however I want to change it to hold images from webcam and save them in MySQL database.

<form action="addcam.php" method="post">
Name<b>*</b>: <input type="text" name="requiredname"><br>
Homepage: <input type="text" name="homepage"><i> (be sure to include http://)</i><br>
Email address: <input type="text" name="email"><br>
URL of cam image<b>*</b>: <input type="text" name="requiredimage"> <i> (be sure to include http://)</i><BR>
<input type="Submit">
</form>

<?php

// create connection
$conn = mysql_connect($hostname, $username, $password);
if (!$conn) {
die ("Couldn't connect to server : " . mysql_error());
}

// select database
$db = mysql_select_db($database, $conn);
if (!$db) {
die ("Couldn't select $database : " . mysql_error());
}

$name=$_POST['requiredname'];
$homepage=$_POST['homepage'];
$email=$_POST['email'];
$image=$_POST['requiredimage'];

$sql = "INSERT INTO cams (cam_name, homepage, email, cam_url)
VALUES ('$name', '$homepage', '$email', '$image')";
mysql_query($sql);

mysql_close();

echo "<p><a href='$domain/index.php'>To the portal!</a></p>";
?>
Thanks for the answers !

Reply With Quote
 
     



Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Webcam nymphetamine Other Hardware 4 Feb 10, 2008 06:21 PM
Stream and capture webcam images with Javascript. atlanty Javascript 0 Jan 10, 2008 09:46 AM
webcam capture rapidly carlog Internet & the Web 0 Jan 16, 2007 03:29 AM
how to capture video streaming ? hoonsk Multimedia 14 Feb 8, 2006 04:03 AM
Webcam streaming Darty Internet & the Web 2 Feb 13, 2005 01:15 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 08:39 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.