php-windows Digest 8 Mar 2001 12:54:12 -0000 Issue 480

Topics (messages 5867 through 5875):

Re: a question about php---can you help me?
        5867 by: yagang.Lee

Re: Win32 PHP, Apache Web Server, and Mail
        5868 by: Adrian Gould
        5869 by: David Elliott
        5875 by: Adrian Gould

using remote files for inclusion...
        5870 by: Dirk.Dinger.dignos.com

Problem with MS SQL connect
        5871 by: Daniel Sichta

palette limited to 256 colors with ImageColorAllocate()?
        5872 by: Giuseppe D'Ambrosio

PdfLib --> Configuration Problem
        5873 by: Renato Barata Gomes

gdImageColorAllocate(), self-explained
        5874 by: Giuseppe D'Ambrosio

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]


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


Dear Sir or Madam,
There's something wrong with my php when connect to a IBM AS/400 using "client access" 
's odbc driver.The message looks like:
"Warning: SQL error: [IBM][Client Access ODBC 驱动程序(32 位)][DB2/400 SQL] 
通信链路故障。 COMM RC=0x5, SQL state 08S01 in SQLConnect in D:\php_web\query.php on 
line 2"

In English,which means:"there's something wrong whith the Client Access ODBC 
driver---exchange linking error"


The line 2 in query.php is "$connect = odbc_connect("as400php",'why','thisunreal');"

Even more,I can still connect to AS/400 database using the same "client access" odbc 
driver by the other query tools such as "MS QUERY" and "ORACLE QUERY".
What's wrong with the php or the "client access" odbc driver?

From:  Zeev Suraski
Email: [EMAIL PROTECTED]

Your best bet would be asking on the php-windows list -
[EMAIL PROTECTED]

Good luck!

At 03:14 7/3/2001, yagang.Lee wrote:
>Dear sirs,
>         There's a question when I'm using odbc in php---every time when I
> run my php program,there's alway wrong:
>"Warning: SQL error: [Microsoft][ODBC 驱动程序 管理器]
>未发现数据源名称并且未指定默认驱动程序, SQL state IM002 in SQLConnect in
>D:\php_web\query.php on line 2"
>
>Which is a Chinese version,it's English means:"The odbc driver manager can
>not find the database source's name and even more the
>default drivers is not set up"
>
>What can I do?
>
>My workstation's hardware:Windows 2000 server+iis5.0+php 4.0
>
>I'm looking for your early reply
>
>
>             yagang.Lee
>             [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/
*****转发内容结束*****



                    致
礼!

            yagang.Lee
            [EMAIL PROTECTED]





> Can you 'ping idris.curtin.edu.au' from your windows machine? 

yes...

> Is that machine the SMTP server? 

Yes, I am using Lyris / Mercury for this and they are SMTP (Lyris passes any
unknown addresses onto the Mercury system).

> You can try to use the IP address of your mail
> server instead of the name or, if your mail server machine is 
> windows based (NT/2K/Me/9x), then just use the name without any domain 
> specification as in: mail_server.

Will try these...

no joy

Ady




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Adrian,

On 08 March 2001 at 10:41:39 +0800  (which was 02:41 where I live) Adrian
Gould

AG> Yes, I am using Lyris / Mercury for this and they are SMTP (Lyris
AG> passes any unknown addresses onto the Mercury system).

Just an idea, can you see the logs of the smtp server. Do they have any
records in them for when you try to send a message.

- --

 Good Bye,                 _______________________________________________
  David                   |     MUA :-  The Bat! 1.51     | E-mailaholics |
 _________________________| Win 2000 Server 5.0.2195 SP1  | International |
| A wookie is an over-sized tribble with an attitude.                     |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 04/01)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBOqdVafmK8eZlD0U0EQK1MgCcCLp8A121DnU9i66skLs863U2BnsAn0WT
/gxhiltspoRhc7O4gHeln3w4
=wEI2
-----END PGP SIGNATURE-----






