php-windows Digest 21 Mar 2001 21:43:51 -0000 Issue 503
Topics (messages 6182 through 6205):
Win2k IIS5 PHP404 : trouble with extensions dir
6182 by: Yvan Arnaud
6195 by: Yasuo Ohgaki
function mail()
6183 by: Eric Tonicello
6189 by: Eric Tonicello
Re: resolution problems in dinamic .gif
6184 by: Alex
6185 by: Praying Mantis
Naming Variables Based on Variable Content
6186 by: Will Degener
6187 by: Michael Rudel
6188 by: Fernando Madruga
Re: What is your choice?
6190 by: Asendorf, John
Re: Problem with PHP4.04 installation
6191 by: John
6193 by: Gregory_Griffiths.cargill.com
6194 by: Tom Mathews
6198 by: Phil Driscoll
Re: MySQL errors
6192 by: Robin Bolton
Re: Looking for Samples
6196 by: Yasuo Ohgaki
PHP 4 as ISAPI
6197 by: David Elliott
6199 by: "Barraud, Stéphane"
6200 by: Phil Driscoll
com_load error
6201 by: Alexander Nenashev
6202 by: Alain Samoun
Sending Commands
6203 by: Josh Seward
Mcrypt
6204 by: Dreamvale
Re: include_once problem...
6205 by: Ketan
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,
the standard installation of PHP404 works fine (CGI and ISAPI). But when we
intent to activate an extension (php_ldap.dll for example) it does not work
anymore : the error message is that it cannot find the specified extension
file (php_ldap.dll). I tried to specify different extensions dir in php.ini
but none worked.
What should I write in the extensions dir to make it work?
Regards
Yvan Arnaud
I've posted relating notes for PHP Manual
It might help.
http://www.php.net/manual/en/install-windows.php
--
Yasuo Ohgaki
""Yvan Arnaud"" <[EMAIL PROTECTED]> wrote in message
99a1c1$sr5$[EMAIL PROTECTED]">news:99a1c1$sr5$[EMAIL PROTECTED]...
> Hi,
>
> the standard installation of PHP404 works fine (CGI and ISAPI). But when we
> intent to activate an extension (php_ldap.dll for example) it does not work
> anymore : the error message is that it cannot find the specified extension
> file (php_ldap.dll). I tried to specify different extensions dir in php.ini
> but none worked.
> What should I write in the extensions dir to make it work?
>
> Regards
>
> Yvan Arnaud
>
>
>
> --
> 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 trying to use the function mail().
<?php mail("[EMAIL PROTECTED]", "subject", "message"); ?>
I get :
Warning: Failed to Connect in D:\IBOIS\web\test.php on line 1
I'm using the lastest version of PHP on IIS 4.0
What's wrong ?
Should I change the php.ini ?
If I try to use the snmp library i get lot of errors...
PLease help.me
Eric
I've got the solution.
Thanks Jeff !
____________________________________
try putting this before the mail command:
ini_set("SMTP", "your.smtp.server");
(i used localhost, thats where my server is)
ini_set("sendmail_from", "[EMAIL PROTECTED]");
(i used postmaster@localhost)
I posted this to the php list about a week ago, and it works great for me,
both on ISS5 and apache. Hope this helps!
~Jeff
Hi,
Try to convert your gif image to 32-bit mode and print it. Gif images are
8-bit only and, may be, the printer driver's dithering for the gifs is not
correct.
Alex.
>I'm using version 3 of PHP to build a .gif image file dinamicly.
>I don't know what's happening, but the letters are being displayed a little
>bit blurry or spotty like if it had built with a low resolution. This
>happens just when I print the image through browser (IE 5, 5.5, NC 4.7,
>etc). On the screen, the letter in the image are displayed perfectly.
>
>The dinamic .gif is built from a blank .gif file that act just a template.
>This 'blank' .gif has a resolution of 70 dpi. I've tryed with resolutions
of
>100 and 300 dpi, but i've got the same problem.
>
>Anyone could help me?
>
>thank in advance.
>
>
>
>--
>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 a lot...
"Alex" <[EMAIL PROTECTED]> wrote in message
01a001c0b210$f7c249e0$7660dcc1@dima">news:01a001c0b210$f7c249e0$7660dcc1@dima...
> Hi,
> Try to convert your gif image to 32-bit mode and print it. Gif images are
> 8-bit only and, may be, the printer driver's dithering for the gifs is not
> correct.
>
> Alex.
>
> >I'm using version 3 of PHP to build a .gif image file dinamicly.
> >I don't know what's happening, but the letters are being displayed a
little
> >bit blurry or spotty like if it had built with a low resolution. This
> >happens just when I print the image through browser (IE 5, 5.5, NC 4.7,
> >etc). On the screen, the letter in the image are displayed perfectly.
> >
> >The dinamic .gif is built from a blank .gif file that act just a
template.
> >This 'blank' .gif has a resolution of 70 dpi. I've tryed with resolutions
> of
> >100 and 300 dpi, but i've got the same problem.
> >
> >Anyone could help me?
> >
> >thank in advance.
> >
> >
> >
> >--
> >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]
>
Any ideas if this is possible and if so how ???
Thanks in advance. - Will
If I have a variable :
$MyVar = "Contents";
Can I create a variable at "runtime" that has a name based on the contents
of $MyVar ?
eg
$Contents
Sure,
$MyVar = "Contents";
$$MyVar equals $Contents.
Taken from the Manual, Language Reference (which everyone should read first =8),
Chapter 7: Variables / Variable Variables
Greetinx,
Mike
Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________
Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________
> -----Original Message-----
> From: Will Degener [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 3:01 PM
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] Naming Variables Based on Variable Content
>
>
> Any ideas if this is possible and if so how ???
> Thanks in advance. - Will
>
> If I have a variable :
>
> $MyVar = "Contents";
>
> Can I create a variable at "runtime" that has a name based on
> the contents
> of $MyVar ?
> eg
>
> $Contents
>
>
>
>
>
>
>
> --
> 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]
>
An example:
<?
$MyVar = "Contents";
$$MyVar = "Will it work?";
echo "\$Contents = $Contents\n";
?>
This will echo
$Contents = Will it work?
HTH,
Fernando Madruga
-----Original Message-----
From: Michael Rudel [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 21 de Março de 2001 14:14
To: 'Will Degener'; 'Php-Windows (E-mail)'
Subject: RE: [PHP-WIN] Naming Variables Based on Variable Content
Sure,
$MyVar = "Contents";
$$MyVar equals $Contents.
Taken from the Manual, Language Reference (which everyone should read first
=8),
Chapter 7: Variables / Variable Variables
Greetinx,
Mike
Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________
Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________
> -----Original Message-----
> From: Will Degener [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 3:01 PM
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] Naming Variables Based on Variable Content
>
>
> Any ideas if this is possible and if so how ???
> Thanks in advance. - Will
>
> If I have a variable :
>
> $MyVar = "Contents";
>
> Can I create a variable at "runtime" that has a name based on
> the contents
> of $MyVar ?
> eg
>
> $Contents
>
>
>
>
>
>
>
> --
> 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've had many different problems attempting to run PHP 4.04 on IIS 4 as a
module. Run it CGI.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit
> -----Original Message-----
> From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 7:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] What is your choice?
>
>
> Hello all.
>
> I decided to install PHP on my windows machine. I would like
> to know what
> combination of Server and API is your recommendation.
> Currently, I installed
> PHP4.0.5-RC1 grabbed from www.php4win.de for IIS5 using ISAPI.
> (IIS5 and ISAPI combination seems to have bunch of problems
> that I've never
> experienced with PHP and Linux)
>
> What is your recommendation?
>
> Thanks.
>
> --
> Yasuo Ohgaki
>
>
> --
> 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 just get "Bad command or file name"
Phil Driscoll wrote:
>
> >When I type php.exe -i at a ms-dos prompt, I get no response.
> What do you mean by no response?
> Cheers
> --
> Phil Driscoll
> Dial Solutions
> +44 (0)113 294 5112
> http://www.dialsolutions.com
> http://www.dtonline.org
>
> --
> 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]
which directory are you in ? is the path to your install of PHP in your
system PATH ?
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 21 March 2001 15:57
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Problem with PHP4.04 installation
> >
> >
> > I just get "Bad command or file name"
> >
> > Phil Driscoll wrote:
> > >
> > > >When I type php.exe -i at a ms-dos prompt, I get no response.
> > > What do you mean by no response?
> > > Cheers
> > > --
> > > Phil Driscoll
> > > Dial Solutions
> > > +44 (0)113 294 5112
> > > http://www.dialsolutions.com
> > > http://www.dtonline.org
> > >
> > > --
> > > 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]
> >
> >
>
Have you set your path to include the php directory - or are you in the php
directory?
Tom
John wrote:
> I just get "Bad command or file name"
>
> Phil Driscoll wrote:
> >
> > >When I type php.exe -i at a ms-dos prompt, I get no response.
> > What do you mean by no response?
> > Cheers
> > --
> > Phil Driscoll
> > Dial Solutions
> > +44 (0)113 294 5112
> > http://www.dialsolutions.com
> > http://www.dtonline.org
> >
> > --
> > 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 just get "Bad command or file name"
Ok - at the command line type
cd c:\php (or wherever your php.exe lives)
then type php.exe -i
and let us know what it says.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
Better make that 3.23.35. Q major GROUP BY bug was recently discovered that slipped
into 3.23.34, they're recommending everyone upgrades.
> -----Original Message-----
> From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
> Sent: March 21, 2001 2:02 AM
> To: Dirk Bonenkamp - Bean IT; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] MySQL errors
>
>
> Well, there is no need to use a beta version of mysql when a
> stable version
> exists!
> Why don't you start by upgrading to 3.23.34 ?! Maybe your problem
> goes away!
>
> HTH,
> Fernando Madruga
>
> -----Original Message-----
> From: Dirk Bonenkamp - Bean IT [mailto:[EMAIL PROTECTED]]
> Sent: terça-feira, 20 de Março de 2001 10:45
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] MySQL errors
>
>
> Hi all,
>
> I just installed apache, php & mysql on a win98 laptop. I normally use
> linux....
>
> Things work fine, but when I execute more queries in one script, I get
> error messages like:
> Warning: MySQL: Unable to save result set in c:/program files/apache
> group/apache/htdocs/network-club.com/agenda.php4 on line 14
>
> I saw something in the FAQ about this, but that was when upgrading.....
>
> I use Win98 SE UK, Apache 1.3.14, php 4.0.4pl1, Mysql 3.23.22-beta.
>
> TIA,
>
> Dirk
>
>
>
> --
> 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]
>
>
smime.p7s
Although, this is not a what you requested..... Anyway, How about take a look at
PEAR. You can find in PHP source or you might have them already in your system.
I think it is useful and also a good example.
You might want to use form classes can be found on net, since form elements
definition and validation is requires lot of coding without it. You can easily
find one if you look for PHP related sites.
Regards,
--
Yasuo Ohgaki
""samsom, debra"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to write an entire Work Flow (or form flow) system using PHP,
> complete with database (read, writes and inserts) and email. The form will
> flow starting with the originator through a series of approval processes to
> the end.
>
> Are there any samples out there that would point me in the right direction
> for this type project.
>
> Currently I am running PHP4, Apache and MySql.
>
> Any help is welcome :)
>
> Debra Samsom
> Business Systems Analyst
> Bristol Aerospace Ltd.
> (204) 775-8331 3402
> [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]
>
Hi php-windows,
It is an install question.
OK I am missing something simple here.
I can get PHP 4.0.5RC1 to run as a CGI on IIS5 but for some testing I want
to run it as an isapi (i.e. the DLL). I have read the manual (Which is not
that helpful). The error that I get is [The specified module could not be
found.]
(1) Can you run this version as an ISAPI ?
(2) If so has any one got a clue what simple thing I am missing?
(3) If not is there a version that can run as an ISAPI?
--
See you in Cyber space, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| I-----o<-< Bungee Jumping Tagline, Old West Version |
I got the same problem a few days ago when I tried to switch from CGI to
isapi on IIS 5.0.
I was unable to load odbc or oci8 dlls.
After searching, I finally rebooted my server -> everything now works well
as isapi
HTH
Steph
> -----Original Message-----
> From: David Elliott [mailto:[EMAIL PROTECTED]]
> Sent: mercredi, 21. mars 2001 17:57
> To: php-windows
> Subject: [PHP-WIN] PHP 4 as ISAPI
>
>
> Hi php-windows,
>
> It is an install question.
>
> OK I am missing something simple here.
>
> I can get PHP 4.0.5RC1 to run as a CGI on IIS5 but for some
> testing I want
> to run it as an isapi (i.e. the DLL). I have read the manual
> (Which is not
> that helpful). The error that I get is [The specified module
> could not be
> found.]
>
> (1) Can you run this version as an ISAPI ?
>
> (2) If so has any one got a clue what simple thing I am missing?
>
> (3) If not is there a version that can run as an ISAPI?
>
>
> --
> See you in Cyber space,
> _______________________________________________
> David | David Elliott | Software
> Engineer |
> _________________________| [EMAIL PROTECTED] | PGP Key ID
> 0x650F4534 |
> | I-----o<-< Bungee Jumping Tagline, Old West Version
> |
>
>
>
> --
> 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 you installed php from the installer (which only contains the cgi
version) or the big zip which includes all the server api modules and a load
of extensions.
If the former, do the latter, then you will have the isapi module.
However, bear in mind that when you do get it going, it is likely to be
quite unreliable - as it says in the instructions, the isapi module is not
yet ready for production use.
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
Why I get
Fatal error: Call to undefined function: com_load()
I have php 4.04
com_load doesn't work, use:
$com_object = new com("Excel.sheet");
Alain
On Sat, Jan 01, 2000 at 08:09:36PM -0800, Alexander Nenashev wrote:
> Why I get
> Fatal error: Call to undefined function: com_load()
> I have php 4.04
>
>
> --
> 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 been looking for a way to send commands to a windows application. I can start
the application and leave it running in the background. The application takes commands
from the keyboard and I need a way to send it commands via my php script????
If anyone knows a way of doing this, PLEASE HELP!!!!!!!!!!
Thanks,
Josh Seward
Hi,
While trying out the following sample codes,
<?php
$key = "donkey kong";
$input = "Let us meet at 9 o'clock at the secret place.";
$encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input,
MCRYPT_ENCRYPT);
?>
I got this warning.
"Warning: attempt to use an empty IV, which is NOT recommend in ...."
How to get rid of it?
Thanks.
HI!
There is a problem in your INCLUDED file.
If is defined function my_function() in your my_file.inc, the first INCLUDE loads the
INC file and defines your function. The second INCLUDE command loads the same INC file
with the same FUNCTION - and there is your problem.
All functions can be INCLUDED once only.
Ketan
*********** Puvodni zprava ***********
Dne 19.3.2001 v 23:15 hodin JT Graveaud napsal(a):
>Hi,
>
>I'm using PHP4.0.5-dev on Apache/1.3.17 - under Windows-Me,
>sorry not on purpose ;( ... ;-)
>
>I have in my script : include_once "my_file.inc";
>and later on in the same script I have an other :
>include_once "my_file.inc";
>
>unfortunately, I have this error:
>Fatal error: Cannot redeclare my_function() in my_file.inc on line xxx
>
>Which means, include_once does not work properly on ...
>PHP4.0.5 ? Me ?
>anyone already knows this problem ?
>
>on linux, of course it works perfectly ...
>
>Thanks for any advices.
>
>PS: Otherwise, I know I can use the old method to include once,
>with a variable, but I'd like to avoid this.
>
>--
>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]