[PHP] cooperation

2001-11-24 Thread Boris_Lipner


Dear Sirs,

For some technical reasons we have partially lost our Data Bank of art galleries.
Please, write the address of your website, so that we could continue our cooperation.
Our site is http://www.gallery-a.ru/
  

-- 
Best regards,
 Boris_Lipner  mailto:[EMAIL PROTECTED]



-- 
PHP General 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]




[PHP] Help needed developing Logic!

2001-11-24 Thread Thomas Edison Jr.

Hi,

I've made a PHP Chatroom and i need help developing
the logic behind the "Private Chat" feature.
I'll first explain briefly how my chat works. 
It's a very very simple Chat using just DB and nothing
else. 

User enters.. his name,date goes into Chat.
QueryString passes his name to main area from where he
can post messages with the name as the main link
between his messages & database. 
You can view it at 
http://www.mjimm.com/index.php3?page=chat/mjchat.html

Please choose "PHP Chat" from above link.

Anyway, now i need to develop a system where one can
private chat with a user. So that by selecting the
User's name, when the person sends a message.. it is
displayed only on the Selected User's chat.. and not
anyone else.. or perhaps some other way. 

Can anyone help?
Ask me any question if you wish to clarify further how
my chat works!!

Cheers & Glory,
T. Edison jr.



=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

-- 
PHP General 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]




[PHP] UDP Sockets (networking)

2001-11-24 Thread Blaster

Hi,

I have a problem with UDP sockets in PHP. What I want to do is the 
following, i send a UDP message
to a server, and a reply should come instantly back. Now, the length of the 
message returned to me
is unknown. It can be anywhere from 1 to 8192 (or more) bytes. However, 
some strange problems
arise when i try to do this.

I first open a udp socket to my server. The socket handle is valid, and I 
send off my message.
(my socket is now in blockingmode, opened by fsockopen).

A message is returned to me and I receive one byte at the time in a loop. 
The receive procedure I
use is "fgetc". It states in the manual that this function retrieves 1 
byte, if the file pointer is at the
end of the stream, it should return false.

This is my code so far:
$query_handle = fsockopen("udp://$host", $port, &$errno, &$errstr, $timeout);
$request = "mymsg";
$databuffer = "";

if ($query_handle) {
  fwrite($query_handle, $request);
  $do = true;

   while ($do) {
$tempdata = fgetc($query_handle);
if (!$tempdata) {
 $do = false;
} else {
 $databuffer .= $tempdata;
}
   }

  echo("Received " . strlen($databuffer) . " bytes of data.");
  fclose($query_handle);
} else {
  echo "Invalid socket handle - $errstr.\n";
}

Now, the fgetc doesn't seem to return false. Ever? Instead it sits there 
and waits for another byte, but since
there is no more data, my script sits here until the script times out (30 sec).



In short,
How can I get the number of bytes waiting for me in the socket buffer (so I 
can use fread to get all in one)
OR
How can I set a timeout for fgetc? For example, it should wait for a char 
for x seconds.



Please help. I'm getting extremly frustrated about this now!

I've tried fread($mysockhandle, 8192) to receive all data but it doesn't 
work either. It seems like
fread also waits until 8192 bytes is in the buffer, THEN returns. But since 
i cannot assume the
message is a constant size, this is no good for me.


-- 
PHP General 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]




Re: [PHP] Is Freetype needed for Gd? Or just truetype fonts?

2001-11-24 Thread Michael A. Peters

Hi.
If you are going to be doing text stuff with gd- you definately want
FreeType.
You want t1lib as well.

I'm not positive, but I think your gd library needs to be compiled against
FreeType.

Here is the part of my configure script for gd-

   --with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-t1lib=/usr/local \

my gd library is compiled against libpng, libjpeg, and freetype.
It is not compiled against t1lib but adding t1lib in the configure script
gives me t1lib in my php gd.

On Sat, 24 Nov 2001 03:43:36 EST
[EMAIL PROTECTED] mentioned:

> Hello. What I mean is, I want to manipulate images
> that exist, and those that I create
> 
> To use truetype fonts so the default font text
> is not all that's required, but more importantly
> I want to do all the stuff gd/php can do
> 
> so, I wonder if *just* having true type font support
> is enough, or is freetype so special, I must get that
> with libpng/gd and the rest?
> 
> IN order to make/modify images, text on those images
> specifically. I am just confused that's all
> 
> Thanks for your time
> 
> Joel
> 
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
PHP General 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]




RE: [PHP] MySQL function in a Table's Column

2001-11-24 Thread Webmaster M&B Trading Co., SA de CV

Look Pared, basically, if you want to do that, is done in the program
portion of it through variables, that way every time it reads the data,
it calculates the output. If you do the math, and then save it to the
record, it might not be accurate at all times. I'm of course not an
expert, so I will await input from someone else, but I suggest you read
about variables, and math processes in the Handbook.

Plus, if you change the pricing, you don't need to recalculate your
whole inventory value, cause it is always accurate.

As I said, look in the variables, and add it to the program portion of
it.

Elliot J. Balanza
CEO
M&B Trading Co., SA de CV


-Mensaje original-
De: Matt [mailto:[EMAIL PROTECTED]] 
Enviado el: Sábado, 24 de Noviembre de 2001 17:55
Para: [EMAIL PROTECTED]; Jared Howard
Asunto: Re: [PHP] MySQL function in a Table's Column

> I basically want to make a column that will do math to other columns,
like
in
> a spreadsheet program.  Is it possible?  And if so, what do I look
for?
> And if you can give me an example that would be great.

No, you can't do that, you store the raw data, and do the math when you
retrieve it.  It's bad database design to store summary data (i.e. a
total
order amount vs calculating from detail lines), or data that can be
derived
within a row itself by caclulating from other fields.  The reasons are
basically that it wastes space in the db, and that the calculated values
become out of balance (and require cleanup programs/scripts to realign
them).  Sometimes one must store this type of info for efficiency
purposes,
and in those cases, the value is calculated (by you) and then stored in
the
db; but it should be avoided as much as possible because of the db
integrity
issue noted above.

In a spreadsheet it's different, right, the value isn't stored, it's
calculated when the sheet is modified.  That's what you need to do.
Retrieve
the row, calculate the value in the script, and display it.  It looks to
the
end-user like it was in the db, but only the basic info is there, such
as
qty, and unit price.  The extended price is calculated on demand as
needed
from those two basic entities.


-- 
PHP General 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]


--
PHP General 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]




[PHP] MySQL function in a Table's Column

2001-11-24 Thread Jared Howard

I'm not really sure what I should be looking for in the MySQL manual.  I
basically want to make a column that will do math to other columns, like in
a spreadsheet program.  Is it possible?  And if so, what do I look for?
And if you can give me an example that would be great.


-- 
PHP General 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]




Re: [PHP] pipe email to php?

2001-11-24 Thread Michael Geier

The real question is why?  What is the purpose of piping the email to a
PHP script?

Are you trying to insert emails into a database?
Are you trying to deal with emails automatically based on subject?
Are you trying to deal with emails from a specific source?

The answers to these questions will change how a PHP script deals with the
input.

Also, you are piping the information to php://stdin and using fgetc() to
grab the data, correct?

.mg

[EMAIL PROTECTED] wrote:
> Hey,
> Ive looked.. and tried... nothing seems to work.. any ideas on how to
pipe
> email to a php script? Ive already setup the valias.. the big question
is,
> how to process the info when the email comes in..
> kunal
> 
 


-- 
PHP General 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]




[PHP] Stripping Unwanted Characters

2001-11-24 Thread Robert Miller

I'm posting this (see below) for two reasons: 1. so that others may benefit, and 2. to 
invite feedback on my code (PHP is the first language I have learned... and I've only 
been doing this for a week or so).

Cheers, Rob

P.S. Has anyone found a good way to parse variables to validate specific formats? For 
example: Canadian postal codes (ZIP codes) are like A1A-1A1. Driver's Licences are 
A123456789.


Problem:
Unwanted characters are often added by users of web based forms. This causes problems 
when storing the data, especially given the constraints of a database such as MySQL.

Solution:
Evaluate each variable, character by character, and (if true) add it to a new variable 
which may be used.







--
PHP General 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]




Re: [PHP] pipe email to php?

2001-11-24 Thread John S. Huggins

The forum PHP program package Phorum has something like this available.  I
believe it is a file called phorummail.php.

I remember using it as a basis for another program and it really does a
good job of indentifying and splitting headers and body of emails into
assorted variables.

On Sun, 25 Nov 2001, Kunal Jhunjhunwala wrote:

