using php to open a broswer?

This is a discussion on using php to open a broswer? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; hi how can u i use php to open a browser and display somthing? am developing an application i want ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-23-2006
Sunusi Ringim
 
Posts: n/a
Default using php to open a broswer?

hi
how can u i use php to open a browser and display somthing? am developing
an application i want to uweb GUI. please help.


Reply With Quote
  #2 (permalink)  
Old 10-23-2006
Rik
 
Posts: n/a
Default Re: using php to open a broswer?

Sunusi Ringim wrote:
> hi
> how can u i use php to open a browser and display somthing? am
> developing an application i want to uweb GUI. please help.


Indeed. If a browser is installed on the server, you can simply open a
browser window with exec(). Check the command line options of that browser
to open a certain page. Given enough rights, PHP will happily open a
browserwindow for you on the server.

If you mean that a window has to be opened by a remote client on a request:
not possible with PHP.

--
Grtz,

Rik Wasmus


Reply With Quote
  #3 (permalink)  
Old 10-24-2006
bob.chatman@gmail.com
 
Posts: n/a
Default Re: using php to open a broswer?

It might not be possible directly through PHP, but it is possible
indirectly.

<?

function openwindow($url, $title = "MyWindow", $width = 400, $height =
200)
{
?><script language="javascript" type="text/javascript">
window.open('<?= $url ?>','<?= title ?>','width=<?= $width
?>,height=<?= $height ?>);
</script>
<?
exit;
}
?>

PHP May be server side, but it writes all the content that is seen by
the user, so it is in effect, controlling the js.

Rik wrote:
> Sunusi Ringim wrote:
> > hi
> > how can u i use php to open a browser and display somthing? am
> > developing an application i want to uweb GUI. please help.

>
> Indeed. If a browser is installed on the server, you can simply open a
> browser window with exec(). Check the command line options of that browser
> to open a certain page. Given enough rights, PHP will happily open a
> browserwindow for you on the server.
>
> If you mean that a window has to be opened by a remote client on a request:
> not possible with PHP.
>
> --
> Grtz,
>
> Rik Wasmus


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0