php-windows Digest 13 Aug 2001 15:36:38 -0000 Issue 700 Topics (messages 8794 through 8811): Re: money format 8794 by: Jason Brooke 8795 by: CJD Re: Printing functions 8796 by: CJD Money Field Type Problem ON PHP4 - WinNT - MSSQL7 8797 by: Suhendri Get all available drives ? 8798 by: Markus Fischer 8804 by: lallous 8806 by: Markus Fischer R: [PHP-WIN] Printing functions 8799 by: Darvin Andrioli InterBase + BLOB 8800 by: Sichta Daniel 8801 by: Sven-Olov Larsson 8809 by: Hugh Bothwell 8810 by: Todd Cary problem.why php code used in html can't work 8802 by: goodluckmo 8803 by: lallous 8808 by: Hugh Bothwell Re: Why do I use IE6b to view some page which I wrote i n PHP but I got blank? 8805 by: Ryan Ware download prompt 8807 by: Robert Razniewski Anybody have an example of connecting MSSQL? 8811 by: Jeff Howard Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
> does anyone know > how to convert a > number like 324.42932 to 324.43 format > > is there any special functions in php for this ? There sure are, did you check the manual? http://www.php.net/manual/en/ref.strings.php You can also do it with the % operator instead of using a function if you want. http://www.php.net/manual/en/language.operators.php jason
much easier to use: number_format($number,2); "Jason Brooke" <[EMAIL PROTECTED]> wrote in message 019201c123a6$d4d69320$58c2a4cb@co3040297a">news:019201c123a6$d4d69320$58c2a4cb@co3040297a... > > does anyone know > > how to convert a > > number like 324.42932 to 324.43 format > > > > is there any special functions in php for this ? > > There sure are, did you check the manual? > http://www.php.net/manual/en/ref.strings.php > > You can also do it with the % operator instead of using a function if you > want. > http://www.php.net/manual/en/language.operators.php > > jason > > > > >
I believe the functions are used to write to printers local to the webserver, not the client. "Deleo Paulo Ribeiro Junior" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello! > > I have sent some questions about printing functions and unfortunately I had > no answer. > > Does anyone here ever tryied to use them? > > I use IIS4-NT4 / PHP 4.06 and when I try to use those functions as said in > the chapter LXVIII I allways receive a message saying that those functions > are not available > > Can anyone say which one is my mistake? > > Thank you > Deleo > > > ------------------------------------- > > LXVIII. Printer functions > > These functions are only available under Windows 9.x, ME, NT4 and 2000. They > have been added in PHP 4 (4.0.4). > > Table of Contents > printer_open - Open connection to a printer > printer_abort - Deletes the printer's spool file > printer_close - Close an open printer connection > printer_write - Write data to the printer > > --------------------------------------------- > >
There is a problem when I have a money field in MSSQL 7, and if the value for that field is greater than 99,999,999 it will be truncated to 8 digit when i retrieve that field. ex. Value = 155,000,000 it will truncated to 15,500,000 What I have to do with that problem.. That problem not appear on PHP4 - Win9X - MSSQL7
Hi, can someone tell me where to start looking for a method to get a list of available drives in a system ? Something like array get_available_drives(); ... ty, Markus
You can do something like this untested code: $drives = ""; for ($i=0;$i<25;$i++) { $drives .= chdir(Chr($i + 65) . ":\") ? Chr($i + 65) : ""; } echo "the drives are: $drives"; "Markus Fischer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > can someone tell me where to start looking for a method to get a list of > available drives in a system ? > > Something like > > array get_available_drives(); > > .. > > ty, > Markus > >
Hmm .. I was more thinking about some interal function ... what if I want to know what type of drive it is (fixed, cdrom, ram) ? For now I've written my own get_logical_drives() and get_drive_type() functions but I was wondering if there's allready a way to get the desired information from the system (e.g. COM , but I didn't succeeded). - Markus "Lallous" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can do something like this untested code: > > $drives = ""; > for ($i=0;$i<25;$i++) > { > $drives .= chdir(Chr($i + 65) . ":\") ? Chr($i + 65) : ""; > } > echo "the drives are: $drives"; > > > "Markus Fischer" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > can someone tell me where to start looking for a method to get a list of > > available drives in a system ? > > > > Something like > > > > array get_available_drives(); > > > > .. > > > > ty, > > Markus > > > > > >
Have you inserted "extension=php_printer.dll" in you php.ini ? Darvin > -----Messaggio originale----- > Da: Deleo Paulo Ribeiro Junior [mailto:[EMAIL PROTECTED]] > Inviato: sabato 11 agosto 2001 15.44 > A: Lista PHP > Oggetto: [PHP-WIN] Printing functions > > > Hello! > > I have sent some questions about printing functions and > unfortunately I had > no answer. > > Does anyone here ever tryied to use them? > > I use IIS4-NT4 / PHP 4.06 and when I try to use those functions as said in > the chapter LXVIII I allways receive a message saying that those functions > are not available > > Can anyone say which one is my mistake? > > Thank you > Deleo > > > ------------------------------------- > > LXVIII. Printer functions > > These functions are only available under Windows 9.x, ME, NT4 and > 2000. They > have been added in PHP 4 (4.0.4). > > Table of Contents > printer_open — Open connection to a printer > printer_abort — Deletes the printer's spool file > printer_close — Close an open printer connection > printer_write — Write data to the printer > > --------------------------------------------- > > > > -- > 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: [EMAIL PROTECTED] > >
Hi, Does anybody know where can I get description for InterBase functions ibase_blob_xxxx ? I looked at www.php.net but no luck !! Or does somebody have any example how to insert image via form to InterBase database in PHP ? cfg: w2k, Apache 1.3.20, php404pl1 IB 6.0 Thank you DAN
Hi Dan! http://www.borland.com/interbase/ Documentation seems to be a god place. God luck from Sven-Olov "Sichta Daniel" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Does anybody know where can I get description for InterBase functions > ibase_blob_xxxx ? I looked at www.php.net but no luck !! Or does somebody > have any example how to insert image via form to InterBase database in PHP ? > cfg: w2k, Apache 1.3.20, php404pl1 IB 6.0 > > Thank you > DAN
"Sichta Daniel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Does anybody know where can I get description for InterBase functions > ibase_blob_xxxx ? I looked at www.php.net but no luck !! Or does somebody > have any example how to insert image via form to InterBase database in PHP ? > cfg: w2k, Apache 1.3.20, php404pl1 IB 6.0 ... I don't think PHP has any functions named like that; I assume you'll have to stick to SQL.
As I recall, there is a reference to this on the http://www.php.net site. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED]
Sorry ,i am first use php. I use php code in fontpage like use asp,but i found it don't work . when i change the little program name from test.htm to test.php . The program work correct. Why ? Must it suffix is .php?
Yes. It must be. PHP in order to get parsed by the server. It depends on the Web Server, you can configure it to parse also HTML files. "Goodluckmo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry ,i am first use php. I use php code in fontpage like use asp,but i > found it don't work . > when i change the little program name from test.htm to test.php . The > program work correct. Why ? Must it suffix is .php? > >
"Lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes. It must be. PHP in order to get parsed by the server. > It depends on the Web Server, you can configure it to parse also HTML files. > > "Goodluckmo" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Sorry ,i am first use php. I use php code in fontpage like use asp,but > i > > found it don't work . > > when i change the little program name from test.htm to test.php . The > > program work correct. Why ? Must it suffix is .php? ... it depends on your mime-type settings. You can set anything you like to be treated as a php file; I have seen sites where .html is processed as .php so users' bookmarks won't be broken. But the most common extensions are .php, .php3, .php4, and/or phtml.
M$ final release software is buggy, what makes you think a beta of IE would work flawlessly consistently? > -----Original Message----- > From: jim [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, August 12, 2001 11:57 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Why do I use IE6b to view some page which I wrote > in PHP but I got blank? > > I use M$IE6b browser to view some page in my compute which I wrote in > PHP,some time I got blank,some time I got right. > > My PHP version is 4.0.6,Mysql is 3.23.33,I use WINDOWS 2000 Adv.server > > > > -- > 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: [EMAIL PROTECTED]
Hi all. I have found a similar thread in the list archive, but can't find the solution. Im using Apache + PHP4 + Windows98. I have configured both Apache and PHP as described in manuals. After startig 127.0.0.1/scripts/myfirstphp.php in my browser I get the download prompt from Windows instead of php-results. What should I do? Regards rr
I have been extremely successful using ASP and MS-SQL for a long time, but am making a transition to PHP. I've tried connecting to the SQL Server database, but have been unsuccessful. The way a data source is called in ASP is: database.open "Provider=SQLOLEDB;User Id=user;Password=password;Initial Catalog=mydatabase;Data Source=DATABASESERVER\SQLSERVER" How can I translate this into PHP?