Re: RE: RE: [PHP-WIN] PHP and Lotus Notes

2001-11-15 Thread Frank M. Kromann
the Notes PHP extension??? I > been looking for ages, and as far as I can see its almost developed but > nobody seems to know much more about it. > > Where can I get hold of it??? > > Richy > > -Original Message- > From: Frank M. Kromann [SMTP:[EMAIL PROTEC

Re: [PHP-WIN] 4.0.8-dev filesize function broken now?

2001-09-28 Thread Frank M. Kromann
I dont think this is an issue with filesize() but with current working directory. $flename must have the fulle path to the file, or the current working directory must be where $flename is located. I know there has been changes to how this works over the time, though I don't remeber when exact

Re: [PHP-WIN] How to compile PHP with cygwin?

2001-11-15 Thread Frank M. Kromann
Hi, Only MS VC++ is supported at this point. - Frank > Hi > > I wonder if anyone have managed to compile PHP with cygwin. I get > several errors when doing this. > > I also wonder if I intend to make a dll to extend PHP for windows, > should I then compile PHP with cygwin or with MS Visual C

Re: [PHP-WIN] PHP 4/MS Sql Server

2001-12-04 Thread Frank M. Kromann
Hi, If your MS SQL Client is configured to use a non TCP/IP protocol as the default protocol you cant connect using ip addresses. If it uses Named Pipes you have to use the netbios name of the server or ask your ISP to configure a client connection for you, using a name (that you then use as f

[PHP-WIN] Re: [PHP-DEV] How to compile my own PHP extension in Windows?

2001-11-15 Thread Frank M. Kromann
It is almost as simple on Win32. You need to have MS Visual C++ installed to do it. Have a look at some of the existing extensions, all compiled as php_.dll. if you take a look at one of the simple extensions eg. exif. It has three files used on Win32 exif.c, php_exif.h and exif.dsp. If yor ex

[PHP-WIN] Re: [PHP-DB] MSSQL DB Connect

2001-12-21 Thread Frank M. Kromann
Hi Jerry, You need to have the Client Tools for MS SQL Server installed on your PHP4 box. These tools is found on the CD, or you can just copy ntwdblib.dll fom one system to another. The default communication protocol will be netbios, if you want to change that to tcp/ip you need to install th

Re: [PHP-WIN] Image Magick on Windows NT?

2001-12-27 Thread Frank M. Kromann
ImageMagic works fine on Window. You can download the binaries from one of the mirror sites. I have a web page (http://kromann.info/php4.php) where you can download php binaries based on the latest cvs version. There you can find php_gd.dll with both GD1 and GD2. I have not tested it but I thi

Re: [PHP-WIN] Building PHP on Win32

2002-01-02 Thread Frank M. Kromann
So far it works fine with MS VC++. I dont think it is possible to build it with gcc at this point. If you want binaries from the latest CVS you can download them from http://kromann.info/php4.php. This page is updated each morning at 4 am PST. - Frank > Hi all, > > Has anyone had luck buildi

Re: [PHP-WIN] using php_imap extension

2002-01-08 Thread Frank M. Kromann
Hi Denis, This sounds like you are using incompatible versions of php and extensions. The core php and extensions should be compiled from the same sources (or at least from sources with the same API's). - Frank > Hi Guys, > > I have read messages posted to the php-win list about using > the

Re: [PHP-WIN] Please help a newbie -- have pity!

2002-01-14 Thread Frank M. Kromann
Using the prowser to view a file on your file system will just show the content. The browser does not have any knowledge of the PHP parser. A web server on the other hand will be able to run the requested script through a parser an send the converted document (usually as html) to the browser fo

Re: [PHP-WIN] Re: calling an ASP program or object from within php

2002-01-14 Thread Frank M. Kromann
Hi, If you just need to execute an ASP script on the same (or any other server) you can do it with fopen(). http://some-url.com?var1=$var1&var2=$var2";; if ($fp = fopen($url)) { $data = fread($fp, 4069); fclose($fp); ) ?> - Frank > Yikes -- seems pretty complex for what I need to do righ

Re: [PHP-WIN] Getting PHP to behave with MS SQL Server 7

2002-02-13 Thread Frank M. Kromann
Hi Todd, If you are using the ISAPI version you need to restart the web server in order to use the mssql_extension. If you are using CGI and getting undefined function for mssql_connect, you might have more than one php.ini file on your system ? You also need to install the client libraries f

Re: RE: [PHP-WIN] Getting PHP to behave with MS SQL Server 7

2002-02-14 Thread Frank M. Kromann
> still doesn't work. > > What do you mean client libraries? > > I see this mentioned, but I don't get what they are asking, and what > files are they? How come PHP didn't document this or did they just whip > up the documentation for MS SQL? > >

Re: [PHP-WIN] Includes not working on W2K

2002-12-06 Thread Frank M. Kromann
On Windows 200 and XP you can use / as your seperator. This will not work on WIndows 98 though. Using the / makes your code work on both W2k and *nix boxes. It can be used both in php.ini and in your scripts. - Frank > In php.ini file that is present in the windows directory check the > include

Re: [PHP-WIN] Re: Running php in a .html file under iis5.0

2002-12-08 Thread Frank M. Kromann
Hi, If the html file is without php tags there will not be a huge performence penalty in letting the php parser handle the file. On IIS there is no control files but all the settings are handled in the metabase through the application "Internet Information Services". IIS use the file extention to

Re: [PHP-WIN] unable to connect to server (MSSQL)

2002-12-10 Thread Frank M. Kromann
Hi, IE and Netscape works diffenntly when used on a LAN. IE can/will pass along your user identification information (if you are validated on the network) This information will be used when you are contacting the sql server. Netscape does not send this extra information from the client to the ser

Re: [PHP-WIN] php 4.3.0 phpinfo() fscked up or?

2002-12-30 Thread Frank M. Kromann
This sounds like you are using the CLI version of PHP.exe and not the CGI version. Asumiong you are not using isapi or mod_php4. - Frank > Umm... I see things, You know? > > After installing php 4.3.0 I noticed that phpinho() > > doesn't return those fancy tables anymore, instead, it spits out

Re: [PHP-WIN] Re: FastCGI support

2003-01-02 Thread Frank M. Kromann
There is a bit more info here http://caraveo.com/fastcgi/ - Frank > Chirstoph, > > I've already looked. > There it says to do "php -b " but that doesn't work. > > []s > Fernando > > "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Fer

Re: [PHP-WIN] Windows Service interactions with PHP

2003-01-14 Thread Frank M. Kromann
Or you can use the iisfunc extension (not documentented), available from PECL or my site (http://kromann.info/php4.php) the functions int iis_stop_service(string service) int iis_start_service(string service) int iis_get_service_state(string service) - Frank > net start outputs a list of *runni

Re: [PHP-WIN] Non-thread safe Win32 builds

2003-01-15 Thread Frank M. Kromann
The non-thread safe version for windows can only be used with CGI (or CLI) if you are using ISAPI or mod_apache you have to use the thread safe version. You can use the thread safe version to everything (this is the version included in all distributions) w/o problems. - Frank > Hi guys! > > fir

Re: [PHP-WIN] Re: How to allow ~user/xxx.php onWindows XP

2003-01-15 Thread Frank M. Kromann
Hi, >From the httpd.conf (apache 1.3.x) # Under Win32, we do not currently try to determine the home directory of # a Windows login, so a format such as that below needs to be used. See # the UserDir documentation for details. # UserDir "C:/Program Files/Apache Group/Apache/users/" I'm n

RE: [PHP-WIN] PHP on IIS4 problem

2003-01-21 Thread Frank M. Kromann
Hi, This is not true for php4. Both cgi and isapi versions can be mapped without any extensions. You have to make sure it is the CGI binary you are mapping to and not the CLI. - Frank > If you are usiong the PHP.EXE binary instead of the ISAPI module. > > .php should be mapped to: > > c:\php\p

Re: [PHP-WIN] displaying a numeral

2003-01-28 Thread Frank M. Kromann
http://php.net/number_format is what you are looking for. - Frank > Hi > I have a field in my MySQL database that's a decimal where I have figures of > millions without the decimal point - > > i.e - 150 > > Is there a function in PHP to display this figure as a $ amount - > > i.e - $1,5

RE: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP

2003-01-30 Thread Frank M. Kromann
If your SQL Server is configured with both SQL and Windows auth you shoule be able to connect using a SQL user. You need to configure both Server and client to use the same default protocol, or configure an alias at the client using the protocol expected by the server. These configurations are don

Re: [PHP-WIN] problems about sql server2000,help

2003-02-08 Thread Frank M. Kromann
Hi, At this stage you can not use the MSSQL extension to read datatypes ntext, nchar and nvarchar from a MSSQL server. This is caused by an outdated version of DBLIB from Microsoft. This library has not been updated since SQL Server 6.0. The fix for now is to use ODBC or COM to communicate with

Re: [PHP-WIN] Develope a Windows PHP Extension.

2003-03-07 Thread Frank M. Kromann
Downloading and installing bison and flex is one thing, but if you have CygWin and Visual Studio installed I have a breif instruction on my web site (http://kromann.info/php4.php). The CVS version of PHP also includes a small wrapper script for ext skel. This will allow you to create a new extensi

Re: [PHP-WIN] PHP extensions on IIS (Java, PDF)

2003-03-09 Thread Frank M. Kromann
If you are uisng ISAPI for IIS and mod_php for Apche you need to restart the web server each time you enable an extension (or make other changes to the php.ini file). The php.ini file is only read at startup. If you are using CGI on either server, the php.ini file will be read once per request. T

Re: [PHP-WIN] Problem when quering a view in MSSQL2000: message: Unicode data in a Unicode-onlycollation or ntext data cannot be sent to clientsusing DB-Library (such as ISQL) or ODBC version 3.7or earlier. (severity 16)

2003-03-12 Thread Frank M. Kromann
The MSSQL Extension for PHP is build with an old version of Microsoft's DBLIB. This library does not support unicode, and it never will !!! Use ODBC for now, and in a later version of PHP you can use a version of the MSSQL extension build with FreeTDS. This will enable unicode. This is now availab

[PHP-WIN] link error on compile php4ts.dsw - cannot open input file "zlib.lib"

2003-03-14 Thread John M. Calvert
Hi, I trying for the first time ever to compile PHP on my Windows 2000 machine using MS VC++ 6. I have been following the instructions in /manual/en/install.windows.php. Everything goes fine until the linker kicks in: Linking... LINK : fatal error LNK1181: cannot open input file "zlib.lib" Erro

Re: [PHP-WIN] link error on compile php4ts.dsw -cannot open input file "zlib.lib"

2003-03-15 Thread Frank M. Kromann
the zlib extension is compiled in and you need to get the zlib module from cvs.php.net. - Frank > Hi, I trying for the first time ever to compile PHP on my Windows 2000 > machine using MS VC++ 6. I have been following the instructions in > /manual/en/install.windows.php. Everything goes fine un

Re: [PHP-WIN] link error on compile php4ts.dsw -cannot open input file "zlib.lib"

2003-03-15 Thread John M. Calvert
oth the PHP 4.3.1 (tar.gz) [4,395Kb] - 17 February 2003 and a PHP snapshot Latest CVS (4.5.x-dev). Same problem with both. But I'm not sure if the problem is my machine configuration, or an error in the MS VC++ workspace / project details. John - Original Message - From: "Frank M. Kroma

Re: [PHP-WIN] link error on compile php4ts.dsw -cannotopen input file "zlib.lib"

2003-03-15 Thread Frank M. Kromann
ror in the > MS VC++ workspace / project details. > > John > > - Original Message - > From: "Frank M. Kromann" <[EMAIL PROTECTED]> > To: "John M. Calvert" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, March 1

Re: [PHP-WIN] link error on compile php4ts.dsw -cannotopen input file "zlib.lib"

2003-03-15 Thread John M. Calvert
mpilation I tend to avoid head revisions which can be less stable (perhaps don't even compile?), in the hopes that I'll have fewer gotchyahs to worry about. Don't know if that backfired this time. ----- Original Message - From: "Frank M. Kromann" <[EMAIL PROTECTED]&g

Re: [PHP-WIN] link error on compile php4ts.dsw-cannotopen input file "zlib.lib"

2003-03-15 Thread Frank M. Kromann
Hi John, > I'll report a bug against php-4.3.1.tar.gz and > /manual/en/install.windows.php for this situation with zlib.lib so it can be > tracked. Thats the right way! > > I have a couple of related questions if anyone can help get me up the PHP > "Build from source" learning curve. > > 1) I

[PHP-WIN] determine host platform - win32 / *nix

2003-03-22 Thread John M. Calvert
o'); Does this exist? John M. Calvert, M.Sc., MCSD 1310521 Ontario Inc. 49 Belmont Ave. Ottawa ON K1S 0V2 (613) 730-9851 http://members.rogers.com/john-m-calvert/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] determine host platform - win32 / *nix

2003-03-23 Thread John M. Calvert
us learning the language. For the latter I'd like to submit a documentation suggestion. I'll try forwarding this message to [EMAIL PROTECTED] John - Original Message - From: "Eric Gach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "'John M. Calv

Re: [PHP-WIN] determine host platform - win32 / *nix

2003-03-23 Thread John M. Calvert
ation (aka searching) the docs. - Original Message - From: "Eric Gach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "'John M. Calvert'" <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 3:23 PM Subject: RE: [PHP-WIN] determine host platform - win32 / *nix

Re: [PHP-WIN] php_ftp.dll

2003-06-01 Thread Frank M. Kromann
The FTP extension is compiled in on Win32. You don't need a dll for this extension. - Frank > Me and a friend have been trying to make a php ftp client, it works fine on > *nix systems, but not on Windows. We looked at everything, until i finaly > noticed that php 4.2.3 is missing in the php.ini

Re: [PHP-WIN] IMAP

2003-06-04 Thread Frank M. Kromann
You need the imap extension (php_imap.dll) it can be included from php.ini extension=php_umap.dll or from a script with the dl() command (if you are using CGI) - Frank > Is IMAP built into the latest windows binary of PHP? If not, how can I > include it? > thanks > > -- > Perry Leets > Inovec

Re: [PHP-WIN] MySQL Connection

2003-06-17 Thread Anthony M. Saffer
This is message (not generated by or associated with PHP at all) that is telling you that your users (probably supposed to be root) doesn't have the right to perform the action you're trying to do. If you're trying to administer MySQL from the console try typing this: mysql --user=root mysql T

Re: [PHP-WIN] FastCGI & PHP 4.3.1 & MSSQL & IIS5problem :(

2003-06-27 Thread Frank M. Kromann
The MSSQL dblib (used in the mssql extension) detects the codepage of the environment it is running under. Caling a php script with php.exe can be done in at least 3 ways: 1) From IIS as CGI- this sets the codepage to 125x (ANSI) 2) From a command line - this sets the code page to 437 or whatever

Re: [PHP-WIN] authenticating with SQL Server 2000

2003-06-29 Thread Frank M. Kromann
Hi, If you remove the @ in front of the mssql_* functions you might get a bit more information about the problem. Using the MSSQL Server extension requires these stapes: 1) Install the SQL Server Client tools on the maschine running PHP (if your are using Win32) 2) Configure a server alias using

Re: [PHP-WIN] PHP 5 Beta 1 and IIS

2003-07-05 Thread Frank M. Kromann
Hi Den, PHP5 needs libxml2.dll and iconv.dll either in the same folder where php.exe (CGI version) is or in %systemdir%\system32. I prefer to keep everything in c:\php5. That makes it possible to run different versions of PHP on the same system. - Frank > Hello there! > > Just wanted to know i

Re: [PHP-WIN] PHP 5 Beta 1 and IIS

2003-07-06 Thread Frank M. Kromann
ow how you can keep everything in c\php5 ? Is it only > for CGI configuration ? Do you use the "-c path/file" of php.exe (can't make > it work) ? > Is it possible for the ISAPI config too? as "php4ts.dll" is not named > "php5ts.dll", I can't h

Re: [PHP-WIN] Debug Build

2003-09-12 Thread Frank M. Kromann
Hi Vladimir, http://kromann.info/php4.php and http://kromann.info/php5.php has what you are looking for. - Frank > Hi, > > I'm searching for a Debug Build of php for windows. > Do I really have to compile it myself or can I get a > precompiled package somewere? > > Regards > > Vladimir >

[PHP-WIN] PHP PDF Support...

2003-09-25 Thread Brian M McGarvie
I have successfuly been creating PDF files... however it is required that the files are printed Automatically - i.e. no need to hit print icon etc etc... Anyone know how to achieve this or atleast point me in the right direction? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe,

[PHP-WIN] Re: Does Jpgraph support IIS5

2003-10-08 Thread Brian M McGarvie
"S F Alim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does it support or run on IIS 5.0 and PHP 4.3.3 version > > SFA > yes. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] RE: handling SQL dot notation in PHP

2003-10-10 Thread Frank M. Kromann
Hi Ron, No database servers I know will return the column name as .. Only the column name is returned. This has nothing to do with PHP, but is how the SQL92 standard defines it. If you want to have nice names you can do something like this: $query = "SELECT Role.display_Name as my_column_name fr

Re: [PHP-WIN] Error calling php_info

2003-10-16 Thread Frank M. Kromann
Hi, The correct function name is phpinfo(); without the underscore. - Frank > Hi All: > > Enviroment: php 4.xx Apache 2.0 Internet Explorer 6.0 Windows OS > > I'm Just a php beginner and I'm testing some code like > > php_info(); > ?> > > and this code just not work for me i got the follow

Re: [PHP-WIN] PEAR and PHP 4.3.3 installer

2003-10-28 Thread Frank M. Kromann
Hi, Take a look at http://go-pear.org/ - Frank > Hello > > I installed PHP 4.3.3 on Windows 200 server. I opted to install PHP via the > installer. > > I noticed I have no support for PEAR. Is it possible to add PEAR support, or > am I going to have ot uninstall, and go with the .ZIP package i

[PHP-WIN] Trouble connecting to ms sql with ODBC on Windows

2003-10-30 Thread Stoner, David M.
I'm new to this mailing list. I'm using ODBC to connect to a database on a remote SQL Server from Windows 2000. I'm running PHP 4.3.3. with Apache 2, but I've also tried this with Apache 1.3. Here's the entire script (with dummy name, id and password): This works just fine when I call it fr

RE: [PHP-WIN] using result of function in same line

2003-11-06 Thread Stoner, David M.
I've never seen a language where you couldn't do things like "echo foo() ;" and I've seen a good many languages. It's so universal, I don't know that it has a name, other than "expression evaluation". Language processors typically evaluate inner subexpressions first, then use the value in evalu

RE: [PHP-WIN] talking to flash

2003-11-06 Thread Frank M. Kromann
I keep working version of the ming extension for win32 on my website at http://kromann.info/php4.php or http://kromann.info/php5.php. These versions are build with the cvs version of ming (0.3a). - Frank > Oops, that second url should be; > > http://ming.sourceforge.net/ > and here is another;

Re: [PHP-WIN] HOW DO I FIND GD LIB ENABLED

2003-11-10 Thread Frank M. Kromann
Hi, The GD librarry is included in a DLL on Win32. You need to load the library from php.ini with extension=php_gd2.dll or from the script with dl("php_gd2.dll"); You can check the output from phpinfo(); to see if the GD has been loaded. - Frank > Hi, > > Can I find that my php version suppor

Re: [PHP-WIN] MS-SQL / FreeTDS - charsets ?

2003-11-14 Thread Frank M. Kromann
Hi Lars, The windows version of the MSSQL extension is not (yet) based on the FreeTDS library but is based on Microsofts own library, and the latest version of the FreeTFS library is 0.62. What is your problem with charsets ? Perhaps there is a solution ? - Frank > I'm having problem with chars

Re: [PHP-WIN] Permission PHP IIS5.0

2003-11-18 Thread Frank M. Kromann
Hi, IIS runs all anonymous requests (php or static files) as a user called IUSR_, unless you changed that. You can either change the user or you can grant this user the privileges you need. - Frank > hello, > > I'm having a problem with permissions to PHP in IIS 5.0. I'll be thankful if someone

Re: [PHP-WIN] php.ini

2003-12-08 Thread Frank M. Kromann
Hi, The php.ini file ies read on startup. If you make changes to the ini file after the web server was started, you need to restart the web server to get the latest ini settings. - Frank > Does anyone know why the ASPI module is not reading php.ini under windows > 2000 server? its in c:\winnt\ph

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: AW: [PHP-WIN] PHP 3.0.18 for Windows

2001-01-09 Thread Frank M. Kromann
I have the binaries on my maschine. Do you need other files than php.exe ? - Frank > >I know, I know, and I am already using PHP 4 on many sites. However one >special application is not ready to be upgraded yet, and sticks to PHP 3. As >you may now know, the source code of 3.0.18 is available f

Re: [PHP-WIN] Sorry, answered too quick [waas: SET in MSSQL-query]

2001-01-09 Thread Frank M. Kromann
Textsize and textlimit are connected. Textsize can be set to any value from 0 to textlimit and text limit can be any value from 0 to 2Gb (on 32 bit API) By default textsize and textlimit are set according to your server and library settings but if you have textlimit = 8192 in php.ini you will n

RE: [PHP-WIN] You can have a visa card .. no deposit

2001-01-26 Thread Thor M. Steindorsson
Dear moron. Please try to refrain from spamming mailing lists. Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better. -Original Message- From: garey [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:05 AM To: [EMAIL PROTECTED] Su

Re: [PHP-WIN] mssql empty (not null) varchar fields

2001-02-06 Thread Frank M. Kromann
The PHP extension for MSSQL shoud strip leading and trailing spaces, but I check the code and fix it if there is an error. - Frank >Hello, > >>From habbit and an unexplained hate to NULLs I do not use them in my >databases. >I use varchar fields with empty strings ('') instead. >However MSSQL v

RE: [PHP-WIN] Dear Friends & Future Millionaire:

2001-02-06 Thread Thor M. Steindorsson
Dear Moron. Please refrain from spamming Mailing Lists. Especially when what you're offering is a fellony. Check it out, the guy who started this served 7 years in federal prison for fraud. I don't think you'd want to make the same mistake. -Original Message- From: Hi Tech Services [mail

RE: [PHP-WIN] Since there's a lot of IIS users on the list

2001-02-06 Thread Thor M. Steindorsson
Well, the most obvious answer is: Don't use M$ FTP. It's not secure enough, it's not manageble enough and worst of all, it's M$! If you need to run ftp on a windoze box, try Serv-U. It's powerful, cheap, fast and easy... just like me :). -Original Message- Fro

[PHP-WIN] Re: [PHP] MS SQL Question

2001-02-07 Thread Frank M. Kromann
The table "extended" is not known to the update command. You shoud use a syntax like this: UPDATE table1 SET table1.field1 = (select field2 from table2 where table2.id=table1.id). - Frank >I am trying to update a table with data from another table within the same >database with the following

[PHP-WIN] Re: [PHP] RE: [PHP-WIN] MSSQL Functions

2001-02-07 Thread Frank M. Kromann
Hi All, the key komponent is ntwdblib.dll installed in winnt\system32. The dll uses other dll's to comunicate with the server dbmssocn.dll (tcp/ip) and dbmsnp.dll (NetBios). All the communication dll's should be installed with the ODBC driver. Just copy ntwdblib.dll from the SQL server to the

Re: [PHP-WIN] MSSQL Functions Again

2001-02-08 Thread Frank M. Kromann
Hi Toby, Ther is no difference in how MSSQL Server works on NT or Windows 2000. That goes for both Client and server tools. You should be able to do the same trick (copying ntwdblib.dll to winnt\system32) on a Windows 2000 maschine. You will get IIS5 on Windows 2000 where yoy have IIS4 on NT.

RE: [PHP-WIN] Why do we want to give YOU money?

2001-02-09 Thread Thor M. Steindorsson
Best thing to do, is complain to his host. This yahoo uses his own url in the spam (not very bright). After doing a whois, we of course have all his details :) >From this info we can complain directly, and to his ISP. We can't let these MF'ers continue this crap. Here's the whois for the domain:

Re: [PHP-WIN] INSERT into MSSQL Server

2001-02-13 Thread Frank M. Kromann
It is only the ' charactor there has a "problem" you have to excape any special character before inserting. the text Joe's should be inserted like this" INSERT INTO table1 (int_field, char_field) VALUES (1, 'Joe''s') A single quote is escaped by an extra single quote. - Frank >I trying to in

Re: RE: [PHP-WIN] mssql and odbc functions

2001-03-01 Thread Frank M. Kromann
If you are using PHP as an ISAPI module, you need to restart the web service after making changes to php.ini. The file is only read on startup. php_mssql70.dll can be in \winnt\system32 or in yoy php directory (c:\php4). It is important that your extension_dir in php.ini points to the right pla

Re: [PHP-WIN] GD lib

2001-03-10 Thread Frank M. Kromann
Yuo can download php_gd.dll, and other extensions, from www.php4win.de - Frank > Hi, > I'd like to get the GD lib for PHP but don't know where is it. I checked > php.net but there only link to the source code. Is there any dll or > something that doesn't require me to compile? I use NT 4.0. > >

Re: [PHP-WIN] Supplied argument is not valid MS SQL-Link resource

2001-04-15 Thread Frank M. Kromann
mssql_select_db returns true or false and not a link resource. You should change the code to: $Conn=mssql_connect('192.168.1.20','username','password'); if (mssql_select_db('My_Database',$Conn)) { $QueryString="select id, name from my_table"; $Test=mssql_query($QueryString, $Conn);

Re: [PHP-WIN] mssql and php4

2001-04-17 Thread Frank M. Kromann
MSSQL is actually as fast (or faster) as mysql on the same hardware, but I guess you can compare the two and get the results you want. On the other hand that is not the issue ! When you are configuring MSSQL systems with server and client on two different computers you should consider using TC

Re: [PHP-WIN] IIS5 PHP Fails

2001-04-17 Thread Frank M. Kromann
You do not need to have any PHP files in winnt\system32. On my system I have all php files in c:\php4 and I have php.ini in c:\winnt. I have created script mappings connecting the .php extension with c:\php4\php.exe or c:\php4\php4isapi.dll This way it is easy to update and maintain, and I can

Re: [PHP-WIN] Class Constructors And PHP on Win2K

2001-04-17 Thread Frank M. Kromann
Just tested your code classVariable = $var1; } } $anotherVariable = 5; $objFoo = new Foo ( $anotherVariable ); ?> This works fine on my W2K box. There should be no problems uses classes and this way on any Windows platform. I'm using php4.0.5-dev though. Not sure if that can have

Re: [PHP-WIN] HTML calling PHP; PHP returns result

2001-04-17 Thread Frank M. Kromann
In the first script you are trying to call another script. I would jus include the counter script at that place and have the counter script output the code needed or have a function in the included script return the output you need. it would look like this: counter.php would look like t

Re: [PHP-WIN] Re: MSSQL varchar fields truncation revisited

2001-04-18 Thread Frank M. Kromann
MySQL and MSSQL is two different databases ! MSSQL 7.0 can handle varchar columns larger than 255, but the C-API used to fetch the data does not support this feature and therefore PHP is limited to fetch only the first 255 characters. The only solution (so far) is to convert to TEXT. - Frank

Re: RE: [PHP-WIN] mssql and php4

2001-04-18 Thread Frank M. Kromann
Hi Kelvin, Check the connection from your computer to the server using Query Analyzer if the connection is still slow it is some kind of network problem. If not it must be the PHP installation. Have you checked your php.ini for loading extensions you are not using ? This would affect the CGI

Re: [PHP-WIN] help with php4 installation

2001-04-18 Thread Frank M. Kromann
After changing anything in the regestry database (regarding PWS) you need to stop and start all PWS servises. it is not enough to stop and start the web server. The easiest way on Win 98 would be to reboot the system. The regestry database is only read when the service starts. You dont need t

Re: [PHP-WIN] MSSQL text fields truncation

2001-04-19 Thread Frank M. Kromann
mysql had a > >limit of 255 characters. > > I believe they were talking about the M$ SQL server? In version 6.5 the > varchar were limited to 255 bytes, but with version 7.0 the length can be > extended to 8000 bytes... and also Stored Procedures can now be, hmm, 128MB > in

Re: [PHP-WIN] Php3

2001-04-19 Thread Frank M. Kromann
That is not correct. Using IIS4 and IIS5 you have to add script mappings. You do this from the "Internet Service Manager". You find that under Administrative Tools. When you right click on either The "compyter", "Default Web Site" or a directory you can select properties. Select "Home directory

Re: [PHP-WIN] Errors I get

2001-04-20 Thread Frank M. Kromann
PHP Does not need perl in any instances. It seams you are trying to run the cgi version of php and it is unable to find a component, resulting in a core dump. You can test the php.exe from a command prompt. Just type php.exe -v and yoy will get the veriosn information, or perhaps an error mess

Re: [PHP-WIN] Dynamic Pulldown lists

2001-04-19 Thread Frank M. Kromann
You can do this by reloading the page when the first list is changed or by applying all the different values for the second list in JavaScript arrays and have some JavaScript code to populate the second list. - Frank > A little help from anyone please. > > I know this was discussed before but

Re: [PHP-WIN] MS SQL 2000

2001-04-21 Thread Frank M. Kromann
What version of the php_mssql.dll are you using ? We had an error a while back where mssql_query returned a wrong value (true instead of a ressource). You could also add an extra parameter to the query function $answer = mssql_query("SELECT * FROM table", $connection); - Frank P.S. If you a

<    1   2   3   4   >