[PHP] SOLVED:Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
problem was solved by using substr() on the timestamp

--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
"Damian Brown" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thank Yoy Ryan
>
> I had thought the same, but I didn't know how to go about it
> I did not know of the substr function
> it is now outputting as follows
>
> 10 04 2004 - 21:23:50
>
> Thanks once again, I am sure I will be asking for more help soon
> I tend to dive in at the deep end and never learn the basics
> --
> www.phpexpert.org/truefaith.htm
> "True Faith is not just when you believe in God and yourself, it is when
> others begin to believe in you as well" - Damian John Paul Brown 2004
> "Ryan A" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > On 4/11/2004 3:25:09 AM, Damian Brown ([EMAIL PROTECTED]) wrote:
> > > I need to output a date and time that  shows more clearly than just
> > > outputting the timestamp
> > >
> > > what is the correct way to go about it ?
> > > I have looked at getdate(), but I haven't fathomed it out yet !
> >
> > If you are using timestamp(14), here is how i do it: (after the select)
> >
> > if(($row = mysql_fetch_row($result))>=1)
> > {
> >   $d_year = substr($row[4],0,4);
> >   $d_month = substr($row[4],4,2);
> >   $d_day = substr($row[4],6,2);
> >   $d_hours = substr($row[4],8,2);
> >   $d_mins = substr($row[4],10,2);
> >   $d_secs = substr($row[4],12,2);
> > }
> >
> > I am using a  mysql_fetch_row as i am getting a lot of fields from the
db,
> > you may want to use the fetch_array or something else but eh above
should
> > give you an idea. The reason I like it like this is because the
> > year,month,date etc is all in different varialbes which I can format the
> way
> > I want it...or can even give the client the option of specifying the
> > format...but thats another thing altogether
> >
> > HTH.
> >
> > Cheers,
> > -Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] SOLVED:Re: trying to output a hyperlink

2004-04-10 Thread Damian Brown
Thanks for all the help, I overlooked a simple mistake in html, I was so
much concentrating on concatenating the $link that I forgot to include the
link
I got a private email that solved it for me
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
"Andy Ladouceur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When in doubt, view source. :) As John has already mentioned, you need
> text between the two tags to actually display in the browser. You
> probably would've seen your mistake a lot sooner if you viewed the page
> source when you first tried it out.
>
> Also, you can save yourself some time using PHP's shorthand
> concatenation operator.
>
>  >   >   $link = $link . $row[2] . '">' ;
>  >   $link = $link . '' ;
>  >   echo $link ; ?>
>
> Turns into:
>
>  $link .= $row[2] . '">';
> $link .= 'Click here';
> echo $link; ?>
>
> Although, it could be shortened even more, to:
>
> Click here";
> echo $link;?>
>
> But I imagine you're doing it with more lines for legibilities' sake.
>
> Andy
>
> Damian Brown wrote:
> >  >   $link = $link . $row[2] . '">' ;
> >   $link = $link . '' ;
> >   echo $link ; ?>
> > is not working, I want to output $row[2] as a hyperlink
> > as it is the refering URL, but the above is just showing blank in the
> > output, with no link and no text in the output table
> > --
> > www.phpexpert.org/truefaith.htm
> > "True Faith is not just when you believe in God and yourself, it is when
> > others begin to believe in you as well" - Damian John Paul Brown 2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: trying to output a hyperlink

2004-04-10 Thread Andy Ladouceur
When in doubt, view source. :) As John has already mentioned, you need 
text between the two tags to actually display in the browser. You 
probably would've seen your mistake a lot sooner if you viewed the page 
source when you first tried it out.

Also, you can save yourself some time using PHP's shorthand 
concatenation operator.

>$link = $link . $row[2] . '">' ;
>   $link = $link . '' ;
>   echo $link ; ?>
Turns into:

';
$link .= 'Click here';
echo $link; ?>
Although, it could be shortened even more, to:

Click here";
echo $link;?>
But I imagine you're doing it with more lines for legibilities' sake.

Andy

Damian Brown wrote:
' ;
  $link = $link . '' ;
  echo $link ; ?>
is not working, I want to output $row[2] as a hyperlink
as it is the refering URL, but the above is just showing blank in the
output, with no link and no text in the output table
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] trying to output a hyperlink

2004-04-10 Thread John W. Holmes
Damian Brown wrote:
' ;
  $link = $link . '' ;
  echo $link ; ?>
is not working, I want to output $row[2] as a hyperlink
as it is the refering URL, but the above is just showing blank in the
output, with no link and no text in the output table
You kind of need something between the  and the  for you to 
see a link.

$link = "Click Here";

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] trying to output a hyperlink

2004-04-10 Thread John W. Holmes
Damian Brown wrote:
' ;
  $link = $link . '' ;
  echo $link ; ?>
is not working, I want to output $row[2] as a hyperlink
as it is the refering URL, but the above is just showing blank in the
output, with no link and no text in the output table
You kind of need something between the  and the  for you to 
see a link.

$link = "Click Here";

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: PHP5 and pear

2004-04-10 Thread electroteque
standard make install, did it for both rc1 and snaps

> -Original Message-
> From: Aidan Lister [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 11, 2004 1:06 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: PHP5 and pear
> 
> 
> Was that from a > pear install xml_rpc ?
> 
> 
> 
> "Electroteque" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Pear does not seem to be actually in the sources for some reason
> >
> > [PEAR] XML_RPC: The following errors where found (use force option to
> > install an
> > yway):
> > missing package name
> > missing summary
> > missing description
> > missing license
> > missing version
> > missing release state
> > missing release date
> > missing release notes
> > no maintainer(s)
> > no files
> >
> > did this for all of them ??
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] trying to output a hyperlink

2004-04-10 Thread Damian Brown
' ;
  $link = $link . '' ;
  echo $link ; ?>
is not working, I want to output $row[2] as a hyperlink
as it is the refering URL, but the above is just showing blank in the
output, with no link and no text in the output table
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I have cracked it Andy, by using substr to take apart
the 14 digit timestamp
10 04 2004 - 21:23:50
is now showing, and each record is different
Thanks anyway, stick around for more questions
here is one
' ;
  $link = $link . '' ;
  echo $link ; ?>
is not working, I want to output $row[2] as a hyperlink
as it is the refering URL, but the above is just showing blank in the
output, with no link and no text in the output table

--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
"Andy Ladouceur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> And these are UNIX timestamps? Odd. I can't see date giving the wrong
> output, could you post the timestamp you're using?
>
> Thanks
>
> Andy
>
> Damian Brown wrote:
>
> > I have tried that, but it gives a date in the future
> > and all records have the same time
> > the code is
> >
> > 
> >
> > and it gives an output of
> >
> > Monday 18th of January 2038 10:14:07 PM
> >
> > I need it to proces the timestamp in the database table so that it shows
the
> > different times
> > Thanks in advance for a solution
> >
> >
> >>The second parameter of PHP's date() function takes a timestamp as an
> >>argument, this may be what you're looking for?
> >>
> >>Andy
> >>
> >>Damian Brown wrote:
> >>
> >>>I need to output a date and time that  shows more clearly than just
> >>>outputting the timestamp
> >>>
> >>>what is the correct way to go about it ?
> >>>I have looked at getdate(), but I haven't fathomed it out yet !
> >>>
> >>>--
> >>>www.phpexpert.org/truefaith.htm
> >>>"True Faith is not just when you believe in God and yourself, it is
when
> >>>others begin to believe in you as well" - Damian John Paul Brown 2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
Thank Yoy Ryan

I had thought the same, but I didn't know how to go about it
I did not know of the substr function
it is now outputting as follows

10 04 2004 - 21:23:50

Thanks once again, I am sure I will be asking for more help soon
I tend to dive in at the deep end and never learn the basics
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On 4/11/2004 3:25:09 AM, Damian Brown ([EMAIL PROTECTED]) wrote:
> > I need to output a date and time that  shows more clearly than just
> > outputting the timestamp
> >
> > what is the correct way to go about it ?
> > I have looked at getdate(), but I haven't fathomed it out yet !
>
> If you are using timestamp(14), here is how i do it: (after the select)
>
> if(($row = mysql_fetch_row($result))>=1)
> {
>   $d_year = substr($row[4],0,4);
>   $d_month = substr($row[4],4,2);
>   $d_day = substr($row[4],6,2);
>   $d_hours = substr($row[4],8,2);
>   $d_mins = substr($row[4],10,2);
>   $d_secs = substr($row[4],12,2);
> }
>
> I am using a  mysql_fetch_row as i am getting a lot of fields from the db,
> you may want to use the fetch_array or something else but eh above should
> give you an idea. The reason I like it like this is because the
> year,month,date etc is all in different varialbes which I can format the
way
> I want it...or can even give the client the option of specifying the
> format...but thats another thing altogether
>
> HTH.
>
> Cheers,
> -Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Andy Ladouceur
And these are UNIX timestamps? Odd. I can't see date giving the wrong 
output, could you post the timestamp you're using?

Thanks

Andy

Damian Brown wrote:

I have tried that, but it gives a date in the future
and all records have the same time
the code is


and it gives an output of

Monday 18th of January 2038 10:14:07 PM

I need it to proces the timestamp in the database table so that it shows the
different times
Thanks in advance for a solution

The second parameter of PHP's date() function takes a timestamp as an
argument, this may be what you're looking for?
Andy

Damian Brown wrote:

I need to output a date and time that  shows more clearly than just
outputting the timestamp
what is the correct way to go about it ?
I have looked at getdate(), but I haven't fathomed it out yet !
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP e-commerce questions

2004-04-10 Thread PHP Email List
> From: Matt Hedges [mailto:[EMAIL PROTECTED]
> Subject: [PHP] PHP e-commerce questions
> Hello.

Hi!

> I have built a site where people can register their weddings.  I use
> MySQL/PHP to handle the database.  I wish to add a step where people must
> pay to enter their information into the database.
>
> How do I do this?

I'm still new to PHP, but I have integrated Paypal into my shopping cart, as
it allows immediate approval and sends the confirmation code back as PHP so
that I can process the variables it sends while confirming the identity of
the server it was sent from. <--kinda complicated, but once you understand
PHP it's quite easy to do.

> What services do ya'll recommend?
Paypal

>I won't need a
> complicated shopping cart, since there will just be one thing to
> purchase...
> I just need something that takes credit card information and then assigns
> the user a username and password...

As stated the advantage to paypal (as there might be others that do the
same, haven't done any other research as I liked what paypal does for me) is
that you can get instant response to a credit card processing request. For
example like your wedding registry, if you had a Download for software you
wanted to give to someone for instant download for cost, they can pay
through paypal, be sent immediately back to the site once confirmed for
instant download.

If you'd like more information you can setup an account at www.paypal.com,
then navigate to the :Merchant Tools: Then to :Instant Payment Notification:
and it will explain how it works in more detail. Good luck.

***NOW, keep in mind this is only my opinion, do some research, Google for
Credit card processing firms that will allow you to do this aswell, There
could be others out there for you to try. One thing to point out is to watch
the fees associated with instant and credit card transactions. Some companys
charge a higher percentage to allow you to user their services. HTH :)

Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I have tried that, but it gives a date in the future
and all records have the same time
the code is



and it gives an output of

Monday 18th of January 2038 10:14:07 PM

I need it to proces the timestamp in the database table so that it shows the
different times
Thanks in advance for a solution

> The second parameter of PHP's date() function takes a timestamp as an
> argument, this may be what you're looking for?
>
> Andy
>
> Damian Brown wrote:
> > I need to output a date and time that  shows more clearly than just
> > outputting the timestamp
> >
> > what is the correct way to go about it ?
> > I have looked at getdate(), but I haven't fathomed it out yet !
> >
> > --
> > www.phpexpert.org/truefaith.htm
> > "True Faith is not just when you believe in God and yourself, it is when
> > others begin to believe in you as well" - Damian John Paul Brown 2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] video thumbnail generation

2004-04-10 Thread Curt Zirzow
* Thus wrote Stuart Gilbert ([EMAIL PROTECTED]):
> I'd really like to generate video thumbnails within PHP, are there any 
> libraries available or anything? I can't find very much on the subject 
> on php.net and not a lot more on google.
> 
> I'd appreciate any pointers you could give me.

http://pecl.php.net/imagick
or
http://php.net/image

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Most bizarre date problem ever

2004-04-10 Thread Curt Zirzow
* Thus wrote Brian Dunning ([EMAIL PROTECTED]):
> 
> $check_date = mktime(0, 0, 0, substr($end_date, 5, 2), 
> substr($end_date, 8, 2) - $i, substr($end_date, 0, 4), -1);
> 
> Note that this works PERFECTLY for every date, and always has. Except 
> for one particular day. When $end_date - $i is supposed to be April 4, 
> the timestamp returned is -7262, which it thinks is 12/31/1969. Can 
> somebody PLEASE tell me how the above code manages to produce -7262, 
> when it's always worked properly for every other day in history?

Works fine for me:

$end_date = '2004-04-05';
$i = 1;
$check_date = mktime(0, 0, 0, substr($end_date, 5, 2),
substr($end_date, 8, 2) - $i, substr($end_date, 0, 4), -1);

echo date('r', $check_date), "\n", $check_date;

output:
Sun,  4 Apr 2004 00:00:00 +
1081036800


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php as cgi and module at same time

2004-04-10 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]):
> is it possible to have php installed with apache as cgi and module both at
> the same time...??

Yes. See php.net/install


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] phpextdist and phpize

2004-04-10 Thread Curt Zirzow
* Thus wrote Elfyn McBratney ([EMAIL PROTECTED]):
> 
> > phpextdist
> 
> Can't remember.. Google is your friend :)

Makes a standalone/out-of-tree tar ball.  Also uses php-conf.



Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Andy Ladouceur
The second parameter of PHP's date() function takes a timestamp as an 
argument, this may be what you're looking for?

Andy

Damian Brown wrote:
I need to output a date and time that  shows more clearly than just
outputting the timestamp
what is the correct way to go about it ?
I have looked at getdate(), but I haven't fathomed it out yet !
--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Ryan A

On 4/11/2004 3:25:09 AM, Damian Brown ([EMAIL PROTECTED]) wrote:
> I need to output a date and time that  shows more clearly than just
> outputting the timestamp
>
> what is the correct way to go about it ?
> I have looked at getdate(), but I haven't fathomed it out yet !

If you are using timestamp(14), here is how i do it: (after the select)

if(($row = mysql_fetch_row($result))>=1)
{
  $d_year = substr($row[4],0,4);
  $d_month = substr($row[4],4,2);
  $d_day = substr($row[4],6,2);
  $d_hours = substr($row[4],8,2);
  $d_mins = substr($row[4],10,2);
  $d_secs = substr($row[4],12,2);
}

I am using a  mysql_fetch_row as i am getting a lot of fields from the db,
you may want to use the fetch_array or something else but eh above should
give you an idea. The reason I like it like this is because the
year,month,date etc is all in different varialbes which I can format the way
I want it...or can even give the client the option of specifying the
format...but thats another thing altogether

HTH.

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I need to output a date and time that  shows more clearly than just
outputting the timestamp

what is the correct way to go about it ?
I have looked at getdate(), but I haven't fathomed it out yet !

--
www.phpexpert.org/truefaith.htm
"True Faith is not just when you believe in God and yourself, it is when
others begin to believe in you as well" - Damian John Paul Brown 2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



php-general Digest 11 Apr 2004 01:11:05 -0000 Issue 2698

2004-04-10 Thread php-general-digest-help

php-general Digest 11 Apr 2004 01:11:05 - Issue 2698

Topics (messages 183066 through 183096):

How to do this?
183066 by: Mike Mapsnac
183068 by: Duncan Hill
183069 by: John W. Holmes
183083 by: Mike Mapsnac

Re: Store e-mail in DB
183067 by: Raditha Dissanayake

Re: PHP5 and pear
183070 by: Aidan Lister

Most bizarre date problem ever
183071 by: Brian Dunning
183075 by: trlists.clayst.com

Read file backwards
183072 by: Kim Steinhaug
183073 by: Kim Steinhaug

PHP e-commerce questions
183074 by: Matt Hedges

Re: Smarty Summary was Re: [PHP] smarty
183076 by: Jochem Maas

Re: cleaning up html output from php in apache
183077 by: Jason Sheets

MVC based frameworks and PHP5 Object Model.
183078 by: Lukasz Karapuda
183079 by: Robert Cummings

video thumbnail generation
183080 by: Stuart Gilbert

php 5 install
183081 by: Andy B
183082 by: Andy B
183084 by: Richard Harb
183091 by: Rainer Müller

configure php solaris with openssl
183085 by: Sascha Ferley

query strings coming from the same page going back to the same page
183086 by: Andy B
183088 by: Rainer Müller
183090 by: Andy B
183092 by: John W. Holmes

imap_open() fails with CouirerIMAP
183087 by: Pembo13
183089 by: Elfyn McBratney
183093 by: Pembo13
183094 by: Elfyn McBratney

phpextdist and phpize
183095 by: gayard.ig.com.br
183096 by: Elfyn McBratney

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 ---
My php page takes data from the database such as ID, Date, Value and prints 
on the screen. About 20 entries are printed on the screen. The each entry 
has option 'yes' or 'no'.

So I need to gather the information about each entry and update database. I 
cannot access the variable from $_POST because parameter is not static and 
$_POST is not working like this $_POST['$id'];

Any ideas how I can make this working?

_
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and 
more! http://moneycentral.msn.com/tax/workshop/welcome.asp
--- End Message ---
--- Begin Message ---
On Saturday 10 April 2004 14:36, Mike Mapsnac wrote:

> So I need to gather the information about each entry and update database. I
> cannot access the variable from $_POST because parameter is not static and
> $_POST is not working like this $_POST['$id'];

$_POST["$id"]

" does variable substitution, ' does not.
--- End Message ---
--- Begin Message ---
Mike Mapsnac wrote:
My php page takes data from the database such as ID, Date, Value and 
prints on the screen. About 20 entries are printed on the screen. The 
each entry has option 'yes' or 'no'.

So I need to gather the information about each entry and update 
database. I cannot access the variable from $_POST because parameter is 
not static and $_POST is not working like this $_POST['$id'];
Make a radio button such as:



Then, you'll have $_POST['option'][$id] that you can use.

$yes_ids = array_keys($_POST['option'],'Yes');
$yes_list = implode(',',$yes_ids);
$no_ids = array_keys($_POST['option'],'No');
$no_ids = implode(',',$no_ids);
$entire_list = implode(',',array_keys($_POST['option']));

$query = "UPDATE table SET option = CASE WHEN id IN ($yes_list) THEN 
'Yes' WHEN id IN ($no_list) THEN 'No' END CASE WHERE id IN ($entire_list)";

Need to add in some validation, but that's the basic idea. Well, that's 
not really "basic", but it gives you an idea of a very efficient way to 
handle this. :)

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Thanks a lot
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "Mike Mapsnac" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 10:34 AM
Subject: Re: [PHP] How to do this?


> Mike Mapsnac wrote:
> > My php page takes data from the database such as ID, Date, Value and
> > prints on the screen. About 20 entries are printed on the screen. The
> > each entry has option 'yes' or 'no'.
> >
> > So I need to gather the information about each entry and update
> > database. I cannot access the variable from $_POST because parameter is
> > not static and $_POST is not working like this $_POST['$id'];
>
> Make a radio button such as:
>
> 
> 
>
> Then, you'll have $_POST['option'][$id] that you can use.
>
> $yes_ids = array_keys($_POST['option'],'Yes');
> $yes_list = implode(',',$yes_ids);
>
> $no_ids = array_keys($_POST['option'],'No');
> $n

Re: [PHP] phpextdist and phpize

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 11 Apr 2004 00:22, [EMAIL PROTECTED] wrote:
> Hello,
>
> I have just installed PHP 5.0b4, and had a look into /usr/local/php5/bin. I
> have found these files:
>
> php

You know :)

> pear

Can be used to install/remove/update/etc pear/pecl packages

> php-config

Gives you information on your install..  used by phpize..

> phpextdist

Can't remember.. Google is your friend :)

> phpize

It bootstraps a directory for a standalone/out-of-tree module

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeKjIaIgMKkVlSLQRAnTVAJ9h+8+N8WkUo43rmybs8vFc/F+B3QCeLRoF
DvEfjUAqGnaFEHsHsUuBkBU=
=2csS
-END PGP SIGNATURE-

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] phpextdist and phpize

2004-04-10 Thread gayard
Hello, 

I have just installed PHP 5.0b4, and had a look into /usr/local/php5/bin. I 
have found these files: 

php 
pear 
php-config 
phpextdist 
phpize 

php is the only file I know, it is the one that interprets (interpretates ?) 
the PHP code. 

But what do the other programs do ? None of them has a man page, and they do 
not explain themselves to the --help argument. 

Thanks 
Leonel 

_
Voce quer um iGMail protegido contra vírus e spams? 
Clique aqui: http://www.igmailseguro.ig.com.br


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 10 Apr 2004 23:42, Pembo13 wrote:
> Well I've setup a reltively simple code block:
>
> function mailboxmsginfo($mailbox='INBOX', $username, $password) {
>   $username = $username."@dalive.com";
>$imap_stream = "{localhost:143/notls}".$mailbox;
>$mbox = imap_open($imap_stream,  $username, $password)
>   or die("can't connect ($username with $password): " .
> imap_last_error());
>$check = imap_mailboxmsginfo($mbox);
>imap_close($mbox);
>
>return $check;
> }

OK, can you try this:

  

(If courier isn't compiled with SSL/TLS support, drop the '/notls'.)

Also have a look at the docs/comments here:
  

> Client side I get (from imap_last_error): Can not authenticate to IMAP
> server: Authentication failed.
>
> Serverside, from Courier's logs i see the commands that differ from what
> normally comes from my mail clients. The normal mail client commands are
> of the format:
>
> imapd: Connection, ip=[:::192.168.100.11], command=LOGIN
> imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], username=myusername
> imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], password=mypassword
> imapd: LOGIN, [EMAIL PROTECTED], ip=[:::192.168.100.11],
> protocol=IMAP
>
> while the commands as a result of the PHP funcion are of the format:
>
> imapd: Connection, ip=[:::192.168.100.11], command=LOGIN
> imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], command=AUTHENTICATE
> imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], command=LOGOUT
> imapd: LOGOUT, ip=[:::192.168.100.11]

hrmm..no.. anyone? 8)

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeJowaIgMKkVlSLQRAvAhAKCV+oLhJbjE6IrsPEA3SAq4+1cNHACfdu4t
LHJsC3JzuVKeR8FeI0J8oWY=
=fmBO
-END PGP SIGNATURE-

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Pembo13
Well I've setup a reltively simple code block:

function mailboxmsginfo($mailbox='INBOX', $username, $password) {
	$username = $username."@dalive.com";
  $imap_stream = "{localhost:143/notls}".$mailbox;
  $mbox = imap_open($imap_stream,  $username, $password)
 or die("can't connect ($username with $password): " . 
imap_last_error());
  $check = imap_mailboxmsginfo($mbox);
  imap_close($mbox);

  return $check;
}
Client side I get (from imap_last_error): Can not authenticate to IMAP 
server: Authentication failed.

Serverside, from Courier's logs i see the commands that differ from what 
normally comes from my mail clients. The normal mail client commands are 
of the format:

imapd: Connection, ip=[:::192.168.100.11], command=LOGIN
imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], username=myusername
imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], password=mypassword
imapd: LOGIN, [EMAIL PROTECTED], ip=[:::192.168.100.11], 
protocol=IMAP

while the commands as a result of the PHP funcion are of the format:

imapd: Connection, ip=[:::192.168.100.11], command=LOGIN
imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], command=AUTHENTICATE 
imapd: LOGIN: DEBUG: ip=[:::192.168.100.11], command=LOGOUT
imapd: LOGOUT, ip=[:::192.168.100.11]

Any ideas?
Thanks
Elfyn McBratney wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,

On Saturday 10 Apr 2004 22:59, Pembo13 wrote:

Hello,

Does anyone have php's imap functions working with CourierIMAP as their
imap server?


Yes, as does IMP (see horde.org).  What errors do you get?  What code are you 
using (strip it down to something simple like connect/disconnect)?

If you need help, theres examples in the manual:
  
Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4
"When I say something, I put my name next to it." -- Isaac Jaffee


~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAeI3UaIgMKkVlSLQRAlGJAJ40vHmcldx23hSFt9rpbYlEZ+MrigCgmRfz
V1Pq2IrZz0RarH8RI3yPj/o=
=ctL7
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread John W. Holmes
Andy B wrote:

going to try some different things out... the if statement didnt work cuz
when i didnt put a query string at the end of the page name when going to it
it complained about month being an undefined index...
if(!isset($_GET['month']) || $_GET['month'] <= 0 || $_GET['month'] > 12)

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php 5 install

2004-04-10 Thread Rainer Müller
Andy B schrieb:
anybody know how to put that in english?? i have no clude what it says...

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 5:13 PM
Subject: Re: [PHP] php 5 install



Hallo und guten Tag,

herzlichen Dank für Ihre Mail.

Zeit zu leben und Zeit zum Schreiben machen gerade Osterpause, weshalb
Emails nur sehr sporadisch gelesen werden.

Aber keine Sorge - keine Mail geht verloren :-)

Der nächste Newsletter für Zeit zu leben erscheinen zum 19.4.04, der für
Zeit zum Schreiben zum 1.5.04.

Ab dem 19.4.04 sind wir dann auch wieder regulär für Sie da - Ihre
Anfragen werden spätestens dann beantwortet.

Wundervolle Frühlingstage und ein schönes Osterfest wünschen Ihnen

Tania Konnerth & Ralf Senftleben

--
Alles für ein aktives Leben - http://www.zeitzuleben.de Lust zum
Schreiben? http://www.zeitzumschreiben.de



Okay, I try it:

Hello and a good day,
thanks for your mail.
"Zeit zu leben" (Time To Life) and "Zeit zum Schreiben" (Time To Write) 
have an easter break at the moment,
so emails will be read only sporadically.
But don't worry - no mail will be lost.
The next newsletter for "Zeit zu leben" will be released at 19.04.04 and 
for "Zeit zum Schreiben" at 01.05.04.
After 19.04.04 we will be back for you regularly - Your requests will be 
answered then at the latest.
Wonderful spring-days and a beautiful Easter wish you
Tania Konnerth & Ralf Senftleben

Hope it is not too bad :)
Seems like an auto-reply...
Rainer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
going to try some different things out... the if statement didnt work cuz
when i didnt put a query string at the end of the page name when going to it
it complained about month being an undefined index...


- Original Message - 
From: "Rainer Müller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 6:33 PM
Subject: [PHP] Re: query strings coming from the same page going back to the
same page


> Andy B schrieb:
> > was wondering if this would work or do i need different code:
> >  > include("libs/conf.db");
> > if(($_GET['month']==0)||($_GET['month']>12)){
> > $query="SELECT
> >  Type,
> >  StartDate,
> >  EndDate,
> >  Name,
> >  County,
> >  Notes
> > FROM $EventsTable
> > ORDER BY StartDate DESC";
> > } else {
> > $query="SELECT
> >  Type,
> >  StartDate,
> >  EndDate,
> >  Name,
> >  County,
> >  Notes
> > FROM $EventsTable WHERE
> > StartingMonth='{$_GET['month']}'
> > ORDER BY StartDate DESC";}
> > mysql_pconnect($host, $mysqluser, $mysqlpwd)||die(mysql_error());
> > $result=mysql_query($query) or die(mysql_error());
> > ?>
> > then i would have a link on the same page this code came from:
> > Jan
> > the link is supposed to reload the same page it came from and be bart of
the
> > query above... the thing im not sure of is if that will work or not or
do i
> > need something else...(new to self referrencing pages)...
>
> Probably it is better to use
> Jan
> Then it is not in dependency to the filename.
>
> And btw. you should check with is_numeric() if the value from
> $_GET['month'] is really a number or you will have an security hole in
> you script.
>
> Rainer
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

On Saturday 10 Apr 2004 22:59, Pembo13 wrote:
> Hello,
>
> Does anyone have php's imap functions working with CourierIMAP as their
> imap server?

Yes, as does IMP (see horde.org).  What errors do you get?  What code are you 
using (strip it down to something simple like connect/disconnect)?

If you need help, theres examples in the manual:
  

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeI3UaIgMKkVlSLQRAlGJAJ40vHmcldx23hSFt9rpbYlEZ+MrigCgmRfz
V1Pq2IrZz0RarH8RI3yPj/o=
=ctL7
-END PGP SIGNATURE-

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread Rainer Müller
Andy B schrieb:
was wondering if this would work or do i need different code:
12)){
$query="SELECT
 Type,
 StartDate,
 EndDate,
 Name,
 County,
 Notes
FROM $EventsTable
ORDER BY StartDate DESC";
} else {
$query="SELECT
 Type,
 StartDate,
 EndDate,
 Name,
 County,
 Notes
FROM $EventsTable WHERE
StartingMonth='{$_GET['month']}'
ORDER BY StartDate DESC";}
mysql_pconnect($host, $mysqluser, $mysqlpwd)||die(mysql_error());
$result=mysql_query($query) or die(mysql_error());
?>
then i would have a link on the same page this code came from:
Jan
the link is supposed to reload the same page it came from and be bart of the
query above... the thing im not sure of is if that will work or not or do i
need something else...(new to self referrencing pages)...
Probably it is better to use
Jan
Then it is not in dependency to the filename.
And btw. you should check with is_numeric() if the value from 
$_GET['month'] is really a number or you will have an security hole in 
you script.

Rainer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Pembo13
Hello,

Does anyone have php's imap functions working with CourierIMAP as their 
imap server?

Thank you

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
was wondering if this would work or do i need different code:
12)){
$query="SELECT
 Type,
 StartDate,
 EndDate,
 Name,
 County,
 Notes
FROM $EventsTable
ORDER BY StartDate DESC";
} else {
$query="SELECT
 Type,
 StartDate,
 EndDate,
 Name,
 County,
 Notes
FROM $EventsTable WHERE
StartingMonth='{$_GET['month']}'
ORDER BY StartDate DESC";}
mysql_pconnect($host, $mysqluser, $mysqlpwd)||die(mysql_error());
$result=mysql_query($query) or die(mysql_error());
?>
then i would have a link on the same page this code came from:
Jan
the link is supposed to reload the same page it came from and be bart of the
query above... the thing im not sure of is if that will work or not or do i
need something else...(new to self referrencing pages)...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] configure php solaris with openssl

2004-04-10 Thread Sascha Ferley
Hi, 
I am having a issue with configure in that it doesn't like to find the openssl 
libraries when running configure. Looking through the log it states that there is a 
issue with configure itself.. 
 
 config.log ---
configure:16174: checking for OpenSSL version "configure", line 16182: Error: "," 
expected instead of "end of file".
"configure", line 16182: Error: Use ";" to terminate declarations.
2 Error(s) detected.

==
 
The openssl lib that is installed is: OpenSSL 0.9.7d 17 Mar 2004
The specific section in configure that it is complaining about is:
 
 Section from  configure code with comment.. 
 
#include 
#if OPENSSL_VERSION_NUMBER >= 0x0090600fL
  yes   < issue right here
#endif
 
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t"">= 0.9.6" 1>&6
else
  rm -rf conftest*
  { echo "configure: error: OpenSSL version 0.9.6 or greater required." 1>&2; exit 
1; }
==
 
It is kind of strange, since the compiles used to work, without any problem, but since 
about 4.3.4 i am running into this issue. 
 
If anyone has any idea, please let me know
Thanks
S.


Re: [PHP] php 5 install

2004-04-10 Thread Richard Harb
That's just one of those annoying out of office messages...
I could translate it .. but if the sender didn't care I guess it's not
important enough for him to provide an english translation himself.

Saturday, April 10, 2004, 11:17:44 PM, you wrote:

> anybody know how to put that in english?? i have no clude what it says...


> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 10, 2004 5:13 PM
> Subject: Re: [PHP] php 5 install


>> Hallo und guten Tag,
>>
>> herzlichen Dank für Ihre Mail.
>>
>> Zeit zu leben und Zeit zum Schreiben machen gerade Osterpause, weshalb
> Emails nur sehr sporadisch gelesen werden.
>> Aber keine Sorge - keine Mail geht verloren :-)
>>
>> Der nächste Newsletter für Zeit zu leben erscheinen zum 19.4.04, der für
> Zeit zum Schreiben zum 1.5.04.
>>
>> Ab dem 19.4.04 sind wir dann auch wieder regulär für Sie da - Ihre
> Anfragen werden spätestens dann beantwortet.
>>
>> Wundervolle Frühlingstage und ein schönes Osterfest wünschen Ihnen
>>
>> Tania Konnerth & Ralf Senftleben
>>
>> --
>> Alles für ein aktives Leben - http://www.zeitzuleben.de Lust zum
> Schreiben? http://www.zeitzumschreiben.de
>>
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
Thanks a lot
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "Mike Mapsnac" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 10:34 AM
Subject: Re: [PHP] How to do this?


> Mike Mapsnac wrote:
> > My php page takes data from the database such as ID, Date, Value and
> > prints on the screen. About 20 entries are printed on the screen. The
> > each entry has option 'yes' or 'no'.
> >
> > So I need to gather the information about each entry and update
> > database. I cannot access the variable from $_POST because parameter is
> > not static and $_POST is not working like this $_POST['$id'];
>
> Make a radio button such as:
>
> 
> 
>
> Then, you'll have $_POST['option'][$id] that you can use.
>
> $yes_ids = array_keys($_POST['option'],'Yes');
> $yes_list = implode(',',$yes_ids);
>
> $no_ids = array_keys($_POST['option'],'No');
> $no_ids = implode(',',$no_ids);
>
> $entire_list = implode(',',array_keys($_POST['option']));
>
> $query = "UPDATE table SET option = CASE WHEN id IN ($yes_list) THEN
> 'Yes' WHEN id IN ($no_list) THEN 'No' END CASE WHERE id IN
($entire_list)";
>
> Need to add in some validation, but that's the basic idea. Well, that's
> not really "basic", but it gives you an idea of a very efficient way to
> handle this. :)
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals – www.phparch.com
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php 5 install

2004-04-10 Thread Andy B
anybody know how to put that in english?? i have no clude what it says...


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 5:13 PM
Subject: Re: [PHP] php 5 install


> Hallo und guten Tag,
>
> herzlichen Dank für Ihre Mail.
>
> Zeit zu leben und Zeit zum Schreiben machen gerade Osterpause, weshalb
Emails nur sehr sporadisch gelesen werden.
> Aber keine Sorge - keine Mail geht verloren :-)
>
> Der nächste Newsletter für Zeit zu leben erscheinen zum 19.4.04, der für
Zeit zum Schreiben zum 1.5.04.
>
> Ab dem 19.4.04 sind wir dann auch wieder regulär für Sie da - Ihre
Anfragen werden spätestens dann beantwortet.
>
> Wundervolle Frühlingstage und ein schönes Osterfest wünschen Ihnen
>
> Tania Konnerth & Ralf Senftleben
>
> --
> Alles für ein aktives Leben - http://www.zeitzuleben.de Lust zum
Schreiben? http://www.zeitzumschreiben.de
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php 5 install

2004-04-10 Thread Andy B
if i install php5 will it affect any of the php4.3.3 code that i have
running at all...?? i want to install 5 and see what they have new going on
and stuff but i dont want to crash my 4.3.3 running code any

and where would i be able to read a list of stuff that is new in 5??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] video thumbnail generation

2004-04-10 Thread Stuart Gilbert
I'd really like to generate video thumbnails within PHP, are there any 
libraries available or anything? I can't find very much on the subject 
on php.net and not a lot more on google.

I'd appreciate any pointers you could give me.

Regards,
 Stuart Gilbert.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] MVC based frameworks and PHP5 Object Model.

2004-04-10 Thread Robert Cummings
On Sat, 2004-04-10 at 15:19, Lukasz Karapuda wrote:
> I am curious to see if the experienced PHP developers have a recommendation
> as far as which MVC or Model 2 based framework is the most robust to use in
> web applications that will be developed in PHP5. For Java developers the
> Struts Framework has become an Industry Accepted choice, whereas in PHP we
> have a few MVC Open Source frameworks available, such as php.MVC, phrame. I
> am considering options for web app frameworks, that I can adapt and feel
> comfortable about the fact that they will be continiously maintained and
> adjusted to use the new OO capabilities of PHP5.
> 
> I think it would beneficial to endorse a specific framework for web app
> development in order to gain more unity in the patterns that developers
> utilize to build web applications. I believe that the existence of unified
> and endorsed standards is what still makes the Java related frameworks for
> web application development more accepted by the enterprise world.
> 
> This is a request for comment :D

Lack of choice makes beasts like Microsoft which are hard to put to
sleep despite their inferiority IMHO.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] MVC based frameworks and PHP5 Object Model.

2004-04-10 Thread Lukasz Karapuda
I am curious to see if the experienced PHP developers have a recommendation
as far as which MVC or Model 2 based framework is the most robust to use in
web applications that will be developed in PHP5. For Java developers the
Struts Framework has become an Industry Accepted choice, whereas in PHP we
have a few MVC Open Source frameworks available, such as php.MVC, phrame. I
am considering options for web app frameworks, that I can adapt and feel
comfortable about the fact that they will be continiously maintained and
adjusted to use the new OO capabilities of PHP5.

I think it would beneficial to endorse a specific framework for web app
development in order to gain more unity in the patterns that developers
utilize to build web applications. I believe that the existence of unified
and endorsed standards is what still makes the Java related frameworks for
web application development more accepted by the enterprise world.

This is a request for comment :D

Regards,

Lukasz Karapuda

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] cleaning up html output from php in apache

2004-04-10 Thread Jason Sheets
If you use Smarty you can use the {trim} m

Otherwise you can also use output buffering to grab the output buffer and
remove the sapces that you want.  

Note that you can't actually remove all whitespace as this sometimes has the
side effect of breaking cetain scripts, etc.

I'd rather implement gzip compression, you can do this through output
buffering (see http://www.php.net/ob_start) with PHP or through mod_gzip
(http://sourceforge.net/projects/mod-gzip/) for Apache.

Jason 

-Original Message-
From: Merlin [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 10, 2004 1:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] cleaning up html output from php in apache

Hi there,

I am searching for a way to strip the white spaces from each php generated
html site. Goal is to speed up the pages.

During my research for apache modules I found one for perl:
http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm

Is there something for php as well?

Thanx for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-10 Thread Jochem Maas
Justin Patrin wrote:

Jochem Maas wrote:
...

Smarty does force that at all; you have to make the distinction and 
apply liberal self-restraint.
I meant 'does NOT force' - thinko!

...

PLEASE WORLD: GET BEHIND CSS, AND FREE CONTENT FROM STYLE ON THE CLIENT.
why because it allows the structrully mark-uped to be display more 
flexibly, for diff. display, aural readers, braille etc. removing the 
styling definitions it also allows you to specify different markup.


I want to. I so want to, but I can never get it to make the layout as I 
want it. I want to take a div and make it vertically or horizontally 
be practical - if you need to vertical align something and can't get it 
to work another way use a table.

I CSS site that I found really inspiring is http://www.csszengarden.com/
if you really 'want to' then take the time to read it and view all the 
styles (well not ness. all 247) - take a look at the HTML (and the CSS 
file for each style), maybe have a go at it yourself.

centered in another divif you figure out how to do it with dynamic 
try to let go of the assumption that you can control the display of your 
pages (think of the all the platform/hardware/software/user-settings/etc 
 combinations there are.) - you can only guide it. one of the founding 
ideas of the 'webpage' if that the manner in which it is displayed is 
upto the user (braille/speech/mobile/PC/Barney).

also attempt a site contruction by first creating a bare bones text only 
site with proper markup (P,H tags etc. prefer XHTML over HTML), the see 
what you can add. (have a look at the effect is of using different 
DOC-TYPEs)

sizes that is easy and works on all the major browsers, let me know. 
I've tried for hours, looks on I don't know how many websites, and I 
still couldn't do it. I went back to tables because it's just so easy. 
CSS makes my life very hard...it doesn't seem to have the basics needed 
to create an entire layout.
er but it really does (and the trick is to). not to worry I have been 
hacking css for about 3 years now, in the beginning it was even worse - 
support is getting better which means documentation often more closely 
ressembles truth ;-)

Make Mozilla/Opera part of your testing kit - they support CSS better 
(they are not 3+ years old like IE6).

instead of approaching it from the view of a print designer - ie fixed, 
static layout - assume the layout is a liquid 
(http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=liquid+design)

to be honest - in this game you really have to study something to truely 
get a grip on it. I mean, how many scripts have you poured over, how 
many hours with just one of those scripts to get it to play just right? 
 CSS is no different.

That said, I do use lots of CSS for styling (font sizes, colors, images, 
printable pages, etc.), but fill-page styling via CSS is just beyond my 
reach.
dumping all those style definitions in a seperate file in a good start.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Most bizarre date problem ever

2004-04-10 Thread trlists
On 10 Apr 2004 Brian Dunning wrote:

> Check this out: I'm returning a list of the last 30 days, looping 
> through i, subtracting it from $end_date where $end_date is 2004-04-10 
> 00:00:00. I'm just trying to derive a timestamp $check_date for each 
> iteration, like 1081321200. Here's the code within the loop:
> 
> $check_date = mktime(0, 0, 0, substr($end_date, 5, 2), 
> substr($end_date, 8, 2) - $i, substr($end_date, 0, 4), -1);
> 
> Note that this works PERFECTLY for every date, and always has. Except 
> for one particular day. When $end_date - $i is supposed to be April 4, 
> the timestamp returned is -7262, which it thinks is 12/31/1969. 

I don't see the same problem.  This code:



Produces this output:

1081483200 = 04-09-2004
1081396800 = 04-08-2004
1081310400 = 04-07-2004
1081224000 = 04-06-2004
1081137600 = 04-05-2004
1081054800 = 04-04-2004
1080968400 = 04-03-2004
1080882000 = 04-02-2004
1080795600 = 04-01-2004
1080709200 = 03-31-2004
1080622800 = 03-30-2004
1080536400 = 03-29-2004
108045 = 03-28-2004
1080363600 = 03-27-2004
1080277200 = 03-26-2004
1080190800 = 03-25-2004
1080104400 = 03-24-2004
1080018000 = 03-23-2004
1079931600 = 03-22-2004
1079845200 = 03-21-2004
1079758800 = 03-20-2004
1079672400 = 03-19-2004
1079586000 = 03-18-2004
1079499600 = 03-17-2004
1079413200 = 03-16-2004
1079326800 = 03-15-2004
1079240400 = 03-14-2004
1079154000 = 03-13-2004
1079067600 = 03-12-2004
1078981200 = 03-11-2004

Tested on PHP 4.3.4 on Win2K.

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP e-commerce questions

2004-04-10 Thread Matt Hedges
Hello.

I have built a site where people can register their weddings.  I use
MySQL/PHP to handle the database.  I wish to add a step where people must
pay to enter their information into the database.

How do I do this?  What services do ya'll recommend?  I won't need a
complicated shopping cart, since there will just be one thing to purchase...
I just need something that takes credit card information and then assigns
the user a username and password...

thanks a lot,
Matt

-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Read file backwards

2004-04-10 Thread Kim Steinhaug
Got a tip by email,

Might look here and modify it if needed ...

http://tailforwin32.sourceforge.net/

Thanks, this is atleast much better than switching windows and refershing
the files in Textpad
which I do at the moment. tail was ofcourse the word I was looking for, not
the trace word.

Thanks for the tip,

Kim Steinhaug


"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyone have a script that reads a file backwards? Im looking for
> a way to trace a log file, say the last 30 lines each time I run the
script.
> I havnt found any DOS tools so I guess doing it in PHP will be just as
> fine, and Im on a Win32 platform.
>
> I could however read the entire file, and count the files and show the
> last lines, but this wouldnt really read it backwards and would work
> very "foolishly" on large files I would think.
>
> If there isnt a way of doing this Ill have to do the above, but you never
> know. Ill google in the meantime.
>
> -- 
> -- 
> Kim Steinhaug
> --
> There are 10 types of people when it comes to binary numbers:
> those who understand them, and those who don't.
> --
> www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
> --

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Read file backwards

2004-04-10 Thread Kim Steinhaug
Anyone have a script that reads a file backwards? Im looking for
a way to trace a log file, say the last 30 lines each time I run the script.
I havnt found any DOS tools so I guess doing it in PHP will be just as
fine, and Im on a Win32 platform.

I could however read the entire file, and count the files and show the
last lines, but this wouldnt really read it backwards and would work
very "foolishly" on large files I would think.

If there isnt a way of doing this Ill have to do the above, but you never
know. Ill google in the meantime.

-- 
-- 
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Most bizarre date problem ever

2004-04-10 Thread Brian Dunning
Check this out: I'm returning a list of the last 30 days, looping 
through i, subtracting it from $end_date where $end_date is 2004-04-10 
00:00:00. I'm just trying to derive a timestamp $check_date for each 
iteration, like 1081321200. Here's the code within the loop:

$check_date = mktime(0, 0, 0, substr($end_date, 5, 2), 
substr($end_date, 8, 2) - $i, substr($end_date, 0, 4), -1);

Note that this works PERFECTLY for every date, and always has. Except 
for one particular day. When $end_date - $i is supposed to be April 4, 
the timestamp returned is -7262, which it thinks is 12/31/1969. Can 
somebody PLEASE tell me how the above code manages to produce -7262, 
when it's always worked properly for every other day in history?

Confused,
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP5 and pear

2004-04-10 Thread Aidan Lister
Was that from a > pear install xml_rpc ?



"Electroteque" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pear does not seem to be actually in the sources for some reason
>
> [PEAR] XML_RPC: The following errors where found (use force option to
> install an
> yway):
> missing package name
> missing summary
> missing description
> missing license
> missing version
> missing release state
> missing release date
> missing release notes
> no maintainer(s)
> no files
>
> did this for all of them ??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to do this?

2004-04-10 Thread John W. Holmes
Mike Mapsnac wrote:
My php page takes data from the database such as ID, Date, Value and 
prints on the screen. About 20 entries are printed on the screen. The 
each entry has option 'yes' or 'no'.

So I need to gather the information about each entry and update 
database. I cannot access the variable from $_POST because parameter is 
not static and $_POST is not working like this $_POST['$id'];
Make a radio button such as:



Then, you'll have $_POST['option'][$id] that you can use.

$yes_ids = array_keys($_POST['option'],'Yes');
$yes_list = implode(',',$yes_ids);
$no_ids = array_keys($_POST['option'],'No');
$no_ids = implode(',',$no_ids);
$entire_list = implode(',',array_keys($_POST['option']));

$query = "UPDATE table SET option = CASE WHEN id IN ($yes_list) THEN 
'Yes' WHEN id IN ($no_list) THEN 'No' END CASE WHERE id IN ($entire_list)";

Need to add in some validation, but that's the basic idea. Well, that's 
not really "basic", but it gives you an idea of a very efficient way to 
handle this. :)

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] How to do this?

2004-04-10 Thread Duncan Hill
On Saturday 10 April 2004 14:36, Mike Mapsnac wrote:

> So I need to gather the information about each entry and update database. I
> cannot access the variable from $_POST because parameter is not static and
> $_POST is not working like this $_POST['$id'];

$_POST["$id"]

" does variable substitution, ' does not.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Store e-mail in DB

2004-04-10 Thread Raditha Dissanayake
MadHD wrote:

Hi,
i'm searching some script that can read e-mails with attachments from an
account pop3 and that store them in a db.
 

Michelle has an informative post on how to do this. I am proposing an 
alternative. If you are setting up a new system you might want to 
consider using IMAP since it's pretty much  like DB+POP3. (supports 
searching etc)


Someone can help me?
Thanks, Heber.
 



--
Raditha Dissanayake.
-
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
My php page takes data from the database such as ID, Date, Value and prints 
on the screen. About 20 entries are printed on the screen. The each entry 
has option 'yes' or 'no'.

So I need to gather the information about each entry and update database. I 
cannot access the variable from $_POST because parameter is not static and 
$_POST is not working like this $_POST['$id'];

Any ideas how I can make this working?

_
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and 
more! http://moneycentral.msn.com/tax/workshop/welcome.asp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


php-general Digest 10 Apr 2004 12:40:52 -0000 Issue 2697

2004-04-10 Thread php-general-digest-help

php-general Digest 10 Apr 2004 12:40:52 - Issue 2697

Topics (messages 183036 through 183065):

Re: List Admins
183036 by: -{ Rene Brehmer }-
183041 by: Elfyn McBratney

regular expressions
183037 by: René Fournier
183039 by: Richard Harb

Re: Looking for a comprehensive PHP tutorial
183038 by: -{ Rene Brehmer }-

Store e-mail in DB
183040 by: Michelle Konzack

Re: Serializing objects and storing them is sessions [fixed]
183042 by: Kelly Hallman
183051 by: Tom Rogers
183054 by: Kelly Hallman

Re: failure notice
183043 by: Elfyn McBratney

Re: What does MAX_FILE_SIZE do?
183044 by: Raditha Dissanayake

The Smarty Aftermath
183045 by: Justin French

Re: Finding value in multi-dimensional array - Solved
183046 by: Verdon Vaillancourt

require_once '../config.php'; doesn't work?
183047 by: Mike Zornek
183048 by: Jason Giangrande
183049 by: Richard Harb
183050 by: Marek Kilimajer

Re: Beginner Question
183052 by: Kris J. Hagel

Re: Beginner Question-Solution-packages
183053 by: rob

Re: writing a class in php to print form elements
183055 by: Don Read
183056 by: Andy B

stripping the query string from url
183057 by: Andy B

cleaning up html output from php in apache
183058 by: Merlin
183060 by: electroteque
183062 by: Merlin

mysqli
183059 by: electroteque

error with curl and PHP5 compile
183061 by: electroteque

Re: (new question on this) http referer
183063 by: Don Read

PHP5 and pear
183064 by: electroteque

php as cgi and module at same time
183065 by: Andy B

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 ---
I'll second that ... keep getting this in response from them:

Thank you !!

Your message has been received; we will treat your message and get back to 
you as soon as possible.

Besides the fact that mailman more or less makes this list useless for me 
... this is just another annoyance...

Rene

At 16:19 09-04-2004, Ryan A wrote:
Please take out these two addresses:

"Information Desk" <[EMAIL PROTECTED]>
"Advance Credit Suisse Bank" <[EMAIL PROTECTED]>
everytime we post to the list we get their damn autoresponders.
--
Rene Brehmer
aka Metalbunny
~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/
--- End Message ---
--- Begin Message ---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[postmaster@ added to Cc:]

Hello,

On Saturday 10 Apr 2004 00:39, -{ Rene Brehmer }- wrote:
> I'll second that ... keep getting this in response from them:
>
> Thank you !!
>
> Your message has been received; we will treat your message and get back to
> you as soon as possible.
>
> Besides the fact that mailman more or less makes this list useless for me
> ... this is just another annoyance...
>
> Rene
>
> At 16:19 09-04-2004, Ryan A wrote:
> >Please take out these two addresses:
> >
> >"Information Desk" <[EMAIL PROTECTED]>
> >"Advance Credit Suisse Bank" <[EMAIL PROTECTED]>
> >
> >everytime we post to the list we get their damn autoresponders.

Yes, postmaster, please do.  The spam mennaces hit me 10+ times on every post 
i make to php-general@ (yes, only three or four today :)

Thanks,
Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAd1HXaIgMKkVlSLQRAgKbAJ9e+ZnqP9f9iass0XkMjsxuxeWtcACgqdRU
WJRs+1YJWPcdvy1LvkJ6uVg=
=Q5Ir
-END PGP SIGNATURE-
--- End Message ---
--- Begin Message ---
I'm trying to 'clean up' some text that is extracted from a web 
directory, and I need to use (I think) preg_replace or ereg_replace, 
etc. I've read a bunch of tutorials, but none of them seem to cover the 
particular thing I want to do. Here's an example of text I need to 
process:

-

J.  Smith   ( More Info )
map
driving directions
add to My Directory
update or remove
Did you go to High School with J.  Smith?
 
B. Dixon   ( More Info )
map
driving directions
add to My Directory
update or remove
Did you go to High School with B. Dixon?

M.  Jones   ( More Info )
map
driving directions
add to My Directory
update or remove
Did you go to High School with M.  Jon

[PHP] php as cgi and module at same time

2004-04-10 Thread Andy B
is it possible to have php installed with apache as cgi and module both at
the same time...??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP5 and pear

2004-04-10 Thread electroteque
Pear does not seem to be actually in the sources for some reason

[PEAR] XML_RPC: The following errors where found (use force option to
install an
yway):
missing package name
missing summary
missing description
missing license
missing version
missing release state
missing release date
missing release notes
no maintainer(s)
no files

did this for all of them ??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] (new question on this) http referer

2004-04-10 Thread Don Read

On 08-Apr-2004 John Nichel wrote:
> Joe Szilagyi wrote:
>> Just a follow up on this one--I've seen where consistently that
>> $HTTP_REFERER will only show local referers, but not stuff from
>> other
>> sites/hostnames. This is on mod_php... any workaround for that?
>> 
>> Regards,
>> Joe
> 
> The referrer is sent by the referring machine.  If that machine isn't
> setting it, you can't get it.  If memory serves, I think I remember 
> someone claiming that this could also be blocked at a
> firewall...don't 
> know if that's true or not though.

Not a firewall. The 'Referer' is in the headers, that would mean the FW
would have to edit the stream (~shudder~).

A 'proxy' server on the other hand will re-write headers :

mysql> select url from urls where url not like 'http%' limit 5;
+--+
| url  |
+--+
| 1.0 TECH002  |
| 1.1 wall:800 (squid/2.5.STABLE2) |
| 1.0 px2nr (NetCache NetApp/5.5D1)|
| 1.0 arnink[D4BB2507] (Traffic-Server/5.2.1-58896 [uSc ]) |
| 1.1 ffm2-t6-1.mcbone.net:3228 (Squid/2.1.PATCH1) |
+--+
5 rows in set (0.00 sec)

FYI: 

mysql> select count(*) from urls;
+--+
| count(*) |
+--+
|   261511 |
+--+
1 row in set (0.00 sec)

mysql> select count(*) from urls where url not like 'http%';
+--+
| count(*) |
+--+
|69594 |
+--+
1 row in set (0.38 sec)

mysql> select 69594/ 261511;
+---+
| 69594/ 261511 |
+---+
|  0.27 |
+---+
1 row in set (0.00 sec)

So 27% of my hits are by proxy (for this site/month anyhow).

Regards,
-- 
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] cleaning up html output from php in apache

2004-04-10 Thread Merlin
Htmltidy
I found it on the net, but it lacks on documentation. Is this a tool to include
into apache as a library which cleans up each php generated html page?
thanx 

merlin

Electroteque wrote:

Htmltidy ?


-Original Message-
From: Merlin [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 5:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cleaning up html output from php in apache
Hi there,

I am searching for a way to strip the white spaces from each
php generated html site. Goal is to speed up the pages.
During my research for apache modules I found one for perl:
http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm
Is there something for php as well?

Thanx for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] error with curl and PHP5 compile

2004-04-10 Thread electroteque
Hi there i am getting a wierd error when trying to compile php5 with curl

 ext/curl/interface.lo
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c: In function
`curl_free_post':
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:655: warning: passing arg 1
of
`curl_formfree' from incompatible pointer type
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c: In function
`alloc_curl_handle
':
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:723: error: invalid
application
 of `sizeof' to an incomplete type
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c: In function
`zif_curl_setopt':
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:1008: error: duplicate case
val
ue
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:853: error: previously used
her
e
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:1050: warning: passing arg
1 of
 `curl_formadd' from incompatible pointer type
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:1050: warning: passing arg
2 of
 `curl_formadd' from incompatible pointer type
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:1057: warning: passing arg
1 of
 `curl_formadd' from incompatible pointer type
/usr/share/src/php-5.0.0RC1/ext/curl/interface.c:1057: warning: passing arg
2 of
 `curl_formadd' from incompatible pointer type
*** Error code 1


I have googled it everywhere and keep getting the same answer of fixed in
cvs also the latest interface.c is greater than the suppose cvs fixed file.
??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] cleaning up html output from php in apache

2004-04-10 Thread electroteque
Htmltidy ?

> -Original Message-
> From: Merlin [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 10, 2004 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] cleaning up html output from php in apache
> 
> 
> Hi there,
> 
> I am searching for a way to strip the white spaces from each
> php generated html site. Goal is to speed up the pages.
> 
> During my research for apache modules I found one for perl:
> http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm
> 
> Is there something for php as well?
> 
> Thanx for any hint,
> 
> Merlin
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysqli

2004-04-10 Thread electroteque
bloody excellent, it has its own wrapper object, the prepared statements
feature looks cool

http://www.zend.com/php5/articles/php5-mysqli.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] cleaning up html output from php in apache

2004-04-10 Thread Merlin
Hi there,

I am searching for a way to strip the white spaces from each
php generated html site. Goal is to speed up the pages.
During my research for apache modules I found one for perl:
http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm
Is there something for php as well?

Thanx for any hint,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] stripping the query string from url

2004-04-10 Thread Andy B
i have to write code for the following standard:
1. 13 links at the top and bottom of the page
2. those links reload the same page with a query string that will be part of
a mysql query
3. all query strings that come from anywhere except from say
www.test.com/ViewEvents.php get stripped out and ignored...
anybody know how i should go about trying to do that?? i guess the main part
im needing info on is how to strip the query_string unless it comes from the
links on that page

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php