I don't think anyone under 60 would be offended by the word
Especially when it was in reference to the minimum word limit on posts on these forums.
User Profile
Collapse
-
-
-
any help?
**** word post limit.Leave a comment:
-
Okay well I removed the image path from the database entry, but I couldn't work out where to put the path in the code..
in Content-Disposition? or..
[php]
$filename = $_GET['id'];
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false) ;
header("Content-Disposition: attachment; filename=\"".ba sename($filenam e)."\";"...Leave a comment:
-
No neither octet-stream or application/octet-stream worked,
& Just realised I made a mistake earlier with what the link ends up as,
it's actually this,
[html]www.***.com/photos_download .php?id=images/photos/France%20-%20Paris%20-%20Eiffel%20Tow er%20-%20Day%20-%2001%20-%20full.jpg[/html]Leave a comment:
-
-
Hmm, okay, I'm sure the fact that didn't work has something to do with my poor attempt at it,
Here's the link that tries to start the download,
[html]
<a href="http://www.***.com/photos_download .php?id=<?php echo $photo_full; ?>" target="_blank" >
[/html]
and here's the PHP code on the download page,
[php]
$filename = $_GET['id'];
header("Pragma: public");...Leave a comment:
-
-
Great, thanks, I'll give this a whirl when I've got a bit of spare time.Leave a comment:
-
-
A clock on my web page that shows the time where I am, not the user?
I'd like to put a clock on my web site, that shows the time where I am, not where the user is.
I found a regular clock with google, that shows the time of the user's system clock, so I thought it might be able to be tweaked to show the time where I am.
I live in the UK at the moment, so right now we're on UTC+1. But I travel around a fair bit, so I was wondering if i'd be able to have the time zone it is displaying coded in... -
Code to download an image without having to right click a link?
I was wondering what I would need to do to make a link, when clicked, download an image with the Save As dialog box, instead of just loading the image inside the browser.
I know that MIME edit would be able to do this for my browser, but I want it scripted into my web site, because I can't tell all of my users to edit their browser's settings
I don't want to have to right click the link & click save as,
and I don't... -
-
Code to download an image without having to right click a link?
I was wondering what I would need to do to make a link, when clicked, download an image with the save as window, instead of just loading the image inside the browser.
I don't want to have to right click the link & click save as,
and I don't want to have to zip the file.
I originally posted this in the HTML section, and was told to post here - http://bytes.com/forum/thread790863.html -
-
Code to download an image without having to right click a link?
I was wondering what I would need to do to make a link, when clicked, download an image with the save as window, instead of just loading the image inside the browser.
I also don't want to have to right click the link & click save as -
Works perfectly, thanks
Here's the finished php for anyone interested,
[php]
$videoUploadDir = '../video/';
$imageUploadDir = '../images/';
if(isset($_POST['upload']))
{
$title = $_POST['title'];
$content = $_POST['content'];
$image_number = $_POST['image_number'];
$imageName1 = $_FILES['image1']['name'];
$tmpImageName1 = $_FILES['image1']['tmp_name'];...Leave a comment:
-
Yeah, when I uploaded 1 image, and it came up with "Unable to move to ../images/."
But when I uploaded 5, it all worked.
So how would I then prevent this from happening when I don't upload all 5, because I wont be nearly every time.Leave a comment:
-
No activity results to display
Show More
Leave a comment: