FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to call external php script from html?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to call external php script from html? [message #172992 is a reply to message #172991] Tue, 15 March 2011 11:14 Go to previous messageGo to previous message
astral is currently offline  astral
Messages: 14
Registered: February 2011
Karma:
Junior Member
"Erwin Moller" wrote:

>> Hi,

>> it's not working also.


> It is working. It is an ancient trick.

> Add an alert to it so see what page is called.
> You DID change http://www.example.org/myScript.php into something
> sensible I presume??


> <script type="text/javascript">
> var myPHPScript = "http://www.example.org/myScript.php";
> var milliSecSinceUE = (new Date()).getTime();
> var myFakeImage = new Image();
> alert (myPHPScript +"?nocache="+milliSecSinceUE);
> myFakeImage.src = myPHPScript +"?nocache="+milliSecSinceUE;
> </script>


> Regards,
> Erwin Moller
..............................


Hi,

sure, I used correct path in my test.
Alert says http://www.site.com/test.php?nocache=1300186777680

so it called script URL.

Regards,
astral
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lookup zip by IP address
Next Topic: browser url with #...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:10:49 GMT 2024

Total time taken to generate the page: 0.04234 seconds