Re: [PHP-WIN] mssql and latin characters

2008-01-22 Thread Frank M. Kromann
Hi Leticia, MS SQL server comes with a set of client tools that allows you to specify the encoding. There is a checkbox in the Client Network Tool that allows you to enable/disable OEM character conversion. Flipping that for the alias you are using to connect to the database should fix the problem

Re: [PHP-WIN] How to use Windows Authentication (SSPI) with mssql_connect command ?

2007-05-31 Thread Frank M. Kromann
But instead of them having to log in, it would just pull the "username" > from their NT account. > > > On 5/31/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote: > > > > that will be the user configured under IIS (IUSR_). You don't > > need that

Re: [PHP-WIN] How to use Windows Authentication (SSPI) with mssql_connect command ?

2007-05-31 Thread Frank M. Kromann
name of the person that is trying to update the > database? > > On 5/30/07, Frank M. Kromann <[EMAIL PROTECTED]> wrote: > > > > use the mssql.secure_connection = On in your php.ini file and make sure > > the > > IIS users has access to the database. > >

Re: [PHP-WIN] How to use Windows Authentication (SSPI) with mssql_connect command ?

2007-05-30 Thread Frank M. Kromann
use the mssql.secure_connection = On in your php.ini file and make sure the IIS users has access to the database. - Frank > Hi, > > Does someone knows how to use the Windows Authentication (SSPI) with > mssql_connect() ? > > Here's my trouble : > I'm using an MS SQL Server 2000 and use the win

Re: [PHP-WIN] MSSQL returned: Invalid object name

2007-03-23 Thread Frank M. Kromann
This sounds like your MSSQL connections are getting mixed up. If the two databases are on the same server and the same sql login has access to both databases you can query everything from a single conenction. You just have to qualify the tables/procedures with ..table to the server knows where to

Re: [PHP-WIN] PHP4 and DST Changes

2007-03-12 Thread Frank M. Kromann
My old copy of PHP 4 works just fine on windows. Check your settings on windows. Did you enable DST?, did you patch the box with the latest update from MS? - Frank > to php-db.. this might related to database. > forgive me if this contain spam. > - Original Message - > From: "James Crow"

Re: [PHP-WIN] proc_open on windows in CLI - DOS windows

2007-03-09 Thread Frank M. Kromann
Try stating the process with php-win.exe. - Frank > I need a piece of advice from PHP experts and I'm sure you can help me. > I want to start and then control a process in PHP CLI on Windows. > I decided to use proc_open as it is really powerfull. It works > perfectly but I get a DOS window ever

Re: [PHP-WIN] windows printing and label printer

2007-02-14 Thread Frank M. Kromann
Hi Ethan, Check your script fom the command line (Using CLI version of PHP). If that works check that the user running your web server as access to the printer. - Frank > Hello, > > I'm using an epson label printer and have it installed on the server with > the printer.dll installed. However,

Re: [PHP-WIN] SSL on Windows Server 2003

2007-02-07 Thread Frank M. Kromann
> Good Day To All, > > System Config: > Windows Server 2003 > PHP 5.2 > > I'm hoping someone can help give me a high level understanding between > the differences between an SSL certificate installed on my webserver and > an SSL module (e.g. OpenSSL) installed on my web server. > > 1. My cu

Re: [PHP-WIN] Missing PHP registered Streams: httpsand ftps

2007-01-04 Thread Frank M. Kromann
Here is the output from phpinfo(); Registered PHP Streams php, file, data, http, ftp, compress.zlib and when I load the openssl extension I get Registered PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps I have all the PHP files in c:\php5, including the extra DLL's. I'm

Re: [PHP-WIN] Missing PHP registered Streams: httpsand ftps

2007-01-04 Thread Frank M. Kromann
Hello Stelios, php_openssl.dll requires one or more dll's to load. Can't remember the names off hand, but it's something like sas*32.dll. If these are not found the extension will not load. You can check phpinfo() to see if it loads. - Frank > Hello Frank, > > The extension is already loaded in

Re: [PHP-WIN] Missing PHP registered Streams: https and ftps

2007-01-03 Thread Frank M. Kromann
Loading the OpenSSL extension should help. Just add extension=php_openssl.dll to your php.ini file and restart the web server. - Frank > Hello Guy's, > we have a problem. Our customer is running an Internet Shop with osCommerce. > We have installed for him an Contribution for making Credit Card

Re: [PHP-WIN] php_mssql.dll

2006-12-11 Thread Frank M. Kromann
Please read http://php.net/mssql. Under requirements for win32 you will find this section. The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\syste

