Re: [PHP-WIN] Apache to IIS

2006-06-19 Thread JC Botha
7;] 2)$_SERVER['DOCUMENT_ROOT'] Hope this helps. Cheers, Dale -Original Message- From: JC Botha [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 1:59 PM To: Alf Stockton Cc: Mikael Grön; php-windows@lists.php.net Subject: Re: [PHP-WIN] Apache to IIS Lol, like that! J

Re: [PHP-WIN] Apache to IIS

2006-06-19 Thread JC Botha
for all of us if we ever need it. Greetings On 6/19/06, Alf Stockton <[EMAIL PROTECTED]> wrote: JC Botha wrote: > Personaly I see this as a back step to go from Apache to IIS! If you > don't have a solid reason then I would discourage it. Should be a > simple task too my m

Re: [PHP-WIN] Apache to IIS

2006-06-19 Thread JC Botha
Personaly I see this as a back step to go from Apache to IIS! If you don't have a solid reason then I would discourage it. Should be a simple task too my mind. On 6/19/06, Alf Stockton <[EMAIL PROTECTED]> wrote: Mikael Grön wrote > I have. > No major implications. As long as PHP is correctly

RE: [PHP-WIN] Re: fwrite()

2005-11-08 Thread JC Botha
- *From:* Kevin Smith [mailto:[EMAIL PROTECTED] *Sent:* 08 November 2005 11:24 PM *To:* [EMAIL PROTECTED] *Cc:* 'Rosty Kerei'; php-windows@lists.php.net *Subject:* Re: [PHP-WIN] Re: fwrite() Submit you're code to the list and let's see if we can help you. JC Bot

RE: [PHP-WIN] Re: fwrite()

2005-11-08 Thread JC Botha
@lists.php.net Subject: [PHP-WIN] Re: fwrite() Maybe you need to replace "\n" to "\r\n"? Like - $_POST['textbox'] = str_replace("\n", "\r\n", $_POST['textbox']); Sincerely, Rosty Kerei [EMAIL PROTECTED] ""JC Botha"" <[EMAIL

[PHP-WIN] fwrite()

2005-11-08 Thread JC Botha
Dear Users, thanks for those that helped me last time! I got it working. At the moment I'm stuck with the fwrite() function. If I use the $_POST to get the data out of a textbox into a var, and write it to a txt file I get the following problem. The very first encounter it makes with a "\n" it

[PHP-WIN] list files in directory

2005-11-03 Thread JC Botha
Thanks for all your help and advice. I did struggle with the array part but got it worked out. Perhaps you could have a quick look at the script and let me know if it is stable enough. 1048575) { $filesizefile = round(($filesizefile/1024)/1024, 1); $term

[PHP-WIN] list files in a directory

2005-11-03 Thread JC Botha
Dear Users, I need some help. I got some directories on a web server, these I called with PHP to be displayed on an HTML page. But I do not get them sorted properly. I want them to be sorted by name and not by size. Could some one please shed some light on this. Thanks ==

RE: [PHP-WIN] FrontPage or something else?

2005-09-18 Thread JC Botha
Hi there, Yes, I personally would shun FP. What you could do is to design all your page in it and then dump your PHP into it. But on the other had it is not advisable. What I do with my designs is having a single index.php file and I push all my data, forms, text, db quarries etc into that single

Re: [PHP-WIN] PHP 5.0.4 - Can anyone help me get it to work?

2005-06-30 Thread JC Botha
Hi there, I'm using EasyPHP, and it is doing just fine. I should add that I run it on a developer workstation with WinXP Home. Try it on Win98 if you can't upgrade. But it is always worth to start with the correct configurations right from the beginning. Ok, just a thought. Greetings

Re: [PHP-WIN] Re: Programming problem... Date day locater!

2005-05-04 Thread JC Botha
Hi thanks for all your input. The problem is patially solved. Does anyone know the syntax for C++. Ok, I know this is exclusive PHP but I would like to know both as I'm studying both. Till later then. On 5/4/05, Jason Barnett <[EMAIL PROTECTED]> wrote: > JC Botha wrote: >

[PHP-WIN] Programming problem... Date day locater!

2005-05-04 Thread JC Botha
Hi there to all. I need to get the day number of any given date. Like if the date 20 Jan 2005 is given I need to calculate that it is day 20 in the year. Any thoughts on solving this would be much appreciated. Chris -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP-WIN] Re: Jaw Breaker - What's the ansewer?

2005-04-21 Thread JC Botha
ssue with floating point numbers since: > > > > 8.35 will give the answer but if you increment by .01 in a loop then you > > will not get the answer, when it is on 8.35. However, increment by 0.001 > > then 8.35 will provide the correct answer. It's all to d

Re: [PHP-WIN] Re: Jaw Breaker - What's the ansewer?

2005-04-20 Thread JC Botha
However, increment by 0.001 > then 8.35 will provide the correct answer. It's all to do with how in > calculates 0.01 in binary, a rational fraction in binary. > > graeme. > > JC Botha wrote: > > >It is possible, and "10.642868165785" is incorrec

Re: [PHP-WIN] Re: Jaw Breaker - What's the ansewer?

2005-04-20 Thread JC Botha
It is possible, and "10.642868165785" is incorrect. The question says "$x is a number between 1 and 10 and has 2 decimal places." Try again, if more try then I will post the source code that generates the asnwer? On 4/20/05, M. Sokolewicz <[EMAIL PROTECTED]> wrote:

[PHP-WIN] Jaw Breaker - What's the ansewer?

2005-04-20 Thread JC Botha
The following is a section of PHP code (see Apache.org and PHP.net). function f($c) { $c++; if ($c % 2) { return f($c); } return $c++; } function g($n) { for ($i=1;$i<10;$i++) { $n = f($n*$i); } return ($n); } print(g($x)); What is the smallest va

Re: [PHP-WIN] Call to undefined function printer_open()

2005-04-19 Thread JC Botha
Dear Users What is the name for the precision floating point function(syntax). Like having 2.987 to be 2.89? Thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
someting tight on my XP computer. If somebody is willing to review my php.ini file let me know and I will email it to you. Thanks On 4/15/05, Janet Valade <[EMAIL PROTECTED]> wrote: > JC Botha wrote: > > > This is the Browser error: > > Fatal error: Call to undefined fun

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
ro. ;cgi.rfc2616_headers = 0 On 4/15/05, Wagner, Aaron <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: JC Botha [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 15, 2005 3:49 PM > > Cc: php-windows@lists.php.net > > Subject

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
on line 3 On 4/15/05, Wagner, Aaron <[EMAIL PROTECTED]> wrote: > > > > -----Original Message- > > From: JC Botha [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 15, 2005 3:13 PM > > Cc: php-windows@lists.php.net > > Subject: Re: [PHP-WIN] PHP5 and

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
I did read that the direct support for MySQL was removed. PHP5 is no longer as supportive as PHP4 So I'm considering going back to PHP4 if none can help me. On 4/15/05, Wagner, Aaron <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: JC B

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
t") ) { echo( "Unable to connect to the " . "database server at this time. Please contact webmaster at [EMAIL PROTECTED]" ); exit(); } On 4/15/05, Kevin Smith <[EMAIL PROTECTED]> wrote: > Perhaps posting you

[PHP-WIN] PHP5 and MySQL

2005-04-15 Thread JC Botha
Dear Users I'm havin a problem to connect to MySQL through the use of PHP5. I followed all documentation and none seem to resolve the problem. I'm running WinXP on the computer that I use to develop the apps. Any advice out there that could be of help. Thanks -- PHP Windows Mailing List (http://