How can I share image between two websites? [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 3 years ago.
Improve this question
Two websites are running on one server, so let's say it A.com and B.com. Their document root directory is different of course. The problem is when I upload image on A.com, I should show it on B.com too.
How can I solve this?
I don't want to link from one site to another. I should use image in generating PDF and link is not working.

Just use full path in your code!!! It must work or check permission.

Use the url's for both site example if u you need an file from a.com in b.com just call
a.com/your_file_path
Let me know if there is any confusion

Related

how to prevent video download by user in php [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 2 years ago.
Improve this question
I hope you are fine
I want to write a simple php code that the user cant download the movie like youtube site and can only see, I came across a series of results such as hls, ffmpeg, rtmp in my search, but I do not know which one is useful or has a library for php at all or not.
Thank you for your time.
It’s not possible. The server can not differentiate between “downloading” and “playing”.

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.

Understanding about profile page url on facebook [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
Why url for profile page on facebook is like
https://www.facebook.com/username
why not like
http://www.facebook.com/profile.php
Is the the profile page is stored within every username dir ? or something else ?
please clear my doubt and please explain how this type of url for profile is generated ?
Thanks in advance
This all about url rewriting using .htaccess file from the root of the almost all webservers.
The .htaccess file can transform facebook.com/profile.php?p=00012345678 into facebook.com/00012345678!
Try to search on Google about url rewriting, this can help you alot! :)

How to add webcam feed to my webpage [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 8 years ago.
Improve this question
its me again.. is it possible to take webcam stream and add it to webpage? I checked page source. looks like it creates image in folder on their server
(http://www2.hak.hr/rmt/?l=135) is it posible to get that image to my webpage? Thanks anyone for help
You can embed the image with something like this:
<img src="http://www2.hak.hr/hak_webcam/cam.asp?id=22" alt="img"></img>
You just have one problem when the image adress is changing you have to do it too! To prevent the embed from another site it seems like they are adding as url parameter a timestamp.
As you can see they have a copyright on this so you aren't allowed to embed it.

PHP website file transfer [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 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

Categories