php-windows Digest 24 Jul 2003 13:09:01 -0000 Issue 1838

Topics (messages 20886 through 20891):

Re: closing windows
        20886 by: WebDevMagazine
        20888 by: Luis Ferro

Re: Subject: closing windows
        20887 by: Neil Smith

php-cli >>redirect
        20889 by: Voldermort -
        20890 by: Comex
        20891 by: Voldermort -

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
hi
<html>
<script language=javaScript>
function execute()
{
 windows.close();


}
</script>



<?php

echo "<a href=javascript.execute() >Close </a>";


?>

</html>



--- End Message ---
--- Begin Message --- You can't call javascript from php and vice-versa. The best you can archieve is the PHP write the javascript and the javascript call a "new" php page.

Javascript runs in the browser. PHP runs in the web server. All communication between them is thru either during the php execution or the javascript execution, which are run in two diferent environments.

Cheers,
Luis Ferro

Jon Phipps wrote:

I am curious as to how, from within php, you could emulate the javascript
window.close() function. The other thing is how would I blend javascript and
php, it call javascript functions from php. The javascript will be located
in the same page as the php.

Jon








--- End Message ---
--- Begin Message ---
You can't, openining and closing windows is a client side, browser function. PHP cannot do this since it is a server side technology and has no control over the browser's actions. Please re-post with a specific request of what you are trying to achieve.


Cheers - Neil Smith.

At 23:34 23/07/2003 +0000, you wrote:
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
From: "Jon Phipps" <[EMAIL PROTECTED]>
Date: Wed, 23 Jul 2003 14:57:38 -0700
Subject: closing windows
MIME-Version: 1.0

I am curious as to how, from within php, you could emulate the javascript
window.close() function. The other thing is how would I blend javascript and
php, it call javascript functions from php. The javascript will be located
in the same page as the php.

Jon



======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player.

VideoChat with friends online, get Freshly Toasted every
day at http://www.fresh-toast.net : NetMeeting solutions
for a connected world.






--- End Message ---
--- Begin Message --- Using php-cli 4.2.2 on Windows XP Pro.
php-cli script.php >>file.log works as expected from the command console; the script's output is
sent to file.log. However, when run from the Task Scheduler, the output scrolls through the console
window and file.log is untouched. The task is running with the necessary permissions, and nothing is
recorded in the event logs. The script is definitely running though. Any ideas? I'm flummoxed.


_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband



--- End Message ---
--- Begin Message ---
<[EMAIL PROTECTED]>
Voldermort -:
> Using php-cli 4.2.2 on Windows XP Pro.
> php-cli script.php >>file.log works as expected from the command
> console; the script's output is
> sent to file.log. However, when run from the Task Scheduler, the
> output scrolls through the console
> window and file.log is untouched. The task is running with the
> necessary permissions, and nothing is
> recorded in the event logs. The script is definitely running though.
> Any ideas? I'm flummoxed.
>
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection
> http://www.msn.co.uk/specials/btbroadband

I think that command > file is a MS-DOS command, that doesn't work in
Windows.



--- End Message ---
--- Begin Message ---
| I think that command > file is a MS-DOS command, that doesn't work in
| Windows.

I tried it with a batch file; worked OK from both the command line and scheduler.



--- End Message ---

Reply via email to