[PHP-WIN] incomplete phpsrvlt.jar

2003-01-28 Thread WalWit
Hello, Configuration: Windows 2000 Professional Apache 1.3 Tomcat 4.0 PHP 4.3.0 I'm trying to run PHP 4 as a servlet under Tomcat. However the phpsrvlt.jar only contains net.php.reflect.class but according to configuration information it should also have servlet.class and formatter.class. Where

[PHP-WIN] parsing tricky text file

2003-01-28 Thread George Pitcher
Hi, I'm looking for some advice. One of my suppliers (big publisher) has sent me a file containing records of their books. The file is anabsolute nightmare. There are approx 8000 records and the format is like this (actual record): -TF eBook data rec.1534 @ 27/01/2003 VISBN 0203445570 OSBN

php-windows Digest 28 Jan 2003 10:01:46 -0000 Issue 1559

2003-01-28 Thread php-windows-digest-help
php-windows Digest 28 Jan 2003 10:01:46 - Issue 1559 Topics (messages 18123 through 18129): Re: Redirecting to index.php 18123 by: cybot 18124 by: Brian 'Bex' Huff Re: How do i load my new activex dll? 18125 by: Brian 'Bex' Huff Re: php-win2k error in apache as

RE: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread George Pitcher
J.Veenhuijsen wrote: What I would do in this case is writing my own little parser program to spool it in to a MySQL database. I often use Delphi for this. What is the record delimiter? The only way that you know a new record starts is the line starts with '-' ('-TF eBook data rec.1534 @

RE: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread George Pitcher
Jochem, Yes. Where a book has multiple authors, then there is a USAU field for each, likewise for editors, levels, and quotes. And that is only from the 150 records I've looked at. george -Original Message- From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 10:56

Re: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread J.Veenhuijsen
Then the authors/levels/quotes should go in a seperate table all linked to the book id (eg ISBN number wich is unique for every book) Is this the only way the publischer can produce their data. I mean it must come out of some DB like system. Jochem George Pitcher wrote: Jochem, Yes. Where a

RE: [PHP-WIN] Redirecting to index.php

2003-01-28 Thread Jill . Ramonsky
The simple answer is that is just happens, all by itself, as if by magic. All you have to do is create a file called index.php, and delete any files called index.htm or index.html. (You might also want to make sure you don't have any files called stuff like home.html or default.html, as some web

RE: [PHP-WIN] maximun execution time

2003-01-28 Thread Jill . Ramonsky
The function you want is called set_time_limit() Jill -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 5:36 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] maximun execution time Is there some way to get around the time limit of maximum

[PHP-WIN] connection to ms sqlserver 7

2003-01-28 Thread ps_jkt
hi ... pls tell me how to connect ms sql server 7 ? thank fendy -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] constants in functions

