Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Embed Web Page


I am trying to embed the resulting html page from a php page on another server in a website. I want it to be hardcoded so search engines can find it so i will ideally use a <?php include ?> type thing. I have an ajax method which uses a http proxy php page to fetch the page and update a <div> and I know I could chop that up and skip the javascript bit.

I want the imported page to be processed rather than as php as there is an sql database query thing going on and I want to display the results on any old website without giving out my db password etc.




View Complete Forum Thread with Replies

Related Forum Messages:
Embed PHP Script In HTML Page...
The first page of my Internet website must be INDEX.HTM. But, if I want to embed some PHP code in this page, I must rename it to INDEX.PHP. Easy, but not simple, because INDEX.PHP will not load as the default startup-page of my website.

So, my question is:

How can I embed some PHP code within a normal HTML page (without using the
..PHP extension)?

View Replies !
How To Embed Microsoft Word In A Page Using Php
how to embed or open microsoft word file in a page using php script

View Replies !
Wnat To Embed Full HTML Page In Email, But Migrating Style From Css Files To Element Style Attributes
My web pages of course use css files, but Webmail services require
style to be in element style attributes.

How do I convert a standard HTML page to HTML suitable for delivery to
webmail services?

Perhaps another way to ask the question is:

How to I walk the DOM and for every element, for every style, set the
element's style attribute to the values that are looked up in the css
file in normal rendering.

Anyone know of any tools, or examples to do this?

View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this:

<script src="http://someurl.com/somescript.cgi"></script>

the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this:

<script src="http://someurl.com/somescript.php"></script>

It doesnt work!!

View Replies !
Embed API
I want to embed the PHP interpreter on some C programs I have. Those programs generate static HTML and I thought that PHP will be the best engine for this task.

First I search for the Embed API but there seems to be no documentation or tutorials on the subject except for a couple of references on a lecture that was given on the Intl' Conference.

Have any of you made a C or C++ program embeding PHP as the interpreter?

View Replies !
Embed C With Php
i dont know whether i am asking the correct question or not but i hope you will get the basic idea out of it...

i heard that people now a days embed C/C++ with php, and somebody gave me an example of cURL function..

so if really its possible to write code or a function in C/C++ and use it with php then please guide me through this process i would love to do so coz i am very good in C.

View Replies !
PHP In The <embed> Tag
I have a flash banner rotator that runs using PHP at the backend. The way in which the flash banner is called into the script is by using the following PHP:

<? php include("http://www.mysite.com/banners"); ?>

I have also used this in other ways such as:

<?php $file = file_get_contents("http://www.mysite/banners"); ?>

I am struggling to incorporate this into the <object> tag. Is there a way in which I can do this? Can I somehow get this to work in the <param name="movie"> tag? Or is there some other method that I can use? Code:

View Replies !
At Embed
At embed, clould'nt see status bar and control bar.

<table cellpadding=1 border=0>
<tr>
<td width="241" align=center>
<? for ($i=0; $i<count($list); $i++) {
$file = "$g4[path]/data/file/$bo_table/".$list[$i][file][0][file]; ?>
<div align="center"> <a href='<?=$list[$i][href]?>'>
<embed src="<?= $file?>" width=215 height=190 SHOWCONTROLS=1 SHOWSTATUSBAR=1 AUTOSTART=1 PlayCount=0 wmode=transparent></embed>
</a> </div></td>
<? } ?>
</tr>
</table>
<p>&nbsp;</p>

What am I missing?

View Replies !
Embed PDF In PHP
i want to show pdf as an embed file in php pages..how can i do this?

View Replies !
PHP Embed Sound
So I am using this: <embed src="soundfile.mp3" autostart="true" loop="true"></embed>

But it is breaking my sound file, like pausing at the loop, then repalying. Any way to fix this? Maybe use PHP instead of HTML?

View Replies !
Embed A Font
How do I embed a font onto a remote user's machine? Say he dont have a Papyrus but I want him to view the webpage using the Papyrus font.

View Replies !
PHP + IE Embed Problem
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<titleMy title </title>
</head>
<body>
on place un embed
<embed id="embed1" alt="ne marche pas..." src="ws.php?
projet=ppp&mode=mmm&fichier=fff.xml&fichierxsl=xxx.xsl" type="image/svg
+xml" WIDTH="300" HEIGHT="300"></embed>
on place un embed
<embed id="embed2" src="ppp.svg" type="image/svg+xml"
WIDTH="500" HEIGHT="500"></embed>
etc....
</body>
</html>
--------------------------------------
I run an Apache web server and unfortunatly, the first embed
(name="embed1") is never requested by IE. The second one
(name="embed2") is load correctly.
Can anyone explain me why ? Maybe IE doesn't recognise a correct file
extension, what else ???
I have been testing lots and lots of changes, but never work with IE.
It works fine with Firefox...

