php-windows Digest 13 Mar 2003 10:51:43 -0000 Issue 1632
Topics (messages 18985 through 18992):
Re: Installing PHP with Apache on Win ME
18985 by: Thomas Smart
Strange Problem ! help required
18986 by: Raheel Hussain
18989 by: Rich Gray
NT Domain authentication with PHP
18987 by: Nico Alberti
Problem with exec(). Help needed!
18988 by: P.Gertman.informgaz.gazprom.ru
18990 by: Rich Gray
18991 by: P.Gertman.informgaz.gazprom.ru
Re: PHP extensions on IIS (Java, PDF)
18992 by: Alexandru COSTIN
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 ---
er... not use winME :-)
"Nick Scott" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have gone through the steps and when I open a php page it wants to
> download the page.
>
> What do I need to do?
>
>
--- End Message ---
--- Begin Message ---
hi
i have been using php for 1 year,
but i have never face problem like this,
when ( by clicking on a link ) the browser navigates to "register.php" page,
it displays correctly , but when i click the "refresh button" to reload the page,
it doesn't display any thing but display only one error line,
Warning: Failed opening 'D:\Documents and
Settings\Administrator\Desktop\ss\main\register.php' for inclusion
(include_path='.;C:\PHP\pear;c:\php\includes') in Unknown on line 0
here i have tried many combinations of paths
in the php.ini file but all worked the same
.;c:\php
c:\php
c:\php\pear
.;\php\pear
c:\php\include ( this path does not exists but i tried it )
.;c:\php\include ( this path does not exists but i tried it )
c:\php\pear;c:\php
.;c:\php\pear;c:\php
etc.
but all are working the same
is there any thing i m missing ??
thankx in advance
---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
--- End Message ---
--- Begin Message ---
> hi
>
> i have been using php for 1 year,
> but i have never face problem like this,
> when ( by clicking on a link ) the browser navigates to
> "register.php" page,
> it displays correctly , but when i click the "refresh button" to
> reload the page,
> it doesn't display any thing but display only one error line,
>
> Warning: Failed opening 'D:\Documents and
> Settings\Administrator\Desktop\ss\main\register.php' for
> inclusion (include_path='.;C:\PHP\pear;c:\php\includes') in
> Unknown on line 0
>
This looks odd -> D:\Documents and Settings\Administrator\Desktop
Are you really running your php code from a folder below your desktop?
What web server are you running? What is the document root for the site?
Rich
--- End Message ---
--- Begin Message ---
Hi everybody.
I would like to use my NT domain Usermame/Password to authenticate users in
my intranet, but I am not able to set up a working page.
I work under NT4/Apache 1.3.27/PHP4.3.0 I tried the following test script
using COM and OpenDSObject:
$objWinNT = new COM("WinNT:") or die("Cannot get objWinNT object");
$nobj=$objWinNT->OpenDSObject("WinNT://$domname", "$login", "$password",
0x01);
if (is_object($nobj))
{
echo "PDC login done";
}
else
{
echo "PDC login failed";
exit;
}
but I get the following error:
Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Invalid syntax
in ....
I am an absolute beginner using COM technology; can anybody give some
advice? A working test script wolud be greatly appreciated :-)
Thank you in advance
--
Ciao
Nico
--- End Message ---
--- Begin Message ---
I'm using PHP for accessing PROGRESS database. Due to lack of native
interface between PHP and PROGRESS i'm forced to get the data like this:
......some code......
exec($_pro . ' -U '.$p_usertext.' -P '.$p_passtext.' -p
query.p',$pro_out,$pro_code);
......some code......
where
-> $_pro is a string containing calling parameters for PROGRESS console
client (they call it char client),
-> query.p is a PROGRESS 4GL script doing actual query and returning to
stdout some data in the form '$variable=value;' so it can be eval()'d in
PHP.
The problem appears when i dynamically compose some PROGRESS 4GL script in
PHP string then writing it to a file and then exec() above mentioned
sequence. PROGRESS works just fine - when i start its client app from pure
command line it returns all the data it should.
BUT same script but called from PHP via exec() -- PHP hangs and i'm
restarting Apache to get it working again. If i simply comment out the line
with exec() - all works fine again (of course without the data from
PROGRESS).
Configuration of server:
pentium III 500MHz with 384 MB of RAM / Windows 2000 Server SP3 (Russian).
Apache 1.3.26 + PHP 4.3.0 (module, not CGI)
our project has only 3 users at this time, so this hardware is powerful
enough :).
--- End Message ---
--- Begin Message ---
> I'm using PHP for accessing PROGRESS database. Due to lack of native
> interface between PHP and PROGRESS i'm forced to get the data like this:
>
> ......some code......
> exec($_pro . ' -U '.$p_usertext.' -P '.$p_passtext.' -p
> query.p',$pro_out,$pro_code);
> ......some code......
>
> where
> -> $_pro is a string containing calling parameters for PROGRESS console
> client (they call it char client),
> -> query.p is a PROGRESS 4GL script doing actual query and returning to
> stdout some data in the form '$variable=value;' so it can be eval()'d in
> PHP.
>
> The problem appears when i dynamically compose some PROGRESS 4GL script in
> PHP string then writing it to a file and then exec() above mentioned
> sequence. PROGRESS works just fine - when i start its client app from pure
> command line it returns all the data it should.
> BUT same script but called from PHP via exec() -- PHP hangs and i'm
> restarting Apache to get it working again. If i simply comment
> out the line
> with exec() - all works fine again (of course without the data from
> PROGRESS).
>
> Configuration of server:
> pentium III 500MHz with 384 MB of RAM / Windows 2000 Server SP3
> (Russian).
> Apache 1.3.26 + PHP 4.3.0 (module, not CGI)
> our project has only 3 users at this time, so this hardware is powerful
> enough :).
Can you not use ODBC to connect to the Progress database? It will probably
be simpler than an exec() call... but anyway if your Progress script is
returning data that PHP needs to parse then try using passthru() instead...
HTH
Rich
--- End Message ---
--- Begin Message ---
>Can you not use ODBC to connect to the Progress database? It will probably
>be simpler than an exec() call... but anyway if your Progress script is
>returning data that PHP needs to parse then try using passthru() instead...
Thanks! i'll try passthru() right now.
<?php
require_once("webdoc_cfg.php");
$fname="D:/htdocs/p/php_test_make_res.p";
$p_code_test='{utils.i}
writeln("<?php").
writeln("$zzz=42;").
writeln("echo ~"in PROGRESS zzz=$zzz~";").
writeln("?>").';
if(!$fp = fopen($fname, 'w'))
{
print "Cannot open file ($fname)";
exit;
}
if (!fwrite($fp,$p_code_test))
{
print "Cannot write to file ($fname)";
exit;
}
fclose($fp);
passthru($_pro.' -U ******** -P ********* -p '.$fname,$pro_code2);
echo "zzz=$zzz";
?>
hm... it does not work!
output of command called with passthru() is NOT parsed by PHP.
so i get in my browser just the same bla-bla that my PROGRESS script
generates:
==========================
<?php
$zzz=42;
echo "in PROGRESS zzz=$zzz";
?>
zzz=
==========================> from browser's "view source"
Of course i can use ODBC. But ODBC driver for PROGRESS seems to be a really
odd and slow thing.
--- End Message ---
--- Begin Message ---
Hei,
Have you copied the files from the C:\php\dlls foldes in the
c:\windows\system folder?
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610
"Frank Hirsch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I'm successfully running Sablotron (php_xslt.dll) on IIS and Apache.
>
> PDF (php_pdf.dll) and Java (php_java.dll) only works on Apache :-(
>
> I'm using Apache and IIS on the same machine (same PHP Version and
php.ini).
>
> Any hints how to get the additional modules to work on IIS? If I call the
> same documents (pdf.php/java.php) on Apache all works fine - on IIS: "Call
> to undefined function: pdf_new()"...
>
> Frank
>
>
--- End Message ---