RE: [PHP-WIN] SQL Server 2005

2006-12-03 Thread Frank M. Kromann
'm relatively new at) I've always used the mssql_* functions. > > > Regards, > > Bruce > > >>> git <[EMAIL PROTECTED]> 2/12/2006 1:43 a.m. >>> > On Wed, 15 Nov 2006 02:17:07 -0800, Frank M. Kromann wrote: > > > Hello, > &g

Re: [PHP-WIN] PHP DLL's

2006-11-16 Thread Frank M. Kromann
Sounds like a version problem. PHP's dll's can not be shared between 5.0.x and 5.2.x Make sure you delete all copies of dll's from version 5.0. This includes copies in \windows\system32 or other directories included in your path or bin directory for apache. - Frank > Hi all, > > > > I was ru

RE: [PHP-WIN] SQL Server 2005

2006-11-15 Thread Frank M. Kromann
Hello, This is not correct. PDO and native mssql_*() functions exists in two fifferent versions. The version compiled with Microsofts (old) version of dblib has the restrictions mentioned here but the version compiled with FreeTDS (php_dblib.dll and php_pdo_dblib.dll) does not. - Frank > Hello,

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

2006-11-04 Thread Frank M. Kromann
ain. > 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 / Vista > > Works almost like PHP5 on XP or Windo

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

2006-11-03 Thread Frank M. Kromann
And this can also be done by creating a file caled web.config in the directory where you want php support. The vile should look like this: - Frank > Works al

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

2006-11-03 Thread Frank M. Kromann
Works almost like PHP5 on XP or Windows 2003 with IIS5/6 1) Copy php to a directory (c:\php5) 2) Start the IIS manager and create a site or virtual directory 3) Add a script mapping for .php to point to php-cgi.exe or php5isapi.dll That's it. - Frank > Anybody got PHP 5 running with IIS 7 on Wi

Re: [PHP-WIN] Comunication between php and a window service

2006-10-29 Thread Frank M. Kromann
The sockts (php_sockets.dll) allows you to communicate with any socket based server. - Frank > Is there a way to comunicate between php and a window service? (by Sockets?) > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP W

Re: [PHP-WIN] PHP_PRINTER.DLL - NetBIOS prints, TCP/IP doesn't

2006-10-29 Thread Frank M. Kromann
You can use any shared printer as long as the server can access it without the use of username and password. Make sure your server has access to the printer (for the user running the web server). That said - server side printing is designed to be server side. The browser comes with a nice printer

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Frank M. Kromann
Hi Alf, As far as I can tell it's working just fine. Hre is a sample: and here is the output: bool(true) Warning: mssql_query(): message: Syntax error converting the varchar value 'aa' to a column of data type int. (severity 16) in C:\php5\test\mssql_error.php on line 10 Warning: mssql_query

Re: [PHP-WIN] RE: SPAM-LOW: [PHP-WIN] Unicode data w/ PDO DBLIB, MSSQL

2006-10-09 Thread Frank M. Kromann
The mssql extension comes in two different versions on Win32 systems. php_mssql.dll and php_pdo_mssql.dll are compiled and linked with ntwdblib from Microsoft php_dblib.dll and php_pdo_dblib.dll are compiled and linked with FreeTDS. The FreeTDS versions uses a more recent version of the protocol

Re: [PHP-WIN] IIS7, php and extensions

2006-10-01 Thread Frank M. Kromann
I think you need to place php.ini in c:\windows. If you would use the cgi version of php you can have the php.ini file in the same directory as the rest of the php files. I'm running the cgi version and I do not have any problems with extensions. - Frank > Hi, > I have intalled the RC1 of Window

Re: [PHP-WIN] cookies time?

2006-09-18 Thread Frank M. Kromann
both time() and mktime() works fine on Windows. - Frank > Well, reading the documentation about cookies i saw that the function time() > works using UNIX epochs. If I try to use this function (or mktime) in > windows, the php shows a white page, like there's an error somewhere. > > It's a proble

Re: [PHP-WIN] Navision ODBC

2006-08-19 Thread Frank M. Kromann
Hi Joakim, Many years ago (Before Microsoft bought Navision) the ODBC driver was read only so I created native php extensions for both the DOS and Windows version of Navision. Back then called Navision 3.5.x and Navision Financials 2.x. I have not touched Navision in the past 6 years but I might

RE: [PHP-WIN] Localhost does not work

