[PHP] Re: PHP editor for linux

2008-08-25 Thread Swapnil Jain
Hi, I use gPHPEdit and bluefish, it makes PHP easy. -- Swapnil Jain -- E-mail: [EMAIL PROTECTED] MSN : [EMAIL PROTECTED] GTalk : [EMAIL PROTECTED] Skype : sj1410 YIM : sj1410 Shawn McKenzie wrote: It flance wrote: Hi, What do you think is the best php editor for linux. I'm using

Re: [PHP] Re: PHP editor for linux

2008-08-25 Thread Shelley
Check the result at http://phparch.cn. And you are encouraged to make your choice. 2008/8/19 Pavel [EMAIL PROTECTED] I use Zend Studio (shareware, but i couldn't find better things). There are some plugins for Eclipse,but if you used Zend before, you will be cunfused by that plugins...

[PHP] file_exists() not working correctly?

2008-08-25 Thread Chris Haensel
Good morning list, I have a _very_ simple function... it is as follows /**/ function getgalimage($fzg) { $folder = bilder; $imgname= $fzg._1.JPG; $checkimg = $folder./.$imgname;

[PHP] Session time

2008-08-25 Thread Swapnil Jain
Hi, how do i get the time for how much a particular session was active. i.e difference between session start and session end. I am able to do it by getting the difference of logintime and logouttime. but what it the user 1) doesn't logout and close the browser 2) or the sessions end after

Re: [PHP] file_exists() not working correctly?

