[PHP-WIN] Using COM with PHP - help please!

2007-06-13 Thread David Felton
Does anyone have any experience with this? I'm using the COM function with PHP4 and have run into problems. I can instantiate a COM object, and call simple function. Now I have come on to calling a more complicated function that returns an instance of an interface. The function is running correctl

[PHP-WIN] RE: FAO Dmitry - proc_open() update

2007-02-22 Thread David Felton
Sent: 22 February 2007 1:41 To: David Felton; php-windows@lists.php.net Subject: RE: FAO Dmitry - proc_open() update Hi David, I didn't have plans to backport this patch to PHP-4. Dmitry. > -Original Message- > From: David Felton [mailto:[EMAIL PROTECTED] > Sent: Thursday,

[PHP-WIN] FAO Dmitry - proc_open() update

2007-02-22 Thread David Felton
Not sure if this mailing list is the best place to ask you a question Dmitry? I noticed in the latest version of PHP 5 (5.2.1) you have fixed an issue that has been causing us real problems: "Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE. (Dmitry)" We hav

RE: [PHP-WIN] Custom PHP extensions not woring on windows 2003 server

2005-11-30 Thread David Felton
> Here's my piece: I was running MySQL 4.0.2x and PHP 5.0.1. Upgraded > MySQL to 5.0.15 and found PHP no longer working (Apache 2.0.5x). > Upgraded PHP to 5.0.5 and copied the included libmysql.dll to the > system32 directory and everything appears to be running just fine. Please don't thread

RE: [PHP-WIN] Custom PHP extensions not woring on windows 2003 server