2006-08-10 Thread Frank M. Kromann
Hello, MSSQL Server requires the use of server aliases. Use the Cleint Network Utility to create aliases that links a name to a server and a protocol. If PHP is running on another box you can install the Client Tools from the SQL server CD. Copyiing ntwdblib.dll does not give you the complete set

Re: [PHP-WIN] PHP and SQL Server 2005

2006-06-20 Thread Frank M. Kromann
The SQL Server is configured to only allow connections from trusted users. Use mssql.secure_connection = 1 in php.ini when connection to the server. - Frank > What is your connection string? > > Tryst > > -Original Message- > From: Dale D. Attree <[EMAIL PROTECTED]> > To: php-windows@li

Re: [PHP-WIN] Apache 2.2 and PHP-5.1.4

2006-05-23 Thread Frank M. Kromann
Apache 2.2 support is included with the Windows builds from version 5.2.0 of PHP. - Frank > Thanx for the info. It seems as if u have worked with both IIS and > apache. What are the advantages and the disadvantages and in general > what would u recommend. > > Aaron Kenney wrote: > > The indica

Re: [PHP-WIN] Getting Started

2006-05-01 Thread Frank M. Kromann
Did you restart apache after changing http.conf? - Frank > Hi, I have never set up php, or a server for that matter, before and I am > having trouble getting php to work. I have downloaded the latest files for > windows from the php website and I have the latest 2.0 version of Apache. I > have

Re: [PHP-WIN] php_win32service.dll - constants defined multiple times?

2006-02-19 Thread Frank M. Kromann
Hi, That's a bug. I have just commited a fix. Thsis will be available in the next build. - Frank > Using php 5.1.2 with the php_win32service.dll extension(downloaded for > 5.1.2). The only line I've added to php.ini is as follows: > > extension = php_win32service.dll > > Now, each and every f

Re: [PHP-WIN] Re: Windows 2003 server and IIS 6

2006-01-11 Thread Frank M. Kromann
I've been using PHP5 on my Windows 2003 servers for more than a year now. No problems at all. Using PHP with Apache on Windows based systems is another alternative and that works fine too (even better in many cases). - Frank > I recommend staying AWAY from PHP 5. We were getting alot of random

RE: [PHP-WIN] cant connect to mssql

2005-12-16 Thread Frank M. Kromann
Well this list is designated to questions about PHP on Windows platforms so I would say that this is the right list. As for the conection problem, I would check the security seiitings in MS SQL Server. If the server is set to allow domain authentication you have to use mssql.secure_connection = On

Re: [PHP-WIN] Re: PHP retrieve Client machine name

2005-11-17 Thread Frank M. Kromann
I Think the corret answer to this question is $REMOTE_ADDR or $_SERVER['REMOTE_ADDR']. This will return the IP address of the client that connects. - Frank > Hello, > > on 11/17/2005 02:42 PM Alf Stockton said the following: > > In a PHP 5.0 program running under Windows 2000 with Apache 2 I nee

Re: [PHP-WIN] Printing in windows

2005-11-17 Thread Frank M. Kromann
Hi Fernando, the printer_write() function writes directly to the printer and you do not need to call printer_start_doc(), priner_start_page() etc. These functions must be used if you are printing useing the printer_drap_text(). Here is two examples from the documentation: - Frank > > Gr

Re: SV: SV: [PHP-WIN] mssql tcp

2005-11-16 Thread Frank M. Kromann
o CGI? > > // jocke > > > -Ursprungligt meddelande- > Från: Frank M. Kromann [mailto:[EMAIL PROTECTED] > Skickat: den 15 november 2005 17:23 > Till: Joakim Ling > Kopia: php windows; Robert Twitty > Ämne: Re: SV: [PHP-WIN] mssql tcp > > Hi Jocke, > > Well I work wit

Re: SV: [PHP-WIN] mssql tcp

2005-11-15 Thread Frank M. Kromann
Hi Jocke, Well I work with PHP and MSSQL and I know a bit about the broblems too. The library used to build the extension (msdblib) is not thread safe so if you are using the extension on a hight trafic server under Apache or ISAPI you might find odd problems. This has nothing to do with PHP. Usin

Re: [PHP-WIN] How to user mssql_connect to connect to a sql server other than on port 1433?

2005-10-27 Thread Frank M. Kromann
You can't specify the port when connecting with mssql_connect() but you can use the Client Network Utility (this is installed when you install the MS SQL Client tools on your PHP server) to create a server alias. The server alias includes the protocol, host name and port number you are using and yo

Re: [PHP-WIN] php_zip PHP 5.05 extension issue