2008-08-25 Thread Chris
Chris Haensel wrote: Good morning list, I have a _very_ simple function... it is as follows /**/ function getgalimage($fzg) { $folder = bilder; $imgname= $fzg._1.JPG; $checkimg =

[PHP] Re: concatenating with . or ,

2008-08-25 Thread Colin Guthrie
Govinda wrote: easy to find our about concatenating with . in the docs... but not so with , what is the difference? One works and the other you made up? Comma is an argument separator, it does not concatenate strings. You may see some example code that passes two strings into a function and

Re: [PHP] file_exists() not working correctly?

2008-08-25 Thread Carlos Medina
Chris schrieb: Chris Haensel wrote: Good morning list, I have a _very_ simple function... it is as follows /**/ function getgalimage($fzg) { $folder=bilder; $imgname=$fzg._1.JPG; $checkimg=$folder./.$imgname;

Re: [PHP] file_exists() not working correctly?

2008-08-25 Thread Chris
That worked like a charm. Now, can you tell me why that exact same function works with a relative path on another server and with a full path only on this server? I am glad that it works, but would also like to understand why :o) Could be different document roots for apache, different

[PHP] Re: newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Colin Guthrie
Govinda wrote: if (true == ($file=.jpg)) { Watch out for this! You're doing a test that is an assignment.. You are assigning the value .jpg to the variable $file. You are then comparing this to the value true and (due to the loose variable types) this succeeds. Although

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Nitsan Bin-Nun
Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: ?php $a = 3; $b = 5; echo $a, abc, $b; ? Regards, (I'm actually crying right now for guys like who showoff too much..) Nitsan 2008/8/25 Colin Guthrie [EMAIL PROTECTED] Govinda wrote: easy

RE: [PHP] file_exists() not working correctly?

2008-08-25 Thread Per Jessen
Chris Haensel wrote: That worked like a charm. Now, can you tell me why that exact same function works with a relative path on another server and with a full path only on this server? I am glad that it works, but would also like to understand why Check the working directory as well as the

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Robert Cummings
On Mon, 2008-08-25 at 11:08 +0300, Nitsan Bin-Nun wrote: Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: ?php $a = 3; $b = 5; echo $a, abc, $b; ? This is not concatenation it is argument separation. No string is concatenated. The

RE: [PHP] file_exists() not working correctly?

2008-08-25 Thread Chris Haensel
-:- -Original Message- -:- From: Chris [mailto:[EMAIL PROTECTED] -:- Sent: Monday, August 25, 2008 9:25 AM -:- To: Chris Haensel -:- Cc: php-general@lists.php.net -:- Subject: Re: [PHP] file_exists() not working correctly? -:- -:- Chris Haensel wrote: -:- Good morning list, -:-

[PHP] Re: concatenating with . or ,

2008-08-25 Thread Colin Guthrie
Nitsan Bin-Nun wrote: Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: ?php $a = 3; $b = 5; echo $a, abc, $b; ? Regards, (I'm actually crying right now for guys like who showoff too much..) Erm, I wasn't being a smart ass was I? Certainly

RE: [PHP] file_exists() not working correctly?

2008-08-25 Thread Chris Haensel
-:- -Original Message- -:- From: Chris [mailto:[EMAIL PROTECTED] -:- Sent: Monday, August 25, 2008 9:49 AM -:- To: Chris Haensel -:- Cc: php-general@lists.php.net -:- Subject: Re: [PHP] file_exists() not working correctly? -:- -:- -:- That worked like a charm. Now, can you tell

[PHP] Auto-generating a graphs Y scale

2008-08-25 Thread Richard Heyes
Can anyone give me some pointers for auto generating an appropriate Y scale for a graph (eg a bar/line graph). Much like JPGraph does. Thanks. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread David Otton
2008/8/24 Govinda [EMAIL PROTECTED]: $ThisDir = getcwd()./thumbs; $DirHandle = opendir($ThisDir); if ($DirHandle = opendir($ThisDir)) { echo Directory handle: $DirHandle\n; echo Files:br /hr width=\25\%\ align=\left\ /; while ((false !== ($file = readdir($DirHandle))) 1) { if

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Jochem Maas
Chris schreef: if (stripos(strrev($file), gpj.) === 0) { echo $file; } note the ===, 3 equals signs here is very important! check the docs for why. == means 'equals', and === means 'is identical to'. Seems like they would do the same thing when comparing '0' to 'the position in the

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-25 Thread Jochem Maas
Ryan S schreef: klip I hate to admit to this, but some 15 years ago I was consulting for a company doing oil exploration in Nigeria and I received a very elaborate and believable Nigerian scam. It was complete with signed and official documents from both the Nigerian Government and the Bank

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread David Otton
2008/8/25 David Otton [EMAIL PROTECTED]: You can check the manual for full details, but briefly, sql_regcase() returns a case-insensitive regular expression, and glob() returns an array of filenames that match the path given to it (in this case ./thumbs/*.jpg). I should have mentioned that

[PHP] index.php not autoloading in apache

2008-08-25 Thread Vince Sabio
I am running PHP v5.2.6 on an Apache v2.2 server. For some reason, Apache is not automatically loading index.php files, even when there is no other index.* file in the directory; it will throw a you do not have permission to access [directory] instead. I have the following in my httpd.conf

[PHP] Re: index.php not autoloading in apache

2008-08-25 Thread Carlos Medina
Vince Sabio schrieb: I am running PHP v5.2.6 on an Apache v2.2 server. For some reason, Apache is not automatically loading index.php files, even when there is no other index.* file in the directory; it will throw a you do not have permission to access [directory] instead. I have the

Re: [PHP] index.php not autoloading in apache

2008-08-25 Thread Richard Heyes
Hi, Simply add Directory index.php to your config. Eg: LoadModule php5_modulelibexec/apache22/libphp5.so php_value session.save_path /tmp/ AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps DirectoryIndex index.php That's from meory so it may off, I

Re: [PHP] index.php not autoloading in apache

2008-08-25 Thread Richard Heyes
Simply add Directory index.php to your config. Eg: Oops, that should be: DirectoryIndex index.php -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php not reading file properly

2008-08-25 Thread Jochem Maas
sean greenslade schreef: Well, if you really want to know, I have to go to many places that do not have internet access. For those places, I have a PDA. I have Avantgo software on the PDA, and I wanted it to be able to store a copy of the log file to review it when I do not have internet access.

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread tedd
At 11:08 AM +0300 8/25/08, Nitsan Bin-Nun wrote: Gosh, what a smart ass! The comma can also concatenate string! You may want to run the following lines: ?php $a = 3; $b = 5; echo $a, abc, $b; ? Colin may be a smart ass, but I think you'll the rest of him pretty smart too! Sometimes, it pays

[PHP] Attributes vs. Accessors

2008-08-25 Thread Philip Thompson
Hi all. Curious. Which do you prefer and why? ?php class Hello { public $hi; function __construct () { $this-hi = 'Well Hello There!'; } function hi () { return $this-hi; } } $hello = new Hello (); // Access the value this way... echo $hello-hi; // or

Re: [PHP] Restore Leading Zeros in Zip Codes

2008-08-25 Thread Philip Thompson
On Aug 21, 2008, at 9:44 PM, Keith Spiller wrote: Hi, RE: Restore Leading Zeros in Zip Codes Does anyone happen to have a script that will restore the leading zeros in a mixed data set of 5 digit zip codes and 10 digit zip+4 codes? Any suggestions? Thanks, Keith ?php $len = strlen

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Stut
On 25 Aug 2008, at 13:32, Philip Thompson wrote: Curious. Which do you prefer and why? ?php class Hello { public $hi; function __construct () { $this-hi = 'Well Hello There!'; } function hi () { return $this-hi; } } $hello = new Hello (); // Access the value

Re: [PHP] Auto-generating a graphs Y scale

2008-08-25 Thread tedd
At 10:01 AM +0100 8/25/08, Richard Heyes wrote: Can anyone give me some pointers for auto generating an appropriate Y scale for a graph (eg a bar/line graph). Much like JPGraph does. Thanks. -- Richard Heyes Richard: First, the y scale is the one that runs up and down and not right to

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Philip Thompson
On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO, Reply-All is really annoying. Since I'm on the list, there's no need to reply to me - I'll get

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Christoph Boget
Curious. Which do you prefer and why? For publicly-declared variables, do you access the attribute directly or use an accessor? If it's a public member variable there is no need for plain accessor methods - they add no value. I feel the same about private variables with plain get and set

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Philip Thompson
On Aug 25, 2008, at 7:54 AM, Christoph Boget wrote: Curious. Which do you prefer and why? For publicly-declared variables, do you access the attribute directly or use an accessor? If it's a public member variable there is no need for plain accessor methods - they add no value. I feel the

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Stut
On 25 Aug 2008, at 13:54, Christoph Boget wrote: ]Curious. Which do you prefer and why? For publicly-declared variables, do you access the attribute directly or use an accessor? If it's a public member variable there is no need for plain accessor methods - they add no value. I feel the same

Re: [PHP] Adding a single php file to .htaccess.

2008-08-25 Thread tedd
At 5:05 PM +0300 8/24/08, Dotan Cohen wrote: On one particular server, all *.html files are written in Python. I uploading a few PHP files to the directory, but they must also have .html extensions (they are replacing files that _were_ python, but it is rather important that the filename stay

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Eric Butera
On Mon, Aug 25, 2008 at 8:32 AM, Philip Thompson [EMAIL PROTECTED] wrote: Hi all. Curious. Which do you prefer and why? ?php class Hello { public $hi; function __construct () { $this-hi = 'Well Hello There!'; } function hi () { return $this-hi; } }

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread tedd
At 7:53 AM -0500 8/25/08, Philip Thompson wrote: On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO, Reply-All is really annoying. Since I'm on the

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Yeti
So it is faster to output various strings using the , instead of .? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding a single php file to .htaccess.

2008-08-25 Thread Dotan Cohen
2008/8/25 tedd [EMAIL PROTECTED]: Dotan: This is what I use to force php to consider certain files: # handler for phpsuexec.. FilesMatch \.(htm|html|css|tpl)$ SetHandler application/x-httpd-php /FilesMatch I occasionally use php in css files and this works for that. My understanding

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread tedd
At 3:25 PM +0200 8/25/08, Yeti wrote: So it is faster to output various strings using the , instead of .? Faster -- faster than what? The subject line says concatenating -- commas don't concatenate. I think they make little commas some other way. :-) Cheers, tedd -- ---

Re: [PHP] php not reading file properly

2008-08-25 Thread sean greenslade
Yeah, well, I don't want everyone to view my logs. Only me. So it won't add any unnecessary load to my server. On Mon, Aug 25, 2008 at 8:04 AM, Jochem Maas [EMAIL PROTECTED] wrote: sean greenslade schreef: Well, if you really want to know, I have to go to many places that do not have

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Philip Thompson
On Aug 25, 2008, at 8:16 AM, tedd wrote: At 7:53 AM -0500 8/25/08, Philip Thompson wrote: On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO,

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Philip Thompson
On Aug 25, 2008, at 8:36 AM, tedd wrote: At 3:25 PM +0200 8/25/08, Yeti wrote: So it is faster to output various strings using the , instead of .? Simply, yes. Will it make a *huge* difference? Probably not. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Thiago Melo de Paula
Govinda, please, consider the following code: ?php $brandA = 'Porshe'; $brandB = 'Jaguar'; $testA = $branA . $brandB; //testA will have the value PorsheJaguar $testB = $branA , $brandB; //Returns a Parse error: syntax error, unexpected ',' in /test.php on line 7 ? With that, you can see that

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Wolf
!-- SNIP -- I'm using Eudora for the Mac and the first 32 lines of all my emails are the header and if I click the Blah Blah button (that's supposed to show the header information), then I get another 25 lines of header. That's 57 lines in total to get to the contents of the email -- far

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Thiago Melo de Paula
Hello Yeti! This is a very good question, because it shows that you're interested in get the max from your PHP codes. In my research about php optimization, I couldn't find any relevant article about this specific issue, but some sites tell us that using commas instead periods on echo

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread TG
I would guess that using the comma would be faster, as Thiago mentioned. It's just a blind dump of what's in those strings and it dumps the values in sequence directly to the output. A concatenation actually involves temporary memory space for holding value A and value B then possibly a

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Maciek Sokolewicz
Thiago Melo de Paula wrote: Hello Yeti! This is a very good question, because it shows that you're interested in get the max from your PHP codes. In my research about php optimization, I couldn't find any relevant article about this specific issue, but some sites tell us that using commas

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Andreas J.
hi, here it is described in detail: http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html Govinda schrieb: easy to find our about concatenating with . in the docs... but not so with , what is the difference? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Auto-generating a graphs Y scale

2008-08-25 Thread Richard Heyes
First, the y scale is the one that runs up and down and not right to left. :-) Yes I know. Second, the physical length of the y scale should be static and whatever you want it to be (i.e., 5 inches, 10 inches, etc.). That gives a poor range IMO. JPGraph generates one which is better,

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Richard Heyes
Curious. Which do you prefer and why? Accessor methods. They allow for changes in the future that may well be unforeseen at the moment. Or at least that would be my response with PHP4. Now with the __get and __set built-in accessors, that's pretty much taken care of. I access directly to avoid

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Govinda
Good, understood. To deepen (for me): why does this: echo 'p$_POST[\'SNGstep\']='.var_dump($_POST['SNGstep']).'^/p'.\n; spit out: NULL p$_POST['SNGstep']=^/p while this: echo 'p$_POST[\'SNGstep\']=',var_dump($_POST['SNGstep']),'^/p'.\n; spits out: p$_POST['SNGstep']=NULL ^/p ? I think it

[PHP] alphabetical filenames with readdir

2008-08-25 Thread Ed Curtis
Is there a way to make readdir output filenames alphabetically? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: index.php not autoloading in apache

2008-08-25 Thread Vince Sabio
** At 13:03 +0200 on 08/25/2008, Carlos Medina wrote: Vince Sabio schrieb: I am running PHP v5.2.6 on an Apache v2.2 server. For some reason, Apache is not automatically loading index.php files, even when there is no other index.* file in the directory; it will throw a you do not have

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Stut
On 25 Aug 2008, at 16:09, Govinda wrote: Good, understood. To deepen (for me): why does this: echo 'p$_POST[\'SNGstep\']='.var_dump($_POST['SNGstep']).'^/ p'.\n; spit out: NULL p$_POST['SNGstep']=^/p while this: echo 'p$_POST[\'SNGstep\']=',var_dump($_POST['SNGstep']),'^/ p'.\n; spits

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Yeti
That is why i love this list. Always something new to learn. What I am still wondering about is if it is faster to use commas or the {} brackets? ( I don't know how that technique is called, since I'm not a walking dictionary) Example: $var = blah blah; echo $var,test; echo {$var}test; -- PHP

Re: [PHP] alphabetical filenames with readdir

2008-08-25 Thread Ed Curtis
Ed Curtis wrote: Is there a way to make readdir output filenames alphabetically? Thanks, Ed Never mind. I figured out how to do it using an array and sort. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Robert Cummings
On Mon, 2008-08-25 at 17:34 +0200, Yeti wrote: That is why i love this list. Always something new to learn. What I am still wondering about is if it is faster to use commas or the {} brackets? ( I don't know how that technique is called, since I'm not a walking dictionary) Here is the order

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Eric Butera
On Mon, Aug 25, 2008 at 11:01 AM, Richard Heyes [EMAIL PROTECTED] wrote: Curious. Which do you prefer and why? Accessor methods. They allow for changes in the future that may well be unforeseen at the moment. Or at least that would be my response with PHP4. Now with the __get and __set

[PHP] APC vs. eaccelerator?

2008-08-25 Thread David Park
Hi All, I currently run a phpBB site using phpBB v. 2.0.22 and PHP4. We'd like to install either APC or eaccelerator to speed up the site's performance. I'm not sure whether we should choose APC or eaccelerator since I'm a newbie to PHP caching. Which do you think is better - APC or

Re: [PHP] alphabetical filenames with readdir

2008-08-25 Thread tedd
At 10:45 AM -0400 8/25/08, Ed Curtis wrote: Is there a way to make readdir output filenames alphabetically? Thanks, Ed Sure -- put the results in an array and then sort() or natsort() it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] Auto-generating a graphs Y scale

2008-08-25 Thread tedd
At 3:52 PM +0100 8/25/08, Richard Heyes wrote: First, the y scale is the one that runs up and down and not right to left. :-) Yes I know. Second, the physical length of the y scale should be static and whatever you want it to be (i.e., 5 inches, 10 inches, etc.). That gives a poor

Re: [PHP] concatenating with . or ,

2008-08-25 Thread tedd
At 5:34 PM +0200 8/25/08, Yeti wrote: That is why i love this list. Always something new to learn. What I am still wondering about is if it is faster to use commas or the {} brackets? ( I don't know how that technique is called, since I'm not a walking dictionary) Example: $var = blah blah;

[PHP] Re: APC vs. eaccelerator?

2008-08-25 Thread Colin Guthrie
David Park wrote: Hi All, I currently run a phpBB site using phpBB v. 2.0.22 and PHP4. We'd like to install either APC or eaccelerator to speed up the site's performance. I'm not sure whether we should choose APC or eaccelerator since I'm a newbie to PHP caching. Which do you think is better

Re: [PHP] APC vs. eaccelerator?

2008-08-25 Thread mike
On 8/25/08, David Park [EMAIL PROTECTED] wrote: Some older posts on the net (from 2006) complained about incompatibilities between APC/eacclerator and phpBB and about crashes of APC/eacclerator. I'm hoping that these problems have been cleared up by now. 2006 is a century ago in open source

Re: [PHP] APC vs. eaccelerator?

2008-08-25 Thread Robert Cummings
On Mon, 2008-08-25 at 10:24 -0700, David Park wrote: Hi All, I currently run a phpBB site using phpBB v. 2.0.22 and PHP4. We'd like to install either APC or eaccelerator to speed up the site's performance. I'm not sure whether we should choose APC or eaccelerator since I'm a newbie to PHP

[PHP] Re: APC vs. eaccelerator?

2008-08-25 Thread Colin Guthrie
mike wrote: besides, i think i've heard PHP6 will have a built in byte-code cache already, and i am sure it will use APC/portions of APC (why not, it's already there) Oh yeah, that was another reason I went for APC... forgot about that one :) Col -- Colin Guthrie gmane(at)colin.guthr.ie

Re: [PHP] Re: APC vs. eaccelerator?

2008-08-25 Thread Nathan Nobbe
On Mon, Aug 25, 2008 at 12:23 PM, Colin Guthrie [EMAIL PROTECTED]wrote: mike wrote: besides, i think i've heard PHP6 will have a built in byte-code cache already, and i am sure it will use APC/portions of APC (why not, it's already there) Oh yeah, that was another reason I went for

Re: [PHP] APC vs. eaccelerator?

2008-08-25 Thread Nathan Nobbe
On Mon, Aug 25, 2008 at 12:02 PM, Robert Cummings [EMAIL PROTECTED]wrote: On Mon, 2008-08-25 at 10:24 -0700, David Park wrote: Hi All, I currently run a phpBB site using phpBB v. 2.0.22 and PHP4. We'd like to install either APC or eaccelerator to speed up the site's performance. I'm

Re: [PHP] newbie OT Eudora

2008-08-25 Thread tedd
At 8:47 AM -0500 8/25/08, Philip Thompson wrote: Apple Mail. It's by far the best email app I've seen/used. =D You can hide/view headers as desired. ~Philip Philip: Of course, I have Apple's Mail and have used it, but I still like Eudora. However, I think I see the writing on the wall.

Re: [PHP] newbie OT Eudora

2008-08-25 Thread tedd
At 9:53 AM -0400 8/25/08, Wolf wrote: Really, they still make Eudora? Or is this an old copy on the MacIntosh IIe that you are running. ;) Wolf Wolf: Yes, Eudora is still around, but it's open source now. However, I haven't received/heard of an update in a long time. The critter is

[PHP] comments function being spammed, how do I stop it?

2008-08-25 Thread Barnaby Walters
Hi there! my comments function for my website (at www.waterpigs.co.uk/php/ phpTest.php) is being spammed, what would be your sugguestions of a way to deal with it? I was thinking of something to do with searching the strings of comments contained in the database for rude words, etc, but

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Bernhard Kohl
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleTest for Tedd/title /head body ?php # Ok tedd, if you insist ..

Re: [PHP] comments function being spammed, how do I stop it?

2008-08-25 Thread Thiago H. Pojda
Captcha? On 8/25/08, Barnaby Walters [EMAIL PROTECTED] wrote: Hi there! my comments function for my website (at www.waterpigs.co.uk/php/phpTest.php) is being spammed, what would be your sugguestions of a way to deal with it? I was thinking of something to do with searching the strings of

Re: [PHP] comments function being spammed, how do I stop it?

2008-08-25 Thread David Otton
2008/8/25 Barnaby Walters [EMAIL PROTECTED]: my comments function for my website (at www.waterpigs.co.uk/php/phpTest.php) is being spammed, what would be your sugguestions of a way to deal with it? I was thinking of something to do with searching the strings of comments contained in the

Re: [PHP] comments function being spammed, how do I stop it?

2008-08-25 Thread Jim Lucas
Barnaby Walters wrote: Hi there! my comments function for my website (at www.waterpigs.co.uk/php/phpTest.php) is being spammed, what would be your sugguestions of a way to deal with it? I was thinking of something to do with searching the strings of comments contained in the database for

[PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
Hello folks, I have written a method to download file from remote server. normally those fill will be huge in size. from 1MB to 400MB. I am using fsockopen and curl to download the file. But the problem is its too slow. Very very slow. The code can be found on http://nopaste.info/55817730b3.html I

[PHP] Re: Remote File download is very slow

2008-08-25 Thread Shiplu
Okay, I attached the code. Not everyone will click the paste bin link. :P the code is a downloading function of a class. the class has some methods need to be explained. 1) $this-debugMessage, it sends message to a call back function to a caller 2) $this-doCallback, sends the amount of bytes

Re: [PHP] Remote File download is very slow

2008-08-25 Thread David Otton
2008/8/25 Shiplu [EMAIL PROTECTED]: Hello folks, I have written a method to download file from remote server. normally those fill will be huge in size. from 1MB to 400MB. I am using fsockopen and curl to download the file. But the problem is its too slow. Very very slow. What happens when

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
Nothing works. I was using curl actually. It was hell slow. Then I added the fsockeopen option. Its slwo too. now I am thinking to add socket_* functions. But If dont know what is the problem how can I resolve it. change scheme may not solve it. :( -- Blog: http://talk.cmyweb.net/ Follow me:

Re: [PHP] Remote File download is very slow

2008-08-25 Thread David Otton
2008/8/25 Shiplu [EMAIL PROTECTED]: Nothing works. I was using curl actually. It was hell slow. Then I added the fsockeopen option. Its slwo too. now I am thinking to add socket_* functions. But If dont know what is the problem how can I resolve it. change scheme may not solve it. :( Ok,

Re: [PHP] FW: [SPAM] [PHP] FIFO files on PHP?

2008-08-25 Thread Waynn Lue
On Wed, Jul 2, 2008 at 1:22 AM, Chris Scott [EMAIL PROTECTED] wrote: -Original Message- From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 11:06 PM To: php-general@lists.php.net Subject: [SPAM] [PHP] FIFO files on PHP? Importance: Low I'm trying to

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
They take same time. let me tell you how my code works. it download a file and in the same time it reports a progress by a call back function. this script is called from web. not console. it provides live debug messages. I'll give you a time wise debug log. -- Blog: http://talk.cmyweb.net/

Re: [PHP] Remote File download is very slow

2008-08-25 Thread Shiplu
here are the log messages. see the timinings. [2008-08-25 18:09:05.21780900]started downloading in Live_In_Cuba_-_Louder_Than_War.part1.rar [2008-08-25 18:09:05.60409200]Headers Sent POST /files/108041147/1693469/Live_In_Cuba_-_Louder_Than_War.part1.rar HTTP/1.1 Host: rs246tl3.rapidshare.com