php-windows Digest 14 Mar 2001 21:06:12 -0000 Issue 491

Topics (messages 6007 through 6033):

Re: Mail/PHP/Apache
        6007 by: Fernando Madruga
        6012 by: Gaylen Fraley
        6013 by: Fernando Madruga

PHP405 Install
        6008 by: Antonio Lopez
        6009 by: Tom Mathews

Re: COM error
        6010 by: Yoann Chevalier

Php and email problems with localhost
        6011 by: Lars Eirik Rønning

Sending email from PHP on windows 95
        6014 by: Herbert Groot Jebbink
        6015 by: Fernando Madruga

date() problem
        6016 by: TPG
        6018 by: Fernando Madruga

Real values cause havoc ?
        6017 by: Michael_OShea.palmtopsoftware.com

MS Access
        6019 by: Daniel Sichta
        6024 by: Alain Samoun

COM Question
        6020 by: James Q. Stansfield
        6028 by: Alain Samoun
        6030 by: Mal McKay

About PHP405
        6021 by: Antonio Lopez
        6023 by: Alain Samoun

IIS4 and PHP
        6022 by: Thomas Häger
        6027 by: Phil Driscoll

php & Win95
        6025 by: Marco Laponder
        6026 by: Fernando Madruga
        6031 by: Marco Laponder
        6032 by: Fernando Madruga

Visual Studio.NET
        6029 by: Craig Davis

How to use COM
        6033 by: Thomas

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]


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



I'm also running Apache+PHP4+xtras on a Win98SE machine and have NO problems
sending mail; in fact, I use it on my 404.php error generator to send an
email to the webmaster (me!) whenever a broken link is requested and it
works absolutely fine!
Hints:
  - Have you tried using the IP of your ISP's mail server?
  - Do you have a permanent link to it?
  - Can you use an email program on that machine (look for freeware,
no-install email programs on tucows) and send mail from it?
  - Are you running php as an executable or as a module? I'm using it as a
module without any problems.
  - Did you check for multiple copies of PHP.INI?
  - Is PHP.INI in your C:\Windows\ folder?

Just a few thinks to check for...

HTH,
  Fernando Madruga

> I am experiencing technical difficulties!  I have Apache and PHP 4
installed
> on a Windows 98SE machine.  Everything is working perfectly except the
mail
> function.  I have updated the ini file to use my ISP's mail SMTP server.
I
> have even tried installing an e-mail server on my machine, which works,
but
> I still get the following (not so helpful) error:

> Warning: Unknown error in e:\apache\htdocs\main\send_simpleform.php on
line 10.

> Here is line 10:
> mail("$to", "$subject", "$msg", "$mailheaders");




I have placed my answers beneath your questions.  The answers to all are YES
except the module vs. executable.  How do I control that?  In Apache the PHP
file that is called is php.exe.

--
Gaylen
[EMAIL PROTECTED]

"Fernando Madruga" <[EMAIL PROTECTED]> wrote in message
3685A91F554BD411BA310008C759B6CC02527B1D@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B1D@MAIL_CBR...
>
> I'm also running Apache+PHP4+xtras on a Win98SE machine and have NO
problems
> sending mail; in fact, I use it on my 404.php error generator to send an
> email to the webmaster (me!) whenever a broken link is requested and it
> works absolutely fine!
> Hints:
>   - Have you tried using the IP of your ISP's mail server?
YES.
>   - Do you have a permanent link to it?
YES.
>   - Can you use an email program on that machine (look for freeware,
> no-install email programs on tucows) and send mail from it?
YES
>   - Are you running php as an executable or as a module? I'm using it as a
> module without any problems.
HOW DO I KNOW?
>   - Did you check for multiple copies of PHP.INI?
YES
>   - Is PHP.INI in your C:\Windows\ folder?
YES
>
> Just a few thinks to check for...
>
> HTH,
>   Fernando Madruga
>
> > I am experiencing technical difficulties!  I have Apache and PHP 4
> installed
> > on a Windows 98SE machine.  Everything is working perfectly except the
> mail
> > function.  I have updated the ini file to use my ISP's mail SMTP server.
> I
> > have even tried installing an e-mail server on my machine, which works,
> but
> > I still get the following (not so helpful) error:
>
> > Warning: Unknown error in e:\apache\htdocs\main\send_simpleform.php on
> line 10.
>
> > Here is line 10:
> > mail("$to", "$subject", "$msg", "$mailheaders");
>
> --
> 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 need to use mod_php:
  uncomment the line on your httpd.conf that refers to LoadModule
php4_module; on my setup is

'LoadModule php4_module     modules/ApacheModulePHP4.dll'

then add the following lines to your httpd.conf inside the <IfModule
mod_mime.c> so as to register .php files with the module:

    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    </IfModule>

I think that you may have to copy php4dllts.dll to your apache/modules
directory.
After restarting apache, test that it's working with <? phpinfo() ?>

If this fails, you'll have to check http://www.php4win.de/ or somewhere else
for a more detailed explanation...

HTH,
  Fernando Madruga

-----Original Message-----
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 14 de Março de 2001 11:32
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Mail/PHP/Apache


I have placed my answers beneath your questions.  The answers to all are YES
except the module vs. executable.  How do I control that?  In Apache the PHP
file that is called is php.exe.

--
Gaylen
[EMAIL PROTECTED]

"Fernando Madruga" <[EMAIL PROTECTED]> wrote in message
3685A91F554BD411BA310008C759B6CC02527B1D@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B1D@MAIL_CBR...
>
> I'm also running Apache+PHP4+xtras on a Win98SE machine and have NO
problems
> sending mail; in fact, I use it on my 404.php error generator to send an
> email to the webmaster (me!) whenever a broken link is requested and it
> works absolutely fine!
> Hints:
>   - Have you tried using the IP of your ISP's mail server?
YES.
>   - Do you have a permanent link to it?
YES.
>   - Can you use an email program on that machine (look for freeware,
> no-install email programs on tucows) and send mail from it?
YES
>   - Are you running php as an executable or as a module? I'm using it as a
> module without any problems.
HOW DO I KNOW?
>   - Did you check for multiple copies of PHP.INI?
YES
>   - Is PHP.INI in your C:\Windows\ folder?
YES
>
> Just a few thinks to check for...
>
> HTH,
>   Fernando Madruga
>
> > I am experiencing technical difficulties!  I have Apache and PHP 4
> installed
> > on a Windows 98SE machine.  Everything is working perfectly except the
> mail
> > function.  I have updated the ini file to use my ISP's mail SMTP server.
> I
> > have even tried installing an e-mail server on my machine, which works,
> but
> > I still get the following (not so helpful) error:
>
> > Warning: Unknown error in e:\apache\htdocs\main\send_simpleform.php on
> line 10.
>
> > Here is line 10:
> > mail("$to", "$subject", "$msg", "$mailheaders");
>
> --
> 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 installed PHP404pl1 with the automatic installer, and all works right.

Now, i want to install PHP405, and i have done the follow:

- I've modified the Windows registry:



[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Scrip
t Map]
   ".php"="c:\\php405\\sapi\\php.exe"

- I've put all .dll on Windows path

- I've modified the winnt\php.ini file to point to my c:\php405\extensions
directory

- I've put php4ts.dll on winnt/system32 directory

- I've restarted my pc

But when i try a php file with a browser, my pc execute Php404 and not
Php405 !!!!!

Why?????



Thankyou!!




===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





It sounds an obvious question, but is it a new script you are trying to run, or
is it one that could be sitting in the browser cache and you aren't refreshing
it properly?

Antonio Lopez wrote:

> I installed PHP404pl1 with the automatic installer, and all works right.
>
> Now, i want to install PHP405, and i have done the follow:
>
> - I've modified the Windows registry:
>
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Scrip
> t Map]
>    ".php"="c:\\php405\\sapi\\php.exe"
>
> - I've put all .dll on Windows path
>
> - I've modified the winnt\php.ini file to point to my c:\php405\extensions
> directory
>
> - I've put php4ts.dll on winnt/system32 directory
>
> - I've restarted my pc
>
> But when i try a php file with a browser, my pc execute Php404 and not
> Php405 !!!!!
>
> Why?????
>
> Thankyou!!
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590  - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
> --
> 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]




There is no "syntax error" it works for me.
$word = new COM("word.application") or die("Unable to instantiate Word");

It's maybe a "configuration error".

I have PHP 4.0.5-dev, Apache 1.3.17 and Windows 98 SE

Yoann



----- Original Message -----
From: "Patrice Mora" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 10:10 PM
Subject: [PHP-WIN] COM error


> I have PHP4, Windows 98 and apache , when i try to use something like This
>
> $word=new COM("word.application") or die("Cannot start word for you");
>
> I have the  "COM is not a class" message
>
> Where is the "syntax error" ?
>
>  Is there something to put in the php.ini or in the apache configuration
> files ?? to activate DCOM
>
>
> Thank youy for your help
>
> [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]
>
>





Is it possible to use the localhost on a w2k computer by specifying the
localhost as smtp. I am running with is server and it should have an inbuild
smtp server ,but i am unable to use the mail function. I have tried this
with apache as well, but as it comes with no smtp server i thought it would
be easier to try the inbuild smtp server in the information server.

Thanks for all help
I am running the latest php release by the way..






Hi,

If I use the mail command it does not work, it seems to going to
a black hole.

mail('[EMAIL PROTECTED]', 'Test from php/windows95',  'bla bla bla');

I can telnet on port 25 to the smtp server and then I get a 220 ready,
so the PC is alowed to talk to the smtp server.

