[PHP-WIN] Re: Getting the size of a file on a windows share [solved]

2009-08-26 Thread Frank Heyne
The cause of the error was that the account the web server was running did not have access rights to the share :-( Now all works fine. Frank On 25 Aug 2009 at 20:33, php-windows@lists.php.net wrote: > Hi, > > I need to read the file size of a file which is on a windows server, the fi

[PHP-WIN] Getting the size of a file on a windows share

2009-08-25 Thread Frank Heyne
Frank -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Executing .exe files Issues

2009-01-22 Thread Frank Stanovcak
"Alice Wei" wrote in message news:snt101-w180f682380dc32dbf85bf9f0...@phx.gbl... Hi, PHP Window Users: I have a snippet of code as in the following: The hello.exe was written in C and is meant to produce 6 files. The issue here is that when I tried to run the PHP here, I keep on seeing "F

Re: [PHP-WIN] mssql and latin characters

2008-01-22 Thread Frank M. Kromann
problem. Remember this must be done on the box where PHP is running if that's different from the SQL server box. - Frank > Hello > > I have a MSSql 2000 database that have stored data with the follow special > characters: ó, í, Ñ, á, é, ú. > When I see the data through any MsSql

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
that will be the user configured under IIS (IUSR_). You don't need that information to update the database you should be able to cal mssql_connect() without any parameters. - Frank > If you set mssql.secure_connection = On, is there a way in PHP where you can > then retrieve the user

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

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

2007-03-23 Thread Frank M. Kromann
look. If you need two different connections and the host/user and passwords are the same you must tell mssql_connect to force a new connection. Set the optional forth parameter to true. - Frank > I have a php script where I need to access tables in two different MSSQL > databases.

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:

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

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 in

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

2007-02-07 Thread Frank M. Kromann
y32.dll you should be able to communicate with SSL encryptions. You might want to take a look at the cURL extension as well. It'll do all the encryption and decryption for you on each request. - Frank -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-01-04 Thread Frank M. Kromann
. I'm running CGI for this test. (using the binaries from my site http://kromann.info/php.php) - Frank > Stelios Sakalis wrote: > > Hello Frank, > > > > The extension is already loaded in the php.ini File. > > I don't think this is the error. > > >

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 ext

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 maki

Re: [PHP-WIN] php_mssql.dll

2006-12-11 Thread Frank M. Kromann
\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools. - Frank > Setup: > > - Windows XP > - Apache 1.3.27 > - PHP 5.2.0 > > php.ini file configured.

RE: [PHP-WIN] SQL Server 2005

2006-12-03 Thread Frank M. Kromann
Using ADODB from COM is an option but your script will never run on a *nix box. If you are using the mssql_* your script can be moved between Win32 and *nix platforms without changes. - Frank > I'd be interested. I've used ADO when connecting through VB and C# but in PHP (which I

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,

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

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

2006-11-04 Thread Frank M. Kromann
You need to point to php-cgi.exe. php.exe is the CLI version of PHP. Not sure why you can't add php5isapi.dll. That works fine on my system. - Frank > Thanks for the quick response, but when I try to add a script map and point > it to either php.exe or php5isapi.dll, it throws an a

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

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

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.

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

2006-10-29 Thread Frank M. Kromann
function and it can print on any client side printers without any problems. Just format the content for printing and call javascript:window.print(); There should not be a need for fancy printer extension in order to print on a local printer. - Frank > Hi you all, > > I'm tryi

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

2006-10-12 Thread Frank M. Kromann
ine 10 Warning: mssql_query(): Query failed in C:\php5\test\mssql_error.php on line 10 bool(false) As you can see the first insert is successfull so true is returned. The second insert has an error so errors are prontet from PHP and false is returned. - Frank > Am I misunderstanding the PHP Man

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

2006-10-09 Thread Frank M. Kromann
protocol and allows handling of unicode data as well as removing the 255 char limit on char and varchar columns. - Frank > Does ADOdb MSSQL driver solve this problem whereas the standard mssql_* > functions don't? I thought ADOdb was just an abstraction layer, but > perhaps there are

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

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 somewher

Re: [PHP-WIN] Navision ODBC

2006-08-19 Thread Frank M. Kromann
be able to dig out some of my old code. - Frank > Hi > Anyone have experience working with Microsoft Navision ODBC, update > customer data, orders etc thru a php script? > > > > Regards > Joakim Ling > > > > > > -- PHP Windows Mailing List (

RE: [PHP-WIN] Localhost does not work

2006-08-10 Thread Frank M. Kromann
set of client tools. - Frank > I replaced the ntwdblib.dll file with the latest downloaded online and > localhost works now. > > I found this online: > I had problems connecting to MSSQL Server on port 1433 using PHP 5 on > Windows 2003 Server. > Whenever i tried to connect to

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 PROTECTE

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

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.

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 &g

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 o

RE: [PHP-WIN] cant connect to mssql

2005-12-16 Thread Frank M. Kromann
= On in php.ini or change to configuration to allow server logins. - Frank > I might venture that most of the people here use apache/mysql, so if you're > using iis/mssql it might just be better to ask in another mailing list... > > I don't use mssql, but I think phpinfo()

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 Win

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

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

2005-11-16 Thread Frank M. Kromann
ticle http://kromann.info/article.php?Id=11062598797760000 - Frank > Hi > > Interesting, so if I swap mssql library to FreeTDS (never heard of this before) my socket problem will disappear without changing the code? > > Do I have to change from ISAPI (IIS6) t

Re: SV: [PHP-WIN] mssql tcp

2005-11-15 Thread Frank M. Kromann
x27;s called php_dblib.dll and it's a drop-in replacement for php_mssql.dll. No recoding required. - Frank > It doesn't matter, the problem lies within php. To solve this problem you have to use a client that usage pooling like ODBC -> MSSQL. So my next step is to rewrite a

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
g and you can use the alias as the host name parameter in mssql_connect(). - Frank > I am recently have a problem with the mssql_connection function: > > I have to connect to a sql server which it's service port has been modified > other than 1433. > > How should I defi

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\IniFi

Re: [PHP-WIN] A setcookie related question

2005-09-04 Thread Frank M. Kromann
s cookie will expire in 1 hour or even to setcookie("auth", "1"); // Note this wil be a session cookie that wil expire when the browsr window is closed. - Frank > Hi There, > > > > I am a beginner PHP developer and I have a very simple, perhaps silly, >

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

2005-08-30 Thread Frank M. Kromann
u are running a site with heavy trafic there is no real need to have all the extensions compiled in. - Frank > I have built my own version of PHP on Windows (CLI) that enables sockets > and soap. I did all of my testing using a version I compiled with > --enable-debug, and it seems to be wor

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

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

2005-07-26 Thread Frank M. Kromann
, rotocols or aliases without the client tools installed. - Frank > I am installing it the old fashioned way, manually setting it up. > > When I attempt to run a php script I get the following error: > > "The application has failed to start because ntwdblib.dll was not found.

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 s

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
files (and that's most likely done on your apache server as well) you can get IIS to handle php tags in these files too. - Frank > Good morning, > > > > I seem to have PHP working with IIS reasonably well, I have a .php file > with in it and life is good. If I put that

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

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

2005-04-08 Thread Frank M. Kromann
to be passed when the function is called. This method might be time consuming depending on the number of functions and function calls in the code. - Frank > > Hello, > > I am trying to compile Doru Petrescu's Upload Progress Meter extension on Win32. (See http://pdoru.from.ro/upload-

[PHP-WIN] newbie on windows iis4 and w2k has test.php working but not embedded php.

2005-02-19 Thread Frank
I can't seem to add php as a server extension with vb and javascript. Thanks Frank -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] w2k and IIS4 partially working

2005-02-19 Thread Frank
php runs from .php modules but not inline as http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-02-18 Thread Frank M. Kromann
You need to restart the web server after making changes to the hp.ini file. When you are using ISAPI the ini file is only read when the server is started. - Frank > That's what's strange. I uncommented the MSSQL Server extension but I am > still unable to connect. > > Is

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 wil

Re: [PHP-WIN] Weird windows error

2005-01-18 Thread Frank M. Kromann
r php extensions) in this folder. Remember to restart apache when you have made changes to php.ini. - Frank > Hi there > > I've now upgraded both Apache and PHP. > > Apache is version 2.0.52 and PHP is version 5.0.3.3. I've put the dll > php_mssql.dll into C:\windows\system

[PHP-WIN] PHP5 MSSQL and FreeTDS

2005-01-17 Thread Frank M. Kromann
extension you can download it from http://kromann.info/php5.php. So far its only available for the Release_TS build but the others will follow soon. The dll is called php_freetds.dll. You will also need to download sybdb.dll. Later on I'll create a statically linked version. - Frank --

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

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.p

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,

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

2004-11-17 Thread Frank M. Kromann
r 6.x so there is no support for data types added to newer versions of the SQL Server. There is no problems with complex queries though. - Frank -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] zlib.dll

2004-10-20 Thread Frank M. Kromann
ssion of files. - Frank > OK, so I installed the windows PHP-GTK modules (comes with PHP4) on a > windows XP machine where I was also running the FoxServ windows version of > php/python/mysql, placing a zlib file from the GTK package into the > windows/system directory, according to the

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

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

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 da

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

2004-09-03 Thread Frank M. Kromann
Hello, Yes flush() would do the trick, but the CLI version is designed for command line usage. One thing I like about that is the error messages (and other output from PHP) is stripped from HTML tags and HTTP headers. - Frank > Good to know. But wouldn't "flush()" or something

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

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

2004-09-02 Thread Frank M. Kromann
option on has serious performance ; implications and is generally recommended for debugging purposes only. implicit_flush = Off When you are using the CGI version this is off by default and the CLI version sets this to on by default. - Frank > Silly response, but did you try the "flush()&

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 req

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

2004-08-31 Thread Frank M. Kromann
mpare the two values need to be of the same type to evaluate to true. you can trick the compare by doing stuff like this: if ("$key" == "muppet") ( } - Frank > Well gee, thanks a lot for that > > I can't imagine why 0 == "foo" should be TR

Re: [PHP-WIN] PHP and SQL 2000

2004-08-12 Thread Frank M. Kromann
for the user who runs the php script (in this case that would be the user configured under the web server) - Frank > hi there, > > i have been trying to connect to a sql 2000 server database. I am able to connect using the DSN-connection: i.e., the following code works: >

Re: [PHP-WIN] PHP5 ISAPI Extensions

2004-07-15 Thread Frank M. Kromann
in the php directory, as each PHP-process is launched from the folder and know the location of the files. - Frank > Frank, > That looks good on paper, but... I am loading the extension from php.ini as > you describe. > When I run the site with php-cgi.exe, running phpinfo() shows me

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 "hotfix

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

2004-07-14 Thread Frank M. Kromann
versions do not know anything about the PHP folser as the DLL is loaded by the web server from another folder. - Frank > You should be using php-cgi.exe. You could also follow the directions on > how to run it as an ISAPI module. > > The same thing happens on my computer running Windows X

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 ar

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, in

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

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? > > &g

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 F

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&

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

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

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

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,

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

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
prototypes for you if that woild make life easier. You are also welcome to use this list (or email me directly) for questions. - Frank > I running php on a win2k/iis box in a intranet enviroment. I recently > came across two dll's which I thought I might be able to use (in my > wind

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 ,

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

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 &g

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 r

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

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

2004-01-06 Thread Frank M. Kromann
e set correct, the web servers time out is configured under IIS and would normally be 900 seconds. The only way to get arround the browser time out would be to keep sending content from the server to the browser. Make sure you use flush() after each print so data is transfered right away. - Frank >

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&#

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

2004-01-04 Thread Frank M. Kromann
exists). There is no need to change any compiler options when compiling php_gd2.dll as long as you have access to all headers and libs. - Frank > Did I just not mention which libraries to include? > Once again, the GD library requires the FreeType, > libpng, zlib, and libjpeg libraries. A

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 add

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 runni

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

  1   2   3   >