php-windows Digest 11 Mar 2002 20:11:31 -0000 Issue 1041
Topics (messages 12570 through 12581):
Re: [PHP-DEV] PHP 4.1.2 for windows
12570 by: Shane Caraveo
PHP / Apache on XP
12571 by: Paul Wallace
12574 by: Nicole Amashta
Freetype2 Binary
12572 by: andy
Re: no permissions for copy/move_uploaded_file - workaround?
12573 by: Fabby
Re: Can anyone translate this script to php?
12575 by: Nicole Amashta
Re: new window with set size via php ?
12576 by: Mike Flynn
exec error ("A specified logon session does not exist. It may already have been
terminated.")
12577 by: Michael Hall
PHP 4.1.2 Windows binaries
12578 by: Werner Schweizer
12579 by: Robin Bolton
12581 by: Shane Caraveo
MSSQL2000 + IIS 5 mssql SELECT querys TIMEOUT
12580 by: Daniel Ryhle
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 ---
I have my own compile available at www.caraveo.com/fastcgi/php.zip
No, it's not anything to do with fastcgi, I just threw it there as it
was a handy location.
It's not realy tested out, other than patches for security fixes are
included. It doesn't include any additional modules, though the 4.1.1
modules should work with it.
If someone needs a quick fix before a compile gets up on php.net, go
ahead and download it (at you're own risk, I assume no liabilities).
Regards,
Shane Caraveo
Gabor Hojtsy wrote:
>
> Hi!
>
> >From hour to hour we receive questions at [EMAIL PROTECTED]
> about the availability of PHP 4.1.2 for Windows. First I
> tried to give an estimate, but now I don't know what to say.
> Will there ever be a PHP 4.1.2 for windows, or a 4.1.3???
>
> Guys are waiting for the security fix... Why to kick out
> windows users from installing a more secure version of PHP?
>
> Goba
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
I am trying to setup PHP 4.* on XP. Whenever I access a PHP page from IE
using Apache, I am prompted to either download the file or the page can't be
found. In the Apache httpd.conf file I have uncommented:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
yet it still refuses to load the page into the browser. What am I missing
here / have not done? I can attach the httpd.conf file if necessary.
Thanks for all input
Paul.
--- End Message ---
--- Begin Message ---
There are 2 additional lines you need to add to your httpd.conf file.
If you are running PHP as CGI, you need these lines in addition to the set
of lines you already mentioned:
1. ScriptAlias /php/ "c:/php/"
2. AddType application/x-httpd-php .php # this one
you already have.
3. Action application/x-httpd-php "/php/php.exe"
---------------------------------------
"Paul Wallace" <[EMAIL PROTECTED]> wrote in message
001601c1c8db$ee860c80$6c01a8c0@Paul">news:001601c1c8db$ee860c80$6c01a8c0@Paul...
> Hi,
> I am trying to setup PHP 4.* on XP. Whenever I access a PHP page from
IE
> using Apache, I am prompted to either download the file or the page can't
be
> found. In the Apache httpd.conf file I have uncommented:
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> yet it still refuses to load the page into the browser. What am I missing
> here / have not done? I can attach the httpd.conf file if necessary.
>
> Thanks for all input
>
> Paul.
>
--- End Message ---
--- Begin Message ---
Hi there,
I am searching for the freetype2 binary. Can anybody help on that.
Thanx andy
--- End Message ---
--- Begin Message ---
fabby again. found it! my isp had to remove the write protection. the
permissions shown by my cuteftp interface are a fake. In reality the
permissions are different to what cuteftp displays, because the remote
directories are on a windows system. Now I know...
"Fabby" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> my file uploads fail due to restrictions by the provider. my upload script
> is not allowed to execute the copy or move_uploaded_file functions. is
there
> another solution for it? i found a suggestion which said i should use
> fopen() and so on ... but i don't know how to do that.
>
> thanks in advance, fabby
>
>
--- End Message ---
--- Begin Message ---
<%@language="vbscript"%>
<%location=request.querystring("res")
location=replace(location, " ", "/")
%>
<body>
<img src="<%=location%>">
</body>
==================
<html>
<head>
<title></title>
</head>
<body>
<?
$location = $HTTP_GET_VARS["res"]; ## get the value from the GET var; If
it was a post, use $HTTP_POST_VARS["res"] instead.
$location = str_replace( "/"," ", $location); ## this assumes you want to
replace all / with a space.
?>
<img src="<?=$location?>">
</body>
</html>
==========================
This may do it.
Nicole
www.aeontrek.com
"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 ---
At 08:00 AM 3/11/2002 +0100, Wolfgang Schneider wrote:
>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 ?
As far as I know, all client-side manipulations must be done via a script,
whose support is entirely dependent on the user's browser. JavaScript is
of course the most prevalent.
>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 ...
It's always a good idea to link some link to a target window even if you're
using a javascript popup script. That way, if the user isn't using
javascript the window will pop open. The way to do this and not have TWO
windows pop up is something like the following:
<script language="JavaScript"><!--//
var winPage;
function popPage(id) {
winPage = window.open('thepage.php?id='+id, 'winPage', '...params...');
winPage.window.focus();
}
//--></script>
...
<a href="thepage.php?id=<?php echo $id; ?>" target="_blank"
onClick="popPage(<?php echo $id; ?>);return false;">link</a>
You see the return false; after the call to pop open the new window. That
way it gives a priority to using javascript to pop open the new window. If
the user has javascript turned on and it pops open the new window, then by
returning false it ignores the href=".." part of the link. If the user
doesn't have javascript then the link will open manually via the href and
target parts into another window. If you didn't have the return false
after the javascript, then the window would open twice: once by the
javascript, once by the normal href= property.
That's how I do all my javascript window poppers, just to be safe.
So, returning to your question, I don't think it's possible at all to
control where a new window opens, how big it is, and what properties
are/aren't displayed via a normal <a href=..> link. Only in JavaScript.
However, what you CAN do is dynamically generate these kinds of properties
when the page is generated for each link, if, say, you wanted each popup to
have a different size/etc for each individual link. Something like this:
<script language="JavaScript"><!--//
var winPage;
function popPage(id, width, height) {
winPage = window.open('thepage.php?id='+id, 'winPage',
'width='+width',height='+height+',...');
winPage.window.focus();
}
//--></script>
<?php
$query = 'SELECT id, width, height, ... FROM MyTable';
$result = mysql_query($query);
while ($row = mysql_fetch_row($result)) {
list($id, $width, $height) = $row;
print "<a href=\"thepage.php?id=$id\" target=\"_blank\"
onClick=\"popPage($id, $width, $height);return false;\">link</a>\n";
}
?>
>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?
Earth bless you as well. :)
-Mike
--- End Message ---
--- Begin Message ---
I'm trying to use exec (or system) to create NT user accounts on our domain. My plan
was to add a user on the command line with the "net user /domain" command. This has
to be executed on the PDC (NT 4 service pack 6) rather than on the web server (which
is 2000, but I'm not sure that matters).
When I first started, it seemed to work just fine. Now, without changing the script,
I'm getting the following output:
A specified logon session does not exist. It may already have been terminated.
before any PHP code gets to the browser.
This now seems to happen regardless of the command I'm trying to exec, and only goes
away when I comment the exec line, which of course doesn't do me a lot of good.
Does anyone have any insight as to why this happens?
thanks.
--- End Message ---
--- Begin Message ---
Does anyone know when the binaries of PHP 4.1.2 for Windows are
available ?
Werner Schweizer
--- End Message ---
--- Begin Message ---
Unfortunately the posting on the PHP.net website makes the situation VERY
unclear.
PHP 4.1.2 is NOT required for Windows users. The security issues that the
4.1.2 patch deal with are Solaris and Linux specific.
There is a PHP3 vulnerability in Windows, but since you were asking about
PHP4, I assume that this doesn't matter.
To reiterate, there is NO version of PHP 4.1.2 for Windows, nor is one
required.
-----Original Message-----
From: Werner Schweizer [mailto:[EMAIL PROTECTED]]
Sent: 11-Mar-02 10:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP 4.1.2 Windows binaries
Does anyone know when the binaries of PHP 4.1.2 for Windows are
available ?
Werner Schweizer
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
There IS a security issue with 4.1.1, and the 4.1.2 sources, if you use CGI
with Apache or Netscape/iPlanet servers. Dig back through the php-dev
archives from about a week to week and half back, you will find the info.
It's been patched in CVS, and I beleive that the next build will include
those patches as well.
Shane
----- Original Message -----
From: "Robin Bolton" <[EMAIL PROTECTED]>
To: "Werner Schweizer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 10:51 AM
Subject: RE: [PHP-WIN] PHP 4.1.2 Windows binaries
> Unfortunately the posting on the PHP.net website makes the situation VERY
> unclear.
>
> PHP 4.1.2 is NOT required for Windows users. The security issues that the
> 4.1.2 patch deal with are Solaris and Linux specific.
>
> There is a PHP3 vulnerability in Windows, but since you were asking about
> PHP4, I assume that this doesn't matter.
>
> To reiterate, there is NO version of PHP 4.1.2 for Windows, nor is one
> required.
>
>
> -----Original Message-----
> From: Werner Schweizer [mailto:[EMAIL PROTECTED]]
> Sent: 11-Mar-02 10:59
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP 4.1.2 Windows binaries
>
>
> Does anyone know when the binaries of PHP 4.1.2 for Windows are
> available ?
>
> Werner Schweizer
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I have a totally wacked problem that i need help with.
I run MS SQL 2000 on a win 2k machine and IIS5. On this i have installed
php4.11 with php_mssql.dll support. When i do an insert query it works fine.
But my problem is with SELECT querys.
If i write a select query and run it on a table that is empty it works fine.
BUT if i put an entry into the table and run the same query again it just
stands and think until it time out. Extremely strange, cause ive programmed
some php against mysql on a linux machine and never had any troubles. But
this is totally...wacked..
Anybody that can help me?? Would be extremely greatful
--- End Message ---