Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Willis
How do I stop people downloading files from my server?
I am making a site which will have music playing on the site using HTML5 <audio> tags and was wondering if there was any way to protect the files from being downloaded?
I am calling the music file through PHP and if needed it selects an OGG file for browsers that don't support MP3.
The actual files are inaccessible to the public but the PHP file can be downloaded and played.
I was wondering if there was anything I could do which would stop people downloading the file but allow it to be played through the <audio> tags?
4 AnswersProgramming & Design9 years agoPHP $_SESSION being called by regular variable?
I have a code that stores data into a variable then sets a session with a md5 hash of the data, plus salt: (I use it to generate characters for captcha)
<?php
session_start();
$code = strtoupper(substr(md5(uniqid(rand())), floor(rand(0,26)), 6));
$_SESSION['code'] = "1s3LK" . md5($code) . "aDB2";
echo $code;
?>
On my localhost, the code returned is a 6 character code.
On my actual webhost (Hostgator), the code returned is the session data.
Is this a known issue, a problem with my code or should I contact my webhost to find out what is going on?
To counter it I have had to change the name of the session variable but I'd rather not do that!
1 AnswerProgramming & Design10 years agoHow to use variables in JavaScript dot syntax? (with JSON)?
Right say I have a json file:
json = {"object1" : [{"item1": "value1", "item2": "value1"}, {"item1": "value1", "item2": "value1"}],
"object2" : [{"item1": "value1", "item2": "value1"}, {"item1": "value1", "item2": "value1"}],
"object3" : [{"item1": "value1", "item2": "value1"}, {"item1": "value1", "item2": "value1"}]
}
The values are irrelevant, and an array:
arr = Array("object1", "object2", "object3")
How would I use the values in the array to select the corrosponding value in the JSON?
I tried json.arr[0].item1(etc...) as that'd be the only way I can think of doing it but it didn't work.
The object names are put into an array via a for loop on the json file.
2 AnswersProgramming & Design1 decade agoWhere can I find web hosting that supports the PHP Imagick class?
need a UK based web host that has support for the Imagick Class as documented here:
http://php.net/manual/en/class.imagick.php
No web host I have contacted will confirm they have support for the class and I need it to enable my clients to upload and resize .tiff files to create thumbnails and convert the files to .jpg for the gallery but keep them as .tiff files for printing / downloading from the server.
They MUST be UK based.
4 AnswersProgramming & Design1 decade agoWhat questions should I ask for my market research? (Web Design)?
I'm trying to set up a web programming/design company (building my business plan to apply for funding from various sources) and I've hit a stumbling block: I have no idea what questions to ask for my market research (I have a few ideas but no actual certain questions).
Anyone who can give some suggestions that I use will be greatly appreciated!
Anyone who gives me advice about what the companies that give funding to businesses are looking for in market research will get best answer.
2 AnswersOther - Advertising & Marketing1 decade agoWhat is the best way to promote my band online?
I'm in a punk/ska band from the UK and we're doing alright but I want to push advertising on-line further but have no idea how to go about it.
We have our website ( http://loudmouthbaby.co.uk/ ) which is currently pointing to our myspace profile until the website design in finished. We're also on Facebook, ReverbNation and Twitter but I can't seem to get people to take notice.
What is the best strategy for advertising a band on-line?
5 AnswersOther - Advertising & Marketing1 decade agoHow would I go about creating my own web programming language?
Firstly I don't want to be told why not to write another language... Even if I never use it I want to be able to just learn how to do it.
So how would I do it?
Ideally I'd want to create a Server Side language which can be run from the Client Side too with constant small data transfer updating the page (kind of like AJAX / PHP but where the Client Side code actually executes on server, or the server allows it to execute in the clients browser, either way the clientside code directly executes on the server (again I don't want to know about security or anything, I just want to know how to do it))
Does anybody know any sites that can teach me how to do this or can anyone help me themselves?
3 AnswersProgramming & Design1 decade agoWhere could I buy an Dynamo / Alternator for an experiment?
I am going to start experimenting with generating electricity using different methods (mainly using wind) and was wondering if it was possible to purchase a Dynamo / Alternator to do the work?
Where would I purchase the item(s) and would they easily be modifiable?
The aim is simply to gain more understanding of how the whole thing works by experimenting but it would be nice to make something useful.
2 AnswersEngineering1 decade agoIs there JavaScript code to select a portion of an image for a thumbnail?
I'm working on a website for a photographer and have created a php upload form which processes the images using Imagick, resizing the image and saving it to the gallery, while adding the image name (generated using md5) to a MySQL database.
When the image has been uploaded the photographer can then set an image title, description and specific gallery for it to go into.
I want the photographer to be able to select a square section of the image (preferably resizeable) on this page and click a *Create Thumbnail* button and it process the image in Imagick, cropping to the selected proportions. Would it be possible to use JavaScript to get the start and end coordinates for the thumbnail and send it to the php code on the form submit for processing?
How would I do this? Any tutorials are preferred but if you have the code handy it wouldn't hurt :)
2 AnswersProgramming & Design1 decade agoIs anyone else sick of people asking for free programming and designs?
Are people not aware that Yahoo! Answers (programming and design) is to get answers for your problems and help with YOUR coding? I'm glad to offer help but do people SERIOUSLY believe that I'm going to write their entire site for free? If I did that I'd be bankrupt by now...
3 AnswersProgramming & Design1 decade agoHow can I learn how to sing again?
Right I quit smoking over a year ago and since then I've lost my singing voice. I can't even hold a note consistantly and basically I can't control my voice very well any more. I was wondering what I can do to get it back (without smoking)? I could sing before I started smoking too, just since I stopped it's totally gone.
4 AnswersPerforming Arts1 decade agoWhat towns and cities should I include for my UK mailing list?
I'm making a UK mailing list for my band and want people to be able to select their nearest city for targeting purposes (for shows and tours).
What towns and cities should I include?
If you can, please include a full list.
2 AnswersOther - United Kingdom1 decade ago