PHP website file transfer [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to build a website with PHP where my users can host their music files on my server. When my users log into my site, they are presented with a file directory of all their songs, and can drag and drop to add new ones to their collection, delete old ones hosted on my server, rename them, stream music, download it, etc, etc.
My question is this: what is the best way to facilitate this file transfer/showing directories/all stuff mentioned above? FTP? HTTP requests? Speed is key for me. Suggestions?
(And if you might be able to point me to a framework to start with in your response that would be really cool too)

javascript, jQuery, php's opendir();, php's readdir(); with combination of ajax
for streaming, flash player

Related

Show images and play videos without allowing copying, or downloading [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any way to display images and / or videos on a website and not allow visitors to download or copy them?
I once saw a website where I tried to download an image, but then it was impossible to open it on my computer because the file type was not recognized on my computer!
Is there any way to encode the files, maybe?
Thank you all.
If you can show the images and videos in a browser, they will always find a way to copy these. You can't have the cake and eat it.
The only thing you can do is to make it harder for the newbie.

What's the difference between watching and downloading from a developer's perspective? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What's the difference between watching and downloading from say, YouTube, or just about any other website with the similar nature?
I'm curious if I could determine if someone is just watching the content or downloading it (through some plugin/application grabber) from the player I provided on the website I wanted to create.
Does data transfer from point a (host) to point b (client) differ from downloading and watching?
Unless you check the speed of transfer of file, I don't think even that will allow you to check if the user is downloading or viewing. Browsers usually download and buffer. Technically, this is impossible to detect.
The browser request is the same as buffering request or download request. Hence, it is not possible to detect.

How to post a picture from iPhone app (in Swift) to MySQL database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to have users upload on imagine on the app I am developing for a class with Swift and posting it to my MySQL database with PHP but have no idea how to do this. I cannot find any sort of source code online for this and am at a loss for trying this myself.
Does anybody know how to do this?
Though you can technically store images in a MySQL database, it's really bad practice.
Instead, you'll want to store the file in a disk directory. Since this is a broad question with an almost limitless amount of ways you could achieve your goal, here's one suggestion:
Send the file as POST data to your server.
Store the file using PHP.

How to block upload adult or nude image? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a problem to uploading the image.I have to validate the image in which adult or nude image is not upload.
You can use online services like the WebPurify Image Moderation Service. or try nudity detection service at Github or use Googles' Nudity detection service.
At this point in history the task of reviewing images needs to be done by humans, as photos are infinitely variable in content (and software is not that smart).
Depending on your website, you are better off with a peer-review system. That way you offload the small amount of work, per-image, onto your users.
Basically do not display new images until they have been reviewed by another user and offer some form of minor reward for reviewing images (fictional point systems, like SO, seem to work well) :)
You will also want to keep a reliability score for reviewers, so that if they pass invalid images, that are later reported as violations, they lose the ability to confirm more images.
You can use this one for nude:
PORNsweeper
http://www.dansdata.com/pornsweeper.htm

database on php only server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to create a site with a tiny CMS, the problem is that there is only php installed on the server.
The site will mainly consit of two pages the user page and admin page. On the user page there is to be a bunch of checkboxes which when checked will do some math(not the problem I need solved). On the admin page you need to be able to add the checkboxes and assing them their values.
My approach was to read and write to a XML file that contains the data instead of a database. I have run into a lot of problems trying to accomplish this, and I am looking for some good ideas for how it can be done, or alternatives.
Thanks in advance.
You can use sqlite as database engine. This way you also create a portable version of your application and by using PDO you could always switch to another database engine later on.

Categories