If I do a phpinfo the next lines are part of it, so it is working
with the correct php.ini (there is only 1 on the system)

SMTP: mail.hosthere.com
Internal Sendmail Support for Windows 4: enabled

There are no entries in the Apache error log

Greetings, Herbert




> SMTP: mail.hosthere.com

Is this the EXACT contents of your ini? If it is, that's the error: you
should have changed to something like:
SMTP: xs4all.nl

Also, try to use the IP address instead of the name (do a PING xs4all.nl to
find out the IP address).

HTH,
  Fernando Madruga




Using Windows 2000 IIS php4 mysql,
I get this error
    Warning: unexpected error in date() in
C:\Websites\tepcart\catalog\account.php on line 112


when I  <? echo date("M-d-y", mktime(0,0,0,1,21,1963)); ?>
Any help gratefully recieved
Thanks
Regards

Tony Ayling
Brisbane Australia






This one may be easy to explain, not so easy to fix...

According to mktime documentation:
  'Year may be a two or four digit value, with values between 0-69 mapping
to 2000-2069 and 70-99 to 1970-1999 (on systems where time_t is a 32bit
signed integer, as most common today, the valid range for year is somewhere
between 1902 and 2037).'

Apparently, the windows implementation sticks to the range 1970~2037... :)
I've tryed 1969 and got the same error, but with 1970 it worked... You will
have to use some other date functions...

-----Original Message-----
From: TPG [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 14 de Março de 2001 12:46
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] date() problem


Using Windows 2000 IIS php4 mysql,
I get this error
    Warning: unexpected error in date() in
C:\Websites\tepcart\catalog\account.php on line 112


when I  <? echo date("M-d-y", mktime(0,0,0,1,21,1963)); ?>
Any help gratefully recieved
Thanks
Regards

Tony Ayling
Brisbane Australia



-- 
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'm running PHP 4.0.2 with Xitami on Windows NT.

Strange bugs have been occurring and I think I've narrowed it down to real
values being involved near the problem area. I've figured out a workaround but I
thought I'd ask here anyway.

I say the bug is strange because its effect is very indirect. A newly built
string will echo OK to the output but when written to file will be garbled or
worse, when the string in question is an SQL query, the entire table will end up
corrupted !

The workaround I found was to copy any real values involved in building my
strings into intermediate variables while casting again to real type, like this
: $intermediate_val = (real)$the_val. It may be useful to mention the fact that
the source value is a data member in a class.

I can't quite figure out if the problem lies with real values, strings, the
combination of the two or even if the fact the value is part of a class has
anything to do with it.

Maybe someone here can tell me if they know more about the issue and if it has
been covered by any recent bug fix. If not, I hope this will have helped someone
else who's been experiencing the same problem.

Thanks,

Michael O'Shea






Hi everybody,
config: linux rh7, php 4.0.4
I have problem. My client wants to use Access database and PHP script on
linux server.
How can I connect from PHP to Access on Linux ?

Thank you

Ing. Daniel Šichta
CUSTOM.web s.r.o.
Hodžova 13
01001 Žilina, SLOVAKIA
++421 89 564 3474
mobile ++421 905 839 334
www.customweb.sk <http://www.customweb.sk>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
ICQ: 84700861





Have a look at:
http://www.phpbuilder.com/columns/timuckun20001207.php3

Alain

On Wed, Mar 14, 2001 at 02:22:02PM +0100, Daniel Sichta wrote:
> Hi everybody,
> config: linux rh7, php 4.0.4
> I have problem. My client wants to use Access database and PHP script on
> linux server.
> How can I connect from PHP to Access on Linux ?
> 
> Thank you
> 
> Ing. Daniel ©ichta
> CUSTOM.web s.r.o.
> Hod¾ova 13
> 01001 ®ilina, SLOVAKIA
> ++421 89 564 3474
> mobile ++421 905 839 334
> www.customweb.sk <http://www.customweb.sk>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> ICQ: 84700861
> 
> 
> -- 
> 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]





        Alright, I've gotten COM to work under PHP with the following:

<%
$com = new com("iUtil.iTemplate");
%>

        Now, looking at the documentation I can't find any function to close the
object when I don't need it any longer. Am I missing anything here? If PHP
autocloses objects that would be nice but not very efficient for objects
that are used once briefly during a long script. That doesn't seem to be a
good use of resources to me.

        //James





In PHP COM, you do not need to close the instance of your object, you can
unset it if you want but it's not even necessary.
Alain
On Tue, Mar 13, 2001 at 09:16:36PM -0500, James Q. Stansfield wrote:
> 
>       Alright, I've gotten COM to work under PHP with the following:
> 
> <%
> $com = new com("iUtil.iTemplate");
> %>
> 
>       Now, looking at the documentation I can't find any function to close the
> object when I don't need it any longer. Am I missing anything here? If PHP
> autocloses objects that would be nice but not very efficient for objects
> that are used once briefly during a long script. That doesn't seem to be a
> good use of resources to me.
> 
>       //James
> 
> 
> -- 
> 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]