>-Hey,
>-Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe
>-email to a php script? Ive already setup the valias.. the big question is,
>-how to process the info when the email comes in..
>-kunal
>-
>-
>--- 
>-PHP General 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]
>-

**

John Huggins
VANet
7101 Oriole Avenue
Springfield, VA 22150
703-912-6453
703-912-4831 fax

[EMAIL PROTECTED]
http://www.va.net/

**


-- 
PHP General 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]




[PHP] Can PHP take input from the command prompt interactively?

2001-11-24 Thread David Yee

Can I write a command line PHP script like the following:

php -q test.php

Output: 

==
1)choice A
2)choice B
3)choice C

Please enter an option: 1
==

Thanks.

David





Re: [PHP] PHP SECURITY

2001-11-24 Thread Kurt Lieber

On Saturday 24 November 2001 04:24 am, [EMAIL PROTECTED] wrote:

> But when any of our user use readdir and other commands for manipulating
> with directories - this user can read scripts of others.
>
> Do you know what to do ?

1) Read the PHP manual chapter on security:

http://www.php.net/manual/en/security.php

2)  Check the archives of this mailing list.  This topic has been discussed 
many times before:

http://marc.theaimsgroup.com/?l=php-general


-- 
PHP General 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]




php-general Digest 24 Nov 2001 15:53:00 -0000 Issue 1013

2001-11-24 Thread php-general-digest-help


php-general Digest 24 Nov 2001 15:53:00 - Issue 1013

Topics (messages 75604 through 75612):

Hour Calculation
75604 by: neeraj

Is Freetype needed for Gd? Or just truetype fonts?
75605 by: Joelmon2001.aol.com
75609 by: Michael A. Peters

Variable matching...
75606 by: Ashley M. Kirchner

PHP SECURITY
75607 by: outbound.centrum.cz
75612 by: Kurt Lieber

UDP Sockets (networking)
75608 by: Blaster

cooperation
75610 by: Boris_Lipner

Help needed developing Logic!
75611 by: Thomas Edison Jr.

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]


--

--- Begin Message ---

Hi List,

!! Please help !!
My problem,
1) My Start time for a xyz file is 11.15 am 14-11-2001
2) My End Time for xyz file is 01.20 pm  14-11-2001
3) Total number of hours on the file is 02.05 Hours.

1) Question is how do i calculate the difference in Hours as the result is in point 
number 3 ?

Please help me Urgent

!!! Thanks in advance !!!

Warm Regards
Neeraj Rattu

--- End Message ---
--- Begin Message ---

Hello. What I mean is, I want to manipulate images
that exist, and those that I create

To use truetype fonts so the default font text
is not all that's required, but more importantly
I want to do all the stuff gd/php can do

so, I wonder if *just* having true type font support
is enough, or is freetype so special, I must get that
with libpng/gd and the rest?

IN order to make/modify images, text on those images
specifically. I am just confused that's all

Thanks for your time

Joel


--- End Message ---
--- Begin Message ---

Hi.
If you are going to be doing text stuff with gd- you definately want
FreeType.
You want t1lib as well.

I'm not positive, but I think your gd library needs to be compiled against
FreeType.

Here is the part of my configure script for gd-

   --with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-t1lib=/usr/local \

my gd library is compiled against libpng, libjpeg, and freetype.
It is not compiled against t1lib but adding t1lib in the configure script
gives me t1lib in my php gd.

On Sat, 24 Nov 2001 03:43:36 EST
[EMAIL PROTECTED] mentioned:

> Hello. What I mean is, I want to manipulate images
> that exist, and those that I create
> 
> To use truetype fonts so the default font text
> is not all that's required, but more importantly
> I want to do all the stuff gd/php can do
> 
> so, I wonder if *just* having true type font support
> is enough, or is freetype so special, I must get that
> with libpng/gd and the rest?
> 
> IN order to make/modify images, text on those images
> specifically. I am just confused that's all
> 
> Thanks for your time
> 
> Joel
> 
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

--- End Message ---
--- Begin Message ---


