php-windows Digest 11 Jul 2001 06:16:56 -0000 Issue 646

Topics (messages 8232 through 8238):

Error on viewing test.php
        8232 by: Wayne Hinch

Access Violation error. PLEASE HELP
        8233 by: PHPFAN

How to use imagettftext() on NT running Apache, php 4.0.6
        8234 by: Steen Rabøl

Re: Interbase: ibase_pconnect() problem
        8235 by: Pascal Bruyez
        8237 by: Pascal Bruyez

How to remove a value from a array
        8236 by: Steen Rabøl

Re: PHP and IIS and Win2k and Access Violation problems...
        8238 by: elias

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 all,

Please help I'm a newbie to PHP stuff.

When I try and view test.php, it keeps saying that it carn't find the
dynamic librarys. In PHP.INI it has all the default values and file
locations but it just won't work. I'm running windows 2000 Professional with
their server and PHP 4.0.4.

Wayne




I have the following setup.

PHP 4.04 running on windows 2000 using SQL Server 7.0

The script runs fine for sometime, then I get the following errors
PHP has encountered Access Violation at 013A2466. So I have to reboot
everytime. This happens
almost every 2 to 3 hours or so. I have to use PHP on windows 2000.

Please help.

Thank you
PHPFAN






Hi

I keep getting a error in the following code:
<?

# variables
$pic = "./images/button_bg.jpg";
$fontfile = "arial.ttf";
$fontsize = "12";
$fontcolor = "#000000";
$textangle = "0";
$text = (isset($text) ? rawurldecode($text) : "OhReally"); # should be set in 
query_string

# create pic and fontcolor
$pic = imagecreatefromjpeg($pic);
$fontcolor = str_replace("#", "", $fontcolor);
$fontcolor = imagecolorallocate($pic, hexdec(substr($fontcolor, 0, 2)), 
hexdec(substr($fontcolor, 2, 2)), hexdec(substr($fontcolor, 4, 2)));

# calculate start position
$picwidth = imagesx($pic);
$picheight = imagesy($pic);
list($pos_blx, $pos_bly, $pos_brx, $pos_bry, $pos_trx, $pos_try, $pos_tlx, $pos_tly) = 
imagettfbbox($fontsize, $textangle, $fontfile, $text);
$textwidth = $pos_brx - $pos_blx;
$textheight = $pos_bly - $pos_tly;
$start_x = ($picwidth - $textwidth) / 2;
$start_y = (($picheight - $textheight) / 2) + $textheight;

# write text and output image
imagettftext($pic, $fontsize, $textangle, $start_x, $start_y, $fontcolor, $fontfile, 
$text);
header("content-type: image/jpeg");
imagejpeg($pic);
imagedestroy($pic);
?>

if called directly with:

thepic.php?text=test

then I get:
Warning: Could not find/open font in d:\www\webreklamer\thepic.php on line 19

Warning: Could not find/open font in d:\www\webreklamer\thepic.php on line 26

And the arial.ttf IS in the same directory as the script.

What am I missing ?

Thanks in advance.

Best
Steen




Hello Wolfgang ,

I have no solution to your problem and i hope you find one since 15 march,

I have a problem for loading dynamic library php_interbae.dll : when i try
to use this library , i have the error message:
        "Unable to load dynamic library
'c:\php\extensions/php_interbase.dll"

I have modified php.ini to load this dll (put off the ; in the section
Dynamic Extensions ) , but it doesn't work ...

My environment:
- WinNT 4.0 SP5
 - IIS4.0
- PHP/4.0.4pl1 in CGI mode
- Interbase 6.0

I have tried the some with mssql7.0 and it works fine ... (when i use
phpinfo(); , i have mssql 7.0 activated )

Do you have an idea ?
Did you make some special things to use Interbase ?

TIA
Pascal
[EMAIL PROTECTED]


Wolfgang Hege <[EMAIL PROTECTED]> a écrit dans le message :
[EMAIL PROTECTED]
> Hi !
>
> I have following problem when connecting to Interbase:
>
> When trying to establish a persistent connection using
> 'ibase_pconnect()' a new connection is created each time. The database
> connection remains open, but it will not be re-used later. So I have
> loads of database connections and a huge performance problem.
>
> My environment:
>  - WinNT 4.0 SP5
>  - Apache 1.3.19
>  - PHP/4.0.4pl1 ( loaded as module )
>  - Interbase 6.0
>
> Does anybody know some help ?
>
> Thank you very much.
>
> Wolfgang.






Hello Wolfgang ,

I hav'nt the solution to your problem and i hope you resolved it sine the 15
march ...

But i have a problem to load the dll php_interbase.dll : i have uncommented
the extension in the php.ini file but it doesn't work and i can't find
what's wrong .

I have tested with MSSQL 7.0 and it works well ...

With Interbase , i have the error message :

    "Unable to load dynamic library  'c:\php\extensions/php_interbase.dll"

My environment:
- WNT4.0 SP5
- IIS4.0
- PhP4.0.4 CGI mode
- Interbase v6

Do you have made any special things to make working Interbase with PhP ?
Do you have an idea how to resolve my problem ?

TIA
Pascal
[EMAIL PROTECTED]



Wolfgang Hege <[EMAIL PROTECTED]> a écrit dans le message :
[EMAIL PROTECTED]
> Hi !
>
> I have following problem when connecting to Interbase:
>
> When trying to establish a persistent connection using
> 'ibase_pconnect()' a new connection is created each time. The database
> connection remains open, but it will not be re-used later. So I have
> loads of database connections and a huge performance problem.
>
> My environment:
>  - WinNT 4.0 SP5
>  - Apache 1.3.19
>  - PHP/4.0.4pl1 ( loaded as module )
>  - Interbase 6.0
>
> Does anybody know some help ?
>
> Thank you very much.
>
> Wolfgang.






Hi

How can I remove a vale from a array()

eg;

$a = array("1","2","3");

if I then unset($a[1]) the value is NULL, or the offset is empty, and you get a error 
if yoy try to access that element.

What I want/need is a function whic can remove a valy/key from a array

Does such a function exists ?

Thanks in advance

Steen





I don't really know how i can setup CGI instead of ISAPI under NT systems..
I only got the installer from php.net and ran it and chose in the installer
IIS.
The installer didn't ask me about whether I want to install as CGI or ISAPI.
But I feel it's installed as ISAPI...

So plz tell me how I can install it as ISAPI.

Thanks.

"Elias" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> I've recently setup PHP on my Win2000 with IIS5,
>
> Sometimes PHP works and other time it doesn't...
>
> When it doesn't it just prints out:
> PHP has encountered an Access Violation at 00EC24B6
>
> Can't someone shed some lights please?
>
>
>




Reply via email to