php-windows Digest 19 Aug 2001 19:44:57 -0000 Issue 710

Topics (messages 8937 through 8943):

GD & ISAPI don't work
        8937 by: Juraj Hasko

Re: A uniqe ID for every item
        8938 by: Svensson, B.A.T.

mail function problem
        8939 by: Pierre A. Fortier
        8941 by: Angie Tollerson
        8942 by: Angie Tollerson

Re: Image Functions
        8940 by: Angie Tollerson

Apache Enviroment Variables
        8943 by: Jonathan Marriott

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]


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


Hi,

I've encounter strange problem with GD library. I'm running PHP 4.0.6 on WinNT 4.0 and 
IIS 4.0. While I use CGI version, each of extensions including php_gd.dll works fine. 
But when I try change it to ISAPI, it works but without php_gd.dll. All others 
libraries works fine, but when I add GD lib. IIS will not start with error message:
"A system error has occured.
System error 1067 has occured.
The proces terminated unexpectedly."
Do you have any idea how to solve this problem ?
Thank you in advance,

Juraj Hasko
System Administrator

CAC LEASING Slovakia, a.s.
mailto:[EMAIL PROTECTED]
http://www.cacleasing.sk






>-----Original Message-----
>From: Mad Nas [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, August 19, 2001 7:55 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] A uniqe ID for every item

>> It could be help full to know why you need to
>> create a unique number? Is it for ex only for naming
>> temporary files? Or should the uniqueness persist
>> over time?
>
>Hi
>I design a HTML form and any entry have three part :
>1 ) Display Label, It's a label for field.
>2 ) Field Entry, It's a form object <INPUT> , <SELECT> <TEXTAREA> )
>3 ) Error Msg, It's a anchor ( <A name="fieldname">).
>I design a class for entry object .
>Now i must check validation input data and if has error show a message in
>Error Msg. For this work i must have a unique name for any entry.

I am not sure if I did understand you, but at least I have some idea
about what you wants to do. Anyhow: Do you need sequential unique numbers?
Are you going to use a few unique numbers or many at the same timne?
If you just need some few, then you might try to just generate some
random number for the entry name.







I installed php on my Windows-ME machine. Most of it works properly. One
problem is that the mail function doesn't work. I used:
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3").

Below is how I setup php, smtp server address added to php.ini, php
program I tested, and its output.

How could I get mail() function to work?

Pierre Fortier
[EMAIL PROTECTED]


Summary of setup
   - created directory C:\PROGRA~1\Sambar\Php which contains the files
   install.txt
   php.exe
   php4isapi.dll
   License
   Test.php
   and directories uploadtemp and sessiondata
   - php.ini is in \windows directory
   - php4ts.dll is in the system directory
   - autoexec.bat file contains
   SET PHPRC=C:\PROGRA~1\Sambar\Php
   and C:\PROGRA~1\Sambar\Php; in the PATH definition
   - C:\PROGRA~1\Sambar\config\mappings.ini has the following entry
   *.php = C:\PROGRA~1\Sambar\Php\php4isapi.dll

php.ini includes
[mail function]
SMTP= smtp-out.uottawa.ca


PHP program http://hawk.med.uottawa.ca/MailTest.php

<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <?php

  $i=10;
         echo "Hi, I'm a PHP script! I'm $i times better than ASP
scripting!<p>";
  for ($i = 1; $i <= 10; $i++) {
       printf("%d times<br>\n", $i);
  }
  mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
        ?>
    </body>
</html>

Output:
Hi, I'm a PHP script! I'm 10 times better than ASP scripting!
1 times
2 times
3 times
4 times
5 times
6 times
7 times
8 times
9 times
10 times

Warning: Unknown error in c:\users\server\MailTest.php on line 16






Pierre, 
What mail agent are you using?
Angie

>>> "Pierre A. Fortier" <[EMAIL PROTECTED]> 08/19/01 11:56AM >>>
I installed php on my Windows-ME machine. Most of it works properly. One
problem is that the mail function doesn't work. I used:
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3").

Below is how I setup php, smtp server address added to php.ini, php
program I tested, and its output.

How could I get mail() function to work?

Pierre Fortier
[EMAIL PROTECTED] 


Summary of setup
   - created directory C:\PROGRA~1\Sambar\Php which contains the files
   install.txt
   php.exe
   php4isapi.dll
   License
   Test.php
   and directories uploadtemp and sessiondata
   - php.ini is in \windows directory
   - php4ts.dll is in the system directory
   - autoexec.bat file contains
   SET PHPRC=C:\PROGRA~1\Sambar\Php
   and C:\PROGRA~1\Sambar\Php; in the PATH definition
   - C:\PROGRA~1\Sambar\config\mappings.ini has the following entry
   *.php = C:\PROGRA~1\Sambar\Php\php4isapi.dll

php.ini includes
[mail function]
SMTP= smtp-out.uottawa.ca


PHP program http://hawk.med.uottawa.ca/MailTest.php 

<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <?php

  $i=10;
         echo "Hi, I'm a PHP script! I'm $i times better than ASP
scripting!<p>";
  for ($i = 1; $i <= 10; $i++) {
       printf("%d times<br>\n", $i);
  }
  mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
        ?>
    </body>
</html>

Output:
Hi, I'm a PHP script! I'm 10 times better than ASP scripting!
1 times
2 times
3 times
4 times
5 times
6 times
7 times
8 times
9 times
10 times

Warning: Unknown error in c:\users\server\MailTest.php on line 16



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






Additionally Pierre, You may want to try all 4 paramters that belong in the mail 
function.  That may cure it too.
Angie