> AG> Yes, I am using Lyris / Mercury for this and they are SMTP (Lyris
> AG> passes any unknown addresses onto the Mercury system).
> 
> Just an idea, can you see the logs of the smtp server. Do 
> they have any
> records in them for when you try to send a message.

Hi David

nope, nothing getting to the SMTP server.

I am running Mercury (which has SMTP) on port 26 (as I need port 25 for
Lyris as a list server system).

Either way no joy.

Ady





Hi PHPs,

The PHP online-manual says, that under windows remote files can not be used
!

http://www.php.net/manual/de/features.remote-files.php

Is that the reason, why the following, won't work for me:

include("http://localhost/dynamx2html/dynalib.php");

Is "localhost" in this context remote or not ?

Any hints appreciated,

Dirk




Hi everybody,

Confg: w2000 server, php 4.0.4pl1 as ISAPI ,MS SQL 2000
My problem is that I can't connect to the SQL server. When I run same code
on my PC (with Apache) everything working OK.
On W2000 server I have php_mssql70.dll in php.ini uncommented and also when
I run phpinfo() it shows me that mssql function are available !! Can anybody
help me please ?

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





I thought this script would create a 256*256 pixel image, each one of a
random color:

______________________________

<?php
dl("php_gd.dll");

$im1 = imagecreate (257,257);

for ($i=0; $i<=256; $i++)  {
  for ($j=0; $j<=256; $j++)  {

     $color = ImageColorAllocate ($im1, rand(0,255), rand(0,255),
rand(0,255) ) ;
     imageline ($im1,  $i,$j, $i+1, $j+1 , $color);
     }
  }

$filename= "c:\\temp\\prova.jpg";
ImageJPEG ( $im1, $filename , 97);
imagedestroy ($im1);

echo "<img src='$filename'>";

?>
______________________________


but it seems you can't allocate more than 256 colors (though you get no
errors)..

could anybody try it on a linux box?
is this a bug or it's the normal behaviour?

thanks for any help,
bye,
Giuse
http://boltthrower.webhop.org







I am trying to configure PDFLIb to work with PHP.
I have PHP4.0.4 and PDFLib 4.0.
The problem is that I downloaded Pdf lib and I don not know how to configure...
I try to make some test and they did not work out.
In the PDFlib manual they say: 
Installing the PDFlib PHP 

In order to guarantee full functionality across all PD lib language bindings we 
modified

and extended the previous PHP wrapper code.Our new PHP wrapper is included in PHP

4.05 and above,and is also included in PDFlib 4.0 and above.It works with PDFlib 3.0

and above.Other PHP PDF functions than those discussed in this manual are not sup-

ported,although the wrapper code contains a few unsupported functions for backwards

compatibility.If you are not using the latest snapshot from the PHP CVS you may copy

the PHP wrapper distributed with PDFlib to your PHP directory and replaced the old

PDFlib wrapper which is included with PHP releases older than 4.05.

------->>>>> Probleam there is no PHP4.0.5 ??????!!!!!!!!!!??????????

You can test which version of the PHP PD lib binding you have installed with the fol-

lowing little script:

<?phpinfo()?>

This will display a long info page about your current PHP configuration.On this page

check the section titled pdf.If this section contains PDFlib GmbH Version (and the PD 
lib

version number)you are using the supported PDFlib wrapper.The unsupported (old)

wrapper will display PDFlib Version instead.

-------------->>>>>>>>>>> There is no section titled pdf in this phpinfo() ...

Sorry about the big email but it's a urgent problem for me !!!

Thank you!!









ok, it seems the normal behaviour (but IMHO also an ugly, inexplicable
limitation);

you can read it on http://www.boutell.com/gd/#gdImageColorAllocate

"In the event that all gdMaxColors colors (256) have already been allocated,
gdImageColorAllocate will return -1 to indicate failure"

(I didn't test the return code of gdImageColorAllocate() and so it's my
fault)

Giuse
 /--------------------------------\
 | http://boltthrower.webhop.org/ |
 \--------------------------------/




Reply via email to