2005-09-29 Thread Frank M. Kromann
Put a copy of php.ini in c:\windows. I think that's the only place it can be found when you use the ISAPI module. - Frank > Hi, > I installed php in c:\inetpub\php folder and gave access to IIS user. > My web server is IIS5. > I added HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = ini path directo

Re: [PHP-WIN] A setcookie related question

2005-09-04 Thread Frank M. Kromann
Hi Tony, In most cases you do not need to use the domain parameter. Try to simplify the function call to setcookie("auth", "1", 0, "/"); // Not this cookie has already expired setcookie("auth", "1", time() + 3600, "/"); // Not this cookie will expire in 1 hour or even to setcookie("auth", "1

Re: [PHP-WIN] Differences between debug and release?

2005-08-30 Thread Frank M. Kromann
Hi Tim, I'm also building my own versions of PHP, but I do not have the problems you are describing here. That said, you should not need to buid you own versions as the extensions can be enabled from the php.ini file or from the script (as long as you are running CLI or CGI). Unless you are runnin

Re: [PHP-WIN] Getting php_zip extension to work

2005-08-23 Thread Frank M. Kromann
Hi Ross, Try moving the extension to the Apache bin folder. - Frank > I have un-commented extension=php_zip.dll in my php.ini but get this message when Apache starts: > > Unable to load dynamic library 'c:\php\ext\php_zip.dll' = The specified module could not be found. > > Has anyone got the p

Re: [PHP-WIN] php and Windows 2003 Server

2005-07-26 Thread Frank M. Kromann
ntwdblib.dll is used by php_mssql.dll (the MSSQL Extension) and should be located in \windows\system32. It will only be there if you have installed the MSSQL Server or at least the client tools for MSSQL Server. You can copy the file from another box, but you will not be able to configure options,

Re: [PHP-WIN] how to reload ISAPI PHP

2005-07-25 Thread Frank M. Kromann
Restart the IIS Admin Service. This will restart the web service and any other service under it (ftp, smtp) and you should be good to go. - Frank > I've modified some enxtensions lines in php.ini but the isapi dll seems > to be cached, i've restarted the iis service but still cached, did > som

Re: [PHP-WIN] GTK and PHP5?

2005-06-21 Thread Frank M. Kromann
Not yet. I'll start the work soon. - Frank > Hi, > > Is it possible to use GTK WIN with PHP5? > > > > Cheers > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Extension

2005-06-13 Thread Frank M. Kromann
Hi Brian, IIS uses script mapping to tell the server how files are handled. When you configured IIS to handle .php files you created (or the installer did) a script map that tells the server that all .php files should be passed through php-cgi.exe or php5isapi.dll. If you do the same for html fil

Re: [PHP-WIN] Re: Phpize

2005-05-02 Thread Frank M. Kromann
phpize is a linux/unix tool and it can't be used on win32 systems. The Image Magick extension comes precompiled on win32. You only need to install and enable the extension. This can be done by adding extension=php_imagick.dll to you php.ini file. - Frank > Terry Watts wrote: > > I'm new to PHP a

Re: [PHP-WIN] Compiling Win32 extensions (VC++)

2005-04-08 Thread Frank M. Kromann
Hi Jeff, The default build of PHP on Win32 is thread safe but it's only required if you are using PHP with a multithreaded server. I Use PHP5 in a non threaded configuration (CGI and CLI) on win32. You can download binaries at http://kromann.info/php.php, or compile them. There is two ways to fix

RE: [PHP-WIN] php 4.3.7 and MS-SQL access

