[PHP-WIN] ISP

2003-02-13 Thread Pat Johnston
Hello all Just a query I want to ask what is meant by include files being in a folder 'outside' the web root. For example, I use an ISP (linux box) to upload all my stuff to the site I see /html as the folder to store all web files. So if I go up one to /, is this outside the web root, or is this

[PHP-WIN] Re: code change in new version?

2003-02-04 Thread Pat Johnston
There was a thread on the list regarding this. Do a search here for 'register globals on and off'. That thread should help you.. Regards Paradiddles [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey everyone! I noticed that in the older version of php (when

[PHP-WIN] sessions and global register

2003-02-01 Thread Pat Johnston
Hi I've been learning to get through sessions as it appears to be the hardest part of PHP I've come across. I found that includes must be stated underneath that of a session_start() for example otherwise a warning will appear that it can't start a session because a header has already been sent

[PHP-WIN] Re: Register globals on and off

2003-02-01 Thread Pat Johnston
I've read that an include file in each of your pages with the lines below should do the trick for you with register_globals OFF.. Not sure if this is a valid way to go though... ?php extract($_SERVER); extract($_ENV); extract($_GET); extract($_POST); extract($_REQUEST);

[PHP-WIN] error - permissions?

2003-01-31 Thread Pat Johnston
Hi I get this error in a login page I've created. I am using root for testing purposes only on localhost, but it keeps comming up with access denied. I am wondering if this is a Windows 2000 permissions problem or are new users denied in MySQL? Any idea? Regards, PJ Warning: mysql_connect()

[PHP-WIN] displaying a numeral

2003-01-28 Thread Pat Johnston
Hi I have a field in my MySQL database that's a decimal where I have figures of millions without the decimal point - i.e - 150 Is there a function in PHP to display this figure as a $ amount - i.e - $1,500,000 I searched PHP manual without finding anything. If there is something in the

Re: [PHP-WIN] displaying a numeral

2003-01-28 Thread Pat Johnston
Thanks Frank, The $english_format_number = number_format($number); line works a treat. Cheers, Pat Frank M. Kromann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://php.net/number_format is what you are looking for. - Frank Hi I have a field

[PHP-WIN] Re: Image Creation Error

2003-01-16 Thread Pat Johnston
Hi Ed I have a similar probelm with resizing and cannot work it out. My phpinfo (ver 4.3) says jpeg support enabled and put php_gd.dll in the same directories as you. My code is: $imagesrc = ImageCreateFromJpeg($image); $imagedst = ImageCreate($im_width,$im_height); ImageCopyResized($imagedst,

[PHP-WIN] Re: jpeg images

2003-01-15 Thread Pat Johnston
I've asked this question a tad too soon. I see the latest version of PHP has built in gd, so the forget what I've asked below. Regards, Pat J. Pat Johnston [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I'm using PHP 4.1.2. I want to resi

[PHP-WIN] jpeg images

2003-01-14 Thread Pat Johnston
Hi all I'm using PHP 4.1.2. I want to resize jpegs on the fly, but the functions ImageJpeg and ImageCreateFromJpeg don't work. From what I read I need GD and then compile it with jpeg-6b. I know nothing about GD and its libraries nor do I have a C compiler. There's not much in the GD manual or

Re: [PHP-WIN] can't connect localhost

2002-12-12 Thread Pat Johnston
db try to grant privilleges to ur user all over again . n there aint anythin relavet to it on the manul except fo r the grant privilleges section .. hope ive helped .. good luck toby .. --- Pat Johnston [EMAIL PROTECTED] wrote: Hi I'm new at Apache, PHP, MySQL, but h

[PHP-WIN] can't connect localhost

2002-12-09 Thread Pat Johnston
Hi I'm new at Apache, PHP, MySQL, but have been going okay on my win2000 machine. For months, it's been good. But for reason, I get this message when I try to do stuff with mysqladmin ** mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to MySQL server on 'localhost'

Re: [PHP-WIN] auto increment

2002-12-06 Thread Pat Johnston
. Split them when the user posts a request. See also str_pad function - Original Message - From: Ignatius Reilly [EMAIL PROTECTED] To: Win32 list PHP [EMAIL PROTECTED]; Pat Johnston [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 11:12 PM Subject: Re: [PHP-WIN] auto i

[PHP-WIN] auto increment

2002-12-05 Thread Pat Johnston
Hi With php, just wondering if anyone knows if I can auto increment a number that has a part string? Is it possible to code this for an ID in MySQL database? ie rur01 rur02 rur03 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: PHP and Apache 2

2002-11-10 Thread Pat Johnston
Hi If there are problems with Apache2, then is 1.3 okay to continue using? I mean is 2 much better? Pat Erythros [EMAIL PROTECTED] wrote in message news:20021025155732.12124.qmail;pb1.pair.com... this is probably the wrong place to ask but does anyone know of any progress on PHP and Apache2