I am an novice in Javascript and PHP. I am working on to create a visitor management system where a web form is used to insert the data and when clicked on Submit button data are stored in the database and a pass is printed. But my problem is that I am trying to use a web cam to take the snap of the visitor and want to save it in the database as BLOB. I don't have any idea but tried http://www.xarg.org/project/jquery-webcam-plugin/ etc and couldn't find any clue. Kindly help.
Related
I'm working on a project related to Online Management Information System for Hospitals with core php and mysql. Most components I've completed but where I'm stuck is probably not the problem with coding its probably not having the Idea how to do it; What I want to do is; when the management prepares the report of a patient it is published and remains entirely only for the management and doctors to view and review and verification purposes etc after which the site admin PUBLISHES it by click of command button. With this function the entire report which is in the form of HTML/PHP page & MySQL at the back-end is converted to a .jpg format and this image is supposed to be inserted to a MySQL database at another URL. Its simple as that and I don't know how to do it? Any help would be appreciated please! Thanks!
You can parse html & create pdf/jpg image of site using library as http://wkhtmltopdf.org/ or https://github.com/spatie/browsershot using headless chrome
I have a project am working on,, its about (Graphical Password) it's an authentication security system (Web Based), which ask the user to register by entering his information such as (first name.. last name.. etc ) and with these information there will be a group of images with each image has a number written below it ,, so the user will enter his info like usually and will be an extra field for (image number) the user write the number of the image that he want ,,(the images will be previewed as thumbnails in the page). at the end he click submit, the information it will be stored in database using (PHPMyAdmin),in the database there will be columns for each data plus a column for image number, it will be storing the image number ONLY not the images, the images stored in a folder with its names from (1-20), till here no problem..
The Problem is : When the user click submit it should open another page and it should display the image that he chosen before from the previews page with big size image so later i can do some processing on the image..
My Question is : How to send that image to another page by using PHP language..
Am using DreamWeaver CS6, here is a photo of the site http://www.4shared.com/photo/YcBeAhsz/Capture.html?
and the code is here : http://www.4shared.com/file/unOI9Ejs/registeration_page.html?
I hope my question is clear and i wish i can get some answers.. thanks in advance..
This is a little tricky without know the code your using.
You can store the images you get to the web server by:
file_put_contents('image1.gif',file_get_contents('http://static.php.net/www.php.net/images/php.gif'));
The on the next page display the image back.
<?php
$user_picked_img_id = 1;
?>
<img src="image<?php echo $user_picked_img_id ?>.gif"/>
Let me know if that fits what you are trying to do.
I have some report that is generated from a form. I need this form to be saved automatically on the server, on submitting. Is there any way to do it?
I tried researching on the subject, but Google just throws up links where the user gotta input the URL and press submit or such method. As this pdf should be generated and saved automatically after every form submission, I guess the preferable method would be to call a service or such to generate the PDF and then save it on the server. Can you plz give me a walk-through.Thanks in Advance.
I'm working in PHP.
Here is the pdf docs from php.net. It's all there for the taking. Good luck!
PDF - Manual
I am about to embark on the same journey as I need to create a script to turn a document into a .pdf file using PHP. I don't know a lot about it yet, but it does seem possible. Try this link for starters...
http://www.sitepoint.com/generate-pdfs-php/
I am new in flash. I am willing to make a customize avatar for a registered user where the accessories will be save in a database. The item will be pulled from database to flas and after the user finished creating his avatar this will be save in the database. I mean my avatar application will be as like as farmville avatar customizetion using flash,php and mysql. I am fadeing up to find this solution. Please help me!
The solution depends on how big your editor will be. There is a nice example of an avatar editor made by Senocular that you can find on Google Code:
http://code.google.com/p/myavatareditor/
This should get you started with the flash part. I recommend that you parse the selections made in the editor and save it as a string or maybe JSON. This will make it easy to add extra features later. When the user login the next time you just load and parse the saved editor data from the database and build the correct avatar.
EDIT:
Find out how to use AS3 with PHP and MySQL:
http://www.gotoandlearn.com/play.php?id=20
I wrote on my blog not too long ago a post about how to store Jpg images on server from Flash ActionScript3. It's all in Spanish (except for the actual coding, of course), but maybe with Google Translate (or some other translation service) you'd be able to follow it.
The steps are:
1) Use BitmapData.draw() on the MovieClip (in your case, the customized avatar)
2) Using JPGEncoder, store its binary data in a ByteArray
3) Send the binary data to PHP with URLRequest, URLLoader
4) In PHP script, receive the binary data and do whatever (fwrite it to a file to store it as a image file, or store in a database as a blob)
5) Profit!
Hope this helps!
How would I go about taking a picture from a video capture card or webcam? Should I use flash to do this? I want to submit the picture via a php form and upload it to my webserver and place a link to it in my MySQL database. Is there a flash app already built that I can use to perform this?
try this:
http://code.google.com/p/jpegcam/