2005-02-18 Thread Frank M. Kromann
there anything else I need to install or configure? > > -Original Message----- > From: Frank M. Kromann [mailto:[EMAIL PROTECTED] > Sent: Friday, February 18, 2005 2:40 PM > To: Danny Willis > Cc: php-windows@lists.php.net > Subject: Re: [PHP-WIN] php 4.3.7 and MS-SQL a

Re: [PHP-WIN] php 4.3.7 and MS-SQL access

2005-02-18 Thread Frank M. Kromann
Hello, You need to load the MSSQL Server etension form php.ini with this line: extension=php_mssql.dll - Frank > I'm running the following: > > Win 2k3 server > IIS 6.0 > php 4.3.7 in IASPI mode > > > Now I am trying to get php to connect to MSSQL but it will not let me do so. > I keep gett

Re: [PHP-WIN] Weird windows error

2005-01-18 Thread Frank M. Kromann
You are not supposed to register the php_mssql.dll with windows. It's a php dll to be used under windows, not a normal Windows dll. All you need to have is extension=php_mssql.dll in your php.ini file (a php.ini file that can be found by apache, either in your windows directory or the apache2\vin

[PHP-WIN] PHP5 MSSQL and FreeTDS

2005-01-17 Thread Frank M. Kromann
Hello Everyone, I have (finally) had the time to build a version of the mssql extension that uses FreeTDS on Win32. This should end some of the limitations in Microsofts libraries (ie char/varchar with max width of 255 bytes). It still ned some testing so if you are interested in testing this new

Re: [PHP-WIN] weird problem php mssql

2005-01-13 Thread Frank M. Kromann
Are you using the same SAPI and context on both maschines? The mssql extension can give different results depending on the context the driver is used in (OEM to ansi convertion). If your data is stored in a binary column (not a text column) it should not matter though. - Frank > Hi, > I've st

Re: [PHP-WIN] Is it possible to have IIS and apache runing in the same machine, with windows xp?

2005-01-05 Thread Frank M. Kromann
Yes, as long as they are using different tcp ports. - Frank > > Hello > > Anyone know if it’s possible to have a (IIS – sql-server) and (apache – > mysql) running on the same machine? > > Thanks > > André Caridade > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-WIN] is exif installed with php for windows?

2004-12-19 Thread Frank M. Kromann
Hi Rob, The exif extension is provided as a dll file on Win32. You need to load it from php.ini (extension=php_exif.dll) or from the script with the dl() command. Not dl() only works for cgi and not for isapi. - Frank > Hi, > i am trying to use the exif functions for and image directory, i want

Re: [PHP-WIN] Re: PHP access to 64 bit MS SQL Server works ?

2004-11-17 Thread Frank M. Kromann
> > 1) Use ODBC. > 2) Don't use the mssql extensions. As far as I know (I might be wrong) this > extension comes from the old MSSQL 6.5 days, and last time I used it it > would not handle complex queries. The library (from microsoft) has not been updated since SQL Server 6.x so there is no suppor

Re: [PHP-WIN] zlib.dll

2004-10-20 Thread Frank M. Kromann
You don't need to copy any of the files from PHP-GTK to any system directory. Just keep all files in the same directory. You can still ahe your script files in another directory though. The z in zlib does not relate to zend in any form or way. zlib is a library for compression and decompression of

Re: [PHP-WIN] Installing PHP Patches on a Win2K box

2004-10-20 Thread Frank M. Kromann
This patch is for the source code. You need to download the binary distribution and replace your old files with the new. While you are doing that you should download a newer version php-4.3.9 has been released and so has php-5.0.2. - Frank > I have a Win2K box running php-4.3.0 and would like to

Re: [PHP-WIN] seesion.save_path Problem

2004-10-11 Thread Frank M. Kromann
Did you remember to restart Apache after making changes to php.ini ? This is not needed if you are using the CGI sapi. - Frank > Environment > - > WinXP Pro SP1 > PHP 4.3.9 > Apache 2.0.52 > > I am trying to set the session.save_path in php.ini and I cannot get it to > work. I have

Re: [PHP-WIN] How To Connect USB Port Using PHP Script

2004-09-29 Thread Frank M. Kromann
Most usb flash drives are mounted as any other disk drive and you can use PHP to read and write files the same way as you use a hard disk. - Frank > Dear ALL, > > I Wanna connect my usb device ( usb flash disk ), does > everybody know about the php script to get data from that devic

RE: [PHP-WIN] Converting a dos console batch file to aphp shell script

2004-09-03 Thread Frank M. Kromann
doesn't hold it in the "output buffer" per > se. Maybe it's in a different buffer. I don't know. > > Mind posting some sample code for us to look at? > > -TG > > > -Original Message- > > From: Frank M. Kromann [mailto:[EMAIL PR

Re: [PHP-WIN] NT username detectable?

2004-09-02 Thread Frank M. Kromann
With IIS you can disable basic authentication for your files. This will cause the server to either prompt for a userid/password or to use the info sent by the client (IE will send this info if the user is authenticated on the domain). - Frank > In the html headers, the server sees the clients OS,

RE: [PHP-WIN] Converting a dos console batch file to a php shell script

2004-09-02 Thread Frank M. Kromann
There is another directive too: ; Implicit flush tells PHP to tell the output layer to flush itself ; automatically after every output block. This is equivalent to calling the ; PHP function flush() after each and every call to print() or echo() and each ; and every HTML block. Turning this opti

Re: [PHP-WIN] Re: interacting with Java or C

