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.
>>
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
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
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
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.
> 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
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
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
[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
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
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/
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
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
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
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
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
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
>
> 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
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
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
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
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
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
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,
>
>
> 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
> 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
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]
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
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
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
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
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
>
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
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
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,
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?
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
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?
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
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
40 matches
Mail list logo