Can anyone help me with translating the following (which was
written in something else):
[NOTE: I've simplified the code for this purpose]


pairs = {{"First Name", "first_name"},{"Address", "address"}};

while (data) {
  line = split($data, " ");
  for pair in (pairs) {
if (match(line[1], pair[1])) {
  pair[2] = line[2];
}
  }
}


The idea here is that 'pairs' contains a list of items that the
program uses, by matching the first item with 'data', and if it matches,
it sets the second item with whatever 'data' is passing.  With the above
code, if 'data' was something like "First Name:   John" (yes, with
the spaces before the name), the result will basically set first_name to
"John".  And that variable 'first_name' can be used elsewhere in the
code.  When the 'data' contains 'Address' in it, it'll set the variable
'address' to whatever the second value is in data.

The code itself contains a rather large set in 'pairs' that it goes
through while there's 'data' for it to parse.  However, as you can see,
the code is also rather poorly written in that it cycles through the
entire list in 'pairs' for every single line of 'data' there is.  (this
is why I'm trying to rewrite this whole beast into PHP and hopefully get
something better).

The data that comes flowing in looks like this:

First Name:John
Last Name: Doe
Address:   12345 Fairy Lane
Address:
City:  White Clouds
State/Province:Cloud 9
Country:   Heaven
etc.
etc. (there is more information that I need to capture after this)

--
H | "Life is the art of drawing without an eraser." - John Gardner
  +
  Ashley M. Kirchner 

Re: [PHP] php->html

2001-11-24 Thread Jim Lucas

checkout the output control function at php.net

http://www.php.net/manual/en/ref.outcontrol.php

they allow you to capture the test that would have normally been sent to the
browser.

take the value of the variable and write it to a file..  :)

Jim Lucas
- Original Message -
From: "Christoph Starkmann" <[EMAIL PROTECTED]>
To: "php forum" <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 6:02 AM
Subject: [PHP] php->html


> Hi there!
>
> I had to create a large number of HTML-files with large parts
> within that are identical (the navigation).
> To avoid redundant writing during the creation of the files,
> I used PHP-Includes to include this navigation from one file.
>
> Now I have to get static HTML-pages from these php-enriched files.
>
> I am thinking about using regexp to filter the php-tags and include
> the corresponding HTML-Sniplets.
>
> Or I guess I could open a connection to the server and read these
> files as if I was a client (browser) and stzore the resulting HTML-pages.
>
> Any idea what would be easier (I got very few time...)
>
> Any hints?
>
> Cheers,
>
> Kiko
>
> -
> It's not a bug, it's a feature.
> christoph starkmann
> mailto:[EMAIL PROTECTED]
> http://www.fh-augsburg.de/~kiko
> ICQ: 100601600
> -
>
> --
> PHP General 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]
>
>


-- 
PHP General 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]




[PHP] Using zip files

2001-11-24 Thread Emiliano Marmonti



Hi people,
 
    I´m looking for alternatives in 
using zip files. Our users should upload into our server zipped files and we 
need to unzip this files and process it. I have read there is a library that 
could be used like an extension, but I´ve tried to use it from NT and don´t 
seems like the extension was added and when I try to use the commands PHP says 
that don´t recognoice the commands. In the other hand somebody has told me that 
PHP must be recompiled for using this library. Our platform is Windows NT but in 
the future could be Solaris.
 
    Anybody could send me your 
experience?
 
    Thanks in advance.
    
Emiliano.

-- 
PHP General 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]


Re: [PHP] Can PHP take input from the command prompt interactively?

2001-11-24 Thread Evan Nemerson

Yes. you can fopen php://stdin




On Saturday 24 November 2001 06:29 pm, you wrote:
> Can I write a command line PHP script like the following:
>
> php -q test.php
>
> Output:
>
> ==
> 1)choice A
> 2)choice B
> 3)choice C
>
> Please enter an option: 1
> ==
>
> Thanks.
>
> David

-- 
PHP General 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]




[PHP] Can php do this?

2001-11-24 Thread Joelmon2001

Thanks for your time . *This* = create follow up autoresponders
Or at least have php run with cron, so I can daily hit a mysql
db and use php to email those people at a specified time, like
every 3 days. Just so when I have users to the site who register
and their name/email is in a table "users" in db "data", 
php/cron can be used to pull the name/email from mysql
and (with unsubscribe message at bottom) email them when I 
say to do so in cron. Getting cron by itself to work is fine
but with php script that connects to mysql and emails users?
Can that be done?

Sort of like cron doing what you would do if you visited
page.php and once it's hit, it emails specified users in a database
Would I need path to php in the cron script to do this?
Or am I just living a dream?

The idea of emailing users in a mysql db with php script
every day is very appealing to me. (Yes, with unsubscribe feature)
;)

Thanks, I hope to goodness this made sense and you
enjoyed your holiday