2004-09-01 Thread Frank M. Kromann
Or if you have a library written in C you can use the FFI extension from PECL. But if you are to write a C library, why not write a PHP extension directly? - Frank > Hi! > > It would be possible to create a C or Java server that uses sockets to cater > a PHP client's request. This is the quicke

Re: [PHP-WIN] Re: Re:[PHP-WIN] Strange 'if' test bug?

2004-08-31 Thread Frank M. Kromann
Hi Steve, 0 and "foo" are two different types (int and string). In order to compare these values they must be converted into the same type. PHP does that by converting "foo" to an integer and that value will be 0, hence the true value on compare with ==. when you use === to compare the two values

Re: [PHP-WIN] PHP and SQL 2000

2004-08-12 Thread Frank M. Kromann
Hello, The default way to connect is to use SQL Server user names and passwords, but the mssql extension can be configured to use secure/trusted connections. This is don by setting mssql.secure_connection = On in php.ini. With a secure connection the client maschine will use the userid/password f

Re: [PHP-WIN] PHP5 ISAPI Extensions

2004-07-15 Thread Frank M. Kromann
;t > believe that this should solve my problem. > > Do you have any other ideas? > > > "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > When you use ISAPI you can only load extensions from php.ini with the line >

Re: [PHP-WIN] PHP5 ISAPI Extensions

2004-07-15 Thread Frank M. Kromann
When you use ISAPI you can only load extensions from php.ini with the line extension=php_gd2.dll When using CGI, FastCGI or CLI you can load extensions from the script with code like dl("php_gd2.dll"); - Frank > I am using w2k3 with iis6 and all of the reported "hotfixes". > I have just instal

RE: [PHP-WIN] Re: PHP 5.0.0 Released!

2004-07-14 Thread Frank M. Kromann
php.exe is the CLI (Command Line Interface) version of PHP. It is designed to run scripts without the webserver, and errors and other output will not include HTML tags. Having the php.ini file in the php folder has been possible since 4.0.x or so, as long as you are running CGI. The ISAPI version

Re: [PHP-WIN] Re: php_gettext and php_iconv extensions