2005-11-29 Thread David Felton
During my Googling I've read a lot about people having problems with Mysql and PHP 5, due to the built in support for MySQl being removed. I don't think this is the same issue. Thanks. -Original Message- From: Nico [mailto:[EMAIL PROTECTED] Sent: 29 November 2005 4:21 To: Da

[PHP-WIN] Custom PHP extensions not woring on windows 2003 server

2005-11-29 Thread David Felton
Hi guys. I have a custom-written PHP extension which is working great on my windows 2000 test server. When I try and run it on the windows 2003 server production server the extension faisl to load. I get a message along the lines of Application popup: Warning : Unknown(): Unable to load dynami

RE: [PHP-WIN] Script to query NTP server

2005-07-01 Thread David Felton
> http://www.vanheusden.com/query_ntp.php > This site has one, maybe you can try to contact him/her.. - I came across that one too, but didn't think to contact the page owner for the source, I'll give it a go. Cheers. > And here is a manual... > (found with google: php+how+to+query+ntp) > ht

[PHP-WIN] Script to query NTP server

2005-06-30 Thread David Felton
Hi guys. has anyone come across a PHP script to query an NTP (Network Time Protocol) server and process the response? I've found one in Perl, but unfortunately nothing in PHP. Thanks. ** This email and any files transmitted wit

RE: [PHP-WIN] windows mail problem

2004-05-24 Thread David Felton
The Win32 implementation of mail() is notoriously flaky. the approach I take is to write the raw email directly out to the pickup folder in mailroot. A function along these lines should help you out: function sendMail($mailto, $mailfrom, $subject, $text, $format) { $maildrop="c:\\i

RE: [PHP-WIN] PHP Site unix to Windows Migration errors

2004-04-15 Thread David Felton
Yep that's spot on. -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED] Sent: 13 April 2004 8:52 To: Stan Shaw; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] PHP Site unix to Windows Migration errors On Tuesday 13 April 2004 20:29, Stan Shaw wrote: > Thank you, that eliminated th

RE: [PHP-WIN] REST Tutorial

2004-04-14 Thread David Felton
Or maybe as a tutorial on devarticles, devshed, codewalkers or phpbuilder -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: 14 April 2004 12:55 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] REST Tutorial Sourceforge maybe? On Wed, 2004-04-14 at 12:55, Belind

RE: [PHP-WIN] PHP Site unix to Windows Migration errors

2004-04-13 Thread David Felton
It's just complaining that a variable hasn't been initialised before you use it. Just switch error_reporting in your php.ini file to be error_reporting = E_ALL & ~E_NOTICE which means 'Show all errors, except for notices' -Original Message- From: Gerardo Rojas [mailto:[EMAIL PROTECTED] S

RE: [PHP-WIN] Re: ODBC or MS SQL DLL? WAS: Using PHP on Server 2 003...

2004-04-06 Thread David Felton
Yes there is this workaround: if you run this query first @mssql_query( "SET TEXTSIZE 1024000", $db); then when you want to retrieve a field of type ntext or whatever use the following syntax in your sql: SELECT CAST(fieldname AS TEXT) ... -Original Message- From: Svensson, B.A.T. (HKG)

RE: [PHP-WIN] Re: PHP Script to Windows Program

2004-03-30 Thread David Felton
no, the machine you are running it on must have php/gtk installed. -Original Message- From: Dean Hayes [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 1:01 To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Re: PHP Script to Windows Program I have heard pf php-gtk but don't u need to install tha

RE: [PHP-WIN] back slash issue

2004-03-22 Thread David Felton
Try: $errorCode = $TK->OpenOutputFile("D:\\public\\k1\\compiledCIO\\$filename"); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 22 March 2004 4:32 To: [EMAIL PROTECTED] Subject: [PHP-WIN] back slash issue I have a situation where I need to use backslashes as

[PHP-WIN] Regular expression to remove non-ascii text from a string

2004-03-11 Thread David Felton
Can anyone help me out with a regular expression to remove all non-ascii characters from a String? I've got as far as: $newfilecontents = ereg_replace("[^\x01-\x7f]","",$newfilecontents); but this seems to strip all the characters from the String! Any help would be appreciated. Thanks. **

RE: [PHP-WIN] Paging using PHP and sql server

2004-03-10 Thread David Felton
- From: David Felton [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 11:27 AM To: Harpreet; [PHP-WIN] Subject: RE: [PHP-WIN] Paging using PHP and sql server Check out this tutorial: http://www.phpnoise.com/tutorials/9/1 -Original Message- From: Harpreet [mailto:[EMAIL

RE: [PHP-WIN] Paging using PHP and sql server

2004-03-10 Thread David Felton
Check out this tutorial: http://www.phpnoise.com/tutorials/9/1 -Original Message- From: Harpreet [mailto:[EMAIL PROTECTED] Sent: 10 March 2004 4:26 To: [PHP-WIN] Subject: [PHP-WIN] Paging using PHP and sql server I have created a few reports using sql server and PHP. The reports work ju

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

2004-02-25 Thread David Felton
Sorry, you should be using Integrated Windows Authentication rather than basic integration. -Original Message- From: Paul Menard [mailto:[EMAIL PROTECTED] Sent: 25 February 2004 3:37 To: David Felton; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Best way to check for user 'Administ

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

2004-02-25 Thread David Felton
If you enable basic authentication on the webserver and then disable anonymous access, php will run under the credentials of the currently logged in user. If you do this the 'is_writeable()' trick would work as you expeted. -Original Message- From: Paul Menard [mailto:[EMAIL PROTECTED] S

RE: [PHP-WIN] OPTIMIZING PHP

2004-02-18 Thread David Felton
mandt¤hotmail.com Mail: dvdmandt¤telia.com "David Felton" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > The first option is faster, although this might be a slight improvement to > make it more readable: > > Localizzazione : > > Coordinate Geograf

RE: [PHP-WIN] OPTIMIZING PHP

2004-02-18 Thread David Felton
The first option is faster, although this might be a slight improvement to make it more readable: Localizzazione : Coordinate Geografiche : Continente : Confini : - you'll need to have short_quotes enabled to be able to do this. -Original Message- From: zanzamarr [mailto:[EMAIL

RE: [PHP-WIN] Convert time

2004-02-16 Thread David Felton
lol -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: 16 February 2004 4:49 To: php-windows Subject: Re: [PHP-WIN] Convert time On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote: > There might be also a floor function you can instead of casting, but

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

2004-02-06 Thread David Felton
No. What I said was correct, as Ron wanted rows 25-35. -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: 06 February 2004 12:45 To: David Felton Cc: Nadim Attari; [EMAIL PROTECTED]; Herhuth, Ron Subject: Re: [PHP-WIN] SQL to select a set of records David Felton wrote

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

2004-02-06 Thread David Felton
No it doesn't. you'll need to do something like this in MS-SQL (using a sub-select): SELECT TOP 10 dbo.Table_MIS_Files.File_ID FROMdbo.Table_MIS_Files WHERE dbo.Table_MIS_Files.File_ID NOT IN (SELECT TOP 25 dbo.Table_MIS_Files.File_ID FROMdbo.Table_MIS_Files) -Ori

RE: [PHP-WIN] test

2004-01-29 Thread David Felton
Yeah it was the MyDoom worm, hope you guys didn't open any of those attachments earlier ;-) -Original Message- From: toby z [mailto:[EMAIL PROTECTED] Sent: 29 January 2004 1:26 To: Roy Henderson; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] test > Not one which was appreciated here ... my re

RE: [PHP-WIN] cUrl

2003-12-09 Thread David Felton
I recommend subscribing to the cURL and PHP mailing list at [EMAIL PROTECTED] for all you cURL and PHP needs. PS you should be using for cURL PHP extension for working with PHP, not the standalone version. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 Dece

RE: [PHP-WIN] loading php_gd2.dll

2003-11-19 Thread David Felton
try copying the dlls it needs to the winnt/system32 directory -Original Message- From: brent [mailto:[EMAIL PROTECTED] Sent: 19 November 2003 1:41 To: [EMAIL PROTECTED] Subject: [PHP-WIN] loading php_gd2.dll Hi. I'm having difficulty getting the php_gd2.dll to load. Running W2K server

RE: [PHP-WIN] Session configuration

2003-11-10 Thread David Felton
The error just means you are printing something out before you call session_start(); you just need to call session_start() *before* you print anything out to the page, so it's best off called at the top/start of your php page. -Original Message- From: Voodoo [mailto:[EMAIL PROTECTED] Sent

RE: [PHP-WIN] R: [PHP-WIN] best php editor?

2003-11-05 Thread David Felton
I feel I need to stand up for Java a little here. Java itself it not particularly slow. Lagginess in GUI applications is often more the fault of developers who don't understand threading and the Java AWT event-dispatch/repainting scheme, who block the GUI and create apps that appear slow or prone

RE: [PHP-WIN] Include and require

2003-10-20 Thread David Felton
if an include fails for whatever reason the script will continue executing and just issue a warning. If a require fails the script will throw an error and exit (it won't execute the remainder of the script). -Original Message- From: Rinku Shivnani [mailto:[EMAIL PROTECTED] Sent: 20 October