View Replies !
Embed PHP In Javascript
I know that javascript is executed client side, and that the PHP is processed first, server side - but wondered if anyone knows of a way to achieve the following. I have a javascript function:

function requestProd{
document.imgProd.src = 'elements/products1.gif';
document.imgServ.src = 'elements/services0.gif';
document.imgEven.src = 'elements/events0.gif';}

When I invoke this javascript function, I want to be able to set a session variable in PHP - eg.

<? $_SESSION['pressed'] = 'prod'; ?>

ie. I effectively want to execute this, whenever the above function is executed.  This is because I have Onclick events in javascript which execute this - and I have similar functions that I want to set the same session variable to different values.  This is to allow a PHP script I run later to know what option the user pressed.

View Replies !
Embed Metadata Into The PDF
I am been searching around the internet for some information about PDF and PHP integration. I know about all the stuff with PDFLib and FPDF and the other free classes.

What I am unable to find is if PHP can embed metadata into the PDF it creates such as a member id so that is the database is corrupt it could be rebuilt.

View Replies !
Youtube Embed
Ive made a form to enter a youtube address, then when submit is clicked it loads the movie on anouther page but this is not working, so far ive got it to reconise that the object that it is embedding is flash.

But the flash movie does not load, when i right click where it has embedded it, it says movie not loaded. Code:

View Replies !
Trying To Embed A Movie
I know the HTML embed tag but it is not working very well in IE or FireFox... is it just me or is it the browser support? I mean the code is simple.

<html>
<body>
<embed src="movie.mov" width="640" height="480"></embed>
</body>
</html>

View Replies !
Embed A Php Code Into Html
I want to embed a php code into my html file. But its not showing anything. The same code works when I rename the file as .php

<html>
<body>
<?php echo "hi";?>
</body>
</html>

This code works as hi.php3 but doesn work when I rename file to hi.html.

View Replies !
Embed Php Code In A Cgi Script
I have a form on a php site and I'm trying to send the information filled out in the form to an email address, aswell as sending the email I also want to display a thank you page. However I want the thank you page to be in php with includes and so on. So my question is how do I get a cgi to recognise php commands?

View Replies !
Embed AppleScript Into A PHP CL Script?
Is it possible to embed AppleScript into a PHP script written for the
command-line PHP interpreter? I tried using the Heredoc method to put an
applescript into a string variable then run it through the shell but I keep
getting a parse error no matter what I try.

For a short example, say I want to run this applescript from a PHP command line
script:

View Replies !
Html Embed Editor?
I ve coded a CMS which also allows the administrator to write custom php modules that get stored in the database. Those modules are called in the frontend with eval(). It works great.

The problem, is that the only way i can edit the module is on a big textarea. and its not very nice to code in there. Does anyone know any html embed php editor?

View Replies !
Embed Variables Into String
Anybody know whether it is meter which of the following two string to use?

print "<table width="$width%">";
print "<table width="".$width."%">";

View Replies !
Embed Variable In Link
In the code below, I'd like an existing variable called id to apear instead of XXXXX, but I can't seem to find the right way of doing it.

if ( $answer == $dbanswer){echo '<P>The answer you provided was correct, so you can continue authorized. Please <a href="page2.php?id=XXXXX">CLICK HERE<A> to continue.</P>'}

If I put id=$id, the link followed just says $id at the end rather than pasting the variable's value itself.

View Replies !
Allow Users To Safely Embed
My social networking site was once open to many kinds of attacks. One programmer that helped me right after a redirection attack restricted embed from being entered in the users profile fields. The problem is that users are used to myspace where people can embed a video, etc. Daily I'll have requests asking why they can't save video code from another site. Is there any way to allow users to embed in their profiles without opening up a can of worms? One of my primary concerns, besides a direct attack, would be for a user to somehow steal cookies from visitors to their profile.

View Replies !
YouTube Embed Script
I want a php page where my users can enter a title, description and a youtube embed code, the script then adds the post variables to another page which will be used to display the information provided and the youtube video, I also want the pages to be indexd so that they are easyly searchable, also a small admin area to delete the broken youtube links.

View Replies !
How Do You Embed PHP Commands Inside Another PHP Variable Set?
I would like a very nice PHP shortcut to dynamically setting a
variable value by embedding PHP commands inside, which is what I can
easily do in TCL:

set stuff "hello [if {[regexp {/dev} $env(HTTP_HOST)]} {set x "
devworld"} else {set x " world"}]"

in TCL this would set stuff to either "hello world" or, if you're in
/dev "hello devworld"

