php-general Digest 1 Jan 2002 10:28:57 -0000 Issue 1085

Topics (messages 79147 through 79164):

work with  mobile by PHP !!
        79147 by: Alawi
        79164 by: Simon Ritchie

Re: Testing: DON'T Ignore This Message
        79148 by: Michael Sims
        79152 by: B. van Ouwerkerk
        79160 by: Michael Sims

Getting elapsed time between two MySQL time fields
        79149 by: Tom Beidler
        79157 by: George Nicolae

What the hell?!?!
        79150 by: LaserJetter
        79162 by: Michael Sims

Comment About-> [PHP] TEST---Please Ignore
        79151 by: [.-!-%]

Re: Need some Linux/Apache help
        79153 by: Todd Cary
        79154 by: Brian Clark
        79155 by: Brian Clark
        79156 by: Brian Clark

XML Parsing Problem
        79158 by: Ben Gollmer

Happy new year!
        79159 by: George Nicolae
        79161 by: Arcadius A.
        79163 by: Miles Thompson

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 ---
How can I send msg to PHP ? 
what I need and what I must read ??
--- End Message ---
--- Begin Message ---
 
> How can I send msg to PHP ?=20
> what I need and what I must read ??

Try http://www.sms-wap.com

Simon
--- End Message ---
--- Begin Message ---
At 05:07 PM 12/31/2001 +0200, you wrote:
>It seems to work. I'll use this thread to ask an admin question: why
>doesn't the mailing list daemon add a reply-to address similar to the
>one I manually added here? Wouldn't it be more comfortable for all
>parties concerned?

I agree.  It's a pain to have to click "Reply-to-all" and then strip out 
the individuals email address (leaving only the address of the 
list)...other lists that I'm on have the reply-to always pointing back to 
the list so all you have to do is click "Reply" and you know it will go 
where it needs to...

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

>I agree.  It's a pain to have to click "Reply-to-all" and then strip out 
>the individuals email address (leaving only the address of the 
>list)...other lists that I'm on have the reply-to always pointing back to 
>the list so all you have to do is click "Reply" and you know it will go 
>where it needs to...

uhhhhmmmm.. I can give you one good reason.. Out Of the Office replies 
don't get to the list.. M$ Lookout is specilized in bombing lists with 
those stupid messages. Seems a complete list with reasons why you shouldn't 
set reply to to the list.. can be found on the web..

Bye,



B.

--- End Message ---
--- Begin Message ---
At 11:45 PM 12/31/2001 +0100, B. van Ouwerkerk wrote:
>uhhhhmmmm.. I can give you one good reason.. Out Of the Office replies 
>don't get to the list.. M$ Lookout is specilized in bombing lists with 
>those stupid messages. Seems a complete list with reasons why you 
>shouldn't set reply to to the list.. can be found on the web..

Ahhh, good point.  But I believe that most mail programs (including 
Lookout) will only auto-respond to messages where the owners address is the 
only one in the "TO:" field.  (Someone correct me if they know better...I'm 
on Eudora here...)  Since messages from the mailing list are send TO: 
"[EMAIL PROTECTED]" then the autoresponders should ignore 
them.  This would be consistent with the fact that I've posted a few 
messages to this list over the past few weeks, messages that must have been 
delivered to at least hundreds of mailboxes with my address as the 
reply-to, yet I haven't received a single automatic out-of-office or 
vacation response to any of them...

--- End Message ---
--- Begin Message ---
I have some records in a MySQL database that store a start and stop time. In
my display page that displays the record info I would like to use PHP to
find the elapsed time between the two fields. So if I had;

Start 13:44:20
Stop 13:49:25

Possibly use a function to calculate
Elapsed 5:05

Do I need to do this in MySQL?

Thanks,
Tom 
--- End Message ---
--- Begin Message ---
<?
$d1=mktime(13,44,20,1,1,2002);//first three variables are your time and last
are a random day
$d2=mktime(13,49,25,1,1,2002);
echo date("i:s",$d2-$d1);
?>

--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have some records in a MySQL database that store a start and stop time.
In
> my display page that displays the record info I would like to use PHP to
> find the elapsed time between the two fields. So if I had;
>
> Start 13:44:20
> Stop 13:49:25
>
> Possibly use a function to calculate
> Elapsed 5:05
>
> Do I need to do this in MySQL?
>
> Thanks,
> Tom


--- End Message ---
--- Begin Message ---
I've just been preparing a site for upload from my local test server to the
net and have come accross a php.error.log file which was 13.4Mb!
I'm using PHP 4.1.0 and Apache 1.3.19 on Win98se and ever since upgrading to
4.1 PHP
has been creating these error log files all over the place. Does anyone know
what to change in php.ini to stop it doing this?
Also, apart from my coding being rubbish and causing lots of errors, does
anyone know of any reason why an error log file would grow to such a huge
size? The page has onle been accessed a few times and I can't think of any
way a single page could create 1Mb of error text on each hit.

LJ




--- End Message ---
--- Begin Message ---
At 10:10 PM 12/31/2001 +0000, LaserJetter wrote:
>Also, apart from my coding being rubbish and causing lots of errors, does
>anyone know of any reason why an error log file would grow to such a huge
>size?

Why don't you actually look at the error log and see what it contains?

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


While I understand your frustration, and agree with your pre-judgement, I
fail to understand why you would read, let along complain about,
something that clearly says

"PLEASE IGNORE".

It's like touching a wall that's marked "Wet Paint", then complain when
your hands get dirty. This is something that could, and should have
been avoided. The time you took reading, and replying to, this message
could've been spent on something else.


I've been subscribed to this list for over two years, and never have I
done anything that (I thought) would be abusive to other users.
I hardly think three test messages, over a period of two+ years, is
abusive. It's apparent that I was having issues with the lists.
I resolved to that method (of testing), because I felt it was necessary.

I knew it would be a little unneasy, and that's why I
specifically asked users to 'ignore' the message. Your frustration
could've been avoided by simply following instructions.


Nevertheless,

I do apologize for the trouble this test caused (if any). I know it wasn't
the most convenient method, but it was a matter of bad solution vs worst
solution. I've done everything (including unsubscribe/re-subscribe, and
use ezlm command queries) before sending that test message.



FYI
(for those who care)
I recently started having problems with the list. I was receiving
messages, but could not send them.

When I checked the ezlm admin commands ([EMAIL PROTECTED]),
it said my address was NOT subscribed.
Long story short...my server admin changed the server name (added an extra
name to the domain), so the list saw the new name as a new address. Old
addresses were translated here (on my server), but not in the list.

-john



On Mon, 31 Dec 2001, Kris wrote:

> John wrote:
> >
> > =Testing=
> > Having trouble sending mail...
> > =Testing=
> >
> > Please ignore.
>
> I *really* want to hurl abuse at you for using a public mailing list to
> send test messages to.
>
> You've sent THREE test messages to the mailing list now, each of which
> was sent to THOUSAND AND THOUSANDS of different people. Sure, it might
> be convenient to you, but use a bit of common sense.
>
> Now please, just quit it with the test messages. I'd be surprised if you
> weren't removed from the PHP mailing list - indeed, I would
> whole-heartedly support that. Don't be so selfish in the future, and
> think about the consequences of your actions.
>
>
>
> --
> Kris | [EMAIL PROTECTED] | ICQ: 10537480
> AIM: katticist | MSN: [EMAIL PROTECTED] | YIM: k_j_clarke
> PGP: http://home.clara.net/kjclarke/pgpkeys.txt
>


--- End Message ---
--- Begin Message ---
Brian et al -

How do I redirect the output *if* the output is errors?  For example

# make > /home/todd/makeerr.txt

I am getting an error when I run "make" after configuring with
"--with-apxs".  The configure runs fine; it is just the make and I have
noticed that with the above redirect, everything goes to the file
*except* the errors.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 18:59]:

> How do I redirect the output *if* the output is errors?  For example

> # make > /home/todd/makeerr.txt

Try this:

make 2> /home/todd/makeerr.txt


> I am getting an error when I run "make" after configuring with
> "--with-apxs".  The configure runs fine; it is just the make and I have
> noticed that with the above redirect, everything goes to the file
> *except* the errors.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng

--- End Message ---
--- Begin Message ---
* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:05]:

> > How do I redirect the output *if* the output is errors?  For example

> > # make > /home/todd/makeerr.txt

> Try this:

> make 2> /home/todd/makeerr.txt

Oh, and if you want it *all* to go to that file:

make 2>&1 /home/todd/makeerr.txt

You can also use grep or egrep to search for specific things if you
want.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Life is like a diaper -- short and loaded.

--- End Message ---
--- Begin Message ---
* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:09]:

> make 2>&1 /home/todd/makeerr.txt

Gah! I need to just go watch TV or something.

I meant:

make 2>&1 > /home/todd/makeerr.txt

That directs STDERR to STDOUT and that's redirected to  
/home/todd/makeerr.txt

Sorry for the list bomb.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Cole's Law: Thinly sliced cabbage.

--- End Message ---
--- Begin Message ---
Hi all -

I'm experimenting with PHP's XML parser for an application that maps XML 
tags to MySQL database fields.

As a test for my parsing program, I've been grabbing XML from the 
Slashdot news feed (http://www.slashdot.org/slashdot.xml) and inserting 
it into a database. This is very simple data - <title>blah</title> gets 
inserted into the 'title' field, etc. However, when there are some 
strange characters in the title field, the XML parser seems to choke.

Here is an example. The title of a recent article from Slashdot looks 
like this in the XML file:

<title>Follow-up To Critique of BeOS &amp;amp; Mac OS X</title>

Don't ask my why they have a double ampersand in there... Anyway, the 
XML parser returns this as three sets of data, instead of one. The array 
that I get looks like this:

$myArray[0] = "Follow-up To Critique of BeOS "
$myArray[1] = "&"
$myArray[2] = "amp; Mac OS X"

This is the data I get back from the parser, BEFORE putting it into the 
database. I'm echoing each array field to the screen, just to make sure. 
So I know it has nothing to do with MySQL. The double ampersand 
shouldn't make a difference - the XML parser should not be interpreting 
HTML...right? Also, I don't get an error code or error string from 
xml_parse().

Anyone have any ideas? This is a subtle bug - in fact I had been 
satisfied with my XML parsing code, and was well into the rest of my 
application when I happened to notice this.

Ben

--- End Message ---
--- Begin Message ---
A happy new year with a lot of dynamic sites to all php community!

--


Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com





--- End Message ---
--- Begin Message ---
Thanks ! :-)


--
 ---------------------------
 Student Arcadius Ahouansou
  ICQ# : 37119073
  http://arcadnet.net/
----------------------------
"George Nicolae" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> A happy new year with a lot of dynamic sites to all php community!
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
>
>


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

A DYNAMIC, Happy, New Year.

PHP is great. Through it, and Linux, I've had a very interesting two years of 
programming and
my career seems to be bending away from desktop apps and towards net-oriented ones.

Regards to alll - Miles Thompson

On Monday 31 December 2001 08:20 pm, George Nicolae wrote:
> A happy new year with a lot of dynamic sites to all php community!
--- End Message ---

Reply via email to