php-windows Digest 13 Mar 2001 05:18:15 -0000 Issue 488
Topics (messages 5969 through 5982):
Re: Poor PHP performane on Apache on Win 2000 Server
5969 by: Robin Bolton
Can't connect to Oracle
5970 by: Herbert Groot Jebbink
Re: PDF + WIN32
5971 by: Alain Samoun
PHP on virtual directories
5972 by: Ermanno Iannacci
5975 by: Romeo, Domenic A
Apache Modules
5973 by: Matt Williams
5974 by: Fernando Madruga
5981 by: Ignatius Teo
Re: Grab and print user's IP address
5976 by: Phillip Bow
5977 by: Dream
Re: Personal Web Server
5978 by: Michael Norum
Re: Win32 PHP, Apache Web Server, and Mail
5979 by: Mihai Matei
Re: MD5
5980 by: Ignatius Teo
Re: File download
5982 by: Urmil Parikh
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]
----------------------------------------------------------------------
Are you running Netscape? If so then I've found a quirk where Netscape
would freeze for a stupid amount of time if the 'ServerName' directive in
my Apache.conf was set to anything other than 'localhost', even though I
originally had it set to my actual server name.
This didn't affect IE at all, so it was a weird to see that the most
simple script would cause Netscape to choke.
> -----Original Message-----
> From: Mark Tipton [mailto:[EMAIL PROTECTED]]
> Sent: March 12, 2001 8:18 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Poor PHP performane on Apache on Win 2000 Server
>
>
> I have a Win 2000 Web server with Apache that works just fine. However
> whenever a PHP page is requested you must wait about 5 seconds
> for the page
> to be displayed, even if there are no actual PHP commands in the page
> itself. I have IIS and ASP running on the same server with an
> instantaneous
> response for requests on ASP pages. Any ideas on what could be
> causing such
> poor performance?
>
>
>
> --
> 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]
>
>
smime.p7s
Hi,
I can't connect from a win95/Apache setup to a Oracle database
- The PHP version is 4.04pl1 (Nusphere)
- The location for tnsnames.ora is c:\orawin95\network\admin\tnsnames.ora
- De Oracle version is 7.3.4.0.0
- De SQL*NET client version is 2.3.4.0.0
- Using the SQL PLUS 3.3 client on this machine works fine:
- The Oracle module is active in php.ini
The test program:
<?php
putenv('ORACLE_HOME=c:\orawin95');
putenv("ORACLE_SID=WKDS");
$conn = ora_plogon("hgj@wkds", "hgj");
?>
The result:
Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve
service name) in /www/data/ontwikkel/test/php/test3.php on line 5
Someone a idea whats wrong?
Greetings, Herbert
--
The Trans-Siberian Railroad Page: http://herbert.groot.jebbink.nl
You should probably do an installation with www.php4win.de ,then all the
extensions modules that you need can be instantiated in the php.ini file.
Alain
On Mon, Mar 12, 2001 at 09:23:13AM +0000, Ben Cairns wrote:
> Has anybody had any luck creating a PDF on a Win32 machine using php.
>
> Here is my config:
>
> Windows NT Server 4
> Apache 1.3.9
> PHP 4.0.4pl1
>
> I have a PDFLib, dont know if its the right one, or if its installed
> correctly. Could someone please send me the correct lib and install
> instructions.
>
> Thanks.
>
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.intasept.com
>
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK......"
>
>
> --
> 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]
I need PHP to run a script in a directory located on a computer different
from the web server where PHP is. I added the remote directory as a virtual
directory in IIS. I can only see this:
"CGI Error
the CGI application misbehaved by returning an incomplete set of HTTP
headers: the headers it sent are:"
(I don't remember exactly, maybe I lost some word)
Nothing follows this phrase, that is, I don't see any header.
Can PHP execute scripts on shared dirs? Problems of permissions? What does
it mean "Virtual directory support enabled" in phpinfo()?
Instead, I can see static HTML pages.
Using PHP 4.0.4, IIS 4.0, WinNT 4
PHP 4 doesn't seem to work correctly with UNC paths
(\\Servername\ShareName). To help debug, configure IIS to "check if file
exists" for .php (or whatever extension you use). I have gotten around this
by mapping the share to a drive letter. PHP 4 works correctly with virtual
directories that are accessed via drive letter. Permanently setting drive
letters for shares is very difficult on NT servers, but can be done.
Domenic
-----Original Message-----
From: Ermanno Iannacci [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 12:32 PM
To: Lista PHP Windows
Subject: [PHP-WIN] PHP on virtual directories
I need PHP to run a script in a directory located on a computer different
from the web server where PHP is. I added the remote directory as a virtual
directory in IIS. I can only see this:
"CGI Error
the CGI application misbehaved by returning an incomplete set of HTTP
headers: the headers it sent are:"
(I don't remember exactly, maybe I lost some word)
Nothing follows this phrase, that is, I don't see any header.
Can PHP execute scripts on shared dirs? Problems of permissions? What does
it mean "Virtual directory support enabled" in phpinfo()?
Instead, I can see static HTML pages.
Using PHP 4.0.4, IIS 4.0, WinNT 4
--
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]
Hi
Does anyone know where I can get pre-compiled Apache modules for win32?
I've looking in the modules dir with the distro but there's no dll's.
I'm particularly after mod_rewrite
TIA
M@
Depending on your distribution, they may be called something else, e.g.:
mod_rewrite.so
Almost ALL files under modules/ in your installation directory ARE
modules...
HTH,
Fernando Madruga
-----Original Message-----
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 12 de Março de 2001 17:52
To: PHP_UK@egroups.; Php-Windows@Lists. Php.
Subject: [PHP-WIN] Apache Modules
Hi
Does anyone know where I can get pre-compiled Apache modules for win32?
I've looking in the modules dir with the distro but there's no dll's.
I'm particularly after mod_rewrite
TIA
M@
--
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]
Have u tried apache.org?
Ignatius
> -----Original Message-----
> From: Matt Williams [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 13 March 2001 04:52
> To: PHP_UK@egroups.; Php-Windows@Lists. Php.
> Subject: [PHP-WIN] Apache Modules
>
>
> Hi
>
> Does anyone know where I can get pre-compiled Apache modules
> for win32?
> I've looking in the modules dir with the distro but there's no dll's.
> I'm particularly after mod_rewrite
>
> TIA
>
> M@
>
> --
> 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]
>
Yes.
--
phill
""Dream"" <[EMAIL PROTECTED]> wrote in message
98ib6n$622$[EMAIL PROTECTED]">news:98ib6n$622$[EMAIL PROTECTED]...
> thanks
>
> This is for sure the user information (i.e. people visiting my site) not
> mine, right?
>
> marc
>
> ""Michael Rudel"" <[EMAIL PROTECTED]> escribió en el mensaje
> 001901c0aae6$33cac2a0$[EMAIL PROTECTED]">news:001901c0aae6$33cac2a0$[EMAIL PROTECTED]...
> > <?php
> > echo "Remote IP: ".$REMOTE_ADDR."<BR>\n";
> > echo "Browser: ".$HTTP_USER_AGENT."<BR>\n";
> > ?>
> >
> > If you want to get more EnvVars, RTFM or use
> > the phpinfo() -function.
> >
> > Greetinx,
> > Mike
> >
> > -----Original Message-----
> > From: Dream [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 12, 2001 12:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Grab and print user's IP address
> >
> >
> > > Hi!
> > >
> > > I need just a little script so I can get and print in browser the
> > currently
> > > users IP address and if possible, browser type, etc.
> > >
> > > Thanks a lot!
> > >
> > > marc
> >
> >
> >
> >
> > --
> > 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]
>
thanks!
""Phillip Bow"" <[EMAIL PROTECTED]> escribió en el mensaje
98j3gp$rsl$[EMAIL PROTECTED]">news:98j3gp$rsl$[EMAIL PROTECTED]...
> Yes.
> --
> phill
>
> ""Dream"" <[EMAIL PROTECTED]> wrote in message
> 98ib6n$622$[EMAIL PROTECTED]">news:98ib6n$622$[EMAIL PROTECTED]...
> > thanks
> >
> > This is for sure the user information (i.e. people visiting my site) not
> > mine, right?
> >
> > marc
> >
> > ""Michael Rudel"" <[EMAIL PROTECTED]> escribió en el mensaje
> > 001901c0aae6$33cac2a0$[EMAIL PROTECTED]">news:001901c0aae6$33cac2a0$[EMAIL PROTECTED]...
> > > <?php
> > > echo "Remote IP: ".$REMOTE_ADDR."<BR>\n";
> > > echo "Browser: ".$HTTP_USER_AGENT."<BR>\n";
> > > ?>
> > >
> > > If you want to get more EnvVars, RTFM or use
> > > the phpinfo() -function.
> > >
> > > Greetinx,
> > > Mike
> > >
> > > -----Original Message-----
> > > From: Dream [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, March 12, 2001 12:01 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Grab and print user's IP address
> > >
> > >
> > > > Hi!
> > > >
> > > > I need just a little script so I can get and print in browser the
> > > currently
> > > > users IP address and if possible, browser type, etc.
> > > >
> > > > Thanks a lot!
> > > >
> > > > marc
> > >
> > >
> > >
> > >
> > > --
> > > 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]
> >
>
>
> --
> 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]
>
You should really stay away from PWS, it uses a lot of system resources and
it's really hard to get out of your memory and startup process. You should
use apache instead. If you download a package from download.com called PHP
Triad then you should have everything you need. It sets everything up for
you and it's way faster than pws.
Michael
"Gud kaster ikke terning med universet!"
-Albert Einstein
-----Original Message-----
From: Marco Sarti [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 11, 2001 10:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Personal Web Server
I'm really new in PHP and I don'tknow if I need Personal Web Server
installed on my computer to test my .php pages before sending them to the
server
hat do I have to do to test my .php pages offline?Where can I download PWS?
Thanks..
Marco from Italy
--
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]
Hi.
I had the same problem. All the settings were right but the mail() function still
didn't worked. Finally I used a SMTP server on my machine. If the SMTP server is on
the same machine as the web server (apache in my case) the mail() function works fine.
If somebody has another solution for this problem, I, also be glad to hear it.
>Dear Friends,
>I have tried to be as specific I could according to the little knowledge I
>have in PHP, I have some problem to completing the task, I have read as much
>I could about that and having the same problem Adrian Gould have, to the
>exception that Apache run. Please find below all I have prepare if somebody
>have some clued why I will be more than grateful. As you will see the script
>works to retrieve the information input but did not send the message. I
>could ping the smtp so I have completely froze here.
>
>Thanks Giro
><-----------------------------Results I got after send the
>form---------------------------->
><br>
><b>Warning</b>: Server Error in <b>c:\program files\apache
>group\apache\htdocs\send_simpleform.php</b> on line <b>13</b><br>
><html>
><head>
><title>Simple Feedback Form Sent</title>
></head>
><body>
><h1>The Following e-mail has been sent:</h1>
><P><strong>Your Name:</strong><br>
>giro de roover
><P><strong>Your E-Mail Address:</strong><br>
>[EMAIL PROTECTED]
><P><strong>Message:</strong><br>
>PHP is supposed to be cool!!!
></body>
></html>
>
><-----------PHP.ini--------------------->
>
>[mail function]
>SMTP = smtp.starband.net ;for win32
>only
>sendmail_from = [EMAIL PROTECTED] ;for win32 only
>
><--------send_simpleform.php------------->
><?php
>$msg = "E-MAIL SENT FROM WWW SITE\n";
>$msg .= "Sender's Name:\t$sender_name\n";
>$msg .= "Sender's E-Mail:\t$sender_email\n";
>$msg .= "Message:\t$message\n\n";
>$to = "[EMAIL PROTECTED]";
>$subject = "Web Site Feedback";
>$mailheaders = "From: My Web Site <> \n";
>$mailheaders .= "Reply-To: $sender_email\n\n";
>mail($to, $subject, $msg, $mailheaders);
>?>
><html>
><head>
><title>Simple Feedback Form Sent</title>
></head>
><body>
><h1>The Following e-mail has been sent:</h1>
><P><strong>Your Name:</strong><br>
><? echo "$sender_name"; ?>
><P><strong>Your E-Mail Address:</strong><br>
><? echo "$sender_email"; ?>
><P><strong>Message:</strong><br>
><? echo "$message"; ?>
></body>
></html>
>
><----------------simple_form.html------------------------>
><html>
><head>
><title>Simple Feedback Form</title>
></head>
><body>
>
><form method="post" action="send_simpleform.php">
>
><p><strong>Your Name:</strong><br>
><input type="text" name="sender_name" size=30></P>
>
><p><strong>Your Email Address:</strong><br>
><input type="text" name="sender_email" size=30></P>
>
><p><strong>Message:</strong><br>
><textarea name="message" cols=30 rows=5 wrap=virtual></textarea></p>
>
><P><input type="submit" name="submit" value="Send This Form"></P>
>
></form></body></html>
Ben,
You should be able to do a normal == comparison or a strcmp(). But that's not really
what you're after is it?
Have a look at PHPLIB (phplib.netuse.de), in particular, the crypto_secure
authentication stuff. I think you'll find what you're looking for.
Ignatius
> -----Original Message-----
> From: Ben Cairns [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 12 March 2001 22:50
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] MD5
>
>
> I have a string that I want to MD5 (No prizes for guessing
> its a password),
> what I want to do is MD5 two strings (one supplied by the
> user, and one by my
> server) and compare them. How can I do this?
>
>
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.intasept.com
>
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK......"
>
>
> --
> 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]
>
Hi,
I tried with various types including application/octet-stream, but it did not
help.
It seems that IE takes file name from the link (whatever follows after the last
'/' in the link). That is, if my link is 'download.php?path=/abc&file=xyz.txt',
IE prompts for file 'abc&file=xyz.txt' but if I introduce a '/' before file
name, 'download.php?path=/abc&file=/xyz.txt', IE prompts for file 'xyz.txt'.
However, in save dialogue it shows 'download' as file name. If I select 'Open',
it prompts again with 'download' as file name.
May be it is a problem with valid characters in a file name.
Regards, | Linux
Urmil Parikh | It is now safe to turn on your computer
-----Original Message-----
Hi,
I believe your problem is related to the fact that you use
"unknown" in your content-type header. This forces IE to search for an
application to open the file of "unknown" type. Have you tried any other
content-types?
For more info on content-types, see the HTTP1.1 RFC:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
Olivier Hubert
>Hi,
>
>I'm using following code to download a file. IE5 shows the Open/Save dialogue,
>if I select 'Save", it works. But if I select "Open", it again shows the same
>dialog with the name of my .php file. Now if I say open, it opens a blank
>file.
>Can anybody help me?
>
> header("Content-type: unknown");
> header("Content-Disposition: attachment; filename=$name;");
> readfile($name);
>
>Regards, | Linux
>Urmil Parikh | It is now safe to turn on your computer