All Questions
313
questions
83
votes
6
answers
225k
views
How to embed images in email
I need to embed an image in e-mail. How do I do it?
I do not want to use third party tool, nor am I interested in language specific answer (but it is PHP, in case you are wondering).
I am merely ...
69
votes
7
answers
156k
views
Can I embed a .png image into an HTML page?
How can I embed a .png file into a blank "file.html" so that when you open that file in any browser you see that image?
In this scenario, the image file is not linked to from the HTML, but ...
68
votes
12
answers
63k
views
Embedding youtube video "Refused to display document because display forbidden by X-Frame-Options"
I'm trying to embed a youtube video on to my page once the user gives the link to the video.
<iframe width=\'560\' height=\'315\' src='http://www.youtube.com/watch?v=<video id>&...
24
votes
3
answers
58k
views
How to embed images in a single HTML / PHP file?
I am creating a lightweight, single-file database administration tool and I would like to bundle some small icons with it. What is the best way to embed images in a HTML/PHP file?
I know a method ...
13
votes
2
answers
15k
views
How to embed Youtube live chat with url permanent?
The embed URL for a channel's live stream is:
https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID
and it works but if I want to embed near at it a YouTube live chat for current streaming ...
10
votes
2
answers
27k
views
Show PDF file on webpage as Carousel with each page as a separate slide
I am facing a challenging assignment - create a slider carousel which will be displaying separate pages of a single multi-page PDF as a separate slides on
webpage. Check out the image below to get the ...
10
votes
3
answers
46k
views
How to embed instagram profile?
I have found literally hundreds of ways to embed instagram gallery in a website, but what I need is to embed the whole profile, t.i. if you look at this profile for example: https://www.instagram.com/...
8
votes
2
answers
20k
views
How can I track a click event of an embedded video (youtube, vimeo, etc.)? (to track play count)
Is there a way to track play counts for embedded videos? Ideally without resorting to a thumbnail linked to launch the embed / iframe code.
Example (try it yourself on jsFiddle):
<!doctype html&...
6
votes
2
answers
5k
views
How can I use Perl libraries from PHP?
I want to use Perl libraries from a PHP application. I have heard that it is possible.
I have considered the possibility of re-writing the libraries in PHP, but I do not think that is a good idea ...
6
votes
3
answers
13k
views
How to embed image in phpmailer - I can't do it, why?
I am trying to include an image into my message in phpmailer. The following is my code, Mails are being sent but without the embeded image, instead they're appear to be attached to the email.
Not ...
6
votes
7
answers
43k
views
how to embed video in laravel code
I am working on a project in which I store youtube video links in a database and then I retrieve those links and using blade template engine i try to embed them into page. I use a loop to put videos ...
5
votes
2
answers
3k
views
How to embed phpinfo() within a page without affecting that page's CSS styles
I want to embed phpinfo() within an admin page. Keeping the sites navigation and styles. However, the styles applied within the function run amuck with the site's own styles (breaks navigation styles)....
5
votes
5
answers
415
views
How can I enable use of math in my html web page
I have a blog where people can post their comments. My problem is that I need to enable people to be able to use math formulas using latex syntax. I cannot make any changes to the server. I can only ...
5
votes
3
answers
19k
views
Display single latest instagram photo on your website
I am looking all over the web and can't believe I can't find an answer to my question.
I would like to display the latest single instagram photo on my website. simple as that.
No gallery, no fancybox,...
5
votes
0
answers
7k
views
How to autoplay embed google drive video?
I'have uploaded the video in google drive and trying to use the link in my website. The video should be auto-play. i have tried ?autoplay=1 and ?start=1 after the url. But video does not autoplay.
...
4
votes
4
answers
20k
views
How can I get video thumbnail of youtube and vimeo embed code using php?
I have a WordPress site in which I am inserting video embed code in the post editor. In the front end I need to show the video Thumbnail on click on them it will show the video in lightbox.
The ...
4
votes
2
answers
18k
views
How do I run PHP in HTML?
If I have a file, file.php, in the same directory as index.html:
file.php:
<?php
echo "<body><img src=\"hi.jpg\" /><br /><p>I was here</p>"
?>
index.html:
<...
4
votes
2
answers
8k
views
No 'Access-Control-Allow-Origin' error while embeding youtube video
here is my embed code:
<iframe src="https://www.youtube-nocookie.com/embed/x9pRNcoP1EU" frameborder="0" allowfullscreen></iframe>
here is the error in console
Access ...
4
votes
2
answers
3k
views
about:blank in src
I'm getting "about:blank" in my src=""
<form action="check.php" method="POST">
<input type="submit" value="POP2!">
<input type="hidden" name="video" value='<embed src="http:/...
4
votes
3
answers
2k
views
phpmailer auto include local images
I'm currently busy with phpmailer and wondered how to automatically embed local images in my email using a script. My idea was to upload a html file and a folder containing images and let a script ...
4
votes
1
answer
43k
views
Best Youtube embed player sizes?
I use tumblr to share videos and, unfortunately, when re-posting a video to your tumblelog it uses the embed code at 400x336px. This is neither widescreen nor very large.
So I'm trying to set the ...
4
votes
3
answers
9k
views
How to correctly embed image in html email
I have some trouble to correctly embed images in html/php email.
My .php file just sends out a few text emails. But I want a picture in there.
<img src="http://website/image.jpg"> works so far ...
4
votes
1
answer
2k
views
symfony 2.8: Invalid argument supplied for foreach() into Constraints/FormValidator
Using silex 2.0 and symfony 2.8 form component (not sf2 full stack), I have a form with several fields and an embed form.
When submitting the form, I got an error:
Warning: Invalid argument supplied ...
4
votes
1
answer
1k
views
Whats the best way to embed a video from Facebook's Graph API?
I am trying to show a video that's returned from Facebook's Graph Api. I have the source of the video which is either a YouTube video, Vimeo video, Facebook Video, or any other type of video that is ...
3
votes
2
answers
6k
views
Creating custom "html"-tags for CMS?
I am working with a CMS for a web app in PHP, that has the needs of shortening the process for inserting (embedding) stuff, like a video from youtube or vimeo by wroting the following, which are ...
3
votes
3
answers
17k
views
PHP: Embedding website into page
I want to call a website and embed it into a table cell. I have no problem getting the request for the site or the url from the database. But when I embed it, it jumbles it and puts it all over the ...
3
votes
2
answers
3k
views
WordPress auto embed of YouTube videos - adding filter to handle `end` attribute
WordPress automatically converts a YouTube URL in the content of a page/post to a embedded iframe video.
It respects the start parameter, if present, in the YouTube URL, but it does not respect the ...
3
votes
2
answers
8k
views
Get URL from IFrame?
I wanted to allow users to be able to add videos but I'm having an issue with one of the sites.
I will allow videos from Youtube, Vimeo, Vevo, Daily Motion and MTV.
The problem is for MTV. The URL ...
3
votes
1
answer
10k
views
JW Player not working in Chrome
Iam using JW Player in the website to play youtube videos. I have used embed code for that. It is working properly in all browsers when executing the file from my local diretory. But it is not working ...
3
votes
3
answers
1k
views
embedding flv and swf located outside webroot
I have a script that uploads outside of the webroot. Through the website I then link users to images documents etc.
So for an image the link would be:
media.php?file=nameoffile.jpg&user=userid&...
3
votes
1
answer
681
views
Youtube channel embed sizes
Ok so basically I used the following Youtube Chanel embed code:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=tomdesigner777&...
3
votes
1
answer
2k
views
Updated ways to embed a PDF file in a page, since 2008?
I just landed a big contract that includes embedding PDF pages on html pages. I found this question and answer straight away: Recommended way to embed PDF in HTML?
My question is this, is the answer ...
3
votes
2
answers
1k
views
YouTube video id change after some time
I embed YouTube live Video in my site with the help of its id.
It was working fine.
But after sometime i noticed the channel's id has been changed.
Is there any solution that i can keep Live Video id ...
3
votes
2
answers
976
views
Video working in Chrome but not Firefox
I can get videos to play in Chrome with the embed tags towards the bottom of the page, I have them commented out. Anyway, it doesn't work for Firefox and I can't find another way to get it to display ...
3
votes
2
answers
565
views
Dynamically add image in middle of story
I'm displaying a story on a website, I would like to dynamically add an image within the story, how could I do that?
I don't want to add it at the beginning of the story or at the end of the story, ...
3
votes
3
answers
2k
views
How do I allow video embed html safely on a site?
I have a php application in which we allow every user to have a "public page" which shows their linked video. We are having an input textbox where they can specify the embed video's html code. The ...
3
votes
1
answer
1k
views
How to embed Neo4j Graph in a webpage ?
I have been trying to embed the Neo4j Graphs that I am able to see in the Neo4j browser, in a web application.
I was initially taking reference from this website.
https://github.com/neo4j-examples/...
3
votes
2
answers
1k
views
php with mp3 header will not load (update/fixed)
test.php code:
$fileloc = 'audio.mp3';
header('Content-type: audio/mpeg');
header("Content-disposition: inline; filename=$filename");
header('Content-Length:'.filesize($fileloc));
readfile($fileloc);...
2
votes
3
answers
1k
views
How to offer code for others to embed your content into their html pages?
Maybe the answer to this question is less complicated than I am making it...
I have a Zend Framework PHP web application. I am going to create a simple API that will output a report for the user's ...
2
votes
3
answers
6k
views
Calling PHP From C
I am trying to write an application that will use PHP as a scripting language. The application is a CGI handler, and I want to be able to call PHP pages from it.
I am looking for code that will let ...
2
votes
2
answers
2k
views
Validate an HTML embed code using PHP or javascript or PHP framework (Zend)
just a simple question..
Is there any good practices to validate an HTML embed code?
fyi, I am using Zend Framework and prototype+scriptaculous right now..
it would be great if someone could give a ...
2
votes
4
answers
515
views
PHP Server Information
I'm trying to write some code that various sites will embed, calling a script on my server. That script streams the binary data for an image and spits it into an image tag.
However, I'm trying to ...
2
votes
6
answers
168
views
How do I add HTML code to a .html file from another file?
I'd like to input some code, for example a menu in HTML from another file so that I can edit that menu and then all the menus for all the sites would change as they'd be linked to that page. Is there ...
2
votes
3
answers
4k
views
How to Safely Accept Pasted <embed> Code in PHP
I want to allow users to paste <embed> and <object> HTML fragments (video players) via an HTML form. The server-side code is PHP. How can I protect against malicious pasted code, ...
2
votes
1
answer
6k
views
Get Google drive video embed code using api
Hello everyone,
I was working on a project where i need to display a video specifically from my google drive on a webpage. I don't want to manually select the video and copy its embed code, is there ...
2
votes
1
answer
721
views
Programmatically Embed Blip.tv Videos
I'm trying to build a php video embedding function that parses the video URL automatically and then produces the right embed code out of that. I'm having trouble with the new blip.tv player because ...
2
votes
3
answers
2k
views
Embedded iframe - Verify source/origin of GET request
I'm seeking to utilize an iframe to embed some html in customers websites that will list some information from my database using a simple GET request like so:
// customer would copy/paste this code ...
2
votes
1
answer
21k
views
Load content within div without refreshing main page
Hello i have a 3 pages i want to run within one main page (index.html) sort of "app style"
the pages are: form.html, the form results.php and a link.html page
i want it to load like this demo: ...
2
votes
2
answers
4k
views
What is the best way to embed Youtube videos? [closed]
I'm building a video website and I want my users to be able to upload or embed videos from Youtube. The Youtube API doesn't seem to provide video upload from their website, or do they?
So I tried to ...
2
votes
2
answers
577
views
How to embed a form multiple times in Symfony
I have 2 entities: Tarifa and TarifaPeso (this one has to appear 20 times in the Tarifa form).
The relation in Tarifa is:
/**
* @ORM\OneToMany(targetEntity="TarifaPeso", mappedBy="tarifa", ...