Search found 14 matches

by ongray
Sun May 15, 2005 8:21 pm
Forum: PHP - Code
Topic: HTML --> MS Word
Replies: 4
Views: 813

did you try the COM Object for Windows only?
more detail : http://php.bieffe.org/manual/en/ref.com.php
by ongray
Sun May 15, 2005 8:13 pm
Forum: PHP - Code
Topic: COM Object
Replies: 1
Views: 597

COM Object

As I understand, COM functions can only be use with Windows ver. And, there is no installation needed. but refering to the statement at http://php.bieffe.org/manual/en/ref.com.php "You are responsible for installing support for the various COM objects that you intend to use (such as MS Word); w...
by ongray
Tue Oct 19, 2004 4:51 am
Forum: PHP - Code
Topic: [SOLVED] read and write on MS Excel file
Replies: 3
Views: 700

SOLVED haha... I got it.
http://www.phpbuilder.net/columns/alain ... hp3?page=3
this link give an example on how to do it. It's time for me to try it out.
Thanks anyway. :)
by ongray
Mon Oct 18, 2004 9:54 pm
Forum: PHP - Code
Topic: [SOLVED] read and write on MS Excel file
Replies: 3
Views: 700

read and write on MS Excel file

Hi, I have this excel file that i desgin to help me calculate the pricing of quotation. It is a quite complex. It consists of a few tables of constants and have a total of 200+ rows. Anyway, I am trying to keep every quotation into a Database. How can I make use of the current excel file to calculat...
by ongray
Tue Sep 07, 2004 11:33 pm
Forum: Installation and Configuration
Topic: CA with Apache server
Replies: 1
Views: 2311

CA with Apache server

hi,
Can Apache server handle CA (certificate)? If yes, can u tell me how to configure it and generate the CA for the browse.
Thanks first.
by ongray
Tue Sep 07, 2004 8:32 pm
Forum: Databases
Topic: Design of the table
Replies: 6
Views: 1401

Thanks for the comment and ideas. i need to keep track a set of status of the photocopy machine daily. the status include:- number of paper, toner,... loaded number of pages copied, number of person served,... the colunm will have 366days so that year with 366days is included. i notice when the stat...
by ongray
Sun Sep 05, 2004 11:37 pm
Forum: PHP - Code
Topic: While loop question
Replies: 6
Views: 3515

if you need to pass 29 items and hv access to form coding. Try this... run a for loop on yr form for($n = 1; $n <= 29; $n++) { <input name=Q type=text ... > <input name=P type=text ... > <input name=D type=text ... > } 'OnSubmit' the form, i use javascript to alter the name of the variable to ... fo...
by ongray
Sun Sep 05, 2004 11:12 pm
Forum: Databases
Topic: Design of the table
Replies: 6
Views: 1401

Design of the table

hi, does anyone know if the size of column in a table will affect the database performance? for example, if i need to keep track of the status of the machines for 365 days every year. The table can be +-------+--------+--------+ |machin| day| year| +-------+--------+--------+ And, I have 365 rows fo...
by ongray
Fri Sep 03, 2004 10:02 pm
Forum: PHP - Code
Topic: Simple Question...
Replies: 11
Views: 12543

this will work too...
$price = 19.99;
$cent = substr($price, -2); // returns "99"
by ongray
Fri Sep 03, 2004 9:52 pm
Forum: PHP - Code
Topic: Specify where to store upload files
Replies: 20
Views: 6475

this is what i have done for my upload i created a directory called "mydir" at c: drive of my server. All the upload will be stored there. <?php function handleupload($e) { if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { $realname = $_FILES['userfile']['name']; copy($_FILES['userf...
by ongray
Wed Sep 01, 2004 10:02 pm
Forum: PHP - Code
Topic: how to read a txt file from client's drive
Replies: 12
Views: 3708

if i want the user to be able to access the server from the assigned PC only, what is a good approach to take?
by ongray
Wed Sep 01, 2004 8:35 pm
Forum: PHP - Code
Topic: how to read a txt file from client's drive
Replies: 12
Views: 3708

There are 2 wild reasons that i m looking at. 1st, if i read the file from the user's A: drive. As usual, the user need to provide username and password to get access. I have another key which is generated by the system and tie to the user account. The key could be 512 characters long, or longer. I ...
by ongray
Wed Sep 01, 2004 4:07 am
Forum: PHP - Code
Topic: how to read a txt file from client's drive
Replies: 12
Views: 3708

Thank a lot for the response.

can i have it store in the SSL/certificate? i am running my PHP in a Windows server, is this possible? if yes, i have problem on how to get this certificate things working.
by ongray
Wed Sep 01, 2004 1:20 am
Forum: PHP - Code
Topic: how to read a txt file from client's drive
Replies: 12
Views: 3708

how to read a txt file from client's drive

HI all, Does any know how to read a txt file from client's C: or A: drive, without the user knowing? I m developing an application using PHP, and I m stuck when i try to read a special txt file (that i keep in their PC) from the user's PC. If I let the user browse the directory, I know i can use thi...