php-windows Digest 28 Apr 2002 13:11:05 -0000 Issue 1116

Topics (messages 13362 through 13366):

Re: executing an external program
        13362 by: Webmaster

Re: possible bug or ?
        13363 by: Webmaster
        13364 by: George Nicolae
        13366 by: Webmaster

translation :-)
        13365 by: Erik

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 ---
If you have your mime type settings set correct in your Internet Explorer,
you just have to do a HTML call to a Winword document to make Winword
integrate with the browser !

The way you are trying now is the most dangerous one, because it can then
too execute other programs remotely !

This is also why most servers have the _exec command turned off....

C vd Veen


"Rainer Bruch" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i am new in using and understanding php. need help in following issue:
> opening (executing) an external program (not a file) like "winword.exe"
with
> php4.
> my system-configuration:
> - windows 2000
> - php4 1.1.1
> - winword execution program-path is:
> "c:\programme\micosoft office\office\winword.exe"
>
> please, will somebody out there will help me with the complete php-code
> like:
> <?
> "code to execute the winword-program";
> ?>
>
> i have asked a so called specialist who gave the following (not
functioning,
> no error message) code:
> <?
> shell_exec("c:\programme\microsoft office\office\winword.exe");
> ?>
>
> thanks to all who will help me
> rainer
>
>


--- End Message ---
--- Begin Message ---
Hallo Erik, je probleem is Windows 2000, de php pagina's geven aan wat er
verandert moet worden in je PHP.INI file.

Als je de laatste PHP hebt, is dat 4.2.0 en moet je in de PHP.INI het
volgende toevoegen:

cgi.force_redirect=0
cgi.redirect_status_env ENV_VAR_NAME

Je probleem moet dan opgelost zijn !

Cor
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Hello Erik,
Your problem seems to be Windows 2000, the php pages should give an error
with the solution mentioned on them, if you disable user friendly http
errors in your webbrowsers settings.

If you have the latest version of PHP, this must be 4.2.0 and do you have to
change your PHP.INI file.

Add the next two lines to PHP.INI (C:\windows):
cgi.force_redirect=0
cgi.redirect_status_env ENV_VAR_NAME

This should solve your problem!

Cor




"Erik" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> To this newsserver i'm new but i use php for over two years now.Last night
i
> checked the offcial php website to see if ther is a newer version relased
as
> mine 4.1.2 so i downloaded and installed the latest php.i edited my
> httpd.conf file and installed php as module restarted my apache server and
> by a test i tryed to submit the form on my website apache said "http 500
> internal server error" usually this is related to the files rights read
> write etc CHMOD but i'm on windows 2000 so there is no CHMOD what is wrong
> here why do i get that error ? the same form worked fine with the php
> version already installed  it always says that i created a little sscript
> (http authentication) to test when i run it > http 500 what is this ??
>
> regards from belgium
> Erik
>
>


--- End Message ---
--- Begin Message ---
dear "webmaster",
you have a wonderful language ;) but please, for us who don't read Spinoza
in original, write in English.

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Webmaster" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hallo Erik, je probleem is Windows 2000, de php pagina's geven aan wat er
> verandert moet worden in je PHP.INI file.
>
> Als je de laatste PHP hebt, is dat 4.2.0 en moet je in de PHP.INI het
> volgende toevoegen:
>
> cgi.force_redirect=0
> cgi.redirect_status_env ENV_VAR_NAME
>
> Je probleem moet dan opgelost zijn !
>
> Cor
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Hello Erik,
> Your problem seems to be Windows 2000, the php pages should give an error
> with the solution mentioned on them, if you disable user friendly http
> errors in your webbrowsers settings.
>
> If you have the latest version of PHP, this must be 4.2.0 and do you have
to
> change your PHP.INI file.
>
> Add the next two lines to PHP.INI (C:\windows):
> cgi.force_redirect=0
> cgi.redirect_status_env ENV_VAR_NAME
>
> This should solve your problem!
>
> Cor
>
>
>
>
> "Erik" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > hi all,
> >
> > To this newsserver i'm new but i use php for over two years now.Last
night
> i
> > checked the offcial php website to see if ther is a newer version
relased
> as
> > mine 4.1.2 so i downloaded and installed the latest php.i edited my
> > httpd.conf file and installed php as module restarted my apache server
and
> > by a test i tryed to submit the form on my website apache said "http 500
> > internal server error" usually this is related to the files rights read
> > write etc CHMOD but i'm on windows 2000 so there is no CHMOD what is
wrong
> > here why do i get that error ? the same form worked fine with the php
> > version already installed  it always says that i created a little
sscript
> > (http authentication) to test when i run it > http 500 what is this ??
> >
> > regards from belgium
> > Erik
> >
> >
>
>


