Re: [PHP-WIN] results over multiple pages

2002-05-06 Thread Rasmus Lerdorf
heh ;) I'd love it if it did. But alas, LIMIT is actually a hack I came up with years ago for mSQL which was brought into MySQL and enhanced. If it ever makes it into MSSQL or Oracle I'll charge big-time royalties or something... -Rasmus On Mon, 6 May 2002, olinux wrote: > Does MSSQL not hav

[PHP-WIN] Re: results over multiple pages

2002-05-06 Thread Matt Parlane
I don't think SQL Server supports the LIMIT statement (this isn't MySQL remember...) >From memory SQL Server uses the TOP statement - something like "SELECT TOP 5 " although I'm probably wildly off as far as syntax goes. You can also use a percentage for the number of rows you want. Hope that he

[PHP-WIN] Re: results over multiple pages

2002-05-06 Thread Hugh Bothwell
> if ($currentPage > 1) { > $host="localhost"; > $DB="testDB"; > $user="sa"; > $pass=""; Umm... if that's the only place you use these values, why not specify them inline? Easier to read, for sure. > $connect = mssql_connect($host,$user,$pass) or die ($host." not > accessible."); > if ($DB) ms

[PHP-WIN] results over multiple pages

2002-05-06 Thread RS Herhuth
List, I'm pulling my hair out trying to figure out why this is not working. I am trying to limit the number of returns on a page and if need be spread the results over multiple pages. The following is where i believe the problem to be. Please keep in mind I'm using Microsoft SQL Server. The v

[PHP-WIN] Re: Download monitor

2002-05-06 Thread Webmaster
You can find several download data bases at websites offering free scripts. Most are MySql and/or other database driven... (example: http://www.phparena.net/ ) Webmaster "Olivier Hubert" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is probably a t

[PHP-WIN] Re: Shutting down Apache on Windows

2002-05-06 Thread Brad Thomas
Hello. To shut down apache, you need to make the apache window active, and press the Ctrl + C keys. Hope this helps. Brad "Jerry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! I just setup Apache 1.3 on Win98 using Triad. Everything > works great. I

php-windows Digest 7 May 2002 00:51:14 -0000 Issue 1131

2002-05-06 Thread php-windows-digest-help
php-windows Digest 7 May 2002 00:51:14 - Issue 1131 Topics (messages 13571 through 13580): Can you use file() and rtrim() together 13571 by: blulagoon 13576 by: Olivier Hubert Spreading the returned results among multiple pages... 13572 by: R.S. Herhuth 1357

[PHP-WIN] Re: Testing...pls ignore

2002-05-06 Thread Brad Thomas
I am also ignoring this. BT <..> http://hellkeeper.hostbet.net/ "Then" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > pls ignore this -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Download monitor

2002-05-06 Thread Ross Fleming
Theories then (completely untested but in my mind should do with a but of work)... Keep the downloadable in a folder not accessable to the webserver. Give php permission to read them. Now at this point, I don't know enough about sessions to tell you the syntax, but set a flag saying "downloadin

[PHP-WIN] BCMath functions

2002-05-06 Thread Peter
How do the BCMath functions work? I tried using them for some precision iterative processes and they kept giving me incorrect answers (correct only to about 4 decimal places). In the end I changed the precision setting in php.ini to 14 and used standard math functions which gave the same results

[PHP-WIN] Download monitor

2002-05-06 Thread Olivier Hubert
This is probably a topic for gurus. I'd like to have some way of knowing, with PHP, when a download is finished. My site offers several files for download, and I want to make sure a given user does not download more than one file at a time. I know there is a way to do this with an Apache modul

Re: [PHP-WIN] Can you use file() and rtrim() together

2002-05-06 Thread Olivier Hubert
I don't know if you pasted the code directly from source, but your problem might come from the fact that you're using "/n" instead of "\n". What I recommend would be this: $myString = @file('text_file'); $myArray = rtrim($myString, "\n"); Note that for the second part, you might have to put \r

[PHP-WIN] Re: Getting Apache 2.0.35 and PHP 4.2 to work on Win2k

2002-05-06 Thread alphapoet
The below worked for me on Win2K Professional/Apache2.0.35 and PHP4.2 So, this worked: LoadModule php4_module C:\php\experimental\apache2filter.dll (Server started with no problem. and when running phpinfo() output page was correct) While this did not: LoadModule php4_module C:\php\sapi\php4apac

[PHP-WIN] unexpected $ ???

2002-05-06 Thread Zac Hillier
Hi All, I'm new to this and have a strange error message - can anyone shed some light? I have included a file into my main page that uses php to build an area of html and javascript. I always get this error: Parse error: parse error, unexpected $ in d:\php-dev\includes\frmBuilder.php on line

RE: [PHP-WIN] Spreading the returned results among multiple pages...

2002-05-06 Thread Svensson, B.A.T. (HKG)
> The first page works fine. The next page comes back with an index > related error. I suspect it has to do with this line: > $row = mssql_fetch_row($i, $result); Please post the error msg. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Spreading the returned results among multiple pages...

2002-05-06 Thread R.S. Herhuth
List, I'm trying to write a script that only returns x number of results from a query per page. I have all the logic in place that should do the trick but the one problem I'm having is getting the SQL query to work for me. BTW I'm suing Microsoft SQL Server 2000, not My SQL. I know that MySQL

[PHP-WIN] Can you use file() and rtrim() together

2002-05-06 Thread blulagoon
I don't know if this is the right way to go about what I'm trying to do. In a nutshell, I want to open a simple text file and load the file into an array with each line represented by one element in the array. Now $myArray = @file("my_text_file"); achieves 90% of what I want, but I need to strip

php-windows Digest 6 May 2002 12:04:33 -0000 Issue 1130

2002-05-06 Thread php-windows-digest-help
php-windows Digest 6 May 2002 12:04:33 - Issue 1130 Topics (messages 13561 through 13570): Re: How do i get SSI (Server Side Include) to work 13561 by: Ross Fleming 13562 by: Alex 13563 by: Stuart Dallas Apache 2.0.35 w/ PHP 4.12 -HELP 13564 by: Alex

[PHP-WIN] Just installed new version of php

2002-05-06 Thread Demi Vitalis
Hey everyone, I just installed the new version of php… and after having to re-write some code because of all the changes, I finally got everything going. I need to add the php_imap.dll file to my stuff and the old one that I had for 4.06 will not work with the new version of php. I am running php