RE: [PHP-WIN] Save classes to db?

2007-06-26 Thread Dale Attree
Hi there, You would use a blob or text field. You will have to serialize the object before saving it to db. Then when you retrieve it, you will have to deserialize it and then eval() the object so as to active all the values. -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECT

RE: [PHP-WIN] Dynamic image resizing on upload

2007-06-12 Thread Dale Attree
$Filename = full path and filename of original file $Thumbnail = full path and filename of thumbnail $WIDTH && $HEIGHT = specified for resizing Gdlib must be installed. $fwidth){ $percentage = round(($HEIGHT/$fheight) * 100); $newwidth = round(($f

RE: [PHP-WIN] Returning variable and array from function

2007-06-12 Thread Dale Attree
You would need to return both as elements of an array. -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:08 PM To: 'php windows' (php-windows@lists.php.net) Subject: [PHP-WIN] Returning variable and array from function Hi there! I think I have done

RE: [PHP-WIN] Warnings/Errors in PHP

2007-05-25 Thread Dale Attree
Ini_set("display_errors",1); Error_reporting(E_ALL ^ E_NOTICE); -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: 25 May 2007 09:16 AM To: chandar Cc: PHP WindowsList Subject: Re: [PHP-WIN] Warnings/Errors in PHP Hi there! I know that, but that wasn't my question...

RE: [PHP-WIN] PHP generated Excel Spreadsheets

2007-05-22 Thread Dale Attree
: bedul [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 12:16 PM To: Dale Attree Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP generated Excel Spreadsheets nope.. there were something strange with those excel 2007.. but i always use csv instead excel 2007.. well.. can u share us your script

[PHP-WIN] PHP generated Excel Spreadsheets

2007-05-22 Thread Dale Attree
Using PEAR :: Spreadsheet_Excel_Writer I am having compatibility issues with Excel 2007. Has anyone else experienced issues and got solutions? Dale Attree PHP Developer Jacklin Enterprises tel: +27 11 265 4282 mobile: +27 83 407 2911 fax: +27 11 314 2984

RE: [PHP-WIN] Bug??? "Duplicate entry '255' for key 1 " on auto increment

2007-05-21 Thread Dale Attree
Set the length of rowID to 11, leave type as INT. -Original Message- From: Mark Abrams [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 06:52 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Bug??? "Duplicate entry '255' for key 1 " on auto increment Hi All, I have a table problem with "D

RE: [PHP-WIN] Textarea and mysql

2007-05-18 Thread Dale Attree
There is only a line break, if the user hits enter, otherwise the textarea will just wrap the content. You can use the following: $textAreaWidth = 60; //Number of cols specified for textarea $loops = ceil(strlen($_POST['textarea']) / $textAreaWidth); for($i = 0; $i < $loops; $i++){ $sp

RE: [PHP-WIN] Form and enter key

2007-05-08 Thread Dale Attree
In your opening form tag In CheckKey, check if enter was hit, if so call your AJAX function. If the submit button was clicked, your keycode will be blank and then you can submit the form. Dale -Original Message- From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: 08 May 2007 12:57 PM

[PHP-WIN] Referring URL

2007-04-29 Thread Dale Attree
Hi, Does anyone know how to get the URL of the main page that makes use of an iframe to access another page? Kind Regards, Dale *** The information contained in this e-mail is confidential and m

RE: [PHP-WIN] PHP & SQL Server 2005

2007-04-25 Thread Dale Attree
$RP = $_SERVER['REQUEST_URI']; $res = mssql_query($sql,$dblink) or die($RP.''.mssql_get_last_message()); It is hitting the die() and therefore not inserting into the DB. -Original Message- From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: 26 April 2007 08:06 AM To:

[PHP-WIN] PHP & SQL Server 2005

2007-04-25 Thread Dale Attree
Hi guys. I am able to do select queries without any hassles, but as soon as I try execute an insert query, I get "The statement has been terminated." Any suggestions? Kind Regards, Dale ***

[PHP-WIN] php_mssql.dll

2006-12-11 Thread Dale Attree
Setup: - Windows XP - Apache 1.3.27 - PHP 5.2.0 php.ini file configured. dll extensions exists. Problem: All extensions are being loaded except php_mssql.dll Help please!!! Kind Regards, Dale

RE: [PHP-WIN] PHP DLL's

2006-11-16 Thread Dale Attree
Thanks guys. I downloaded PHP 5.2.0 and removed the previous versions. Got all extensions working. -Original Message- From: Niel Archer [mailto:[EMAIL PROTECTED] Sent: 16 November 2006 03:26 PM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP DLL's HI Have you read the upgradin

[PHP-WIN] PHP DLL's

2006-11-15 Thread Dale Attree
Hi all, I was running PHP 5.0.3RC with mysql. Then I upgraded to PHP 5.2.0 and include PDO. On 5.0.3, mysql works fine, but PDO doesn't. On 5.2.0, mysql doesn't work and PDO does. Apache keeps throwing out cannot find the specified module errors. Any ideas? Thanks, Dale

[PHP-WIN] SQL Server 2005

2006-11-14 Thread Dale Attree
Hi all, I am having trouble connecting to SQL Server 2005. I have installed it with mixed mode authentication. When I call mssql_connect('localhost',$username,$password), I get a PHP error saying unable to connect to server. In the PHP manual, it says something about an "interfaces" fil

RE: [PHP-WIN] PHP 5 / IIS 7 / Vista

2006-11-03 Thread Dale Attree
map. Any ideas? I need to be able to run PHP as an ISAPI module and not CGI. Thanks again. Dale -Original Message- From: Frank M. Kromann [mailto:[EMAIL PROTECTED] Sent: 03 November 2006 11:02 AM To: Dale Attree Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP 5 / IIS 7 / Vist

[PHP-WIN] PHP 5 / IIS 7 / Vista

2006-11-02 Thread Dale Attree
Anybody got PHP 5 running with IIS 7 on Windows Vista? If so, do you have a walk-through on how to do it or give me directions on how to do it? Kind Regards, Dale

RE: [PHP-WIN] Problems accessing the net units through PHP

2006-09-12 Thread Dale Attree
PHP on windows does not support mapped network drives, you would need to use sockets and connect to the IP of the machine you wish to write to. -Original Message- From: German Piqué [mailto:[EMAIL PROTECTED] Sent: 13 September 2006 08:25 AM To: php-windows Subject: [PHP-WIN] Problems acce

RE: [PHP-WIN] Installing Apache after I have installed PHP

2006-08-16 Thread Dale Attree
Yes! -Original Message- From: John Meyer [mailto:[EMAIL PROTECTED] Sent: 17 August 2006 02:31 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Installing Apache after I have installed PHP Hi, I have a machine that is running PHP/IIS. I want to run Apache on it. My question is: Do I

[PHP-WIN] php_printer.dll

2005-02-19 Thread Dale Attree
Downloaded the PECL, but when I include the php_printer.dll in my php.ini file and restart my Apache, it keeps throwing out a entry point procedure error. Any suggestions? Dale

[PHP-WIN] Outputting MS Word document

2005-02-12 Thread Dale Attree
Hi, I have saved the content of an uploaded MS Word document into a database table. Now I would like to output the content without recreating the file on the harddrive. I believe I will have to use header("application/[what do i put here]"). Any ideas? Kind Regards, Dale

[PHP-WIN] php_printer.dll and iconv.dll

2005-02-08 Thread Dale Attree
Where can get the above mentioned files for PHP 5.0.3? Kind Regards, Dale

[PHP-WIN] $_SESSION

2005-02-07 Thread Dale Attree
Is there anyway to spoof the $_SESSION array?

[PHP-WIN] PHP and MS Access

2005-01-08 Thread Dale Attree
Anyone able to help me, I'm having to port a MySQL system to MS Access, but some of the SQL is not working on MS Access. MySQL statement : select * from po limit 0,20 When I execute that sql statement using odbc_exec, it says there is a synta error in the "FROM" clause. Please help. It is urgen

RE: [PHP-WIN] MySQL 4.1 Server

2005-01-07 Thread Dale Attree
Hi, I need your help please. I have downloaded the API below, but I am having trouble executing SQL statements against an access database using a dsn-less connection. Can you help? -Original Message- From: phpWalter [mailto:[EMAIL PROTECTED] Sent: 30 November 2004 22:24 To: php-windows@

[PHP-WIN] MySQL 4.1 Server

2004-11-30 Thread Dale Attree
Hi Does anyone know where I can download the latest MySQL PHP API to connect to MySQL 4.1? Kind Regards, Dale Attree (NDECS) Technical Manager - Kwik IT Solutions www.kwikitsolutions.co.za Tel : +27 35 786 1416 Cel : +27 83 407 2911 [EMAIL PROTECTED]

[PHP-WIN] Function reference

2004-10-06 Thread Dale Attree
Hi, Does anyone have or know where I can find a function reference for MicroSoft Word as a COM object in PHP, other than the example in the PHP CHM file and/or manual. Kind Regards, Dale

[PHP-WIN] Apache as a service

2004-10-04 Thread Dale Attree
Hi, Can anyone help me with regards to running Apache 1.3.27 on Windows 2000 Professional Service Pack 4. Thanks, Dale