php-windows Digest 28 Mar 2003 02:00:13 -0000 Issue 1656

Topics (messages 19166 through 19172):

Re: ISP Blues
        19166 by: Rico Derks

Re: Error, does anyone see anything wrong?
        19167 by: vipula
        19169 by: hippo

Re: stuck with distinct  ! ! ! !
        19168 by: Svensson, B.A.T. (HKG)

replace ../ with actual url
        19170 by: Kieran Hall

Password authentication failed with pg_connect (apache2 / win32 / php4.3.1)
        19171 by: Richard Hollis

What does"Query was empty" mean?
        19172 by: quickshow

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]


----------------------------------------------------------------------
--- Begin Message --- Hi,

I also have the php_gd.dll in the extensions dir of php. But I had to change the
extension_dir =
to
extension_dir = C:/php/extensions


Cheers,
RICO.

At 22:22 26-03-2003, Anthony Ritter wrote:
The following script works fine when I test it at home using localhost on:

MS Win 98
Apache Server
PHP 4.1.1
php_gd.dll

I then publish the script to my web at my ISP's MS IIS server which is the
host and get an undefined function call of:

ImageCreate()

The ISP has said that they have installed php_gd.dll on their server but I
get that error.

I have run php scripts on this site _without_ the gd libraries.

Could somebody please advise how they should be installing the .dll file so
I can utlize the gd_libraries with php?

Many thanks,
Tony Ritter
..............................................................

The script...
<?
$new_w=50;
$new_h=50;

header("Content-type: image/png");
header("Content-type: text/html");
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromPng("./square.png");

ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),I
mageSY($src_img));

ImagePng($dst_img);

echo "This is a square.";
?>




-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Hi,
I'm trying to draw a table in a PDF with php. At the moment I can draw it as
a combination of lines by giving cordinates. Is there any easy or systamatic
way to do this.

Thanks in advance.
-Vipula


--- End Message ---
--- Begin Message ---
Dobrư den,
Thursday, March 27, 2003, 10:56:28 AM, napsal jste:

> Hi,
> I'm trying to draw a table in a PDF with php. At the moment I can draw it as
> a combination of lines by giving cordinates. Is there any easy or systamatic
> way to do this.

> Thanks in advance.
> -Vipula

  Of course bad threAd

  Bat take a look at the http://www.fpdf.org


 hippo



-- 
S pozdravem,
 hippo
 [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
What do you want to do then????

Other wise 

SELECT DISTINCT <attribute list> 

Alt.

SELECT DISTINCT(<attribute>)

or 

GROUP BY ALL

alt.

GROUP BY <attribute list>

might work 


> -----Original Message-----
> From: toby z [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 8:38 AM
> To: php hlp list
> Subject: [PHP-WIN] stuck with distinct ! ! ! ! 
> 
> 
> hi guyz
> 
> im trying a query that fetches all fields(ranging from 5 to 15) from
> 11 tables i m looking round for distinct at
> http://www.mysql.com/doc/en/SELECT.html
> 
> n so faar i aint getting anything :(
> 
> can n some1 plz hlp
> 
> 
> thnx a lot .....
> 
> toby ....
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Hi,
 
I am currently writing a script that runs though a specified URL and
translates any text and returns the translated website back to the user.
In order for the website to be displayed correctly, the images should
all be on display.  However, images which are linked like so: 
 
src="../image_dir/image.jpg"
 
are looked for on my server.  I therefore decided to use:
preg_replace().  I am now stuck on the regular expression.
 
I thought an array would be best suited for this because I need to
replace the following.
 
$pattern[0] = "src="../";
$pattern[1] = "src=../";
 
$replace[0] = "src="$base_url/";
$replace[1] = "src="$base_url/";
 
I need the regular expressions!
 
Any help and additional advice would be brilliant.
 
Thanks,
 
Kieran Hall
 
 

--- End Message ---
--- Begin Message ---
Im running apache2, php4.3.1 on win32 and everything is dandy apart from the
fact that pg_connect won't connect to a server which requires encrypted
passwords.

I get:

Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL
server: FATAL 1: Password authentication failed for user "account_dev" . in
C:\www\common\db.inc on line 49

I am using the same script which works on my linux box running different
versions of apache and php, but I know it works with the username/password
etc.

Can pg_connect handle encrypted passwords on win32?  Do I need apache 1.3.x
or is this a bug perhaps?

Cheers
Richard



--- End Message ---
--- Begin Message ---
i am php&mysql newbie.
i have created a table like:
=======================================================
CREATE TABLE $data_dep(
     ID int(3) DEFAULT '0' NOT NULL auto_increment,
     department_name VARCHAR(10),
  department_desc TEXT,
  publishtime  DATE,
  updatedby  VARCHAR(8),
  updated   TIMESTAMP,
     PRIMARY KEY (ID)
  )
=======================================================
when i use :
$addtmt = "Insert into
$data_dep(department_name,department_desc,editedby,publishtime)
values(%s,%s,%S,%s)";
mysql_query(sprintf($addstmt,$department_name,$department_desc,$editedby,$pu
blishtime),$link);

an error occured:
Query was empty .
========================================================
Must i insert
  ID int(3)
  department_name
  department_desc
  publishtime
  updatedby
  updated
COMPLETELY?



--- End Message ---

Reply via email to