Joel



[PHP] pipe email to php?

2001-11-24 Thread Kunal Jhunjhunwala

Hey,
Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe
email to a php script? Ive already setup the valias.. the big question is,
how to process the info when the email comes in..
kunal


-- 
PHP General 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]




Re: [PHP] Hour Calculation

2001-11-24 Thread Philip Olson

Calm down grasshopper, everything will be okay :)  Is there a way you can
modify 'start' and 'end' times as more 'standard' time strings?  In
otherwords, how exactly are they created?  I ask because it would be nice
to get strtotime() to work here.  Or optimally, steps #1-2 would already
involve unix timestamps.  A hack can be created but let's try to avoid
that :)

regards,
Philip Olson


On Sat, 24 Nov 2001, neeraj wrote:

> Hi List,
> 
> !! Please help !!
> My problem,
> 1) My Start time for a xyz file is 11.15 am 14-11-2001
> 2) My End Time for xyz file is 01.20 pm  14-11-2001
> 3) Total number of hours on the file is 02.05 Hours.
> 
> 1) Question is how do i calculate the difference in Hours as the result is in point 
>number 3 ?
> 
> Please help me Urgent
> 
> !!! Thanks in advance !!!
> 
> Warm Regards
> Neeraj Rattu
> 


-- 
PHP General 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]




[PHP] Free Software--EasyType 1.2 Basic makes you type as fast you think

2001-11-24 Thread Slimsoft

   EasyType 1.2 Basic

EasyType increases your typing speed in ANY Windows editor. It takes you from
the age of inputting words letter by letter to the age of inputting
word-by-word and phrase-by-phrase. EasyType has three major functions: (1)
Auto-learning words and phrases 2) auto-completing words and phrases, and (3)
Auto-expanding shorthands into full text. 

EasyType prompts the best-matched words to the user with a fully optimized
prediction algorithm. Just press a single hot key to auto-complete the word
you want. EasyType also expands its knowledge by learning new words that you
have typed. In contrast, shorthand expansion is based on targeting. For
example, type 'syl' and EasyType will expand it into 'See you later'.
Shorthand expansion is made more flexible with parameters, which are highly
useful for code auto-generation. You can even include special cursor controls
to make the expanded text well formatted. 

Many libraries are provided to empower EasyType. International language
libraries make it easy to input non-English words on any keyboard.
Programming language libraries liberate programmers from the pain of typing
long identifiers. Everyone can find libraries suitable for their own needs.
You can create your own library from word list files or learn frequently used
words from a large number of text documents with just one click. EasyType is
ideal for users who must deal with a heavy load of typing everyday, such as
programmers, writers, lawyers, translators, secretaries, and medical clerks. 

Website: http://www.flashpeak.com

EasyType 1.2 Basic Download(100% free)
http://www.flashpeak.com/easytype/etbasic.exe

EasyType 1.2 Professional Download(45-day evaluation)
http://www.flashpeak.com/easytype/easytype.exe

   Another Freeware-EasyClip 1.0

EasyClip is the slimest clipboard and shell enhancement utility. 

It's based on a slim always-on-top toolbar which can be hidden or shown. With
this toolbar, you can access all local drives, mapped network drives, all
folders and all files, IE favourite web pages, predefined email contacts by
selecting with mouse from drop-down lists. Much simpler than to direct
operation in windows explorer and IE. 

It supports 16 clipboards in total, with one current clipboard and 15 history
clipboards. Whenever you copy, EasyClip will automatically push the existing
content of the windows clipboard into the history clipboard boards and then
copy the text into the current buffer. You can select any one of the
clipboards by mouse and EasyClip will automatically paste the content of the
selected clipboard into the window you are working with. It also supports
appending-mode copy which will keep appending copied text to the end of the
current clipboard. This is convenient for  combining small pieces of text
from different places.

It also support a quick-run dialog where you can input short aliases for long
paths and URL's like in UNIX. Aliases can be defined in a text file with one
alias corresponding to one path/URL. 

Webpage: http://www.flashpeak.com/easyclip/easyclip.htm
Download: http://www.flashpeak.com/easyclip/easyclip.exe(100% free)










-- 
PHP General 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]




php-general Digest 25 Nov 2001 03:53:28 -0000 Issue 1014

2001-11-24 Thread php-general-digest-help


php-general Digest 25 Nov 2001 03:53:28 - Issue 1014

Topics (messages 75613 through 75631):