how can I accomplish this great TCL feature in PHP? I haven't found a
way yet, everything I have done has so far produced parse errors:

$stuff = "hello" . (if (preg_match('//dev/i', $HTTP_HOST)) { $stuff
..= ' devworld' } else { $stuff .= ' world' });


View Replies !
Embed SMS Wireless Messaging Into PHP Applications
I know wireless is a big topic these days, and combining wireless messaging and PHP is a great new advance. Our company, Simplewire, is involved in doing that. We've set up a free Developer Program where you guys can try out our PHP software which lets your application send wireless messages via SMS to cell phones and pagerws worldwide. You can join at URL and try it out.

View Replies !
How Can I Embed A Video Player In Site Using Php?
I would like to embed a video player in my site using php where people can watch video without downloading it.

View Replies !
Embed Windows Media Player
I would like to embed a window media player in my site using php script.

<PARAM NAME="filename" VALUE="video.php?option=1">

Would appreciate if someone could help me with the video.php script.

View Replies !
How To Embed Image Into A Word Document
I need to generate a report as a word document. And i also have to embed some pictures/images into this word document using PHP script. So customer can download this word into his own pc and still can see the images.

Generating a word document using PHP is not a problem. But i really don't know how to embed images into word document. I try many ways but they don't work and I google internet but cannot find a solution.

View Replies !
Embed Javascript Link In Else Statement?
I have an online registration form that is validated from an external php file and i am trying to echo a javascript (history) back button if they need to go back and correct their details. This is my code so far:

if($jobtitle){//----> CHECK input
}
else{
$error.="Please, go back and fill out your <strong>job title</strong><br><br><a href="javascript: history.go(-1)">Back</a>
";//----> ERROR if no input
}

View Replies !
Returning HTML As Word, How Do I Embed Images?
I'm sending html content to the client computer as "application/msword" using the following code (see further down): Is it possible to embed images in $docContent so it will be accessible in the client computer if he:

1. Saves the downloaded doc and.
2. Laiter open the document without being online?

example code:

View Replies !
Embed Language Strings Into Javascript Code
I am using language files to localize my script. For example, I include lang_english.php that holds the english language strings like:

define("_WAIT","Please Wait...");
define("_ERRORNAME","Please enter your name");

Then use the defined string in my scripts like

echo _ERRORNAME;

As fas as PHP scripts are concerned, everything works fine so far. But, I can't localize my Javascript codes. For example form error alerts. I include my javascript files externally in my header.php, like Code:

View Replies !
Need To Do A 'Post A Video' Site (embed Only.) Security Issues
I am about to start one of those post your favorite youtube/liveleak /... video. It will be vbulletin integrated and I need to make sure that my programmer doesn't forget anything that could cause me to get hacked or whatever.

What things can get overlooked, yet are vital to security? Once again, the videos will be hosted by others.

Would a "Allowed to post from" domain list be smart? They will also be ratings and comments (so I can get as much text as possible.)

View Replies !
Include/Require - Make The Entire File CGI And Embed PHP In It?
I am trying to implement a cgi discussion board into the design of my site. My site is PHP based and the top and left hand sides are all dynamic. I want to make the body the discussion board, but I don't know how to make it execute as PERL within the PHP document.
Should I make the entire file CGI and embed PHP in it? or vice versa?

View Replies !
Embed Lots Of Html Code In Php & Construct Objects In Php
I have a php file, it contains just a few php codes. The php codes I
need to use is to construct an object, and use it several times, from
html head until the last line of html code.

I know I can construct the same object (I am using php5) several
times, something like $object = new $class, and use several <?php
$object->functionX ? ... <?php $object->functionZ ? to include
php code in html code.

However, to construct this object I have to call a remote server, and
rely on its response, which is a bit slow. To construct it several
times takes even more time, and I do not like that.

So my questions are :

1) How can I embed a big chunk of html code in php without using
something like echo "<a href="aaa.html">" all the time

2) Can I just construct an object one time and use it in different <?
php ... ?blocks?

View Replies !
$PHP_SELF - Create A Link Which Refreshes The Current Page, And Based On Certain Items On The Page
On a page, I want to create a link which refreshes the current page, and based on certain items on the page (simple form objects like radio buttons)the page will load differently. My link looks like this: PHP Code:

View Replies !
Warning: Cannot Modify Header Information - Redirect From Login Page To Logged In Page
I am trying to redirect from login page to logged in page, but using the {header( 'Location: C:wampwww' ) ;} is giving me this error {
Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwpassword.php:14) in C:wampwwwpassword.php on line 35}, find below my code:

