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

2008-05-20 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. >>

Re: [PHP] strip_tags and nl2br

2008-05-20 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 > tags so it will display properly in a browser. RTM. Supply the tags you want to keep when you call strip_tag

[PHP] strip_tags and nl2br

2008-05-20 Thread James Colannino
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 tags so it will display properly in a browser. nl2br() works just fine, but if I use strip_tags first, then run nl2br, nl2br won't work a

Re: [PHP] Enterprise

2008-05-20 Thread Nikola Stjelja
On Tue, May 20, 2008 at 11:39 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Ray Hauge 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

[PHP] Odd error

2008-05-20 Thread The Doctor
A customer was woring on php5.2.6/mysql 5.1 and no problem yet with php 5.2.5 / mysql 4.1 we get: Warning: DOMDocument::__construct() [function.DOMDocument---construct]: Malloc(88) in /usr/home/vesna/html/pryvit/church_maps/data_genxml.php on line 5 Warning: DOMDocument::__construct() [function.

Re: [PHP] syntax of sprintf

2008-05-20 Thread Chris
> the select query is > > $selectqueryusername = sprintf("Select username from individuals where > username='%s'", mysql_real_escape_string($username)); The syntax is fine. $result = mysql_query($selectqueryusername); if (!$result) { echo "Error! *** " . mysql_error(); } > also for insert q

Re: [PHP] reretrieve header from email

2008-05-20 Thread Chris
Richard Heyes wrote: > Yui Hiroaki wrote: >> Does anyone knows how to retrieve Header from email? > > Depends how you have your email. For example you could use > Mail_mimeDecode, optionally in combination with Net_POP3. If it's an > IMAP account you're checking, you could use the IMAP extension i

[PHP] syntax of sprintf

2008-05-20 Thread Sudhakar
until i started using the techniques for avoiding sql injection, i have been using a normal insert and select sql query which worked fine. i have a registration page where a user enters their username and if this already exists i display a message by executing a select query and if the username doe

Re: [PHP] php mysql live feed

2008-05-20 Thread Richard Heyes
[EMAIL PROTECTED] wrote: Okay before i pull more hair out... I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading. I want the data to refresh but not the screen. Ajax seems to hate me becaus

Re: [PHP] php mysql live feed

2008-05-20 Thread Kyle Browning
Check out jQuery. http://jquery.com On May 20, 2008, at 1:24 PM, [EMAIL PROTECTED] wrote: Okay before i pull more hair out... I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading. I

[PHP] php mysql live feed

2008-05-20 Thread admin
Okay before i pull more hair out... I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading. I want the data to refresh but not the screen. Ajax seems to hate me because everything i have seen/

Re: [PHP] Enterprise

2008-05-20 Thread Richard Heyes
Ray Hauge 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 well. http://lists.canonical.org/pi

Re: [PHP] reretrieve header from email

2008-05-20 Thread Richard Heyes
Yui Hiroaki wrote: Does anyone knows how to retrieve Header from email? Depends how you have your email. For example you could use Mail_mimeDecode, optionally in combination with Net_POP3. If it's an IMAP account you're checking, you could use the IMAP extension instead, which would also mea

Re: [PHP] Enterprise

2008-05-20 Thread Zoltán Németh
Ray Hauge írta: 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 well. http://lists.canonical.org/pip

Re: [PHP] Enterprise

2008-05-20 Thread Wolf
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 wel

Re: [PHP] Enterprise

2008-05-20 Thread Dan Joseph
On Tue, May 20, 2008 at 1:46 PM, 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-ent

[PHP] Enterprise

2008-05-20 Thread Ray Hauge
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 well. http://lists.canonical.org/pipermail/kragen-tol

Re: RES: [PHP] 0T - Request for quick test

2008-05-20 Thread James
> > Your JS for email verification is annoying :P > > Type something in email address field and then go to next field, and then > press shift+tab or alt+tab and see it going nuts :) > > > I second what Daniel said about that green arrow and, yeah it actually > worked here too. :D > > > Atenciosamen

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

2008-05-20 Thread tedd
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 running JS inside of PHP is at best confusing, it is possible to use both php and javascript together. For example: You can use php to ru

[PHP] reretrieve header from email

2008-05-20 Thread Yui Hiroaki
Does anyone knows how to retrieve Header from email? Regards, Yui -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-05-20 Thread tedd
At 9:32 PM +0200 5/19/08, Per Jessen wrote: Wolf wrote: >and IE has always been more stringent in-so-far as displaying things that match up to THEIR standards instead of industry or fly-by-your-seat coding (accidentally leaving off a closing tag) then Mozilla and Firefox have historically been

[PHP] Re: unset thoughts

