php-windows Digest 25 Feb 2002 02:42:39 -0000 Issue 1016

Topics (messages 12243 through 12255):

GD2 build
        12243 by: Joris Pinnoo

CHMOD
        12244 by: ChaoticWorks.cs.com
        12245 by: alain samoun
        12246 by: ChaoticWorks.cs.com
        12247 by: Symeon Charalabides
        12248 by: ChaoticWorks.cs.com
        12249 by: alain samoun
        12252 by: Pac mon

Re: Opening sockets
        12250 by: LaserJetter

Unable to fork errors
        12251 by: Paul J. Smith

passthru(), system() and exec() - help please
        12253 by: Sviss Cobazor

cURL extension
        12254 by: Ignatius Teo

Sending a file with fpassthru() or readfile(), causes IE to hang.
        12255 by: John Chronakis

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 ---
where can I find a PHP-build with the latest GD-functionality?


--- End Message ---
--- Begin Message ---
i was reading a php book and it says on UNIX machines i must change the CHMOD 
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.
--- End Message ---
--- Begin Message ---
www.php.net
[SEARCH FOR:] CHMOD [in the FUNCTIONS list:]
http://www.php.net/manual/en/function.chmod.php
A+
Alain

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] CHMOD


i was reading a php book and it says on UNIX machines i must change the
CHMOD
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.

--- End Message ---
--- Begin Message ---
i put 

chmod ("index.php", 0777);  

in my index.php file and when i viewed it, it displayed
"Warning: chmod failed: Operation not permitted"
anyone know why that is?


--- End Message ---
--- Begin Message ---
> i put 
> 
> chmod ("index.php", 0777);  
> 
> in my index.php file and when i viewed it, it displayed
> "Warning: chmod failed: Operation not permitted"
> anyone know why that is?
> 
chmod is a native Unix command - I doubt tha windows like/permit it. Also, some 
providers won't let you chmod their files or directories. You'll have to change 
the file permissions manually on your Windows box or, if you must have the file 
created automatically, find a way to handle it with its default permissions.
The syntax for your command is correct, anyhow.

Symeon Charalabides (cosmopolitan trainee)
------------------------------------------
http://www.webmate.gr

--- End Message ---
--- Begin Message ---


i have a unix host. thats why i am trying to get this CHMOD to work.  Thanks.
--- End Message ---
--- Begin Message ---
Then post at [PHP-GENERAL]. Here it's for PHP on Windows.
A+
Alain

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] CHMOD




i have a unix host. thats why i am trying to get this CHMOD to work.
Thanks.

--- End Message ---
--- Begin Message ---
When you're at a unix console type this: chmod ### thefilename
###=the numbers for owner, group and global
thefilename=the name of the file you want to change


i was reading a php book and it says on UNIX machines i must change the 
CHMOD
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
Well, after browsing through the HTTP/1.1 standards I found that an optional
header "Host" after the GET request could be used.

I now write "GET /clientlogin.php?username=me&password=mypassword
HTTP/1.0\r\nHost: www.lottery-machine.co.uk\r\n\r\n" to the open socket...

and it works fine!!!


"Laserjetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm running GTK on Win32 and have made an app that connects to a server
and
> downloads some data.
> I tested it over my LAN and it works fine, using both 10.0.0.1 and
> gethostbyname("amd") as the host in fsockopen(host, 80, 30)
> I've now tried running it over the internet, trying to connect to the
server
> www.lottery-machine.co.uk or gethostbyname(www.lottery-machine.co.uk) but
it
> won;t connect to the server. The window that displays the downloaded data
> contains a webpage which is produced by the web host when there's an error
> of some kind. If I type in the GET request
> (www.lottery-machine.co.uk/clientlogin.php?username=me&password=password)
in
> a web browser it works fine as expected.
> I'm in touch with them about the problem but does anyone know what is
> causing this? Does the host only accept connections from web browsers or
> something?
>
>


--- End Message ---
--- Begin Message ---
Hi,

