[PHP-DEV] Re: Weird PHP Problem

2002-11-27 Thread colin mcdonald
Try Looking at this parameter in the php.ini:

; Valid range 0 - 2147483647.  Default = 4096.
mssql.textlimit = 65536

; Valid range 0 - 2147483647.  Default = 4096.
mssql.textsize = 65536

colin

Becky Gruebmeyer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
 database. Here is the issue:

 I have a nvarchar field with a size of 4000.
 I submit a text string from a form to this field.
 It will display on submit using echo nl2br($variable) and it will display
 fine.
 When I look in the database, it has all the information stored correctly.
 When I pull it back out of the database, it cuts it off and only displays
 the first part of the string.

 Anyone have any ideas why?





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] compiled modules VS. code in php

2001-11-19 Thread colin mcdonald

Hi, I apologize in advance if this is not the place to ask. I just 
figured, I'd get a better answer from this group.

Is there a performance increase by compiling your code into php (either 
dynamic or static) as opposed to writing complex code in php.

Note: this bit of code would be used by every request in the 
application, reads many files and does a lot of string parsing.

thanks,

colin

-- 
Colin McDonald - [EMAIL PROTECTED]

home: http://nexus.carleton.ca/~colin/
  public key: http://nexus.carleton.ca/~colin/pubkey.asc
fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] php module calling php code

2001-11-19 Thread colin mcdonald

Hi,

can anyone point me to some examples/documentation for any of the following:

C code calling methods of an object defined in a user's php code. (I 
know you can call user's php functions, but can this be done?)

OR

How would I define a PHP Object in C that could be used in the php 
script as if it was defined in the php script.

thanks,

colin

-- 
Colin McDonald - [EMAIL PROTECTED]

home: http://nexus.carleton.ca/~colin/
  public key: http://nexus.carleton.ca/~colin/pubkey.asc
fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] php module calling php code

2001-11-19 Thread colin mcdonald

you where close:

call_user_method()

colin

Zak Greant wrote:

   IIAGR, you should be able to find an example in call_user_func()


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: troubles compiling ext/mcrypt/ on windows

2001-08-16 Thread colin mcdonald

  (this is getting off topic and not related to this list, sorry)


can somebody at least please answer this and tell me that mcrypt and 
windows is impossible!

or at least tell me I'm crazy!

or at lesat tell me another 2-way encryption that I can use on windows.

fustrated and going crazy,


colin

http://nexus.carleton.ca/~colin/



Colin McDonald wrote:

 Hi there,
 
 (I'm cc'ing you sascha because you seem to be the author of this area of 
 mcrypt, I apologize if you are not and/or are bothered by this)
 
 I downloaded the source for php-4.0.6 today and attempted to compile 
 mcrypt functionality into a windows version of php.
 
 I opened ext/mcrypt/mcrypt.dsp into VC++ and attempted to build the 
 project.  I get these errors when attempting to do so:
 
 Configuration: mcrypt - Win32 
 Debug_TS
 Compiling...
 mcrypt.c
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1480) : warning C4018: '' : 
 signed/unsigned mismatch
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1490) : warning C4244: '=' : 
 conversion from 'double ' to 'char ', possible loss of data
 readdir.c
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(802) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(825) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(848) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(871) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(894) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(912) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(931) : warning C4700: local 
 variable 'lib_dir' used without having been initialized
 Linking...
 LINK : fatal error LNK1181: cannot open input file libmcrypt.lib
 Error executing link.exe.
 
 php_mcrypt.dll - 1 error(s), 9 warning(s)
 
 I'm NOT concerned about the first 2 warnings, it's more the next ones.
 
 it seems to be having trouble on line 204 (mcrypt.c) which is a call to
 
 Z_STRVAL_PP(lib_dir)
 
 Could this be why the linking cannot occur?
 
 NOTE: I followed all the steps here before attempting to compile mcrypt, 
 ie instaled cygwin, etc. (I don't if it matters, probably?)
 
 Another NOTE:  you may want to strip my email address from your reply OR 
 take out the underscores.
 
 
 thanks for your help,
 
 
 colin
 



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] troubles compiling ext/mcrypt/ on windows

2001-08-14 Thread colin mcdonald

Hi there,

