Re: [PHP-WIN] newbie: a very simple question (I hope)

2004-12-15 Thread Janet Valade
Patrick Roane wrote: I am trying some excercises in a book and one of the excercises says to: Assign values to two variables. Use comparison operators to test whether the first value is: 1. the same as the second 2. less than the second 3. Print the result of each test to the browser. My question i

[PHP-WIN] Re: newbie: a very simple question (I hope)

2004-12-15 Thread Jason Barnett
I know how to print out the value of $x, but not the test result of 'true or false'. A couple of ways to do this. Probably the easiest is to cast the true / false answer to an int and then echo that answer. $x = 3; $bool = ++$x < 4; echo (int) $bool; -- PHP Windows Mailing List (http://www.ph

[PHP-WIN] newbie: a very simple question (I hope)

2004-12-15 Thread Patrick Roane
I am trying some excercises in a book and one of the excercises says to: Assign values to two variables. Use comparison operators to test whether the first value is: 1. the same as the second 2. less than the second 3. Print the result of each test to the browser. My question is, how do I prin

[PHP-WIN] Re: Session_start() not working

2004-12-15 Thread Jason Barnett
S.D.Price wrote: Hi can anyone help me, I have moved my application from a Unix server to a Windows based server but suddenly I don't seem able to use sessions I get Warning: session_start() [function.session-start ]: open(C:\PHP\sessiondata\sess_60e554

RE: [PHP-WIN] Substr function

2004-12-15 Thread S.D.Price
Thanks for this George. I found a way to grab the file size of the document and enter it in the DB as either KB or MB $documentsize = $_FILES['thefile']['size']; // if document size is less than 1MB round up number to nearest KB if

[PHP-WIN] Re: [PHP-DEV] im convert php-screw to windows dll

2004-12-15 Thread Christian Schneider
Andrew Van Dyk wrote: Sorry... PHP Screw is a module to encrypt your PHP files so you don't distribute the source code. It works perfectly in UNIX, but Just a quick note for people considering using PHP Screw: It is absolutely trivial to decrypt such a file as the encryption algorithm is datap[i]

[PHP-WIN] Re: [PHP-DEV] im convert php-screw to windows dll

2004-12-15 Thread Andrew van Dyk
Hi, Sorry... PHP Screw is a module to encrypt your PHP files so you don't distribute the source code. It works perfectly in UNIX, but im trying to convert it to windows. My conversion compiles etc fine, but it doesn't overwrite the zend_fopen function, so I havn't been able to get it to work prope