Having issuses with getting a flash video to play - php

I am building a site with a flash video embeded on the home page now.
It works fine on my local server using WAMP.
But when I upload it it seems to lose the div that I have embeded the video in altogether.
I have never had this problem before when i have used swf. now im using a .flv
So I have no idea really unless I have forgot to upload somthing.

You need to make sure the path is correct relative to the html document's locations that the flash file resides on

Related

How to insert an external image link to dokuwiki?

I want to insert an image to dokuwiki without uploading the image to the server where the dokuwiki is hosted, like <img src="http://cdn-domain/xxx.png"> does.
How can I realize it? I have tried {{http://cdn-domain/xxx.png}}. However, it will use fetch.php to use my server as a proxy which will burden my server. Since my images are stored in an external cloud storage service, I want to direct link to the image like <img> tag does.
As I replied to your cross-posts on DokuWiki's forum and GitHub issues:
It is currently not possible to use external media URLs and have them used directly. But as I wrote in the forum:
The "burden" to your server is extremely minimal as the proxy does not download the image itself, it only redirects to the original image (unless you changed the default fetchsize config option).
This is one of samples. Important thing is that at the end must be an image extension.
{{http://kalsey.com/tools/buttonmaker/button.php?barPosition=50&leftText=Dynamic&leftTextColor=ffffff&rightText=IMG&rightTextPosition=54&.png?}}
More details here: https://www.dokuwiki.org/images#dynamic_images

Saving uploaded media content

I'm making my own website using html and php, and a database using mysql on localhost on a easyPHP server. Users can make an account and upload videos on the site.
I'm wondering if it would be possible when they upload the file, it would upload the file to youtube and I can just save that link in my database. Then on the content page I could just use that link to show the video in an embedded player.
If that's not possible, what would be the best way to save the content in a folder on my PC?
Thanks
Yes, Youtube allows uploading video files directly to Youtube's servers, bypassing your server.
This page documents it pretty well: https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading

Upload an image using a URL in Codeigniter

I went through the tutorial to upload an image in Codeigniter with the Upload library, but I was wondering: Is it possible to upload an image using a URL in Codeigniter?
Yes, it's possible. See the answer on this question: Saving image from PHP URL.
If you're going to go the cURL route, see the CodeIgniter wiki entry: http://codeigniter.com/wiki/Curl_library/
If I understand your question clearly;
I think Upload a file using URL isn't a properties of Codeigniter or any other technologies. It's about operating system.
For example, you have a upload system with generated by PHP and Codeigniter. When you click Browse button, you can select an image in your computer or you can write an image link hosted on the internet. When you insert an image link, operating system generate a temporary path source (with your image) in your computer. In Windows, this could be C:/Temp folder. Then you can upload your image which you insert its' link.
File Uploading Class
Note: My english is off. Sorry for that.

Linking remote files issue

I am placing href links to remote files for download simple as this with ajax:
Link
but it opens in new window and cuts off http:// and returns not found error, although if i refresh the page it will start downloading the file.
Maybe i could specify the content type and pass with header somehow but i dont want to pass the file through my server, it should download it from remote link.
Hope i could explain well.
Thank you.
sounds like the remote site has some protection against hot linking.
Are you certain that the link is correct? Try testing it externally first using an online flash player such as http://www.flvplayeronline.com/ . If the video plays then as #EvilSpaceHamster stated it could be a permissions issue on the server. I noticed you stated download? Is this a requirement or do you just want to grant the user access to view the file?

Code for downloading video files

I am working on a project and was wondering how the code for downloading video files is like. I have an idea but it is half of the bigger picture.I am coding in php and jquery.
Simply link to them in either PHP or jQuery and then visitor to the site can click to download them; this is complicated by the server/client model of served pages, in that you're trying to get the client to download the videos, not the server.
Also, if their default viewer is something like Windows Media Player, this will manage the downloading for you/them.
Unless you're talking about embedding the video into the page and streaming the content when the page loads, or an event is fired (jQuery, etc)?
Hope this helps.

Categories