(I'm cc'ing you sascha because you seem to be the author of this area of 
mcrypt, I apologize if you are not and/or are bothered by this)

I downloaded the source for php-4.0.6 today and attempted to compile 
mcrypt functionality into a windows version of php.

I opened ext/mcrypt/mcrypt.dsp into VC++ and attempted to build the 
project.  I get these errors when attempting to do so:

Configuration: mcrypt - Win32 
Debug_TS
Compiling...
mcrypt.c
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1480) : warning C4018: '' : 
signed/unsigned mismatch
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1490) : warning C4244: '=' : 
conversion from 'double ' to 'char ', possible loss of data
readdir.c
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(802) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(825) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(848) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(871) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(894) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(912) : warning C4700: local 
variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(931) : warning C4700: local 
variable 'lib_dir' used without having been initialized
Linking...
LINK : fatal error LNK1181: cannot open input file libmcrypt.lib
Error executing link.exe.

php_mcrypt.dll - 1 error(s), 9 warning(s)

I'm NOT concerned about the first 2 warnings, it's more the next ones.

it seems to be having trouble on line 204 (mcrypt.c) which is a call to

Z_STRVAL_PP(lib_dir)

Could this be why the linking cannot occur?

NOTE: I followed all the steps here before attempting to compile mcrypt, 
ie instaled cygwin, etc. (I don't if it matters, probably?)

Another NOTE:  you may want to strip my email address from your reply OR 
take out the underscores.


thanks for your help,


colin


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Sockets

2001-07-25 Thread colin mcdonald

Hey, I appologize ahead of time if this is the wrong forum for this 
question.

Are the php socket functions still as experimental as indicated in the 
manual?

Are they stable on windows and standard distros of linux?

tia,

colin


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12264: PATH_INFO and PATH_TRANSLATED not being correctly set

2001-07-19 Thread colin mcdonald


just to confirm, I'm using php 4.0.6 with IIS as an ISAPI module and I 
get this error when using this url:

url: ev.php/hello/world

Warning: Failed opening 'c:\inetpub\wwwroot\EV30\ev.php\hello\world' for 
inclusion (include_path='.') in Unknown on line 0





[EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 Operating system: Win2K Server
 PHP version:  4.0.6
 PHP Bug Type: IIS related
 Bug description:  PATH_INFO and PATH_TRANSLATED not being correctly set


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: URL rewriter outputs a spurious /

2001-07-19 Thread colin mcdonald

I'm not sure what the url rewriter does,

but I know XHTML and XML requires a trailing slash in tag that have no 
end tags (like img, input, etc)

something like this is valid:

input name=foo id=foo type=text value=bar /

maybe that is what this code is writing?

my 2c,

colin

[EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 Operating system: linux suse 6.4
 PHP version:  4.0.6
 PHP Bug Type: Session related
 Bug description:  URL rewriter outputs a spurious  /
 
 the rewriter adds a  / befor the closing bracket in the form rewriting.
 following a diff to patch it.
 sincerely Daniel S.
 
 *** ext/standard/url_scanner_ex.c   Thu Jun 21 08:29:04 2001
 --- ext/standard/url_scanner_ex_modif.c   Thu Jul 19 14:14:34 2001
 *** static inline void handle_form(STD_PARA)
 *** 178,182 
  smart_str_appends(ctx-result, \value=\);
  smart_str_append(ctx-result,ctx-q_value);
 !smart_str_appends(ctx-result, \/);
}
 }
 --- 178,182 
  smart_str_appends(ctx-result, \value=\);
  smart_str_append(ctx-result,ctx-q_value);
 !smart_str_appends(ctx-result,\);
}
 }
 



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] mail() and windows

2001-07-18 Thread colin mcdonald

hi there,

I've been reading about (and experiencing) the problems with sending 
mail on windows.

Question:  Are there any plans in the near future to clean/rewrite this 
code?  I keep seeing the comment that mail() badly needs a rewrite on 
windows.

Question(s):  If there are no plans in the near future, how can I help? 
  What needs to be rewritten (besides the obvious handling Bcc header 
and making the header case-insensitive)?  I've been experiencing 
problems when sending attachments that are slightly longer than 2kb. 
What would need to be rewritten to get this working.  Is it a lower 
level than the code in php (ie win sockets)?

thanks and hope I can help!

colin


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]