>>> "Pierre A. Fortier" <[EMAIL PROTECTED]> 08/19/01 11:56AM >>>
I installed php on my Windows-ME machine. Most of it works properly. One
problem is that the mail function doesn't work. I used:
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3").

Below is how I setup php, smtp server address added to php.ini, php
program I tested, and its output.

How could I get mail() function to work?

Pierre Fortier
[EMAIL PROTECTED] 


Summary of setup
   - created directory C:\PROGRA~1\Sambar\Php which contains the files
   install.txt
   php.exe
   php4isapi.dll
   License
   Test.php
   and directories uploadtemp and sessiondata
   - php.ini is in \windows directory
   - php4ts.dll is in the system directory
   - autoexec.bat file contains
   SET PHPRC=C:\PROGRA~1\Sambar\Php
   and C:\PROGRA~1\Sambar\Php; in the PATH definition
   - C:\PROGRA~1\Sambar\config\mappings.ini has the following entry
   *.php = C:\PROGRA~1\Sambar\Php\php4isapi.dll

php.ini includes
[mail function]
SMTP= smtp-out.uottawa.ca


PHP program http://hawk.med.uottawa.ca/MailTest.php 

<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <?php

  $i=10;
         echo "Hi, I'm a PHP script! I'm $i times better than ASP
scripting!<p>";
  for ($i = 1; $i <= 10; $i++) {
       printf("%d times<br>\n", $i);
  }
  mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
        ?>
    </body>
</html>

Output:
Hi, I'm a PHP script! I'm 10 times better than ASP scripting!
1 times
2 times
3 times
4 times
5 times
6 times
7 times
8 times
9 times
10 times

Warning: Unknown error in c:\users\server\MailTest.php on line 16



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






OK, let me clarify what I'm talking about:
There are several dll's that are sitting in a folder called extensions when you 
download the binary for windows.  Those dll's STAY WHERE THEY ARE as long as you 
specify that they are there in the php.ini file.  i.e... d:\php\extensions

There are a TOTALLY SEPARATE set of dll's that are sitting in the folder called 
"dll's" when you download the binary:
expat.dll
fdftk.dll
gds32.dll
gnu_gettex.dll
jvm.dll
libpq.dll

just to list a few.  They WILL NOT work if you leave them in that folder.  They are 
the dll's for windows that actually run their corresponding dll that is sitting in the 
php folder.  Try it.  If you leave them in the folder d:\php\dll's and set the php.ini 
to use fdf's, you will get an error on your phpinfo() page that says it can't find the 
fdf dll.  EVen though there is a fdf.dll in extensions, it won't work without the 
fdftk.dll.  SOOOO, whoever wrote the install document for php windows knew it would 
work if you put it in c:\winnt\system32.  However, I spoke with the original developer 
of php for windows and he said he never promoted that practice.  He told me it worked 
but it wasn't desirable to mess with your system folder. The other place you can put 
the dll's for the "dll's" folder is in the same folder where php.exe resides.  As far 
as I know, unless you do specific altering to windows environmental variables, those 
are the only two places you can put those dll's that php can see them.  So...for 
clarification for everyone in case I've confused more than helped:
LEAVE the dlls sitting in the extensions folder there, and give the path to them in 
you php.ini file.
Copy all the dll's that are sitting in the "dll's" folder and paste them one directory 
up, in your php folder where php.exe is sitting.  That is STRAIGHT from the mouth of 
Shane Caraveo.  If you disagree with the creator, or have a better option, contact him 
at Active State and maybe he can put it in the new documentation he makes for the next 
php for win release.

Angie

>>> "Svensson, B.A.T. " <[EMAIL PROTECTED]> 08/19/01 11:18AM >>>
I don't understand what you are talking about now.

How set an access path is irrelevant in this case. That's not
the point. The point is that information should be as accurate
as possible. You stated that a DLL needed to be located at an
certain location. That is simply not ture at all.


Cheers,
Anders

>-----Original Message-----
>From: Angie Tollerson [mailto:[EMAIL PROTECTED]] 
>Sent: Friday, August 17, 2001 6:21 PM
>To: [EMAIL PROTECTED]; Svensson, B.A.T. 
>Subject: RE: [PHP-WIN] Image Functions
>
>
>Right Anders, you could simply set the access path in 
>environmental variables for windows itself.  But for newbies 
>just installing the easiest thing to tell them is to put it 
>either in system folder or php folder, php folder being the 
>better choice.
>
>Angie Tollerson
>Alliance Technologies
>Web Programmer
>(515)245-7628
>[EMAIL PROTECTED] 
>
>>>> "Svensson, B.A.T. " <[EMAIL PROTECTED]> 08/17/01 11:16AM >>>
>>The extension dll's do need to stay in the extension folder 
>>with the right .ini line as you stated.  I'm talking about the 
>>system needed dll's that come in the DLL folder.  Those are 
>
>From an functional point of view, it really doesn't matter were
>a DLL is located, as long as it located in the access path. But
>from a point of view with the organization of the file system in
>mind it might though matter.
>
>       /Anders
>
>-- 
>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] 
>
>





Apache seems to not define some enivroment variables:

Undefined index: HTTP_USER_AGENT in d:\web stuff\xitami\webpages\homepage\index.phtml 
on line 5

Warning: Undefined index: WINDIR in d:\web stuff\xitami\webpages\homepage\index.phtml 
on line 6

Warning: Undefined index: PATH_TRANSLATED in d:\web 
stuff\xitami\webpages\homepage\index.phtml on line 7

Warning: Undefined index: REMOTE_HOST in d:\web 
stuff\xitami\webpages\homepage\index.phtml on line 8

Has anyone got any idea how to resolve this?? Thanks

Jon


Reply via email to