Re: Hour Calculation
75613 by: Philip Olson

[php] telnet describe command for mysql
75614 by: cosmin laslau
75619 by: Andrew Brampton

Using zip files
75615 by: Emiliano Marmonti

pipe email to php?
75616 by: Kunal Jhunjhunwala
75617 by: Ashley M. Kirchner
75618 by: Hank Marquardt
75622 by: Michael Geier
75626 by: John S. Huggins

xslt compile error?
75620 by: James Green
75624 by: James Green

Re: Is Freetype needed for Gd? Or just truetype fonts?
75621 by: Joelmon2001.aol.com

MySQL function in a Table's Column
75623 by: Jared Howard
75625 by: Matt
75627 by: Webmaster M&B Trading Co., SA de CV

Can PHP take input from the command prompt interactively?
75628 by: David Yee
75629 by: Evan Nemerson

Can php do this?
75630 by: Joelmon2001.aol.com

Free Software--EasyType 1.2 Basic makes you type as fast you think
75631 by: Slimsoft

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]


--

--- Begin Message ---

Calm down grasshopper, everything will be okay :)  Is there a way you can
modify 'start' and 'end' times as more 'standard' time strings?  In
otherwords, how exactly are they created?  I ask because it would be nice
to get strtotime() to work here.  Or optimally, steps #1-2 would already
involve unix timestamps.  A hack can be created but let's try to avoid
that :)

regards,
Philip Olson


On Sat, 24 Nov 2001, neeraj wrote:

> Hi List,
> 
> !! Please help !!
> My problem,
> 1) My Start time for a xyz file is 11.15 am 14-11-2001
> 2) My End Time for xyz file is 01.20 pm  14-11-2001
> 3) Total number of hours on the file is 02.05 Hours.
> 
> 1) Question is how do i calculate the difference in Hours as the result is in point 
>number 3 ?
> 
> Please help me Urgent
> 
> !!! Thanks in advance !!!
> 
> Warm Regards
> Neeraj Rattu
> 


--- End Message ---
--- Begin Message ---

I've got a huge table that I'm trying to get information about. I use a 
MySQL database, and the windows telnet utility to access it. To see info 
about the table, the DESCRIBE command is used. However, since it's about 40 
fields, it doesn't fit on the screen, so the top half just zips by in a 
millisecond.

Is there any break command, something to show one screen of info, read key, 
and then show another screen, for the DESCRIBE command?

Or just any other way to see the information...

Thanks.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--- End Message ---
--- Begin Message ---

You could get a better Telnet program...
Try Tucows for a better program...

Andrew
- Original Message -
From: "cosmin laslau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 24, 2001 5:07 PM
Subject: [PHP] [php] telnet describe command for mysql


> I've got a huge table that I'm trying to get information about. I use a
> MySQL database, and the windows telnet utility to access it. To see info
> about the table, the DESCRIBE command is used. However, since it's about
40
> fields, it doesn't fit on the screen, so the top half just zips by in a
> millisecond.
>
> Is there any break command, something to show one screen of info, read
key,
> and then show another screen, for the DESCRIBE command?
>
> Or just any other way to see the information...
>
> Thanks.
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> PHP General 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]
>
>


--- End Message ---
--- Begin Message ---



Hi people,
 
    I´m looking for alternatives in 
using zip files. Our users should upload into our server zipped files and we 
need to unzip this files and process it. I have read there is a library that 
could be used like an extension, but I´ve tried to use it from NT and don´t 
seems like the extension was added and when I try to use the commands PHP says 
that don´t recognoice the commands. In the other hand somebody has told me that 
PHP must be recompiled for using this library. Our platform is Windows NT but in 
the future could be Solaris.
 
    Anybody could send me your 
experience?
 
    Thanks in advance.
    
Emiliano.
--- End Message ---
--- Begin Message ---

Hey,
Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe
email to a php script? Ive already setup the valias.. th

[PHP] Hour Calculation

2001-11-24 Thread neeraj

Hi List,

!! Please help !!
My problem,
1) My Start time for a xyz file is 11.15 am 14-11-2001
2) My End Time for xyz file is 01.20 pm  14-11-2001
3) Total number of hours on the file is 02.05 Hours.

1) Question is how do i calculate the difference in Hours as the result is in point 
number 3 ?

Please help me Urgent

!!! Thanks in advance !!!

Warm Regards
Neeraj Rattu



