Re: [PHP-WIN] Header function on IIS vs. Apache

2001-01-10 Thread Phil Driscoll
>I am tweaking a PHP web app developed on Apache/Linux/PHP3 to work on >IIS/Win2k/PHP4. I have encountered an unusual situation with the header() >function in PHP. When a user submits a form, depending on the results they >are redirected to a certain URL using the Header function (usually somethin

Re: [PHP-WIN] Sorry, answered too quick [waas: SET in MSSQL-query]

2001-01-10 Thread Thomas
Hello Frank, thanks for your answer! Are these new functions the offered Source from guy somewhere in the List ?:) But now the serious question: To be able to change to CGI, I need to upgrade php4.04 (u know, GD and CGI in 4.03). Now I want to compile the 4.04 Release-Source, but with the php

RE: [PHP-WIN] File upload not working

2001-01-10 Thread Asendorf, John
What error are you getting? I'm doing uploads but with different code... these functions are new to me. The first thing I would check is the slashes in your move function, perhaps they need to be forward slashes? - John Asendorf - [EMAIL PROTECTED] Web Applications Developer

[PHP-WIN] decimal numbers

2001-01-10 Thread afan
Hi all, short and simple question: >From total of 123 elements 79 are ok. What percent? $Total = 123; $ok = 78; $Percent = (100 / 123) * 78; //63.41463414... But I need just two decimal: 63.41 I'm doing it this way: $Percent = $Percent * 10;//6341.463414... settype($Percent, "

php-windows Digest 10 Jan 2001 16:08:14 -0000 Issue 389

2001-01-10 Thread php-windows-digest-help
php-windows Digest 10 Jan 2001 16:08:14 - Issue 389 Topics (messages 4896 through 4902): Re: php_mssql70.dll Access Denied 4896 by: Mauro Boschi File upload not working 4897 by: MacBane 4901 by: Asendorf, John Equivalent ways to populate an array. 4898 by:

Re: [PHP-WIN] decimal numbers

2001-01-10 Thread Tom
$Percent=sprintf("%0.2f",$Percent); afan wrote: > Hi all, > short and simple question: > > >From total of 123 elements 79 are ok. What percent? > > $Total = 123; > $ok = 78; > $Percent = (100 / 123) * 78; //63.41463414... > > But I need just two decimal: 63.41 > I'm doing it this way: >

[PHP-WIN] RE: decimal numbers

2001-01-10 Thread Simon Willison
You need to use sprintf or printf to format the output. Here's the necessary code: $Percent = sprintf ("%0.2f", $Percent); If you use printf it will print the result, whereas sprintf (as used above) returns the string and lets you assign it to a variable instead. More info here: http://www.ph

RE: [PHP-WIN] RE: decimal numbers

2001-01-10 Thread Boget, Chris
> You need to use sprintf or printf to format the output. Here's the > necessary code: > $Percent = sprintf ("%0.2f", $Percent); > If you use printf it will print the result, whereas sprintf > (as used above) returns the string and lets you assign it to a variable > instead. > More info here:

[PHP-WIN] Why Do Forms Expire

2001-01-10 Thread Flint Doungchak
Hi All, Although there are no stupid questions, I have one. Can anyone explain why pages exipre in IE 5.5? For instance, when I click a submit button and then click back, say so people can edit the dang form, the message of Warning: page expired thingy comes up. Is there a way to keep that from

[PHP-WIN] Class storage questions

2001-01-10 Thread IThelp
I have two classes. Class box is basically a sub class that is only called from the Class Print. The problem is I would like to have an array in Class Print that will store instances of Class box. example class Print{ var arrayofboxes = array(); //other stuff $tempbox = $this

Re: [PHP-WIN] Class storage questions

2001-01-10 Thread Toby Butzon
> example > > class Print{ > > var arrayofboxes = array(); ...arrayofboxes is an empty array? Where does it get anything put in it? --Toby -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

[PHP-WIN] Search Engine

2001-01-10 Thread IThelp
I am looking for a search engine that will shift through a sql server 7.0 for data. If anyone knows of any packages like that please let me know. Ryan Conover -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP-WIN] Search Engine

2001-01-10 Thread Toby Butzon
It's not that hard to implement, really... the sifting should all be done by the server... all you have to do is formulate a good query... SELECT * FROM myTable WHERE textField LIKE '%search string%' --Toby - Original Message - From: "IThelp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP-WIN] getallheaders

2001-01-10 Thread Tait Grove
is there a function that works like the apache module 'getallheaders' in IIS?

[PHP-WIN] FDF Cache Question

2001-01-10 Thread Flint Doungchak
I am working on developing a FDF document with data from a database. The problem I am experiencing is when a user clicks on the link to my fdf generator, they are able to dnload the fdf document, and the browser opens acrobat reader. The error occurs within acrobat, simly saying that the file do

[PHP-WIN] Problem with CURSOR under MS SQL 7

2001-01-10 Thread Mauro Boschi
Hi, I'm trying to understand why something like this: DECLARE crs CURSOR KEYSET FOR SELECT title FROM article WHERE pub_id = 1 OPEN crs FETCH ABSOLUTE 3 FROM crs DECLARE @var INT SET @var = 0 WHILE (@var<10) BEGIN FETCH NEXT FROM crs SET @var = @var +1 END CLOSE crs DEALLOCATE crs Doesn't work

php-windows Digest 11 Jan 2001 06:25:55 -0000 Issue 390

2001-01-10 Thread php-windows-digest-help
php-windows Digest 11 Jan 2001 06:25:55 - Issue 390 Topics (messages 4903 through 4915): Re: decimal numbers 4903 by: Tom 4904 by: Simon Willison 4905 by: Boget, Chris Attaching to a PostgreSQL database on a Linux box from a VB app o n NT4 4906 by: Brinkman,

[PHP-WIN] directory/file comparing

2001-01-10 Thread phobo
Has anyone out there written, or know of sorce for a directory comparing algorythm? I want it to compare two folders (and their subfolders) on: - different filesize - different time/date modifed - files which are not found in the other folder When it outputs the data I want it to show two col

[PHP-WIN] mail() - Failed to connect

2001-01-10 Thread Vlad
Hi All why mail($to, $subj, $message); fails with warning Failed to connect at line ... Thanks Vlad... -- PHP Windows 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: [EMA

[PHP-WIN] Attaching to a PostgreSQL database on a Linux box from a VB app on NT4

2001-01-10 Thread Brinkman, Theodore
I think the subject pretty much says it all. I need help setting up things on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL database on a Linux box. Any help appreciated. - Theo Sorry about cross-posting to the two lists, but I figured it was pertinent to bo

Re: [PHP-WIN] Attaching to a PostgreSQL database on a Linux box from a VB app on NT4

2001-01-10 Thread alain samoun
See WDDX Alain "Brinkman, Theodore" wrote: > > I think the subject pretty much says it all. I need help setting up things > on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL > database on a Linux box. > > Any help appreciated. > > - Theo > > Sorry about cro