2003-01-28 Thread Bobo Wieland
if you look at, for example, htmlentities(), it can take a constant as argument (the quote_style parameter). How would you do this in a user define function? like this (?) : function foo($bar=0) { define(ALL,0); define(FIRSTHALF,1); define(SECONDHALF,2); switch ($bar) {

[PHP-WIN] Submit without Submit

2003-01-28 Thread Renger van Nieuwkoop
Dear all Is it possible to have php refresh a form without using a submit button (I want to have a form where people can enter data and see after entering the data what happens to the total. As they have to enter a lot of data, it is rather ennoying to push everytime the submit -button. Renger

RE: [PHP-WIN] Submit without Submit

2003-01-28 Thread Svensson, B.A.T. (HKG)
Dear all Is it possible to have php refresh a form without using a submit button (I want to have a form where people can enter data and see after entering the data what happens to the total. As they have to enter a lot of data, it is rather ennoying to push everytime the submit -button.

Re: [PHP-WIN] Submit without Submit

2003-01-28 Thread Luis Ferro
That is impossible to do in PHP, because what you are asking is to do a client side thing (which can be done with javascript) and PHP works in the server side. Cheers, Luis Ferro TelaDigital.net Renger van Nieuwkoop wrote: Dear all Is it possible to have php refresh a form without using a

[PHP-WIN] Re: How do i load my new activex dll?

2003-01-28 Thread Wayne
OK i tried to use the function of the win api i tried the com, and guess it wont work :( But i get the following error, now, apache only works as a multi threaded webserver doesn't it? Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in

[PHP-WIN] Is this possible

2003-01-28 Thread Wade
01282003 1248 CST Is this even possible. You create a page with two text fields= Name and Email and a submit button. In the form action=https://www.whatever.com; method=post can you submit this to Two different locations like form action=https://www.whateverA.com;

Re: [PHP-WIN] Is this possible

2003-01-28 Thread Stephen Edmonds
No, however... you could use include( whatever.php ); so that the form submits to one page, which then includes both pages and does whatever it is you need. Why you want to submit to two places is a mystery though... Stephen - Original Message - From: Wade [EMAIL PROTECTED] To: [EMAIL

[PHP-WIN] HEEEELP! CAN'T WRITE ON A FILE

2003-01-28 Thread phplam
Hello ! I'm in a mess. Please help me. Every time I tried to write with fwrite or fputs in a file, I get an error on windows nt sp6 , ie6 from Doc. Watson saying that Apache.exe makes an application access error . Filesystem functions: is_readable, is_writable,fopen,fclose are ok . I can create,

[PHP-WIN] Looking for something like floor() only to round to a nearest divisor

2003-01-28 Thread Asendorf, John
I'm looking for a function like floor() only I want it rounded to a number that is divisible by another number. For instance, if the divisor is 6, alt_floor ( 15 , 6 ) would yield 12 where 15 is the input and 6 is the divisor. Or, alt_floor ( 174 , 20 ) would yield 160... Anyone already do

[PHP-WIN] Re: Looking for something like floor() only to round to a nearestdiv

2003-01-28 Thread cybot
just use $floor_val = 6 * ((int) 15/6) John Asendorf wrote: I'm looking for a function like floor() only I want it rounded to a number that is divisible by another number. For instance, if the divisor is 6, alt_floor ( 15 , 6 ) would yield 12 where 15 is the input and 6 is the divisor. Or,

RE: [PHP-WIN] Re: Looking for something like floor() only to round to a nearest div

2003-01-28 Thread Asendorf, John
I'm not sure if you understood what I was trying to do... I went ahead a wrote something... if there's something else out there I should use, let me know: //this only works for positive numbers where input divisor (so far)!! function alt_floor ( $input , $divisor ) { if ( $input %

[PHP-WIN] Looking for something like floor() only to round to a nearest div isor

2003-01-28 Thread Asendorf, John
Scratch that other one, came up with something quite a bit better for speed on large numbers: // Obviously only works with intergers (can be fixed but don't need to for my application) // Obviously only works where $input $divisor function alt_floor ( $input , $divisor ) { if ( $input %

[PHP-WIN] Mail newbie Question

2003-01-28 Thread Duncan
Hi All, Is it possible to create a page where visitors can for example submit their email address and a list of their demands, then the page mails it to a support address? Would I have to use a mail server of any kind to send the emails? Where could I find an example script that could do this?

RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div

2003-01-28 Thread Bryan Pal
--- Asendorf, John [EMAIL PROTECTED] wrote: $floor_val = 6 * ((int) 15/6) // yielded 15 for me... not what I was going for. This returned 15 for me, too. But this does what you want: $floor_val = 6 * floor(15/6) Cheers! Bryan -Original Message- From: cybot [mailto:[EMAIL

RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div

2003-01-28 Thread Asendorf, John
Jeez... that was too simple... I like my convoluted 15 line solution better! (ok... just kidding!) Much better than mine and much more efficient too. Thanks, John - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED

Re: [PHP-WIN] Re: Looking for something like floor() only to round to a nearest div

2003-01-28 Thread cybot
Bryan Pal wrote: --- Asendorf, John [EMAIL PROTECTED] wrote: $floor_val = 6 * ((int) 15/6) // yielded 15 for me... not what I was going for. This returned 15 for me, too. But this does what you want: $floor_val = 6 * floor(15/6) es, sorry was my mistake, correct is: $floor_val =

Re: [PHP-WIN] Mail newbie Question

2003-01-28 Thread Cam Dunstan
Yep - check out the mail() function which will do exactly that. If you are developing on your own machine which may not be running a mail server, configure php to use your ISP`s mail server. - Original Message - From: Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

php-windows Digest 28 Jan 2003 22:46:04 -0000 Issue 1560

2003-01-28 Thread php-windows-digest-help
php-windows Digest 28 Jan 2003 22:46:04 - Issue 1560 Topics (messages 18130 through 18157): Re: parsing tricky text file 18130 by: George Pitcher 18131 by: George Pitcher 18132 by: J.Veenhuijsen Re: Redirecting to index.php 18133 by: Jill.Ramonsky.Aculab.com

Re: [PHP-WIN] Submit without Submit

2003-01-28 Thread Cam Dunstan
Only possible with javascript as far as I now wherein you do the calcs or validation at the browser end. Other possibility is a java applet but PHP being server side does not have any inherent ability beyond ordinary html at the users end. nothing to stop you using php to generate the

Re: [PHP-WIN] Is this possible

2003-01-28 Thread Cam Dunstan
Don`t think so Wade, the posted data would be sent only to whateverB dot com. Which domain was going to respond to the user by the way? since only one can, the other is purely for the collection of data presumably - have a look at fopen() and fsockopen() in the manual, a solution might come to

[PHP-WIN] displaying a numeral

2003-01-28 Thread Pat Johnston
Hi I have a field in my MySQL database that's a decimal where I have figures of millions without the decimal point - i.e - 150 Is there a function in PHP to display this figure as a $ amount - i.e - $1,500,000 I searched PHP manual without finding anything. If there is something in the

[PHP-WIN] windows installation issues

2003-01-28 Thread Jason Thibeault
I'm trying to install php 4.3.0 for Windows on a Win2k box with SP3. Everything installs fine until the end where I get the folowing error: Due to a missing OCX control on your system, this installer is unable to configure your webserver. But, PHP is now installed on your system. You can

RE: [PHP-WIN] How do i load my new activex dll?

2003-01-28 Thread Sean Malloy
Why would you use a com object to do an md5 hash? php has an inbuilt md5() function. -Original Message- From: Wayne [mailto:[EMAIL PROTECTED]] Sent: Monday, 27 January 2003 8:37 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] How do i load my new activex dll? hey ya, I have made a new

[PHP-WIN] htpasswd question

2003-01-28 Thread Dominik Wittenbeck
I am currently trying to create a .htpasswd file for apache using PHP and the crypt() on Win2k. I can generate the file alright but it does not work. I have looked into some classes as well and all use the crypt() function. The reason for this not working is probably the algorithm used because the

Re: [PHP-WIN] htpasswd question

2003-01-28 Thread Dash McElroy
I would try something like this instead: $params = escapeshellarg($params); $output = system(c:\path\to\htpasswd $params); //check for output errors or what not There very well could be a better solution (especially since I have not tried the above code...). I remember seeing somewhere that the

Re: [PHP-WIN] displaying a numeral

2003-01-28 Thread Pat Johnston
Thanks Frank, The $english_format_number = number_format($number); line works a treat. Cheers, Pat Frank M. Kromann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://php.net/number_format is what you are looking for. - Frank Hi I have a field

[PHP-WIN] Help with converting data type from Database in PHP

2003-01-28 Thread Robert Trembath
Has anyone done 16-bit integer conversion to decimal in PHP or know the formula to convert the data. Below is an example of what oracle gives me and what I need to convert it to. Any help would be greatly appreciated. Thanks, Robert I get this in unsigned 16-bit Integer format:

[PHP-WIN] RE: [PHP-DB] Help with converting data type from Database in PHP

2003-01-28 Thread SELPH,JASON (HP-Richardson,ex1)
I think I remember something about pack and unpack working with aunti endian, uncle endian and all the little endians. Jason -Original Message- From: Robert Trembath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 9:02 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

Re: [PHP-WIN] Is this possible

2003-01-28 Thread Bobo Wieland
You could allways call a javascript when you submit the form. the javascript could look something like this for calling two frames: function loadFrames(form,frame1,page1,frame2,page2) { var query = ?name= + form.field1.value + email= + form.field2.value;