--- End Message ---
--- Begin Message ---
If you had read the whole answer I gave, you would have found the English
translation below the Dutch explanation !

Webmaster


"George Nicolae" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> dear "webmaster",
> you have a wonderful language ;) but please, for us who don't read Spinoza
> in original, write in English.
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> PaginiWeb.com  - Professional Web Design
> www.PaginiWeb.com
>
>
> "Webmaster" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hallo Erik, je probleem is Windows 2000, de php pagina's geven aan wat
er
> > verandert moet worden in je PHP.INI file.
> >
> > Als je de laatste PHP hebt, is dat 4.2.0 en moet je in de PHP.INI het
> > volgende toevoegen:
> >
> > cgi.force_redirect=0
> > cgi.redirect_status_env ENV_VAR_NAME
> >
> > Je probleem moet dan opgelost zijn !
> >
> > Cor
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > Hello Erik,
> > Your problem seems to be Windows 2000, the php pages should give an
error
> > with the solution mentioned on them, if you disable user friendly http
> > errors in your webbrowsers settings.
> >
> > If you have the latest version of PHP, this must be 4.2.0 and do you
have
> to
> > change your PHP.INI file.
> >
> > Add the next two lines to PHP.INI (C:\windows):
> > cgi.force_redirect=0
> > cgi.redirect_status_env ENV_VAR_NAME
> >
> > This should solve your problem!
> >
> > Cor
> >
> >
> >
> >
> > "Erik" <[EMAIL PROTECTED]> schreef in bericht
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > hi all,
> > >
> > > To this newsserver i'm new but i use php for over two years now.Last
> night
> > i
> > > checked the offcial php website to see if ther is a newer version
> relased
> > as
> > > mine 4.1.2 so i downloaded and installed the latest php.i edited my
> > > httpd.conf file and installed php as module restarted my apache server
> and
> > > by a test i tryed to submit the form on my website apache said "http
500
> > > internal server error" usually this is related to the files rights
read
> > > write etc CHMOD but i'm on windows 2000 so there is no CHMOD what is
> wrong
> > > here why do i get that error ? the same form worked fine with the php
> > > version already installed  it always says that i created a little
> sscript
> > > (http authentication) to test when i run it > http 500 what is this ??
> > >
> > > regards from belgium
> > > Erik
> > >
> > >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
hi,

well the webmaster said the prolem is windows 2000 itself and that i have to
edit my php.ini file  with this rules
cgi_fore_redirect = 0 //already there this one
cgi.redirect_status_env ENV_VAR_NAME

that's all ........


"George Nicolae" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> dear "webmaster",
> you have a wonderful language ;) but please, for us who don't read Spinoza
> in original, write in English.
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> PaginiWeb.com  - Professional Web Design
> www.PaginiWeb.com
>
>
> "Webmaster" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hallo Erik, je probleem is Windows 2000, de php pagina's geven aan wat
er
> > verandert moet worden in je PHP.INI file.
> >
> > Als je de laatste PHP hebt, is dat 4.2.0 en moet je in de PHP.INI het
> > volgende toevoegen:
> >
> > cgi.force_redirect=0
> > cgi.redirect_status_env ENV_VAR_NAME
> >
> > Je probleem moet dan opgelost zijn !
> >
> > Cor
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > Hello Erik,
> > Your problem seems to be Windows 2000, the php pages should give an
error
> > with the solution mentioned on them, if you disable user friendly http
> > errors in your webbrowsers settings.
> >
> > If you have the latest version of PHP, this must be 4.2.0 and do you
have
> to
> > change your PHP.INI file.
> >
> > Add the next two lines to PHP.INI (C:\windows):
> > cgi.force_redirect=0
> > cgi.redirect_status_env ENV_VAR_NAME
> >
> > This should solve your problem!
> >
> > Cor
> >
> >
> >
> >
> > "Erik" <[EMAIL PROTECTED]> schreef in bericht
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > hi all,
> > >
> > > To this newsserver i'm new but i use php for over two years now.Last
> night
> > i
> > > checked the offcial php website to see if ther is a newer version
> relased
> > as
> > > mine 4.1.2 so i downloaded and installed the latest php.i edited my
> > > httpd.conf file and installed php as module restarted my apache server
> and
> > > by a test i tryed to submit the form on my website apache said "http
500
> > > internal server error" usually this is related to the files rights
read
> > > write etc CHMOD but i'm on windows 2000 so there is no CHMOD what is
> wrong
> > > here why do i get that error ? the same form worked fine with the php
> > > version already installed  it always says that i created a little
> sscript
> > > (http authentication) to test when i run it > http 500 what is this ??
> > >
> > > regards from belgium
> > > Erik
> > >
> > >
> >
> >
>
>


--- End Message ---

Reply via email to