use the object's native close function, and then unset the variable, eg

$microsoft_word->quit();
$microsoft_word=null;


mal

-----Original Message-----
From: James Q. Stansfield [mailto:[EMAIL PROTECTED]]
Sent: 14 March 2001 02:17
To: php-windows
Subject: [PHP-WIN] COM Question



        Alright, I've gotten COM to work under PHP with the following:

<%
$com = new com("iUtil.iTemplate");
%>

        Now, looking at the documentation I can't find any function to close the
object when I don't need it any longer. Am I missing anything here? If PHP
autocloses objects that would be nice but not very efficient for objects
that are used once briefly during a long script. That doesn't seem to be a
good use of resources to me.

        //James


-- 
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]





Why you can not find Php405 in the "www.php.net" page?

is Php405 an official version of Php ?


Thankyou.

===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





On Wed, Mar 14, 2001 at 04:01:44PM +0100, Antonio Lopez wrote:
> 
> Why you can not find Php405 in the "www.php.net" page?
> 
> is Php405 an official version of Php ?

Not yet, but soon!

Alain




> 
> 
> Thankyou.
> 
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590  - Málaga (Spain)
>   
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
> 
> 
> -- 
> 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 all,

i has downloaded the latest version of php4.
I want to run php with IIS4 but i don't know how can i do that.

Have anybody an idea ?

Thanks,

Thomas







>i has downloaded the latest version of php4.
>I want to run php with IIS4 but i don't know how can i do that.

Assuming you are running NT4 and already have IIS4...

If you downloaded the windows installer, run it.
If you downloaded the full binary zip, read the installation instructions
and follow them.
If you downloaded the source, compile it in MS Visual Studio if you must,
but it will be easier and quicker to download one of the binary versions.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





Hi All,

I have some problems installing php on apache on win85. The apache server is
running fine before adding the loadmodule in the conf file. After adding
load module I get the message the the 'c:/php4/sapi/php4apache.dll' could
not be loaded. The dll is present in the given directory. ANy hints ?

Marco Laponder
([EMAIL PROTECTED])










> I have some problems installing php on apache on win85. 
                                                   ^^^^^

First, upgrade your windows 85 to a newer version!!! :)

Seriously, you should copy php4tsdll.dll or something like that into the
apache/modules directory and make sure that you change and copy php.ini into
your C:\windows\ directory.

HTH,
  Madruga




What should I change in the php.ini ?

Marco

"Fernando Madruga" <[EMAIL PROTECTED]> schreef in bericht
3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR...
>
> > I have some problems installing php on apache on win85.
>                                                    ^^^^^
>
> First, upgrade your windows 85 to a newer version!!! :)
>
> Seriously, you should copy php4tsdll.dll or something like that into the
> apache/modules directory and make sure that you change and copy php.ini
into
> your C:\windows\ directory.
>
> HTH,
>   Madruga
>
> --
> 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]
>






Mostly the email address and smtp server: if you don't use the mail()
function, you can probably leave it as is...
You may also want to uncomment some of the extension= lines to load some
extensions (if you have them installed).

Bye,
  Madruga

-----Original Message-----
From: Marco Laponder [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 14 de Março de 2001 18:00
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] php & Win95


What should I change in the php.ini ?

Marco

"Fernando Madruga" <[EMAIL PROTECTED]> schreef in bericht
3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527B85@MAIL_CBR...
>
> > I have some problems installing php on apache on win85.
>                                                    ^^^^^
>
> First, upgrade your windows 85 to a newer version!!! :)
>
> Seriously, you should copy php4tsdll.dll or something like that into the
> apache/modules directory and make sure that you change and copy php.ini
into
> your C:\windows\ directory.
>
> HTH,
>   Madruga
>
> --
> 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]





        I have fallen in love with the new Visual Studio.NET from Microsoft. I've
used the Visual Perl and Visual Python additions to the editor, and have
been very impressed.

        Has anyone begun developing PHP syntax highlighting and tools for Visual
Studio? If not, I'd love to have a couple of people that could give me a
hand.


        Craig Davis






Hi all again,

i' am a very bloody greenhorne with php and maybe i have  many questions.
Heres one another:

    Who can exlpain to use com in php.
How can i execute methods and read attributes?
I only know how i can craete an object:

    $object = new ("adodb.recordset") for exsample, is it not so?
But how can i get the attributes and execute the methods?
And why  the Documentation speaks from com_load,com_invoke and so on.
No once of them are working. I only get the message:

    Call to undefined function.... and so on..

Thanks for Help,

Thomas





Reply via email to