2004-06-25 Thread Frank M. Kromann
You should be able to leave all files in the php directory, orupdate to PHP 5 where these functions are linked static (no need for other dll's). - Frank > Ok, it took awhile but I finally got it working. Here are the instructions so > everyone can get it working easier. There are two DLL's that

Re: [PHP-WIN] Need MSSQL client

2004-06-23 Thread Frank M. Kromann
It's all in the documentation http://php.net/mssql - Frank > Can any one point me to where I could get the client for MSSQL for AIX 5.1, > IBM machine? (I need to compile PHP with mssql enabled) > *** Using PHP 4.3.4 > TIA > > RS > > > This e-mail, including attachments, may include confident

Re: [PHP-WIN] PHP + Win32 + FreeTDS + MSSQL

2004-06-17 Thread Frank M. Kromann
Hi Mike, Not yet. The DBLIB version of FreeTDS does not work on Win32. I'm working on proting it but my time has been limited lately. - Frank > > Hi ! > > Is there any way on Win32 to use FreeTDS with php_mssql extension ? > > -Mike > > -- > PHP Windows Mailing List (http://www.php.net/) >

Re: [PHP-WIN] executing a java app from a php script

2004-06-14 Thread Frank M. Kromann
It could be a problem with access to execute Java. If the user running the process (under a web server) is without rights to execute this will not work. You can try running the script with CLI from the command line or you can take a look at the java extension for PHP (www.php.net/java). - Frank

RE: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released

2004-06-03 Thread Frank M. Kromann
mssql_field_type() is the function for that. - Frank > Robert, > > Do you have an example of pulling the Column types from an MS Sql query? For example: select top 1 * from mytablename. > > loop thru the fields in the recordset and print out their data types? > > > -- > Gerardo S. Rojas > ma

Re: [PHP-WIN] PHP and FLASH Remoting - can it be done?

2004-05-21 Thread Frank M. Kromann
Hi John, Take a look at this site http://www16.brinkster.com/gazb/ming/index.html - Frank > I've just finished a course in PHP, so excuse my ignorance since it was a rather basic course. All of our class examples worked with static HTML pages as either input or output. I hope to use FLASH and PH

Re: [PHP-WIN] help!! can not find php_printer.dll

2004-05-20 Thread Frank M. Kromann
You can download it from my site http://kromann.info/php4.php - Frank > Can someone help me find a copy of the extension of php_printer.dll > preferably for the latest version of PHP but I will not be picky I have > installed 4.3.2 on my win2k server and if I have to upgrade well that's > great.

Re: [PHP-WIN] php_iconv.dll ???

2004-03-25 Thread Frank M. Kromann
iconv and libxml are compiled into php5ts.dll so you don't need the dll's in version 5. - Frank > I'm using php5.0.0rc1 and trying to use the new dom xml functions. I > thought that I needed the php_iconv.dll to do this, but it's not > distributed in the binary package. Do I even need this fo

RE: [PHP-WIN] copying MS SQL tables

2004-03-17 Thread Frank M. Kromann
If you install the MSSQL server Client tools on your PC you will be amle to use the Data Transformation Service (import/export) to copy data and structure from one SQL server to another. Thats the fastest way to do this. - Frank > How many rows do you have in the tables? > > If many use bcp.exe

RE: [PHP-WIN] MSSQL inserting into a table with a valid result set

2004-03-12 Thread Frank M. Kromann
The short answer os 'No' SQL statements are precessed by the SQL server and returned to the client (PHP) as a result. SQL Server has no knowledge about PHP or any other tools building on ODBC/dblib/OLEDB or any other protocol used to communicate with the server. - Frank > I don't understand your

Re: [PHP-WIN] PHP Fatal error: Call to undefined function: array()

2004-03-04 Thread Frank M. Kromann
Hi Jim, Array inexes uses [] and not (). Try this print $out[1]; print $out[2]; You might also want to start at index 0. - Frank > I'm getting the above error when either attempting to print or assign > the value of a array element to a variable, after using pre

RE: [PHP-WIN] start an external program (isqlw.exe)

2004-03-03 Thread Frank M. Kromann
The answer is no (unless the client and server is running on the same bos). PHP is a server side scripting language and the only information send to the client is through the HTTP protocol. Cold you imaginne what would happen if a web server could start programs on the client maschine? - Frank >

RE: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Frank M. Kromann
I know I'm late into this discussion, but the PECl extension php_ntuser gives you a tool to get the users and groups from the SAM database with a few simple PHP functions. - Frank > Issue solved. > > After stopping my system admin on the way for more coffee he suggested cycling IIS. Something >

Re: [PHP-WIN] how to print to a file by php_printer functions ?

2004-02-23 Thread Frank M. Kromann
$ptr = printer_open($str_printer); printer_set_option($ptr, PRINTER_MODE, "RAW"); printer_set_option($ptr, PRINTER_OUTPUT_FILE, "c:\\test.ptr"); if ($ptr) { printer_write($ptr, $str_text); printer_close($ptr); } else { echo "No default printer found!\n"; } - Frrank > Hi,

Re: [PHP-WIN] Does anyone have experience with php_ntuser/php_iisfuncs.dll?

2004-02-10 Thread Frank M. Kromann
Hi Mike, I maintain both extensions, and they are stable but I have not had enough time to create any documentation for these two extensions. I did write an article in PHP Magazine some months ago about IISFunc. At this point your best choice is to look at the source code. I can extract the protot

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Frank M. Kromann
create table #test (a int , b char(1)) create table #test_tmp (a int , b char(1)) Would make these tables real temp tables. These will be deleted wehn the connection is closed. - Frank > set nocount on > create table test (a int , b char(1)) > create table test_tmp (a int , b char(1)) > > > i

Re: [PHP-WIN] Running multiple versions of php on IIS

2004-01-21 Thread Frank M. Kromann
In order to ue multiple version of PHP on IIS I would think you need to use the CGI version of php, and in that case you can have php.ini in the same directory as the binaries. You should also be able to have at least 1 version installed with the ISAPI module. - Frank > We have a new piece of sof

Re: [PHP-WIN] fastcgi on windows standalone

2004-01-20 Thread Frank M. Kromann
Take a look at http://caraveo.com/fastcgi/ - Frank > I see that the -b option in PHP 4.3.X doesn't appear to work. What is the > way to start PHP as a standalone application listening for fastcgi on a > specific port? Any help would be greatly appreciated. > > Thanks > > -- > PHP Windows Mail

Re: [PHP-WIN] RE: Creating a socket on PHP 4/WinXP

2004-01-13 Thread Frank M. Kromann
Hi Christopher, You need to load the sockets extension before you can use these functions. You can do that with extension=php_sockets.dll in php.ini or dl("php_sockets.dll"); in your script if you are using CGI. - Frank > Hi, > > Can somebody help me with regards to getting a > soc

Re: [PHP-WIN] Re: Why does php exit after 6 minutes?

2004-01-07 Thread Frank M. Kromann
The last time I checked 1800 seconds was equal to 30 min :-) 6 min is 360 seconds. - Frank > Your configuration imposes the 6 mins limit: > > > phpinfo(): max_execution_time: 1800s > > phpinfo(): mssql.timeout: 1800s > > So, PHP scripts won't run more than 1800 seconds, ie 6 mins. > > Try

