Ask Experts Questions for FREE Help !
Ask
    atlanty's Avatar
    atlanty Posts: 2, Reputation: 1
    New Member
     
    #1

    Jan 10, 2008, 12:04 PM
    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 !

Check out some similar questions!

Stream and capture webcam images with Javascript. [ 1 Answers ]

Hi ! I ask if it is possible the capture and streaming webcam images with Javascript in a webpage? thanks for some answer!

Webcam [ 4 Answers ]

OK. Well I thought I would try out my new web cam. By the way its BestOnWebCam Suite 2.0 . So I turn it on and this box pops asking me which one I want to open the camera with. I don't remember what they first one said but I picked that and a big screen popped up showing me on there. I closed that...

How to capture video streaming ? [ 14 Answers ]

Hi, There is a short video clip that can only viewed online(doesn't work with right click "save as"), however, I wish to capture the video clip down. When I clicked the file, it prompted realone player... I have tried some shareware video capture program but it just show blank... any help ?...

Webcam streaming [ 2 Answers ]

I would be grateful if anyone could advise why I cannot get pictures from streaming webcams from a British ISP, Tesco.net. Whenever I try to use their connection the web page loads Java and then the pictures go blank and then everything just hangs. I have to close everything down and restart. If...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.