php-windows Digest 11 Mar 2002 07:05:10 -0000 Issue 1040
Topics (messages 12559 through 12569):
new window with set size via php ?
12559 by: Wolfgang Schneider
12561 by: Mike Flynn
12563 by: alain
12568 by: Mike Flynn
12569 by: Wolfgang Schneider
Re: strings with $ sign
12560 by: Mike Flynn
Can anyone translate this script to php?
12562 by: Ceyhun Güler
12564 by: Ceyhun Güler
PHP FastCGI update
12565 by: Shane Caraveo
Re: PHP4_Win98se_Apache. text in window instead of html response?
12566 by: J Wynia
Problem : how to tell PHP which MySQL build to point to ???
12567 by: Andrea Di Salvo
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 everyone,
does anyone know if one can open a browser window with a specific
size from within a php script ? I mean achieve something like what
javascript can do via including the following
onclick="window.open('testpage.html','test','width=480,height=400');"
in an <a href=" .... > tag ?
I'd like to use this on a page with links to studies and articles
which I would like to open in a separate browser window with a set
size from where also the articles can be printed easily in a "clean
format" ...
Would anyone have some suggestions ?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--- End Message ---
--- Begin Message ---
Argh, how many times must it be reiterated that PHP is a *SERVER SIDE
PROGRAMMING LANGUAGE*. What this means is that by itself it cannot do
ANYTHING on the client's side ONCE THE PAGE HAS LOADED. You can have PHP
generate some JavaScript and dHTML to do such things, but PHP by itself
only executes BEFORE the user gets the page. NOT on the user's computer.
-Mike
At 05:55 PM 3/10/02 +0100, Wolfgang Schneider wrote:
>Hi everyone,
>
>does anyone know if one can open a browser window with a specific
>size from within a php script ? I mean achieve something like what
>javascript can do via including the following
>
>
>onclick="window.open('testpage.html','test','width=480,height=400');"
>
>in an <a href=" .... > tag ?
>
>I'd like to use this on a page with links to studies and articles
>which I would like to open in a separate browser window with a set
>size from where also the articles can be printed easily in a "clean
>format" ...
>Would anyone have some suggestions ?
>God bless you with His grace and peace
>Wolfgang
--- End Message ---
--- Begin Message ---
Mike:
You are right and you are wrong ;) It depends on the way that you are using
php, if it's on a web site you are right, but you can also use php as a
standalone application, that way you can use it, as you would use - God
forbides - VB. And with the PHP COM connection, you can probably find an
object that will resize the browser's window.
A+
Alain
On Sun, Mar 10, 2002 at 12:15:01PM -0500, Mike Flynn wrote:
> Argh, how many times must it be reiterated that PHP is a *SERVER SIDE
> PROGRAMMING LANGUAGE*. What this means is that by itself it cannot do
> ANYTHING on the client's side ONCE THE PAGE HAS LOADED. You can have PHP
> generate some JavaScript and dHTML to do such things, but PHP by itself
> only executes BEFORE the user gets the page. NOT on the user's computer.
>
> -Mike
>
> At 05:55 PM 3/10/02 +0100, Wolfgang Schneider wrote:
> >Hi everyone,
> >
> >does anyone know if one can open a browser window with a specific
> >size from within a php script ? I mean achieve something like what
> >javascript can do via including the following
> >
> >
> >onclick="window.open('testpage.html','test','width=480,height=400');"
> >
> >in an <a href=" .... > tag ?
> >
> >I'd like to use this on a page with links to studies and articles
> >which I would like to open in a separate browser window with a set
> >size from where also the articles can be printed easily in a "clean
> >format" ...
> >Would anyone have some suggestions ?
> >God bless you with His grace and peace
> >Wolfgang
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Good point. I assumed that Wolfgang meant for normal client-side pages.
-Mike
At 10:33 AM 3/10/02 -0800, alain wrote:
>Mike:
>You are right and you are wrong ;) It depends on the way that you are using
>php, if it's on a web site you are right, but you can also use php as a
>standalone application, that way you can use it, as you would use - God
>forbides - VB. And with the PHP COM connection, you can probably find an
>object that will resize the browser's window.
>A+
>Alain
--- End Message ---
--- Begin Message ---
On Sun, 10 Mar 2002 17:27:15 -0500, Mike Flynn wrote:
Hi Mike and Alain
>Good point. I assumed that Wolfgang meant for normal client-side pages.
Actually, I was thinking of some "normal server side pages" ... :-)
I've seen things people did with asp pages where I thought they sized
pop windows or resized already open windows via the server side
language, now I may simply be mistaken and be "dreaming" when in
reality these effects were achieved by embedded javascript code ?
On a page I am using some javascript function to open a sized window
with the respective page when folks select an article from a drop
down listI Furthermore, I have the more recent articles listed on
the page in regular <A href=.... target="_study"> type links ....
Now, my newbie question came about as I was wondering how I could at
least fix it so that these links open the new "_study" window with
the same size and look as the one which is opened via the javascript
function ? then I thoght of my experience with those pages from
another website and wondered if they did such things with asp ... and
if it could be done with php as well ...
Sorry for the confusion ... my concern also is how to still be able
to somewhat "server side influence" the size and look of a window
when people have turned their "javascript" off in the browser ... any
ideas?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--- End Message ---
--- Begin Message ---
$result_html = ' ... html code....<-- " FOOTER CENTER $LOGOIMAGE footer.jpg
" !--> ... more html code';
Use SINGLE quotes to enclose DOUBLE quotes or $ dollar signs.
-Mike
At 11:51 AM 3/10/02 +0100, you wrote:
>The thing is that the result html code is to be parsed by HTMLDOC (pdf
>generator) to create pdf from the webpage. By inserting <-- "some string"
>!--> into the html, HTMLDOC can catch these strings and act from them.
>
>example:
>
>$result_html = " ... html code....<-- " FOOTER CENTER $LOGOIMAGE footer.jpg
>" !--> ... more html code";
>
>result_html is the page contens for HTMLDOC to parse and through that catch
>the footer code and insert footer.jpg as the footer on the pdf pages.
>
>the problem is that php converts $LOGOIMAGE to a php variable. \$LOGOIMAGE
>doesn't seem to work.
>
>"Robert Janeczek" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I just wanted to know how to use strings with $ sign.
> > >
> > > If a word starts with a dollar sign php will think it's a variable, how
> > can
> > > I make
> > > " $bla bla and bla $bla " to stay that way?
> > > Will this work? " \$bla bla and bla \$bla "
> >
> > don`t use "" - use ''. php doesn`t parse variables in such kind of
>strings.
> > ' $bla bla and bla $bla '
> >
> > " \$bla bla and bla \$bla " - this should work too, but i haven`t
>checked.
> >
> > rash
> >
> >
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
-- Mike Flynn --
mike @ mikeflynn . net
home => work => home => shop => home [adbusters]
--- End Message ---
--- Begin Message ---
I have a small picture and when I click on this image
image opens resimgoster.asp with "resimgoster.asp?res=main tumbled images
picture.jpg"
and this asp code includes
<%@language="vbscript"%>
<%location=request.querystring("res")
location=replace(location, " ", "/")
%>
<body>
<img src="<%=location%>">
</body>
this code gets "res" variable and replace " " fields with "/"
by this way I use only one file to enlarge of these picture...
but I need it in php now
can any one translate my asp code to php code?
--- End Message ---
--- Begin Message ---
Someone helped me in php.general!
thanks!
"Ceyhun GüLer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a small picture and when I click on this image
> image opens resimgoster.asp with "resimgoster.asp?res=main tumbled images
> picture.jpg"
> and this asp code includes
>
> <%@language="vbscript"%>
> <%location=request.querystring("res")
> location=replace(location, " ", "/")
> %>
>
> <body>
> <img src="<%=location%>">
> </body>
>
> this code gets "res" variable and replace " " fields with "/"
> by this way I use only one file to enlarge of these picture...
> but I need it in php now
>
> can any one translate my asp code to php code?
>
>
>
>
>
--- End Message ---
--- Begin Message ---
I've just uploaded a new build of the ISAPI/NSAPI FastCGI modules,
fixing a bug on error output and a problem in the readme.txt file that
prevented proper configuration. Further details can be found in the
php-windows mail list archive at
http://aspn.activestate.com/ASPN/Mail/Message/1006937
Downloads of binary, source, and phpfcgi.exe ara available at:
http://www.caraveo.com/fastcgi/
Shane
--- End Message ---
--- Begin Message ---
The most common cause of PHP scripts being displayed on PHPTriad
installations is not routing requests through the web server, ie. opening
the files through the browser's File -> open menu rather than through a URL
like http://localhost/script.php.
"Bob Parks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Refresh my memory. Just reformatted my c:\ and rebuilding from scratch.
>
> In my IE6 browser window I'm getting php text instead of html "order
> results" page after submitting a form.
>
> See below.
>
> ******
> I need the proper install instructions for PHP4 with Apache server on
Win98.
> It worked before formatting my c:\.. I'm starting from scratch again.
Tried
> the phpTriad. I know it's in my apache http.conf or php.ini..
> Please list .dlls needed in windows\system too.
> Thanks.
>
> **** my results in IE 6.0 after "submit form". Text not html page.
>
> ------------------------------------
> Order Results // Should be html with results not the following plain
> text
> "; echo $oilqty." bottles of oil
> "; echo $sparkqty." spark plugs
> "; $totalqty = 0; $totalamount = 0.00; define("TYREPRICE", 100);
> define("OILPRICE", 10); define("SPARKPRICE", 4); $totalqty = $tyreqty +
> $oilqty + $sparkqty; $totalamount = $tyreqty * TYREPRICE + $oilqty *
> OILPRICE + $sparkqty * SPARKPRICE; $totalamount =
> number_format($totalamount, 2); echo "
> \n"; echo "Items ordered: ".$totalqty."
> \n"; echo "Subtotal: $".$totalamount."
> \n"; $taxrate = 0.10; // local sales tax is 10% $totalamount =
$totalamount
> * (1 + $taxrate); $totalamount = number_format($totalamount, 2); echo
"Total
> including tax: $".$totalamount."
> \n"; ?>
>
>
>
--- End Message ---
--- Begin Message ---
Hello,
Windows XP Pro, Apache 2.0.32, PHP latest build and MySQL latest
build here.
The problem is simple, I don't know how simple the solution is ....
Ok, here it goes : in latest build of PHP MySQL is already included but it's
build 3.something ... since I have downloaded latest build I would like to
tell PHP to use that version and not the one that it has inside.
I have found some reference to this question in the PHP Manuals online
stating that the --with-mysql=/path/to/mysql command can be used to specify
to PHP the location of MySQL to use.
But, this is for UNIX and compiling the program !
So, how can I achive this without compiling PHP and using Windows ?
I hope you can help me, thanks,
Andrea
--- End Message ---