php-general Digest 22 May 2008 03:54:48 -0000 Issue 5472

2008-05-21 Thread php-general-digest-help
php-general Digest 22 May 2008 03:54:48 - Issue 5472 Topics (messages 274597 through 274622): Re: php mysql live feed 274597 by: Boyd, Todd M. 274600 by: admin.buskirkgraphics.com 274613 by: tedd mnoGoSearch and similar 274598 by: Mattias Thorslund

Re: [PHP] strip_tags and nl2br

2008-05-21 Thread Chris
James Colannino wrote: Hey everyone, I have a little bit of a quandry. I need to strip HTML tags from user input, but I also need to convert \n's from the textarea elements to br tags so it will display properly in a browser. RTM. Supply the tags you want to keep when you call strip_tags.

Re: RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-21 Thread Nitsan Bin-Nun
I was surprised it didnt came up before. As Tedd said, try to ajax-up your javascript On 20/05/2008, tedd [EMAIL PROTECTED] wrote: At 11:41 AM -0300 5/20/08, Thiago Pojda wrote: That way you can conditionally send some JS to client, but running actual JS in PHP is not possible. While

Re: [PHP] strip_tags and nl2br

2008-05-21 Thread James Colannino
Chris wrote: RTM. Supply the tags you want to keep when you call strip_tags. $stripped = strip_tags($data, 'br/br'); I can do that, but my question had to do with strip_tags seeming to get rid of \n's, not br tags. This is why I was concerned. If I run strip_tags(), followed by nl2br,

Re: [PHP] strip_tags and nl2br

2008-05-21 Thread Chris
James Colannino wrote: Chris wrote: RTM. Supply the tags you want to keep when you call strip_tags. $stripped = strip_tags($data, 'br/br'); I can do that, but my question had to do with strip_tags seeming to get rid of \n's, not br tags. This is why I was concerned. If I run

[PHP] Re: Enterprise

2008-05-21 Thread Colin Guthrie
Wolf wrote: Ray Hauge [EMAIL PROTECTED] wrote: I just read an interesting article about enterprise software. One of the most common arguments against PHP tends to be It's not enterprise ready. This article talks more about ruby, but it could be about any non-enterprise language as

Re: [PHP] strip_tags and nl2br

2008-05-21 Thread James Colannino
Chris wrote: Are you sure there are newlines before you run strip_tags? I would assume so, because everything from the textarea runs together in one line when displayed in the browser until filtered through nl2br(). That would suggest to me that there are indeed \n's that are being

Re: [PHP] strip_tags and nl2br

2008-05-21 Thread James Colannino
James Colannino wrote: Chris wrote: Are you sure there are newlines before you run strip_tags? I would assume so, because everything from the textarea runs together in one line when displayed in the browser until filtered through nl2br(). That would suggest to me that there are indeed \n's

RES: [PHP] Odd error

2008-05-21 Thread Thiago Pojda
Without more data and code, all I can tell is that this line should be be read carefully: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'vesna'@'localhost' (using password: YES) in /usr/home/vesna/html/pryvit/church_maps/data_genxml.php on line 13 Not connected :

RE: [PHP] php mysql live feed

2008-05-21 Thread Boyd, Todd M.
Nameless, I see someone mentioned the setTimeout(function, milliseconds) function for JavaScript. I would also like to point out that you can use setInterval(function, milliseconds) in order to have an event repeat at a set interval. For instance, let's say you had a page laid out like so:

[PHP] mnoGoSearch and similar

2008-05-21 Thread Mattias Thorslund
Hi, I'm looking at possibly implementing mnoGoSearch (for indexing and search of uploaded documents on the server) into my application, but noticed it has been moved into PECL since PHP 5.1. Does this mean mnoGoSearch has been deprecated and there is a different/better solution that I should

Re: [PHP] mnoGoSearch and similar

2008-05-21 Thread Dmitri
Mattias Thorslund wrote: Hi, I'm looking at possibly implementing mnoGoSearch (for indexing and search of uploaded documents on the server) into my application, but noticed it has been moved into PECL since PHP 5.1. Does this mean mnoGoSearch has been deprecated and there is a

RE: [PHP] php mysql live feed

2008-05-21 Thread admin
Todd I want to thank you. You sent me thinking in the right direction to resolving this issue. I now have successfully created a live Pika Card status GUI using PHP, MYSQL, AJAX. The key word in what you said was unique function. I was not thinking to write a function. I was looking for the

[PHP] Re: Re: A Little Something.

2008-05-21 Thread Michelle Konzack
Am 2008-05-12 15:36:30, schrieb tedd: Now, how is that a security threat? Or is the claim that any site that uses js is a security threat? END OF REPLIED MESSAGE One of my customers is the french Ministry of Defense and IF ENOUGH websites

[PHP] Re: Data request

2008-05-21 Thread Michelle Konzack
Am 2008-05-20 15:28:31, schrieb Chris Haensel: Hi fellas (and ladies) Again, I know this is kind of an OT post, but I know that many, if not most, developers are kind of data-collectors. I am looking for a database with US airport runway information. I got all kinds of stuff, but this one

[PHP] Re: Re: A Little Something.

2008-05-21 Thread Michelle Konzack
Am 2008-05-12 15:40:54, schrieb Stut: CSS, but I may not be understanding what you mean by blunt. Javascript can be written such that it eats CPU and/or memory but this is of no benefit to anyone so unless you're running on a prehistoric machine I can't see that being an issue. And it's