Re: [PHP-WIN] Why does php exit after 6 minutes?

2004-01-06 Thread Frank M. Kromann
Hi, Iøm asuing you are accessing the script through a browser ? There is sevral time out values that you should be aware of. PHP's timeout, The database timeout, The web servers CGI timeout and the connection time out between the browser and the web server. The first two seams to be set correct

Re: [PHP-WIN] Undefined variable issue

2004-01-06 Thread Frank M. Kromann
Hi Jim, I don't think the code you posted matches the code you are running. This code does not give any errors, it works fine. There is no $guess variable in line 27. - Frank > Hi everyone, > > I'm new to working with PHP (coming from a ASP/VBScript background) and > I'm currently reading the

RE: [PHP-WIN] Re: GD2 function issue

2004-01-04 Thread Frank M. Kromann
Hi choinet, I did send you this information a few day ago! If you follow these instructions it will work. When you compile freetype2.lib (with the project and workspace files included with the sources) you will get a library called freetype214MT.lib or freetype214MT_D.lib (if I remember correct)

RE: [PHP-WIN] chmod

2004-01-02 Thread Frank M. Kromann
0777 works fine on Windows 2000 and XP, if the user has the rights to modify the directory. - Frank > There is a note in the manual; > > http://us2.php.net/manual/en/function.chmod.php > > Where someone detected that only 775 and 666 worked, another concluded that > a few additional values are

Re: [PHP-WIN] How do I compile the GD2 extension under Windows

2003-12-31 Thread Frank M. Kromann
Hi, In the FreeType2 directory structure you will find 'freetype-2.1.4\builds\win32\visualc\freetype.dsp' and freetype.dsw. These files can be used with Visual studio to create the lib neded for php. - Frank > Hello, fellow Windows/PHP power users, > > I'm running PHP4 (either 4.3.4 or latest

Re: [PHP-WIN] IIS metabase control, COM/DCOM problems

2003-12-27 Thread Frank M. Kromann
There is an extension in PECL (iisfunc) that hnadles this directly. It works with both PHP4 and PHP5 - Frank > I'm trying to build a few PHP scripts to administer my IIS server, and I > have a problem/difference in output in the COM support from PHP 4.3.4 to > php 5b3. > > I'm running php 4.3.4

Re: [PHP-WIN] Regular Expressions

2003-12-23 Thread Frank M. Kromann
Hi, The replaced string is returned by the function. This works. $str = "test test2"; $str2 = preg_replace('/ /', ',', $str); If your are doing simple replacements like this you should use str_replace() it's much faster! $str = "test test2"; $str2 = str_replace(' ', ',', $str); - Frank > How d

Re: [PHP-WIN] mssql_connect problem

2003-12-18 Thread Frank M. Kromann
Hi, One problem could be name resolution. The mssql server uses a default protocol to connect to the server. If you just install the client libraries (or just copied ntwdblib.dll) the default protocol would be netbeui (named pipes) and that might not be routed/enabled on your network. To make sur

Re: [PHP-WIN] Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same variable?

2003-12-15 Thread Frank M. Kromann
I can't see a promlem with the trim() function. Try this: output: *** test **test*** I have tested with both php4 and php5 from cvs. - Frank > Just ran into this annoying thing today: > > > Why does this /NOT/ work to remove NL's: > > $AccNr = fgets($fp); > while ( !feof($fp)

Re: [PHP-WIN] Not returning all text

2003-12-12 Thread Frank M. Kromann
Hi Ron, If your field is of type char or varchar the limit is 255 (limited by the db library from Microsoft). If you are using the text type you can use these settings in php.ini ; Valid range 0 - 2147483647. Default = 4096. mssql.textlimit = 128000 ; Valid range 0 - 2147483647. Default = 4096

Re: [PHP-WIN] php.ini

2003-12-09 Thread Frank M. Kromann
benefits of using ISAPI, but if you make changes to php.ini you have to restart the web server. - Frank > Ignorant question: why would the web server like to read the php.ini > file? > > On Tue, 2003-12-09 at 06:47, Frank M. Kromann wrote: > > Hi, > > > > The php.in

  1   2   >