Re: [PHP] what the best version PHP + APACHE on Solaris8

2001-11-24 Thread Justin England

Just grap the lastest stable version.  As of now:

Apache ver 1.3.22
PHPver 4.0.6

Most all of my Sparc Solaris8 machines are running Apache 1.3.19/PHP 4.0.6

Hope this helps.

Justin England  [EMAIL PROTECTED]
Network Administrator   
E-Net Information Services  http://www.enetis.net
Tel: 605-341-3638   Fax: 605-341-8880

On Thu, 22 Nov 2001, Evgeny Rachlenko wrote:

> Dir Justin England,
> Could you tell me what the version of apache and php do you prefer  for
> Solaris 8 .
> 
> thanks
> 
> 
> 
> -- 
> PHP General 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]
> 


-- 
PHP General 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]




Re: [PHP] Can php do this?

2001-11-24 Thread Michael Sims

At 10:04 PM 11/24/2001 -0500, [EMAIL PROTECTED] wrote:
[snip]
>Sort of like cron doing what you would do if you visited
>page.php and once it's hit, it emails specified users in a database
>Would I need path to php in the cron script to do this?
>Or am I just living a dream?

It sure can.  There's a couple of ways to accomplish this.  I personally 
think the easiest way is to code your page like normal, then call it in a 
cron job via lynx.  Let's say you have a page called "page.php" that 
connects to your database, retrieves the email addresses, and sends the 
emails.  To call it from a cron job add the following to your crontab:

0 8 * * * /usr/bin/lynx -dump http://localhost/page.php > 
/path/to/logfile/or/dev/null

Of course this means your script is in your public web space, so 
theoretically could be called by anyone who knew the name of the page.  You 
could put the page in a subdirectory and add an .htaccess file that 
restricts access to only 127.0.0.1 to take care of that if it concerns you.

If you have PHP installed as a CGI then you could also write your page as a 
shell script.  As the first line of your script put the line:

#! -q

I haven't personally used this method because I have PHP installed as an 
apache module and I was too lazy to compile the CGI version.  Using lynx in 
the above configuration works fine for me...


-- 
PHP General 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]




Re: [PHP] Can php do this?

2001-11-24 Thread Michael A. Peters

If you have built the php standalone binary then its easy-

#!/usr/local/bin/php


What I do when I build php is build it twice. First I build it with all my
options EXCEPT for with-apxs=/blah
That builds the standalone binary, and I install that in /usr/local/bin

Then, I build the apache module and install that where my apache modules
go.
This allows me to use php as a regular unix scripting language, so I can
do stuff from the crontab.

btw- I'm actually doing a very similar thing-
I have some customer support software that pops my support e-mail address
and puts the message in a MySQL database.

I have a cron job that calls a php shell script that pops the e-mail for
me every 15 minutes.
That way I don't have to log on to the support application as often, and
the customers get an automated response fairly quickly, giving them a
unique case ID etc.

On Sat, 24 Nov 2001 22:04:21 EST
[EMAIL PROTECTED] mentioned:

> Thanks for your time . *This* = create follow up autoresponders
> Or at least have php run with cron, so I can daily hit a mysql
> db and use php to email those people at a specified time, like
> every 3 days. Just so when I have users to the site who register
> and their name/email is in a table "users" in db "data", 
> php/cron can be used to pull the name/email from mysql
> and (with unsubscribe message at bottom) email them when I 
> say to do so in cron. Getting cron by itself to work is fine
> but with php script that connects to mysql and emails users?
> Can that be done?
> 
> Sort of like cron doing what you would do if you visited
> page.php and once it's hit, it emails specified users in a database
> Would I need path to php in the cron script to do this?
> Or am I just living a dream?
> 
> The idea of emailing users in a mysql db with php script
> every day is very appealing to me. (Yes, with unsubscribe feature)
> ;)
> 
> Thanks, I hope to goodness this made sense and you
> enjoyed your holiday
> 
> Joel
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
PHP General 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]




[PHP] Creating $key, $value pairs

2001-11-24 Thread Ashley M. Kirchner


I need to "convert" the following:

---
  Todays Date:  20-Nov-2001 10:58:24AM
  Order ID: W25
  Customer Email:   [EMAIL PROTECTED]
  Email Promotions: Ok

  BILL TO:
  Business Name:
  Contact Name: Ashley M. Kirchner
  Day Number:   800 555-1212
  Evening Number:   303 555-1212
  Fax Number:
  Address:  3550 Arapahoe Ave #6
  Address:
  Address:
  City: Boulder
  State/Province:   CO
  Zip/Postal Code:  80303
  Country:  USA

  Payment Method:   CC

  Card Number:  991234
  Expiration Date:  01/71

  Shipping Method:  PICKUP
  Order Comment:
  Gift Message:
  Shipping
  Instruction:
---

...into $key, $value pairs.  Ideally, I'd like to be able to name/use my own names 
for $key so I can end up with something like:

$BillToContact  => 'Ashley M. Kirchner'
$BillToDayPhone => '800 555-1212'
$BillToEvePhone => '303 555-1212'
etc.
(or maybe with something like:
  $bill['contact']  => 'Ashley M. Kirchner'
  $bill['dayphone'] => '800 555-1212'
  $bill['evephone'] => '303 555-1212'
  etc.)

All of these variables will eventually be shoved into a DB once the entire form 
has been parsed.

And then, at the bottom of that same (submitted) form, there's the actual 
information on the order, which looks something like this (the spacing is slightly 
different):

(unfortunately, this will wrap rather ugly)
---
  ORDER NO.  QTY  UNIT   DESCRIPTIONPRICE   TOTAL
  4x614"x6"  Standard Print (full-frame from 35mm).75   $0.75
  4x614"x6"  Standard Print (full-frame from 35mm).75   $0.75
  5x7.5  15x7.5  Image:Uploaded Image 3  4.25   $4.25
  8x12   18x12   Classic Full Frame Image:Uploaded Image 4  10.25  $10.25

 SUBTOTAL: $16.00
  TAX:  $1.18
 SHIPPING:  $0.00
TOTAL: $17.18
---


This part again I'd like to break up into separate lines, and separate variables 
for the product no., the quantity, unit, decription, price, total (per line), then the 
subtotal, tax, shipping cost and final (grant) total.

Again, if I can somehow use my own variable names, that'd be great.

($product['no']
 $product['quantity']
 $product['unit']
 etc.
 $order['subtotal']
 $order['tax']
 $order['shipping']
 $order['total']
 etc.)

I don't know yet how to create different entries for each line in that order - 
kinda stupid to create $product_1['no'], $product_2['no'], $product_3['no'], 
$product_4['no'], but then again, I don't know.

--
H | "Life is the art of drawing without an eraser." - John Gardner
  +
  Ashley M. Kirchner    .   303.442.6410 x130
  Director of Internet Operations / SysAdmin. 800.441.3873 x130
  Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave, #6
  http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.



-- 
PHP General 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]




Re: [PHP] Can php do this?

2001-11-24 Thread Casey Allen Shobe

On 24 November 2001 23:45, Michael Sims spaketh unto ye recipient:
> It sure can.  There's a couple of ways to accomplish this.  I personally
> think the easiest way is to code your page like normal, then call it in a
> cron job via lynx.  Let's say you have a page called "page.php" that
> connects to your database, retrieves the email addresses, and sends the
> emails.  To call it from a cron job add the following to your crontab:
>
> 0 8 * * * /usr/bin/lynx -dump http://localhost/page.php >
> /path/to/logfile/or/dev/null

Nice tip!  Another alternative is using wget on the URL, or links -dump if 
you have that instead.

Or if your script has #!/usr/bin/php or whatever path at the top and is made 
executable, you can just call that script without relying on the webserver.

I think, even if it's just a normal php file you could cron it as 
/usr/bin/php .

-- 
Casey Allen Shobe
[EMAIL PROTECTED]
GCS/CM d+ s+:->+: a-- C++() ULU$ P- L+++> E- W++ N++ !o K- w-- !O
M V- PS++ PE Y+ PGP>++ t+ 5+ X R>+ tv-- b++ DI+ D G++ e h-(*) r--- z--


-- 
PHP General 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]




Re: [PHP] Can php do this?

2001-11-24 Thread Joelmon2001

Thanks guys

I just want to confirm one last thing, as it's been a while since I needed 
cron

After I create this file (cron.file) for ex
and use 
crontab cronfile (I do this as root, if it matters)
do permissions need to be set? I really can't recall
I would think that would do it as I am not uploading it
and do it as root 

Thanks for the help, GREAT help and it's appreciated

Now I just need to get freetype 2 installed right on my raq 3
and I can live like a king

Joel