php-windows Digest 5 Apr 2001 10:10:12 -0000 Issue 528

Topics (messages 6518 through 6526):

Re: Exec() In Windows
        6518 by: James Moore
        6522 by: Jason Gan
        6523 by: Robin Bolton

Methods for uploading files
        6519 by: Mike Flynn

Re: HELP!!! (PHP-WINDOWS98-APACHE)
        6520 by: Bhala

Re: Help!! Again!!(WINDOWS98-APACHE)
        6521 by: Bhala

Oracle record counting
        6524 by: Florian Clever

something wrong w/ ereg() ?
        6525 by: ~~~i LeoNid ~~

e-mail virus "snowhite ... ha,ha,ha"
        6526 by: Wolfgang Schneider

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]


----------------------------------------------------------------------


> >Hi,
> >
> >I have the same problem, I don't understand the problem.
> >
> >
> >
> >"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Hi,
> >> Im having a Problem running an application from a PHP page using the
> >> Exec() function (as well as all the other program execution
> fuctions) on a
> >> Windows NT Server running Apache.
> >>
> >> The code I attempt to run is : $ReturnVal = exec("Application.exe");
> >>
> >> It returns with Unable to Fork....
> >>
> >> Does any body have any idea on how to fix this or an
> alternative so I can
> >> just run the damm application....

This is a known problem with the ISAPI extension and is being worked on at
present although we do not currently have a solution.

- James
--
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/





Dear Ladies and Gents,

That error message "Unable to fork" is stupid, because fork is not supported
under Windows, as it is a Unix command to fork two processes. Windows uses
multi-threading instead.
They should just rename the error message to "Identified PHP4 error".

:0)

-- Jason



-----Original Message-----
From: Olivier Hubert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 5 April 2001 8:06 AM
To: zugut; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Exec() In Windows


Hi,

        You've probably already looked into this, but I just wanted to be sure:
have you checked the persmissions on "Application.exe" ? I believe PHP uses
IUSR_Computer (where Computer is your computer name) to exec() anything so
if IUSR_Computer doesn't have the rights to read+execute the program, it
will return an error message.

Hope this helps!

Olivier

>Hi,
>
>I have the same problem, I don't understand the problem.
>
>
>
>"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi,
>> Im having a Problem running an application from a PHP page using the
>> Exec() function (as well as all the other program execution fuctions) on
a
>> Windows NT Server running Apache.
>>
>> The code I attempt to run is : $ReturnVal = exec("Application.exe");
>>
>> It returns with Unable to Fork....
>>
>> Does any body have any idea on how to fix this or an alternative so I can
>> just run the damm application....
>>
>> Cheers
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]






It's not always the best idea to hop onto a mailing list owned by the
developers of a scripting language and accuse them of making 'stupid'
decisions.

If you feel that this issue is major, perhaps you should either join the
developers list and make the suggestion in a nicer manner, or gain CVS
access and make the contribution yourself.

</soapbox>

