php-windows Digest 14 Mar 2003 19:58:32 -0000 Issue 1634
Topics (messages 19002 through 19010):
Re: Sending mail on Windows 98
19002 by: Uttam
19003 by: Sven Schnitzke
Re: dl() doesn't work . PHP 4.3.1 + Apache 1.3 + Win2k.
19004 by: P.Gertman.informgaz.gazprom.ru
19006 by: Brian 'Bex' Huff
test
19005 by: Sol
[PHP4] + [Apache2] + [WinXP]: Function to get session info()
19007 by: Shaffin Bhanji
REMOTE_USER or PHP_AUTH_USER from Apache and PHP
19008 by: Paul B. McBride
Unable to install PHP4.2.3 + Apache 1.3 + Win2k
19009 by: Diego Fulgueira
Re: xml and php
19010 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 ---
On my Win98 / Xitami / PHP 4.2.3, I only specify following in php.ini:
[mail function]
SMTP=<host name or IP address of mail server>
sendmail_from=<email address for from>
and it works pretty well.
regards,
-----Original Message-----
From: Geoff Ogilvy [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 01:40
To: [EMAIL PROTECTED]
Subject: Sending mail on Windows 98
Summary : do I have an MTA ?
Detail : Some scripts are being developed in php for uploading to a web
host
and I would like to test them on my standalone Windows 98 machine at
home. I
have Apache 2.0.44, PHP 4.3.0 and a dial-up connection to an ISP, which
we
will call ispname, for e-mail.
The PHP manual states " The Windows implementation of mail() differs in
many
ways from the Unix implementation. First, it doesn't use a local binary
for
composing messages but only operates on direct sockets which means a MTA
is
needed listening on a network socket (which can either on the localhost
or a
remote machine)."
My php.ini file includes SMTP = smtp.ispname.com and smtp_port = 25
although
I have also tried various other possibilities. In all cases, when mail()
is
called, the browser hangs up. I was rather hoping the Dial-Up Connection
pop-up box would be displayed. I'm not sure whether this is a software
problem, e.g. with the software versions I'm runnning on Windows 98,
perhaps
the need to use an older Apache 1.3, or whether the ISP software simply
does
not provide an MTA. (I also have AOL if that is of any relevance.) I see
that there is a file sendmail.dll in C:\Windows\System.
If I need an MTA, are any available as open source ?
As you can see, there is a gap in my knowledge.
Thanks for your help.
Geoff
--- End Message ---
--- Begin Message ---
Hi,
in short: for SMTP delivery on windows you need an SMTP port
_within reach_ of the sending machine. The dialup network program
of Windows does by itself no autodial. So to bring up the dialup
dialog you would have to get an [auto]dialer reacting upon port 25.
(A mail proxy with [auto]dial function).
You can find a quite compact proxy/server for free at
http://www.janaserver.de
When installing it be shure to stop Apache first, then cut off
http proxy/server function of Jana or else they will battle.
It is much more than you need, so probably someone will know
a more suitable piece of software for you.
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: Geoff Ogilvy [SMTP:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 13. März 2003 21:10
> An: [EMAIL PROTECTED]
> Betreff: [PHP-WIN] Sending mail on Windows 98
>
> Summary : do I have an MTA ?
>
> Detail : Some scripts are being developed in php for uploading to a web host
> and I would like to test them on my standalone Windows 98 machine at home. I
> have Apache 2.0.44, PHP 4.3.0 and a dial-up connection to an ISP, which we
> will call ispname, for e-mail.
>
> The PHP manual states " The Windows implementation of mail() differs in many
> ways from the Unix implementation. First, it doesn't use a local binary for
> composing messages but only operates on direct sockets which means a MTA is
> needed listening on a network socket (which can either on the localhost or a
> remote machine)."
>
> My php.ini file includes SMTP = smtp.ispname.com and smtp_port = 25 although
> I have also tried various other possibilities. In all cases, when mail() is
> called, the browser hangs up. I was rather hoping the Dial-Up Connection
> pop-up box would be displayed. I'm not sure whether this is a software
> problem, e.g. with the software versions I'm runnning on Windows 98, perhaps
> the need to use an older Apache 1.3, or whether the ISP software simply does
> not provide an MTA. (I also have AOL if that is of any relevance.) I see
> that there is a file sendmail.dll in C:\Windows\System.
>
> If I need an MTA, are any available as open source ?
>
> As you can see, there is a gap in my knowledge.
> Thanks for your help.
> Geoff
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
you can try setting extension_dir = c:/inetpub/wwwroot
or extension_dir = c:\\inetpub\\wwwroot
-----Original Message-----
From: Diego Fulgueira [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 21:03
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] dl() doesn't work . PHP 4.3.1 + Apache 1.3 + Win2k.
Hope to find someone to help me with this:
I am trying to load a dynamic extension using the dl() function. The dll
file resides in my web root directory (c:\inetpub\wwwroot). I have
extension_dir = ./ in php.ini (the default).
dl("xxxx_php.dll") doesn't seem to find the file when called from a script
that resides in the same directory as the extension file (xxxx_php.dll).
Also, I've tried setting extension_dir = c:\inetpub\wwwroot without
success.
Any ideas, please?
Thanks in advance.
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Loading DLLs has nothing to do with the PHP path, it has to do with the SYSTEM
path. You have to either alter the PATH variable, or place the DLLs in the same
directory as the php4ts.dll, or in c:\winnt\system32
also, next time send the full PHP error message.
- --
Brian 'Bex' Huff <[EMAIL PROTECTED]>
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150
| Hope to find someone to help me with this:
|
| I am trying to load a dynamic extension using the dl() function. The dll file
| resides in my web root directory (c:\inetpub\wwwroot). I have extension_dir =
| ./ in php.ini (the default).
|
| dl("xxxx_php.dll") doesn't seem to find the file when called from a script
| that resides in the same directory as the extension file (xxxx_php.dll).
| Also, I've tried setting extension_dir = c:\inetpub\wwwroot without success.
|
|
| Any ideas, please? Thanks in advance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+ceIemexGJFoGoVARAtiyAJ9im2wL3/ZS4U3YdOMWlhSkknV/tgCeMDtk
Ijan5vDGiGTuySoA+89iNzs=
=n6SQ
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
test!
--- End Message ---
--- Begin Message ---
Hello,
I have just installed PHP4 and new to this environment. Can someone
help me with SESSION variables. I need to log the users sesssion into a
MySQL database but how do I retrieve the users session information. Is
there a simple function that will provide me with the information?
I have tried $_SESSION[''] and I get an error that the _SESSION
variable doesnt exist.
Thanks,
Shaffin N. Bhanji
Technical Manager
Cambridge Technology Partners, the global eServices company of Novell,
Inc.
www.ctp.com
905.946.4817 | office
416.524.9520 | cell
905.940.2688 | fax
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I need the user ID of the logged in user (.htaccess)
on an Apache Server using PHP4. This should be
in $REMOTE_USER or $PHP_AUTH_USER.
On one server (FreeBSD: Apache 1.3.27 with PHP 4.2.2) the test.phtml file
below works as expected. The user login apprompt appears
and the user logs in, and the page is displayed, with all variables
HTTP_HOST, and REMOTER_USER, and PHP_AUTH_USER
set as expected.
On the other server (Windows XP: Apache 2.0.43 with PHP 4.3.1) the test.phtml file
does not display values for any of the REMOTE_USER or PHP_AUTH_USER
variables. The user login apprompt appears as expected
and the user logs in, and the page is displayed, but only the
HTTP_HOST value is set as expected. If phpinfo() is called,
the user id does not show up in any of the variables displayed.
As I set this server up myself, it is likely that something needs
to be changed in the configuration files for Apache and/or PHP.
Any ideas?
Contents of test.phtml file:
<html>
<head><title>PHP Test</title></head>
<body>
<H1>PHP Test</H1>
<?php
echo "<BR>\$_SERVER[HTTP_HOST]="; echo $_SERVER["HTTP_HOST"];
echo "<BR>\$_SERVER[REMOTE_USER]="; echo $_SERVER["REMOTE_USER"];
echo "<BR>\$PHP_AUTH_USER="; echo $PHP_AUTH_USER;
echo "<BR>\$REMOTE_USER="; echo $REMOTE_USER;
echo "<BR>";
?>
</body></html>
--- End Message ---
--- Begin Message ---
Hi.
I followed the instructions in the php manual to install php as CGI module
under apache, under windows. I get the following message when requesting
a php file:
Invalid URI in request GET /mydir/myfile.php HTTP/1.1
I believe this is because Apache is not getting the protocol:host part of
the request
(in this case: http://localhost/). I don't know why this happens.
Something else: The PHP manual recommends adding the line:
ScriptAlias /php/ "c:/php/"
to the http.conf file. But I don't want ONLY the files under /php/ to be
interpreted
as scripts. Rather, I want ALL the files in my documentRoot directory to be
interpreted as scripts.
Any ideas? Thanks in advance
--- End Message ---
--- Begin Message ---
Hello,
We have a lot of features included in Krysalis
(http://www.interakt.ro/products/Krysalis/) exactly to help you generate
dynamic XML trees from database information.
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610
"Parvez Soobhany" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
hiii
i have my database on mySQL, and i wish to extract the data from certain
tables , and store them in XML files.
Does anyone know how this is done?
thanks,
--- End Message ---