I'm sure this one has been asked a thousand times, but I can't find it
in the list archives or the web, just lots of people with the same
problem.

I'm trying to execute a program from within a php script, I've tried
system, exec, etc., but all are unable to fork.  I belive this was a
bug, but was fixed (now running latest 4.1).  I think the problem will
go away if I allow IUSER_MACHINENAME access to cmd.exe on my win2k box,
but I don't want to do that for security reasons.  

Does anyone have a secure solution to running an executable from a php
script running on a win2k server?

Many thanks,

PaulMicrotech Limited
http://www.microtech.co.gg


This email or attachment(s) may contain confidential or legally privileged information 
intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or 
reproduction of this message, except as intended, is prohibited. If you received this 
email in error, please notify the sender and remove all copies of the message, 
including any attachments. Any views or opinions expressed in this email (unless 
otherwise stated) may not represent those of Microtech Limited.

This email has been scanned for viruses by MailSafe.  For more infomation please visit 
http://www.microtech.co.gg/mailSafe


--- End Message ---
--- Begin Message ---
Hi everyone, I'm running Win98/Apache/PHP 4.1.1/MySQL.
Everything so far has been really smooth and I have had no problems at all.
The function passthru() however is really killing me. I can't get it to work
nor system() og exec().
So now I just wanted to know if anyone running the same combo as me has
gotten this/these function(s) to work?

Please let me know asap if you know how to make this work, I really need it.

Thanks...

~ Sviss [EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Hi,

Has anyone been able to get cURL to work under windows?

I've tried to load the cURL extension, but it causes Apache to crash on
startup.
What am I missing?


On another extensions related issue:
Has anyone been able to get GTK0.5 to work?
I've followed the README for installing GTK0.5, it installs OK and PHP runs
fine, but "php_win d:/php4/gtk/test/gtk.php" does nothing. php -q
d:/php4/gtk/test/gtk.php does nothing either.

(I used to be able to run GTK0.1a before I upgraded PHP to 4.06)


I'm running Apache 1.3.22, mod PHP4.1.1, mod SSL, Win2000


Thanks, any help would be appreciated.


Ignatius



--- End Message ---
--- Begin Message ---
Hello,

I am using IIs 5 on windows 2k sp2 with php 4.1.1.
There is a problem with the sctipt that follows and MSIE versions 5 to 6

Here is the description.
A script sends a jpeg image to the client. It goes like this:

------------------------------------------------------
$imgsrc = 'full path of the image file';
....
header ("Content-type: some/image");
header ("Content-disposition: attachment; filename=myimage.jpg");
header ("Content-length: ".filesize($imgsrc) );

$fp = fopen( $imgsrc, "rb" );
if( !$fp ) {
    $gError->Create( 'photodl.htm', 0, "Unable to open existing file:
$imgsrc");
    $gError->ErrLog();
    exit;
}

fpassthru ($fp);

exit;
------------------------------------------------------

It works fine if the user desides to save or open the image.
But if the user cancels the download, Internet Explorer stops
stops receiving anything from the site. Any click on a link hangs
when IE displays in the status bar "Web site found. Waiting for reply"
It does not hang completely. Links to static html files on my web server
work
and you can also browse any other sites, but nothing on my site that is
parsed by
php works.

After some attemts (clicks and reloads), IIs reports the following message:
"HTTP 403.9 - Access Forbidden: Too many users are connected
Internet Information Services"
Increasing the user limit on IIS, just requires a few more atemts to show
this message.
After I close all IE instances or restart IIS, everything works fine again.

I have tried ignore_user_abort, sending expire headers, readfile instead of
fpassthru etc but the problem persists.
Nothing changes with older versions of php or IE.

This problem does not happen when using Netscape (any version).
Similar script written in perl does not have the same problem.

Please help. It is a very-very late to switch to another scripting language
for
this project (even using perl or asp for the download part) requires a great
deal of work.

John Chronakis



--- End Message ---

Reply via email to