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] 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] 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] 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] 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] 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] 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

[PHP-WIN] Mail Function Problem

2004-04-15 Thread M. Imran Khan
egarding this. Thanking you, M. Imran Khan

[PHP-WIN] Question about PHP on Win2k Advanced Server

2004-04-15 Thread Anthony M. Saffer
I am seriously considering using ASP to do this since 1) it's native to Windows and stable and 2) it's tightly integrated. What does everyone think of PHP on Windows? IS it stable enough to be nearly 100% reliable? What are the problems with using PHP on Windows? Thanks, Anthony M. Saffer

Re: [PHP-WIN] Re: Question about PHP on Win2k Advanced Server

2004-04-16 Thread Anthony M. Saffer
On Fri, 16 Apr 2004 19:56:11 +0800, John Lim <[EMAIL PROTECTED]> wrote: Hi, FastCGI provides the best reliability on Windows. It's as close to 99.99% as you can get. Zend has a commercial windows enabler built on FastCGI at http://zend.com There is also a free FastCGI installer at http://php.w

[PHP-WIN] PHP problem calling a COM from the Web Server

2004-04-25 Thread Enrique Garcia M.
Hello, I have a problem using COM and PHP. I create a simple script that call a COM that I create in VB6. When I call the script from the command prompt all works OK, but if I call the script from the web server (IIS) I get the following results: - If I use the ISAPI dll: Unable to obtain IDispa

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 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] [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] 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] 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] 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] 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

[PHP-WIN] Session On Window [Urgent]

2004-07-06 Thread M. Imran Khan
Dear Users, Can I manage the PHP session on windows. I am running the Apache 1.3 and PHP. I got the warning: Warning: open(/tmp\sess_2b69db87d2a153561e2972b4fb5eac3c, O_RDWR) failed: m (2) in c:\program files\apache group\apache\htdocs\test\sess.php on line 2 Please can some one help me

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] 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] 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] 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] 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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

[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 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

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] 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] 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

[PHP-WIN] RE: Process Control in Windowz

2005-04-27 Thread David M. Patterson
Aaron, The easiest way that I have found to do this is to use SysInternals (http://www.sysinternals.com) pskill utility. You'll find it on their site under: - Windows NT/2K/XP/2K3 - Utilities - PsTools vx.y I just shell out a pskill command. Hope this helps. David M. Patterson Consu

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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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: 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: [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: [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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] 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-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] 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 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-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_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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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-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

[PHP-WIN] Re: Building PHP 5.2.5 for win32

2007-12-15 Thread Elizabeth M Smith
Michael Tyson wrote: Hiya, We're using PHP/Java Bridge (PJB) with PHP 5.1.6 and Apache 2.0.61 on Windows, and experiencing frequent segfaults of Apache. Inspecting the dump reveals that PHP is crashing somewhere, something to do with a null pointer exception when reporting an error - seeming

Re: [PHP-WIN] mssql and latin characters

2008-01-22 Thread Frank M. Kromann
connect('server','user','pass'); > mssql_select_db('db'); > > $r = mssql_query(“select some_column from some_table”); > $d = mssql_fetch_assoc($r); > > echo $d['some_column']; > ?> > > My PHP is 4.4.3, and my OS is XP. > >

Re: [PHP-WIN] string function

2008-02-08 Thread Elizabeth M Smith
Viola Holownia wrote: > hi > > Have you tried ereg_replace() ? > http://www.php.net/manual/en/function.ereg-replace.php > > > cheers > viola > I would NOT suggest ereg_replace, especially on windows - if you need to do advanced replacement and str_replace doesn't work, try preg_replace - http:

[PHP-WIN] Re: Installation blues

2008-02-17 Thread Elizabeth M Smith
Simon Giddings wrote: > Hello, > > I am trying to setup a dev environment on my Win XP Pro SP2 system. > I already have MySql Community server v5.0.24. > I install Apache server v2.2.8 with SSL on localhost. > I install PHP version 5.2.5 using the installer selecting : > MySql > MySqli >

[PHP-WIN] Re: cannot compile php 5.2.5 following instructions exactly with vc++ 6

2008-02-19 Thread Elizabeth M Smith
friso wrote: > I have followed the instructions exactly on > http://php.nederland.net/manual/en/install.windows.building.php but I > end up > with this error... > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > i

[PHP-WIN] Re: about the PHP linked server error

2008-03-13 Thread Elizabeth M Smith
李越 wrote: > > Hello, > > When I use php to invoke linked server configured in MS-SQL 2005, there is an > error like this: > "Exception: ../application/models/TestDatabase.php -> TestDatabase -> > testListNewDefect -> Unexpected exception of type > [Zend_Db_Statement_Exception] with message [S

[PHP-WIN] Re: need help building php on windows

2008-03-14 Thread Elizabeth M Smith
Jason wrote: > Hi all, > > I'm having trouble compiling PHP 5.2.5 using Visual C 6 (SP6). > > I have (to the best of my knowledge) followed the tips/instructions on > the following two pages: > > http://news.php.net/php.windows/28659(the black text, not green) > http://php.mirror.camelne

Re: [PHP-WIN] Re: need help building php on windows

2008-03-14 Thread Elizabeth M Smith
Jason wrote: > To be honest, I can't actually get either of the mssql variants to > compile properly. Specifically I can compile the MS mssql dll, but can't > link it (unresolved external _in6addr_any in php5ts.dll). > > I have a sneaking suspicion that I'm missing some little > "not-widely-docume

[PHP-WIN] Re: compiling using vs 2005

2008-03-30 Thread Elizabeth M Smith
Meir wrote: > hello > i compiled php 5.2.5 with vs 2005 and every thing works fine on my computer > , but when i transfered it to another computer i got this error message "the > application failed to initialize properly (0xc0150002) click ok to terminate > the application" > i tried to copy all

[PHP-WIN] Re: PECL SVN Extension Setup Help

2008-04-16 Thread Elizabeth M Smith
Jake Conk wrote: > Hello, > > I tried installing the pecl svn extension but I get an error. > > This is the command I ran along with all the output: > > > >> pecl install svn-beta > downloading svn-0.3.tgz ... > St

Re: [PHP-WIN] Re: PECL SVN Extension Setup Help

2008-04-16 Thread Elizabeth M Smith
Jake Conk wrote: > Elizabeth, > > Thanks for your detailed setup instructions. I have a few questions. I > am running the PHP 5.2.5 here for Apache 2, I got this all setup by > just downloading the latest wamp package from > http://www.wampserver.com so how do I figure out if I'm running a > threa

[PHP-WIN] Running under Windows Vista?

2008-05-12 Thread Alan M Dunsmuir
Is there some trick to getting PHP5 to install properly under Windows Vista? I had a successful Windows 'localhost' installation of Apache/MySQL/PHP about a year ago, and I've been trying to get the same thing up under Vista (Home Premium). MySQL and Apache2 install fine, but I just cannot get

<    1   2   3   4   >