Open A Picture In Flash
I'm building a photo database with php and mysql. After a search the result is displayed with thumbnails. When I click on a thumbnail the picture gets bigger.
I need a way to protect the large pictures from beeing downloaded. One idea I have is to use flash to show the large picture. But how do I do that from php? Or is there better ways to protect the pictures?
View Complete Forum Thread with Replies
Related Forum Messages:
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me. I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either. // random_menu.html <head> <?php $i = rand(0,3); ?> </head> <body> <a href = "www.x.com/random.php?i=$i">x</a> </body> --------------------------- // random.php <head> <?php $i = $_post["i"]; if ($i = = 0){ $value = "a"; } else if ($i = = 1){ $value = "b"; } ...etc. </head> <body> <object> <param name="movie" value="$value"> <embed src="$value"></embed> </object> </body> Please help if you know how to do this.
View Replies !
Set The HTTPS Username And Password Using Php/flash And Then Open The Secure Page.
My hosts allow secure https logins on specific directories. What I want to do is have a login screen in flash, if the user enters the correct username and password I would like to set the HTTPS username and password using php/flash and then open the secure page. In my mind at this point they'll be logged in and then can navigate the secure page without seeing the browsers https login dialog. Am I kidding myself, or is this possible? They're config is the following: PHP Version 4.3.11 4.9-STABLE FreeBSD Zend Engine v1.3.0 Apache/1.3.33 (Unix) PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.7c FrontPage/5.0.2.2635 mod_throttle/3.1.2
View Replies !
Open On Open / Save Box Dont Work With Download Script
I have a download script. I'm storing files above webroot and using download script for making files available for download to users. Now the problem is that when file download open/save dialogue box comes... if the user clicks on save they can save the file and then they can open it without any problem . But if they click on open then they can't open the file. It says file path not found or there was some error file could not be open.....
View Replies !
GD To Take Picture>?
Hey say i'm running a script x.com/getpic.php is it possible through GD -or- some other script to take a picture of x.com/home.html bascially want I want is a picture of what the html page looks like, weather thats taking a picture of it, or "rendering" the html on the fly in the script then outputting a picture? I don't know. If anyone could offer up some advice, and if it could be done that would be awesome.
View Replies !
Picture
Anyone can help or point me in the right direction on how to use variable in url, to make all images on that page whatever the ratio would be, like for instance 3:1 or 2:1 or whatever, i hope i explained that good enough
View Replies !
Cut Out Picture
My problem is the following. I am trying to write a function that will cut out a fixed-size piece from the CENTER of an uploaded picture. However, my function seems to always cut out a piece from the bottom right corner of the image (filling the difference with black), although the image itself is rather large and the coordinates are given. Code:
View Replies !
Printing A Picture
I have some if statement where I want have a picture show instead of echoing text. The picture will be saved in another area so just doing the regular "picture.gif" will not work I will need to do the entire address.
View Replies !
Website Picture From PHP
does anyone of you know a save method on PHP to relyably, maybe using other programs create scrennshots (thumbnails) of websites? I am the administrator of the open source project (at SourceForge) "TSEP - The Search Engine Project" (http://tsep.sf.net) and we might want to show pictures of the website our search engine has found. The generation process of the thumbnails should be pretty automatic (as much as possible) My tries to find an "optimal" solution did not bring any good results yet, so I am hopeing for better information here.
View Replies !
Picture Gallery
I don't know if my question is out of topic...so I apologize if I am. I use the coppermine picture gallery for my web (actually I want to use it but the server doesn't seem to have GD running but I will beg them to activate it). How can I actually find out if GD is installed? I tried to use phpinfo() and I searched for a GD entry, but no one was there, so can I be sure, that GD isn't installed? (Because the admins of the webhosting told me that it IS installed.) But the actual question is: I've got an old web gallery with descriptions of the pictures. I'd now like to transform this into the new gallery - I don't mind uploading the pictures again, but I am really horrified by the idea of entering all that description text again for all those pictures. So I was asking myself, if it was possible to take the descriptions somehow out of all those html-files and insert them automatically as comments (the coppermine gallery is able to receive comments to the pictures) to the coppermine picture gallery. Do you know if there's a way to do this or is it just impossible? The text could, instead of as a comment, also just be added as text below the picture (I'd even prefer this solution). The original html-files are just very simple (some thumbnails, then the picture, below the text...).
View Replies !
Work With BIG Picture
i have a script where you simply upload a picture and with $image = imagecreatefromjpeg create an object to be able to work with it. If i upload small picture ( less then 2M )it work fine and i'm able to resize crop end save but with bigger picture php generate and error of memory_limit on the line where is "$image = imagecreatefromjpeg($_FILES['imgfile']['tmp_name']);" my php.ini memory_limit is set to 40M; i have to be able to upload jpg on hight resolution up to 5-6 Mb
View Replies !
PDF To Create A Picture
Hey is there a way to create a picture of a PDF? Such as a user uploads a PDF. Then I want to display the first page to the PDF as an image. How would I do that without creating an image with photoshop or such like program?
View Replies !
Watermark On Picture
I currently have this code which works and adds text on top of the pictures when they are generated. However it is hard to read and the color is not the same on all of them. How could I make a small black box to go behind the text? PHP Code:
View Replies !
How To Know If A Picture Exists Or Not
im trying to get custom pictures on my website based on how the user was directed there. i.e. if he clicked a link that says www.mysite.com/index.php?key=Gears%20Of%20War i use key to find "Gears of War.jpg" and display it on the page. Alot of the links that visitors may click will not have a picture designated for them, so i want a default picture to show when "Gears of War.jpg" does not exist. im assuming i need an if statement of some sort. How exactly would i go about doing this?
View Replies !
Cannot Upload Picture
I cannot upload pic!!!! It was ok on php4 when I used phptriad. but I am now using php5 with apache mysql5...and the same code doesn't work.
View Replies !
Get Picture From My Email
I wrote a code that connect to my mail box in gmail and draw specific picture from specific message with the function imap_fetchbody. After I did this, how can i show this picture(without save it)? this is my code: ....
View Replies !
Insert A Picture In Doc
I want save a html(or php script) into word format,this word document must have pic.if am tring to save a text or picutre only its perfect,but tring to save both picture and text,it's dosn't work.what am do?,(if possible in com pls sent code,and it's save with html format not in text).
View Replies !
Picture Slideshows
I'd like to create two simple slideshows. A slideshow that automatically cycles through say 20 pictures on the homepage of a website, with some kind of fading effect or something that makes it look smooth. A classic slideshow where you click forward/backward. Maybe someone has implemented a script from somwhere on the net already and has a link? I'm not sure if these solutions even require php. I know I could achieve both in flash 2004, but I'd like to stay away from that because some people might not have the plugin.
View Replies !
Browsing For Picture
i have a varchar field in my table.. it's for the picture file name.. in my form, how to show browse button and let user to select their picture through directories.. and the location address goes to my field..
View Replies !
BLOB (picture)
how to download image/picture from some website and save it to mysql database with blob datatype, i am using php&mysql . Other website : PHP Code: <html> <body>   Test Code   <img src="/images/aaa.gif"> </body> </html> How can i save an image from some website to variable php and then save it to database mysql with blob data type.
View Replies !
Picture Management
What I need to do is when I upload a new record to mysql database i need it to upload 7 pictures to a folder in /images/"ref no"/ .and then rename from a to g. I also need thumbnails to be created called as to gs (a small to g small). It would be great if i could get a program to upload them, resise them, rename them and create the thumbnails automatically, but the essential parts are uploading them to the folder and creating the thumbnails. What is the best way of doing this?
View Replies !
Loading Picture
How would I load a picture from another server to my server, then echo the result? I know it has something to do with the ImagePng() function (my server supports it). Also, can someone show make me a preg_match() function that replaces all URLs for jpg, png, and gif images so that it appears as: http://www.johninteractive.net/proxy...ge.php?url=URL OF PICTURE
View Replies !
Picture Galleries
I tested several picture galleries now but I didn't find anyone I like. It should be very simple (just login and upload) but it should be able to rezise pictures. You specify a value for the max height and max width and depending if the hight or width is more the picture will be rezised so that it fits into the gallery thumnails even if it was taken 90° rotated. Is there such a script available somewhere?
View Replies !
Picture Uploads
I have a form in which I want people to insert info and then add some pictures. All of it is to go into a mysql database so that later I can present it later in a different format. My problem is that I can't seem to merge a standard uploader in with the form I have.
View Replies !
Moving Picture
I want to write a script to move a picture from left to right on the screen, but it must move gradually and depending on the date or time or even days of the week.
View Replies !
Upload Picture
my code $uploadFile1 = $uploadDir . $_FILES['photo1']['name']; $photo1=$_FILES['photo1']['name']; $uploadFile2 = $uploadDir . $_FILES['photo2']['name']; $photo2=$_FILES['photo2']['name']; how do I actually do the upload - and how could i set the variable of photo1 to be null if the user did not upload the picture. (and same with photo2 -- I actually have 6 and they are all optional - -meaning they don't need to be uploaded)
View Replies !
Chmod Picture
I chmod my pic directory to 777, however, whenever I uploaded my picture to that directory, the pic always cannot be displayed, and then I chmd the picture to 777 then I can display it. but this is so inconvenient, is there a way that i can automatically chmod the pic to 777 while I upload the pic to the server.
View Replies !
Date Picture Taken
"Date Picture Taken" summary info from a jpg file? This info is provided in WinXP (and maybe other OS) when you click properties, summary, advance for a jpeg file. PHP has the filectime, filemtime, and fileatime; but I looking for the orginal date the picture was taken. Sometimes we modify the picture size and this causes the created, access, and modified times to change.
View Replies !
Displaying A Picture
ok first there are 2 php files, one of which is called nav.php while includes the navigation bar of the site. I embed it with readfile('nav.php'); into another php file which is the actual content. Within the nav.php I have the following code:
View Replies !
Selecting A Picture
I have a search script for my databases and I want it to be able to get a certain picture from a folder on the server that is relevent to its country and type. For example if someone selects germany and news it should gather the germanynews.png pic. Code:
View Replies !
Picture Navigatioen
Making a simple gallery, and when showing an image, i would like to have two buttons; next and previous picture. But i can't find out how to do it. This is my table: Code:
View Replies !
Show Latest Picture
I'm trying to show the latest picture uploaded, similar to a picture of the day, but not I'm going to name picture files 001.gif 002.gif 003.gif etc, but what I want to do is get a list of the pictures in a directory and show the one with the highest number.
View Replies !
Sort By Date Picture Taken
I am displaying a bunch of pictures on my website and I would like to sort them by a Date Picture Taken key. I have looked into exif data and I wrote a little code that just prints all the keys and their contents. Code: $file = "MyPicture.jpg"; $exif = read_exif_data ("$file"); while(list($k,$v)=each($exif)) { echo "$k: $v<br> "; } For date picture taken, All I get is: FileName: MyPicture.jpg FileDateTime: 1180959961 .... ExifVersion: 1220 DateTimeOriginal: DateTimeDigitized: CompressedBitsPerPixel: 892484151/3289658 .... nothing as you can see. Here is the info from phpinfo about my exif setup: exif EXIF Support enabled EXIF Version 1.4 $Id: exif.c,v 1.173.2.5 2006/04/10 18:23:24 helly Exp $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF When I download the jpg, I can view/sort by the date picture taken using Windows Explorer. Does anyone know why I am not seeing the DateTimeOriginal information? If anyone knows a better way to sort by Date Picture Taken On, I'd love to hear it. Windows can do it so it must be in there somewhere.
View Replies !
View The Picture Before Save
when i upload the picture.. is there a way we can let the user to view the picture which they just browsed before they upload>?? e.g. user need to upload 3 pictures... so when user browsed the picture... usually what we get is just the path name...instead.. i wan to view the picture and the path... but these picture are not yet upload to the folder.
View Replies !
Php/gd : Can Not Create Dynamic Picture,
I am trying to draw curve with data stored into an array. I am working with linux mandrake 8.1. I succeed to create a png picture with a grid, and the two axes the problem is, I can not input and create curves from data calculated from previous calculation from a php script. I obten no compilation message error, sometime a blank page without the picture when I try to call data stored into an array a call to a mysql data can you provide me a little script to do dynamic pictures from an array on the internet example jpgraph they inpout a static array but not dynamic data.
View Replies !
Download A Picture By URL. What's The Best Method?
I want to enable visitor to upload picture to my server, or simply provide an URL of that picture. Upload is easy and how to program with "Download by URL"? For example, a visitor provides "http://www.webmasterworld.com/ax/dlogo.png", how can I download this file to my server via PHP and handle all errors?
View Replies !
Modify The Picture Resolution
I tried to reduce the resolution of an image from 300dpi to 72dpi but I didn't succeed ... I can use the imagecopyresampled() function to modify the width and height of my image but I can't modify the resolution.
View Replies !
Best Way To Get The User To Select A Picture.
I have a web site where the users can propose articles to be published. But in the form the user can also send me a picture to illustrate the article they are proposing. Now I want to offer them 3 choices, either the picture comes from their machine, from my an image directory in my site or from the web. For the image from the web they must provide the URL as I don't think I can offer them a way of browsing around the internet. Now I have a couple of problems :), How do I create a popup box to allows them to browse their machine and then upload the selected file to my server. How do I copy the file from the web to my server, (is it legal?) How can I limit the file type, (only jpg and gif for example), and check that the file is 'safe'? How can I limit the size of the image, (in kb)? And last but not least how can I allow them to select an image from a predefined directory? I was thinking of displaying all the images but I can become a problem once I have quite a few.
View Replies !
Picture Upload Function
I am attempting to provide a free website that is user friendly for those who want to publish websites and are not so good at content mangement, I have a file "picture.php" that I cant get to post to the images dir, the delete function pulls file info but will not delete, the browse function pulls fine but will not upload, I have checked paths and permissions to no avail, here is the code:
View Replies !
Picture Gallery Loop
I need a picture gallery, probalby (even better) based on admin/avatars.php. It needs to have 4 modes and will be used for my portfolio. The thing is - there must be a seperating slash used as shown in these examples, can it be done (I know the way I did is wrong, but at least it works in mode 2) PHP Code:
View Replies !
Picture Of First Frame Of A Movie
Can any one let me know how can I capture or save the picture of the first frame of a video movie. Actually I want if some one uploads a video to my website then I also want to show the thumnail of that movie so want to show the image of the first frame of that movie....
View Replies !
Mail() & Attaching Picture
How can i brows for picture on disk and then save it into array for mailing ? ------ "Half-brother in blood, full brother in heart will I be. Thou shalt lead and I will follow. May no new grief divide us."
View Replies !
Upload A Profile Picture
I have just added a section to my users profile page where they can upload a profile picture, the problem is that when i use the html code: <form method="post" enctype="multipart/form-data"> it will only upload the file and not upload and post to the database, if i use: <FORM method="post"> it will post the file name to the database but not upload.
View Replies !
Converting HTML To A Picture Using Php
I have a tutorial section on my forum with tutorials on photoshop, imageready, apophysis and stuff like that. The tutorials have pictures and text and I want people to be able to be able to post the tutorials on their forums with ease, but not in text format. I want them to be able to use a dynamic url that will use php to convert the html page to an image, with an anti-rip watermark in the background. How would I go about converting the html to (and the pictures) so that the person can make this image. I don't know if I'm explaining this well enough. Basically, I want the person to be able to post an exact replica of the tutorial in picture format.
View Replies !
Picture Saving After Resize.
I have created an image resizing script, and am having trouble saving the resized image to the server. imagejpeg($image_resized, $imagelocation);should save the image to where I designate $imagelocation as, but it doesn't. Should i use fopen instead? Also, is there any way i can make it so this script scan folders and apply the script to certian files in them? And why does my script not work when I say open_image($picture); when picture is defined as $picture = 'flower.jpg' Code:
View Replies !
|