[PHP] page suck attack

2008-05-21 Thread robert
Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm not sure if I am going to implement such at thing but I would like to be able to research it to know

Re: [PHP] page suck attack

2008-05-21 Thread Gavin M. Roy
Search engines indexing your site? On Wed, May 21, 2008 at 11:54 AM, robert [EMAIL PROTECTED] wrote: Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm

Re: [PHP] page suck attack

2008-05-21 Thread Dan Joseph
On Wed, May 21, 2008 at 11:54 AM, robert [EMAIL PROTECTED] wrote: Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm not sure if I am going to implement

Re: [PHP] page suck attack

2008-05-21 Thread Jason Pruim
One thing you might want to check for before blocking it is looking in the logs and checking to see if it is one of the search engines that is grabbing your URL's... Which I would think you actually want :) On May 21, 2008, at 11:54 AM, robert wrote: Hi Every so often my site is attacked

RE: [PHP] page suck attack

2008-05-21 Thread Warren Vail
Hmmm, sounds like a search engine scan, Google or Yahoo Slurpy? Do a reverse lookup on the requesting IP. I would think the goal would be to get this increased? You can stop it (or control it a bit) by placing a robots.txt file in the root directory, then telling the robot which paths not to

Re: [PHP] page suck attack

2008-05-21 Thread robert
Not that i can tell. Yahoo and google have a signature: googlebot and slurp. both of them also check my site over a span of days. that's all good. The others come from regular isps as far as their IP tells me and the hits are within milliseconds. On May 21, 2008, at 8:57 AM, Gavin M. Roy

Re: [PHP] mnoGoSearch and similar

2008-05-21 Thread Mattias Thorslund
Dmitri wrote: Mattias Thorslund wrote: Hi, I'm looking at possibly implementing mnoGoSearch (for indexing and search of uploaded documents on the server) into my application, but noticed it has been moved into PECL since PHP 5.1. Does this mean mnoGoSearch has been deprecated and there is

RES: [PHP] page suck attack

2008-05-21 Thread Thiago Pojda
Perhaps someone is accessing your website with some prefetching tool? I'm not sure, but I think Fasterfox does that. Atenciosamente, www.softpartech.com.br Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] ExcelĂȘncia em Softwares Financeiros -Mensagem

[PHP] Re: Re: A Little Something.

2008-05-21 Thread tedd
At 3:08 PM +0200 5/21/08, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: Well, some of his pages do but that's complicating the issue. As far as I can tell the only bit of Javascript common to all Tedd's pages is the Google Analytics code which is not required for you to use

RE: [PHP] php mysql live feed

2008-05-21 Thread tedd
Hi: The following could be taken from MySQL just as well: http://webbytedd.com/b/timed-php/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] page suck attack

2008-05-21 Thread TG
Can you check your logs and look at the user agent for what's making the connections? Could it just be a search engine crawler indexing your pages? You can control access, usually, via a robots.txt exclusion file. If it's someone else mirroring your site for some reason, some programs that

Re: RES: [PHP] page suck attack

2008-05-21 Thread robert
Cool! yes Fasterfox could be it. If anyone cares, it also gave me some clues to what I was looking for: offline browsing. Certainly better keywords than page suck :) thank you everyone! On May 21, 2008, at 10:02 AM, Thiago Pojda wrote: Perhaps someone is accessing your website with

Re: [PHP] page suck attack

2008-05-21 Thread Aschwin Wesselius
robert wrote: Not that i can tell. Yahoo and google have a signature: googlebot and slurp. both of them also check my site over a span of days. that's all good. The others come from regular isps as far as their IP tells me and the hits are within milliseconds. Hi, Are the URL's legit? Or are

Re: [PHP] Re: Re: A Little Something.

2008-05-21 Thread Stut
I was going to ignore this, but I'm in a confrontational mood today, so please accept my apologies for the noise. On 21 May 2008, at 14:08, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: CSS, but I may not be understanding what you mean by blunt. Javascript can be written

[PHP] Re: page suck attack

2008-05-21 Thread Nathan Rixham
robert wrote: Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm not sure if I am going to implement such at thing but I would like to be able to

Re: RES: [PHP] page suck attack

2008-05-21 Thread Usamah M. Ali
On Wed, May 21, 2008 at 8:51 PM, robert [EMAIL PROTECTED] wrote: Cool! yes Fasterfox could be it. If anyone cares, it also gave me some clues to what I was looking for: offline browsing. Certainly better keywords than page suck :) thank you everyone! Well, site rippers is a more suitable

Re: RES: [PHP] page suck attack

2008-05-21 Thread Usamah M. Ali
Sorry, the link: http://www.javascriptkit.com/howto/htaccess13.shtml Usamah On Thu, May 22, 2008 at 1:15 AM, Usamah M. Ali [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 8:51 PM, robert [EMAIL PROTECTED] wrote: Cool! yes Fasterfox could be it. If anyone cares, it also gave me some clues

Re: [PHP] page suck attack

2008-05-21 Thread Michael McGlothlin
robert wrote: Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm not sure if I am going to implement such at thing but I would like to be able to

Re: [PHP] Semi-OT: PHP Login with client security

2008-05-21 Thread Tim Thorburn
Wolf wrote: IMHO, you should be testing this long before taking it to the customer and having another failure to show off. Personally, 2 failures is good reason NOT to purchase someone's services... Wolf Yes, I'm well aware of this - the point which you've continually failed to realize is