2008-05-20 Thread Nathan Rixham
Nathan Rixham wrote: what do we think of: while(1) { #script here to do stuff unset( array_keys(get_defined_vars()) ); sleep(10); } thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning Regards Nath scrat

[PHP] unset thoughts

2008-05-20 Thread Nathan Rixham
what do we think of: while(1) { #script here to do stuff unset( array_keys(get_defined_vars()) ); sleep(10); } thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning Regards Nath -- PHP General Mailing List

Re: [PHP] 0T - Request for quick test

2008-05-20 Thread Ryan S
Hey Daniel B, Steve H and Thiago P, Thanks for replying! My cuz couldnt upload from her browser, thats why i requested this... wanted a upload with progress bar but this was the best simple one i could find which unfortunatly didnt have a progress bar but was free and OS. > Looks like it worked,

Re: [PHP] 0T - Request for quick test

2008-05-20 Thread Zoltán Németh
> > > Hey guys, > > Just make a egreeting app and need people to just test the AJAXy upload > that i have on the form, if you have any problems please tell me.. if it > goes smooth please tell me... as usual, any comments and suggestions too > would be appreciated. > > This is the form: > http://w

Re: [PHP] Function not in the documentation

2008-05-20 Thread Zoltán Németh
> I ran across a PHP function, strip_illegal_chars(), but can't seem to > find anything about it in the documentation. Does anyone know > precisely what it does? Or where I can find actual documentation for > that function? it is not in the PHP source: http://lxr.php.net/search?string=strip_ille

RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Thiago Pojda
Yeah, I just checked out and that runat=Server thingy is an asp thing. Atenciosamente, www.softpartech.com.br Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] Excelência em Softwares Financeiros -Mensagem original- De: Thiago Pojda [mailto:[EMAIL PROTECTED]

RES: [PHP] 0T - Request for quick test

2008-05-20 Thread Thiago Pojda
Your JS for email verification is annoying :P Type something in email address field and then go to next field, and then press shift+tab or alt+tab and see it going nuts :) I second what Daniel said about that green arrow and, yeah it actually worked here too. :D Atenciosamente, www.softpartec

RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Thiago Pojda
What Richard meant was: /// FILE.PHP /// 100){ ?> alert('Bigger than 100'); /// EOF /// That way you can conditionally send some JS to client, but running actual JS in PHP is not possible. (Not sure about Jscript [script runat=server] tho, I believe it only runs on IIS) Atencios

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

2008-05-20 Thread Eric Butera
On Mon, May 19, 2008 at 4:03 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Since when has that mattered? :-) :-) to you too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Data request

2008-05-20 Thread 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 is keeping me busy. What I need is ICAO code, runway n

Re: [PHP] Function not in the documentation

2008-05-20 Thread shiplu
On Tue, May 20, 2008 at 8:24 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: > > > I ran across a PHP function, strip_illegal_chars(), but can't seem to > > > find anything about it in the documentation. Does anyone know > > > precisely what it does? Or where I can find actual documentation for >

Re: [PHP] Function not in the documentation

2008-05-20 Thread Wolf
Christoph Boget wrote: I ran across a PHP function, strip_illegal_chars(), but can't seem to find anything about it in the documentation. Does anyone know precisely what it does? Or where I can find actual documentation for that function? thnx, Chris Sure, whatever code you found it in, is w

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

2008-05-20 Thread Wolf
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 -Original Message- From: Tim Thorburn <[EMAIL PROTECTED]> Sent: Monday, May 19, 2008 3:20 PM To

[PHP] Function not in the documentation

2008-05-20 Thread Christoph Boget
I ran across a PHP function, strip_illegal_chars(), but can't seem to find anything about it in the documentation. Does anyone know precisely what it does? Or where I can find actual documentation for that function? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shiplu
On 5/20/08, Shelley <[EMAIL PROTECTED]> wrote: > > Hi all, > > How can I call a javascript method inside PHP? > That is: > Suppose there is a js file: http://someurl/somejs.js > There are some js methods in that js file, > I want to include that js into PHP and call its methods. > > Is it possible?

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Richard Heyes
Shelley wrote: Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? No. What you can do though is use PHP to se

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Yea, of course. On Tue, May 20, 2008 at 5:44 PM, jose javier parra sanchez < [EMAIL PROTECTED]> wrote: > Do you know that php runs on the server and that javascript runs on the > client ? > > 2008/5/20 Shelley <[EMAIL PROTECTED]>: > > Hi all, > > > > How can I call a javascript method inside PHP?

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
You missed what I meant. Suppose there is a piece of code like: function hello() { document.write "hello"; } I want to call that method inside PHP: Hope you get it. On Tue, May 20, 2008 at 5:40 PM, Chetan Rane <[EMAIL PROTECTED]> wrote: > Yea > > You can use the script tag in PHP > > I

[PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? If it is, how? Thank you very much. -- Regards, Shelley