View Replies !
Refresh Problem - Warning: Page Has Expired The Page You Requested Was Created Using Information
i got two php page at the movement, which they called edit2.php and edit3.php. when i submit a form from edit2.php to edit3.php, then i could not come back from edit3.php to edit2.php.

Warning: Page has Expired The page you requested was created using information
you submitted in a form. This page is no longer available. As a security precaution,
Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button. Code:

View Replies !
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add

When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history..

When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says:

Page has expired.

I wondered how to deal with this kind of problems........

View Replies !
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in
with their email address) are supposed to answer each question, and when
they click the button at the bottom, the next page will show which problems
they got right or wrong.

Now my visitors, after seeing some problems they got wrong, click Back
button at the Explorer menu, and if they do, they get the below message:
=========================
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.
========================
Below are the script that I am using. This scripts are after initial login
page, which asks for visitor's email address. I have authorized visitors
already in my MySQL table, and only the visitors whose email address is in
my MySQL table are allowed to login......

View Replies !
Session Var Is Setting ONLY AFTER I Reload Page, Form Var Displays First Page Load
Page1 has a form that calls Page2. The beginning of Page2:
<? php session_start();
$s=$_POST['sSelected'];
session_register("s"); ?>

in the middle of Page2 I have a form varaible:
<?php echo $_POST['stateSelected']; ?>
<?php echo $_SESSION['s']; ?>

The form var displays the first time the page loads. The session var
displays only after reloading the page2.

View Replies !
Login In A User, And Then Pass The Username And Session_id From Page To Page
I want to login in a user, and then pass the username and session_id from page to page until the leave the admin area of the site. Here's a simplified function: PHP Code:

View Replies !
Insert A Page Break For Printing Purposes After X Records On Page.
I need to insert a page break for printing purposes after X records on page. I'm querying five diffrent records with 5 different results and displaying them like:

$record1
$record2
$record3 and so on

So I want to get total number of records which is pretty easy I just add all the totals let's call it $subtotal. Then I want a page break after every 20 records of the $subtotal. Is this possible?

View Replies !
Build A Page That Takes Form Data, Processes It In A Second Page
I'm trying to build a page that takes form data, processes it in a second page, then sends the user to a third,depending on data processing.

On the second page, I am trying to get the page to have some sort of "Loading" message while the backend processes the data, but I can't seem to get anything to work. Does anyone know how I can get that Loading message to display?

View Replies !
Script To Open A Small Page When Loading A Large Page?
the idea is a script that loads when a large page is trying to open that need for example 5-6 mins to load and in the mean time to open a very small page that is saying loading the page please wait and when the large page is loaded to go directly to that page. Do u get my idea?

View Replies !
Transfer Session_id() Between A Secure Page To An Unsecure Page - SSL
I am having problems understanding how to transfer session_id() between a
secure page to an unsecure page. When I move from the secure page to the unsecure page the session_id changes.

Here is the script:

Secure page:
<?php
session_name('thename');
session_start();
echo session_id();
..
..

View Replies !
IF Else Statement - Form Being Submitted From Another Page And Being Directed To A Second Page
I have a form being submitted from another page and being directed to a second page. In this form is a checkbox called nonprofit. When checked the value is 1.

On the second page I have the following code:

View Replies !
[refreshing A Php Page Resulting Page Cannot Be Found Error]
i have a php page that will refresh by itself by using a meta tag and meta timer. however, without a clear indication, my page will just go "Page cannot be found". bizzarre but when i press refresh, the page can be found!. i am not sure whether this is an IE problem or issit my script problem. i don't encounter this problem if it's just a plain file.html.

perhaps is my session string? i am passing my session thru the URL and i constantly refreshing it. is that the problem? my url looks like this: domain.com/myfile.php?authorize=mike&token=f5c0f7edd785a6a9448c50249bad18ed

View Replies !
Page Control - Next/previous Or Select Page Number
I'm looking for php script examples that will help me control page layout. Using a table with 12,000 records, would like to be able to display only 5 records per page with page controls at the bottom of the page. The bottom edge would have next/previous or an optional insert desired page number.

View Replies !
Create A Page That Will Eliminate Everything Between The < Script > Tags On A Page
I have been trying to create a page that will eliminate everything between the < script > tags on a page and then render all the HTML that is leftover. For some reason, the page won't load for me, but when I copy the source, paste it in a text editor, manually delete all the JavaScript, and then just render what is left over, it works fine.

I have an error and I don't know why I'm getting this error. I don't know what is incorrect about the code.

QuoteParse error: parse error, unexpected ':', expecting ']' in /fantasypoints.php on line 25 Code:

View Replies !
User Login Page - Password Requiring Page
i just created a user login page which works. However, I don't know how to get them to a new password requiring page after they press the submit button. How do I go about getting them there?

View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved