I'm trying to modify a banner display function so it can be including
on remote websites. If I just include the file from a remote website
the code isn't executed before it is put into the page. I would like
my code (which picks a random banner) to execute on the remote site so
when I include it a random banner show up. 7 5098
Nick Messick wrote: I'm trying to modify a banner display function so it can be including on remote websites. If I just include the file from a remote website the code isn't executed before it is put into the page. I would like my code (which picks a random banner) to execute on the remote site so when I include it a random banner show up.
???
You cannot of course.
How would you feel when I started executing MY PHP-code on your server?
If you want some code executed on another machine, contact its owner...
Regards,
Erwin
Organization: College of Computing, Georgia Tech
Erwin Moller <> wrote: Nick Messick wrote:
I'm trying to modify a banner display function so it can be including on remote websites. If I just include the file from a remote website the code isn't executed before it is put into the page. I would like my code (which picks a random banner) to execute on the remote site so when I include it a random banner show up.
???
You cannot of course.
How would you feel when I started executing MY PHP-code on your server? If you want some code executed on another machine, contact its owner...
lets the owner of the other machine does not have a problem with me running
a script on his server and then displaying the output on my server..
how would I do it then??
On 9-Sep-2003, Erwin Moller
<si************ *************** *************** @spamyourself.c om> wrote: Nick Messick wrote:
I'm trying to modify a banner display function so it can be including on remote websites. If I just include the file from a remote website the code isn't executed before it is put into the page. I would like my code (which picks a random banner) to execute on the remote site so when I include it a random banner show up.
???
You cannot of course.
How would you feel when I started executing MY PHP-code on your server? If you want some code executed on another machine, contact its owner...
What you can do is execute the php on your server to modify the banner and
return it as an image.
The remote server would pass HTML to the client like
<img src="http://yourserver.com/banner.php">
The client browser would make the request to your server where the php code
would return the appropriate headers and the image data.
--
Tom Thackrey www.creative-light.com
Message-ID: <gg************ ***@newssvr29.n ews.prodigy.com > from Tom
Thackrey contained the following: The remote server would pass HTML to the client like <img src="http://yourserver.com/banner.php"> The client browser would make the request to your server where the php code would return the appropriate headers and the image data.
Is there any way of doing this so that it returns code instead of an image?
(to create an embedded guest book or something)
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
You can sort of do what you're after...
<script language="javas cript" type="text/javascript"
src="http://yourserver/script.php"></script>
This tag is put on the remote website. script.php should do whatever
work you want it to do, then send HTML output wrapped in
document.write( ) functions. I.E. script.php would return something
like:
document.write( 'Look at this!<br>');
document.write( '<img src="http://someserver/someimage.jpg"> ');
And that code would be run by the user's browser in place where you
had the <script> tag on the page on the remote website. Can give you
an example if you need one. :)
"Nick Messick" <no****@trendwh ore.com> wrote in message
news:24******** *************** ***@posting.goo gle.com... I'm trying to modify a banner display function so it can be including on remote websites. If I just include the file from a remote website the code isn't executed before it is put into the page. I would like my code (which picks a random banner) to execute on the remote site so when I include it a random banner show up.
I've read the history - you could do two things... one, have your chap who
has the PHP server create the banner in to a 'javascript' type file - That
way, from the remote server, you only have to include, and execute the
javascript
Alternativly, you could use an html <iframe> tag and just call the page from
their server thus giving you full forms access without changing the address
bar (which I gather is one of your issues).
Matt <go****@mralsto n.com> wrote: document.write( ) functions. I.E. script.php would return something like:
document.write( 'Look at this!<br>'); document.write( '<img src="http://someserver/someimage.jpg"> ');
what If I want to return a php function, which the user can use on his page.
Basically, I want to give only certain users access to this one function.
So I want to authenticate them before they run that function, the only
problem being that authentication needs to be done on the main machine and
not where the user is using the function. Thus, I want the users to include
this one file, which is running on the main server, and if they authenticate
right, I return the function. Also, this authentication needs to be automatic
i.e. on a script to script level, not a human to html page level.
any idea how?? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JimA |
last post by:
I have an application that needs to execute dtsrun from a remote
machine. Basically I have a batch file on the remote box, which
handles the execute. This works fine on a machine with client tools
installed. My problem is that I can't install the client tools on the
remote box.
Does anyone know what I need to install on the remote machine...
|
by: Phil Grimpo |
last post by:
I have a very odd situation here. I have an administration page, where
based on a users permissions, a recordset is called from the SQL server
which has a list of paths to "Module Menus". Each of these menus are then
placed into the page by calling Server.Execute(rs_Modules("ModulePath")).
This works fine for up to 15 "menus" After that,...
|
by: Phil Grimpo |
last post by:
I had previously explained this problem in a different thread, but now that
I have an IISState log, I figured I'd re-start the thred. My situation and
the log are following...
I have a very odd situation here. I have an administration page, where
based on a users permissions, a recordset is called from the SQL server
which has a list of...
|
by: JoelWhitehouse |
last post by:
Hi! I want to write a script that will read a .php file on a remote
server and print to the current page a portion of the text contained in
the remote file. I am just wondering what the best method is for
reading from a file in this case - the file is only a few bytes long.
I've seen a tutorial or two that only tangentially addresses my...
|
by: xixi |
last post by:
hi, we are using db2 udb v8.1 on win 64 bit with fp3 with type 4
db2jcc.jar driver.
when i execute this query ,
select id, arno01, arcd01, arno16, artx01, armo09, ardy09, arcc09,
aryr09, arnm03, armo53, ardy53, arcc53, aryr53, arcd64, arid02 from
NJIPD.ARLTNT2 WHERE arno01=13962 ORDER BY arno01 ASC, arcd01 ASC
(one where clause)
| |
by: mayamorning123 |
last post by:
A comparison among six VSS remote tools including SourceOffSite ,
SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere 4.0,
SourceOffSite 4.1, VSS Connect 1.5,...
|
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere
and VSS Remoting
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
by: Joseph |
last post by:
Hi,
I am trying to develop a C# application that will run
on Windows that will do the following
* Select file name to process
* FTP the file to a UNIX server
* Process this file on UNIX using a program on UNIX
"./pgmname -options Infilename > OutputFilename"
* FTP the output of this program back to Windows
* Process the resultant file and...
|
by: Adam |
last post by:
On one site I'm working on I occasionally get an error where instead
of executing the PHP file as per normal, the browser sees the page as
a file (therefore opens up a execute/save pop-up).
All these pages work fine locally on my Apache/WinXP but produces
these errors on the remote server (Linux/on Apache/1.3.34).
Where do I start...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |