Fwd: Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
-- Forwarded Message -- Subject: Re: [PHP] Print or Echo takes lots of time Date: Wednesday 27 September 2006 06:37 From: Børge Holen <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] On Wednesday 27 September 2006 01:46, Richard Lynch wrote: > On Tue, September 26, 2006 6:35 pm, Curt

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Robert Cummings
On Tue, 2006-09-26 at 18:46 -0500, Richard Lynch wrote: > On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: > >> I wonder what would happen if you put your swap on a RAM disk? > > > > I actually have done this, it works like a charm :) > > > > you just have to ensure swap doesn't run out... of

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 6:29 pm, Curt Zirzow wrote: >> This files cannot be downloaded through direct url like >> http://site/test.zip. It must be downloaded after user login. > > This will need some sort of rewrite or 404 handling on the webserver > level Au contraire, my good friend. $_SERVE

Re: [PHP] Mail Problem

2006-09-26 Thread Curt Zirzow
On a side note.. have i ever mentioned the email system really sucks. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: >> I wonder what would happen if you put your swap on a RAM disk? > > I actually have done this, it works like a charm :) > > you just have to ensure swap doesn't run out... of course i'd only > recomend this on a dedicated machine for like fir

Re: [PHP] Mail Problem

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, September 26, 2006 11:09 am, [EMAIL PROTECTED] wrote: > I have an issue with sending email via PHP which may be a > configuration problem with either PHP, Apache, or possibly a Sendmail, > but I don't know which yet. I figured I'd star

Re: [PHP] File Upload Security and chmod

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote: > So I tried to implement the example code given in the php tmpfile() > documentation and it wouldn't do anything, which suggests that I don't > have > access to the /tmp directory. Also, the FAQ's section on my server's > website say that /

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Curt Zirzow
On 9/24/06, Ramiro <[EMAIL PROTECTED]> wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This is a standard procedure. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded

Re: [PHP] Re: Re: Frustrated trying to get help from your site

2006-09-26 Thread Richard Lynch
On Fri, September 22, 2006 4:48 pm, Michelle Konzack wrote: > I like to have html files which I can put on my internal > documentation server. I believe http://mirrors.php.net or somesuch has instructions on how to++ run your own private mirror, with (or without) UCN* * UCN - User Contributed Not

Re: [PHP] libcurl (cookies across cURL session). . .?

2006-09-26 Thread Richard Lynch
On Sat, September 23, 2006 1:10 am, Michael Williams wrote: > Is there any way at all by which to persist cookies across cURL > sessions? Basically I have a login page that sets cookies and looks > for them for "logged in" status so that the user may use the site to > their heart's content. The p

Re: [PHP] File Upload Security and chmod

2006-09-26 Thread Richard Lynch
The FTP will be slower, almost for sure. He's doing it because he can FTP in as himself, and not as the "nobody" user Apache runs as. Your webhost has you running as yourself already, so you can chmod your files at will in PHP. On Mon, September 25, 2006 2:11 pm, Andy Hultgren wrote: > Tedd, > >

Re: [PHP] Object to array conversion oddity

2006-09-26 Thread Marcus Bointon
On 26 Sep 2006, at 23:52, Richard Lynch wrote: You start using that PHP5 private/protected stuff, and it just doesn't make sense to coerce it to an array, imho. I'm quite aware of that, and in this case I'm using it in a one-off string-and-glue fix for a specific problem until I fix it prope

Re: [PHP] Re: Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 4:08 am, Colin Guthrie wrote: > Google Kreme wrote: >> On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >>> $strPage = " yada dayda"; >>> ... >>> $strPage.= " another html tags"; >>> ... >>> $strPage.= getSqlDataAndCreateSomeHtmlCOde(); >> >> If this is generating hundred o

Re: [PHP] Mail Problem

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 5:08 pm, Travis Doherty wrote: > The RFC's are a rather in depth, so here is an excerpt from Wikipedia > that pretty much sums up what the RFCs do contain: > [http://en.wikipedia.org/wiki/Bounce_message] For awhile, I've been pondering the advisability of sending a "Boun

[PHP] Display dynamic progress bar

2006-09-26 Thread Choy, Wai Yew
Hi, Like to get some advice from you guys... I've a html form page and the "Action" is link to a php script to process the form dataI would like to have a progress bar once the user hit the Submit button...The php script take quite sometime to produce the result since it is connecting t

Re: [PHP] Mail Problem

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 5:08 pm, Travis Doherty wrote: > They should *always* be sending to the envelope from address (SMTP > `MAIL > FROM` command), with an empty envelope sender (SMTP `MAIL FROM:<>`) to > avoid loops. There was a brief period in time where there was an Errors-to: header that

Re: [PHP] Object to array conversion oddity

2006-09-26 Thread Richard Lynch
On Sat, September 23, 2006 10:39 am, Marcus Bointon wrote: > On 23 Sep 2006, at 16:37, Ray Hauge wrote: > >> Could you do something like this? >> >> $private = "Myclass" >> $protected = "*"; > > No, because if I have a property called 'Myclassfield1', after > casting to an array I can't tell if it'

Re: [PHP] Alternative to FCKeditor

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 1:17 am, Lester Caine wrote: >> TinyMCE...I don't know how good/bad TinyMCE is, but if you can't use >> FCK, you could try it. >> >> http://tinymce.moxiecode.com/ > > Looks like we are all looking for something that actually works :( > I switched TinyMCE off because it ke

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: > On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: >> Hi Christopher, >> at first, thank you for your answer. >> >> I'd like to know if it's possible use this when php is running like >> cgi (php-suexec). I've put this

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:52 am, Miles Thompson wrote: > $filenam = $_REQUEST["filenam"]; > if ($filenam){ > $contents = file_get_contents( "../above_root/" . > $filenam ); > echo $contents; > }else{ > echo "Not found

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, September 26, 2006 7:18 am, Ryan A wrote: > I want to write a "module" for xcart (a commercial > 'shopping cart') which would be like what Amazon.com > offers when you go to shop on their site... when you > click on a product to see its

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Sun, September 24, 2006 11:44 pm, Ramiro wrote: > i'm trying to find a good solution to this problem. I want download > files > from a directory outside DocumentRoot. > > This files cannot be downloaded through direct url like > http://site/test.zip. It must be downloaded after user login. > > I

Re: [PHP] RE: Error Reporting for file commands

2006-09-26 Thread Richard Lynch
Try using http://php.net/set_error_handler and see if you can trap the errors. You'll want to test it with a test script that intentionally causes the errors. On Mon, September 25, 2006 5:53 am, James Nunnerley wrote: > Sometime ago, I posted the email below, regarding some problems with a > file

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to >> use >> > it all... :-) (Me, in 2005) >> >> Not real

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:11 am, Sancar Saran wrote: > When I was check the performance of my system I found interesting > resuts. > > My code stores html output into a variable. When page creation > complete I > printed out the variable. > > Problem was generation html code takes 0.5 second and

Re: [PHP] How would you do this ?

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 1:17 am, Chris wrote: > Cache the feeds for a period of time. Oh yeah. I forgot that part. Here's some code I posted for that a few months back http://www.l-i-e.com/FeedMulti/FeedMulti.phps Note that the above opens up multiple feeds at once. You do *not* want to sit

Re: [PHP] How would you do this ?

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 8:26 am, Jad madi wrote: > I'm building an RSS aggregator so I'm trying to find out the best way > to > parse users account feeds equally so Lets say we have 20.000 user with > average of 10 feeds in account so we have about > 200.000 feed > > How would you schedule the p

RE: [PHP] manage/modify linux file/folder structure...

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:59 pm, bruce wrote: > i should state... while i've seen different apps... i'm more > interested in > any that have actually been used by you, or someone you know!! > > an app that comes with references! > Google for php file manager - there are lots of them around, but

Re: [PHP] Mail Problem

2006-09-26 Thread Travis Doherty
Richard Lynch wrote: >>if(!mail($to,$subject,$msg,$headers)) { die("Unable to send"); } >> >> > >*IF* you are using PHP5 (?) and *IF* your security settings allow it, >the optional fifth argument will let you specify the "real" sender of >the message, which the responder may or may not be usin

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 7:18 am, Ryan A wrote: > I want to write a "module" for xcart (a commercial > 'shopping cart') which would be like what Amazon.com > offers when you go to shop on their site... when you > click on a product to see its details you get a little > box below that recommends m

Re: [PHP] Mysql_free_result() doubt

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 8:44 am, suresh kumar wrote: >I am little bit confused to use the > mysql_free_result($result) function.because i searched > google - they told dont use this function to php 4.X > and also it says clearly "When you are done with a > result set, you must fr

Re: [PHP] Mail Problem

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 11:16 am, Kevin Murphy wrote: > Why not validate the email address before you send. I use something > like this to kick back an error that says you put in a bad email > address. It won't tell you about a wrong email address, but it will > tell you if they forgot to put in

Re: [PHP] Mail Problem

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 11:09 am, [EMAIL PROTECTED] wrote: > I have an issue with sending email via PHP which may be a > configuration problem with either PHP, Apache, or possibly a Sendmail, > but I don't know which yet. I figured I'd start here first. > > Here's the situation. I have several

RE: [PHP] Override php.ini

2006-09-26 Thread Beauford
I wouldn't use it myself, but a buddy who is using Frontpage is complaining that it automatically changes and wanted to know how to get around this. I suggested not using FP and get a real editor. Thanks to others that replied. B -Original Message- From: Richard Lynch [mailto:[EMAIL PR

[PHP] reading a remote directory

2006-09-26 Thread Jay Blanchard
I have to read a directory (on a windows machine) from another box (a linux machine) and I thought that I could set the handle to the IP address of the windows box, but that does not work. Do I have to open a socket or is there another way? Thanks! -- PHP General Mailing List (http://www.php.net/

[PHP] Status of PHPDocWriter

2006-09-26 Thread Leonard Burton
Hi All, Does anyone on this list know the status of PHPDocWriter? Is it an abandoned project? -- Leonard Burton, N9URK [EMAIL PROTECTED] "The prolonged evacuation would have dramatically affected the survivability of the occupants." -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Mail Problem

2006-09-26 Thread travis
> I have an issue with sending email via PHP which may be a configuration > problem with either PHP, Apache, or possibly a Sendmail, but I don't know > which yet. I figured I'd start here first. > > Here's the situation. I have several webpages that send email to users for > various reasons.

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
On Tuesday 26 September 2006 02:07, Robert Cummings wrote: > On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: > > I'm sitting here with 4 Gigs of RAM trying to figure out how to use > > it all... :-) (Me, in 2005) > > Not really related to the post... but I find a good way to eat up 4 gigs >

Re: [PHP] Mail Problem

2006-09-26 Thread Kevin Murphy
Why not validate the email address before you send. I use something like this to kick back an error that says you put in a bad email address. It won't tell you about a wrong email address, but it will tell you if they forgot to put in the @ sign and stuff. if (!preg_match("/^(.+)@[a-zA-Z0-

[PHP] Mail Problem

2006-09-26 Thread php
I have an issue with sending email via PHP which may be a configuration problem with either PHP, Apache, or possibly a Sendmail, but I don't know which yet. I figured I'd start here first. Here's the situation. I have several webpages that send email to users for various reasons. We have our

[PHP] Re: Re: Re: Frustrated trying to get help from your site

2006-09-26 Thread Michelle Konzack
Am 2006-09-25 08:33:52, schrieb Ray Hauge: > It's not the best in the world, but it works. > > http://xchm.sourceforge.net/index.html > > But since the documentation is online and always updated that way, I prefer > to > just use the website. Me too, but IF you live mobil like me (I have an 8

[PHP] Re: Re: Frustrated trying to get help from your site

2006-09-26 Thread Michelle Konzack
Am 2006-09-25 23:00:15, schrieb David Robley: > xchm is probably what you are thinking of - xchm.sourceforge.net This afternoon I will go downloading it. Greetings Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread David Tulloh
You have a User table and a Product table, then a linking table that joins users with products that they have bought. Given product A you get all users {B} who have bought product A, you then get a list of all products {C} that they have bought. You group {C} by product and get a count, order by

[PHP] Mysql_free_result() doubt

2006-09-26 Thread suresh kumar
Hi to all, I am little bit confused to use the mysql_free_result($result) function.because i searched google - they told dont use this function to php 4.X and also it says clearly "When you are done with a result set, you must free the memory it uses by calling mysql_free_result()

[PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread Ryan A
Hey all, I want to write a "module" for xcart (a commercial 'shopping cart') which would be like what Amazon.com offers when you go to shop on their site... when you click on a product to see its details you get a little box below that recommends more products based on what others have purchased

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread David Tulloh
Google Kreme wrote: > On 25 Sep 2006, at 06:11 , Sancar Saran wrote: > ... > > If this is generating hundred of K of HTML, use ' instead of " > > (yes, it's faster). > I've seen this stated several times and at first glance it seems to make sense. The double quoted version has all the \n and r

Re: [PHP] manage/modify linux file/folder structure...

2006-09-26 Thread Kae Verens
bruce wrote: i should state... while i've seen different apps... i'm more interested in any that have actually been used by you, or someone you know!! an app that comes with references! try this? http://kfm.verens.com/ I'm biased, though - I wrote the thing. Kae -- PHP General Mailing List

[PHP] Re: Print or Echo takes lots of time

2006-09-26 Thread Colin Guthrie
Google Kreme wrote: > On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >> $strPage = " yada dayda"; >> ... >> $strPage.= " another html tags"; >> ... >> $strPage.= getSqlDataAndCreateSomeHtmlCOde(); > > If this is generating hundred of K of HTML, use ' instead of " > > (yes, it's faster). In this

[PHP] Re: How would you do this ?

2006-09-26 Thread Kae Verens
Kae Verens wrote: every 6 hours, check feeds who's primes are divisible by $i, then add 1 to $i of course, this should be "check feeds where $i%(the prime) is 0" Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How would you do this ?

2006-09-26 Thread Alex Turner
Jad madi wrote: I'm building an RSS aggregator so I'm trying to find out the best way to parse users account feeds equally so Lets say we have 20.000 user with average of 10 feeds in account so we have about 200.000 feed How would you schedule the parsing process to keep all accounts always upda

[PHP] Re: How would you do this ?

2006-09-26 Thread Kae Verens
Jad madi wrote: I'm building an RSS aggregator so I'm trying to find out the best way to parse users account feeds equally so Lets say we have 20.000 user with average of 10 feeds in account so we have about 200.000 feed How would you schedule the parsing process to keep all accounts always upda