> -----Original Message-----
> From: Jason Gan [mailto:[EMAIL PROTECTED]]
> Sent: April 4, 2001 7:10 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Exec() In Windows
>
>
> Dear Ladies and Gents,
>
> That error message "Unable to fork" is stupid, because fork is
> not supported
> under Windows, as it is a Unix command to fork two processes. Windows uses
> multi-threading instead.
> They should just rename the error message to "Identified PHP4 error".
>
> :0)
>
> -- Jason
>
>
>
> -----Original Message-----
> From: Olivier Hubert [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 5 April 2001 8:06 AM
> To: zugut; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Exec() In Windows
>
>
> Hi,
>
>       You've probably already looked into this, but I just wanted
> to be sure:
> have you checked the persmissions on "Application.exe" ? I
> believe PHP uses
> IUSR_Computer (where Computer is your computer name) to exec() anything so
> if IUSR_Computer doesn't have the rights to read+execute the program, it
> will return an error message.
>
> Hope this helps!
>
> Olivier
>
> >Hi,
> >
> >I have the same problem, I don't understand the problem.
> >
> >
> >
> >"Keith Stevenson" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Hi,
> >> Im having a Problem running an application from a PHP page using the
> >> Exec() function (as well as all the other program execution
> fuctions) on
> a
> >> Windows NT Server running Apache.
> >>
> >> The code I attempt to run is : $ReturnVal = exec("Application.exe");
> >>
> >> It returns with Unable to Fork....
> >>
> >> Does any body have any idea on how to fix this or an
> alternative so I can
> >> just run the damm application....
> >>
> >> Cheers
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >>
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





Hey all,

I would like to enable my users to upload binary data into the database -- 
into MySQL blobs.  I/e they could upload images, or word documents, 
etc.  However, my network administrators have told me that they have PHP 
file uploads disabled for security reasons.

My question to you is this: If the binary data (file) being uploaded is not 
going into a new file on the server but rather just funneled into the 
database, can I still allow users to upload files using those form file 
input fields?  If not, is there any workaround?

They mentioned something about RFC1867 file uploads, specifically using a 
Perl/CGI implementation (see http://www.vivtek.com/cgi/getargs.html).

My question, then is: Can I still do this type of file upload feature for 
my users, either in PHP or with this Perl method, or are web-enabled 
uploads of files pretty much out of the question?

Thank you very much for all help!

-Mike Flynn



               -=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
Born to see two thousand years
of man's effect upon the planet          [Killing Joke]
Extinction seems to be a plausible risk





n\m about that I got every thing to work now
"Joe Brown" <[EMAIL PROTECTED]> wrote in message
9add21$1fv$[EMAIL PROTECTED]">news:9add21$1fv$[EMAIL PROTECTED]...
> You need php4apache.dll only if you are running php as a module of Apache,
> not as a CGI or executable.  php.exe does not require php4apache.dll,
> php4apache.dll does not require php.exe.  They are mutually exclusive.
>
> ""Bhala"" <[EMAIL PROTECTED]> wrote in message
> 99vol8$3di$[EMAIL PROTECTED]">news:99vol8$3di$[EMAIL PROTECTED]...
> > I think my problem is that I am trying to run PHP not in CGI mode or
what
> > ever....I think I need the php4apache.dll thing tho & for some resion I
> dont
> > have it. =\
> > <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello again,
> > > Ok, I began thinking about your problem, and I think I remeber
something
> > > about this, I was not able to do just "php" on the actions and
aliases,
> I
> > had
> > > to do php4 for some reason.  but I loaded uup apache today and tried
the
> > cgi
> > > version, and it worked, heres the following thats located in my
> httpd.conf
> > > file:
> > >
> > > (change D:/server/apps/php/ to your php location)
> > >
> > > ScriptAlias /php4/ "D:/server/apps/php/"
> > > Action application/x-httpd-php4 "/php4/php.exe"
> > > AddType application/x-httpd-php4 .php
> > >
> > >
> > > Hope this helps.
> > >
> > > ~Jeff
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hello?
"Bhala" <[EMAIL PROTECTED]> wrote in message
9a3rjt$5gj$[EMAIL PROTECTED]">news:9a3rjt$5gj$[EMAIL PROTECTED]...
How you  set up apache so that it will run in the background when I start
windows & will shut down when I exit windows???







Hi John,

your first example looks right. Can you send us the code you use to list
the records. I would expect the problem in there, because in your second
example basically the FetchStatement is not doing anything as the
statement has not been executed.
You need to loop through the result set array differntly after the
FetchStatement, then looping through the results without exec.

BTW: I had performance drops with the FetchStatement.

Florian


Von: 
        "Asendorf, John" <[EMAIL PROTECTED]>
                                                                      Mi
20:35

 Betreff: 
        Oracle record counting
     An: 
        "Php-Windows (E-mail)" <[EMAIL PROTECTED]>



I'm attempting to work on a little oracle search...

My problem is that if I put the OCIExecute BEFORE the OCIFetchStatement
line, I get one error ( Warning: OCIFetchInto: ORA-01002: fetch out of
sequence in d:\InetPub\wwwroot\etc. ) but if I put OCIExecute AFTER the
OCIFetchStatement I get a different error (Warning: OCIFetchStatement:
ORA-24338: statement handle not executed in ).

In this order:

OCIExecute ( $stmt_search , OCI_DEFAULT );
$nrows = OCIFetchStatement( $stmt_search , $results );
echo "<P>There are $nrows records containing your criteria.</P>";

I get the number of records, but the I don't get the reords listed.



In this order:

$nrows = OCIFetchStatement( $stmt_search , $results );
echo "<P>There are $nrows records containing your criteria.</P>";
OCIExecute ( $stmt_search , OCI_DEFAULT );

I get the list of records, but no amount of records...  I tried running
a
reset( $results); on it but that didn't seem to help...

Can someone help?  Oracle 8.1.6 client (7.3.4 server) NT4 IIS4 PHP 4.0.4
CGI

Thanks,

John
        

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit
-- 

Florian Clever

[EMAIL PROTECTED]
http://www.Clever-Software-Solutions.de/

PGP Key @ ldap://certserver.pgp.net/

"Always listen to experts. They'll tell you what can't be done, and why.
Then do it. " -- Robert A. Heinlein




Are people here aware of specifics for implementation of all ereg~() functions?
It seemed, they didn't work for relatively complex comparisons (with long
strings) at least on Windows95. 

Some of thier calls complain about about reg_expressions, like "?"
qualifiers, etc, some expressions - are not interpreted, as intended, and
for some - script even goes into stall without warning (never returns from
it nor crash!)

When I replace ereg~() with matching preg~() everything works, as
designed. I now even replace ereg~() for simple calls, where it works,
just in case.

Anybody has the same experience?
--
LeoN     to  e-mail: cut  "auto_no." if present. 
(.±.)  ` to think - is to speak quietly,  to speak - is to think aloud`
 \~/     
My posted articles archive: http://leo.portland.co.uk/doc00.htm





Hi everyone,

for a little while now, I am at times receiving an e-mail with an
attached virus, the virus is of the "worm" category and self replicates
and sends out e-mails with some text about "snowhite and dwarfs" and a
file attachment (scr) to e-mail addresses in the person's address book.
 It seems to me that perhaps some list members' computer may be
infected and is sending out these mails.

Here's some information which I found with details about this virus,
and also info on how to remove it if your PC is infected ...

_____________________________________________
Hybris (Also known as Win32.Hybris)
Win32.Hybris is an e-mail worm which modifies WSOCK32.DLL to intercept
outgoing messages in a manner similar to Happy99 (which is also known
as
SKA).

When run, the worm makes a copy of WSOCK32.DLL in the Windows System
directory. The copy will have a random, 8 character name with no
extension.
The worm "infects" this copy by patching the functions used for
connecting,
and the sending and receiving of data.

The worm modifies WININIT.INI in the Windows directory, so that the
original
WSOCK32.DLL will be replaced with the modified copy the next time
Windows is
restarted.

>From this point, when the user sends an e-mail, the worm will send an
additional message to the same address with a copy of itself attached.
The
subject of the worm's message is:

"Snowhite and the Seven Dwarfs - The REAL story!"

The body of the message contains the following text (including the
spelling
mistakes):

"Today, Snowhite was turning 18. The 7 Dwarfs always where very
educated and
polite with Snowhite. When they go out work at mornign, they promissed
a
*huge* surprise. Snowhite was anxious. Suddlently, the door open, and
the
Seven Dwarfs enter..."

The name of the attachment is variable, and has an extension of either
.EXE
or .SCR.

The latest IPE program includes cleaning for the Wsock32.dll, though if
you
cannot access our download site to update IPE then you will need to
manually
replace this file as follows.

The WSOCK32.DLL file must be restored from backup. This can be done by:

Windows 98
- Click START | RUN, type SFC and click OK.
- Choose Extract one file from the installation disk
- Type C:\WINDOWS\SYSTEM\WSOCK32.DLL in the box and click Start.
- In the Restore from box type C:\WINDOWS\OPTIONS\CABS or browse to the
Win98 directory on your Windows98 CD-ROM
- Click OK and follow remaining prompts

Windows95
- Click START | SHUT DOWN choose RESTART IN MS-DOS MODE
- Type: EXTRACT /A C:\WINDOWS\OPTIONS\CABS\WIN95_11.CAB WSOCK32.DLL /L
C:\WINDOWS\SYSTEM
or
- Insert your Windows95 CD-ROM and type:
EXTRACT /A D:\WIN95\WIN95_11.CAB WSOCK32.DLL /L C:\WINDOWS\SYSTEM Where
D:
is your CD-ROM drive
__________________________________________________

I trust this helps, and that you can take a look to make sure that your
PC is not infected ... or else take the steps to remove the virus.

Have a good day.

God bless you with His grace and peace 
Wolfgang Schneider

Looking for Biblical information? COME AND SEE! Check it out NOW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ - "Great offers! Check
it out!"
-- Christian eBooks: http://www.christian-ebooks.de




Reply via email to