[PHP] AJAX and PHP

2008-04-20 Thread Alain Roger
Hi, i'm playing around with AJAX and PHP to create something like a "small desktop" application. basically the first step is to log in the system. for that i have a log-in form where users can choose the interface language. here is my problem : when the log-in form runs, it is in English. user ca

Re: [PHP] function returns no value

2008-04-20 Thread Liran Oz
Can't really know without the rest of the code. Check if the function really returns and not Dying (Add some messege like: die("help me I'm dying"); ). Also use print_r or something like to see what's inside the fields array. it is possible that it's an associative array and you are using the w

Re: [PHP] function returns no value

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 4:51 PM, Ali Reza Sajedi <[EMAIL PROTECTED]> wrote: > Hello, > > with the following call I try to print a string out of DB > > echo $allg->translate($db, $lang, 14, "auth/authCallback", 4); > > function translate () should do a DB querry and returns the requested > string.

[PHP] function returns no value

2008-04-20 Thread Ali Reza Sajedi
Hello, with the following call I try to print a string out of DB echo $allg->translate($db, $lang, 14, "auth/authCallback", 4); function translate () should do a DB querry and returns the requested string. Although the querry yields a positive result, the function returns no value. Here is

Re: [PHP] Cron php & refresh

2008-04-20 Thread Børge Holen
On Sunday 20 April 2008 13:37:04 Per Jessen wrote: > Børge Holen wrote: > > Is the MTA operational on the server? if so, forget > > mailing with php and rather use php to access the mta. > > Yeah, that is what mail() does - it calls sendmail. > > > /Per Jessen, Zürich What the point of 50 mails no

Re: [PHP] Cron php & refresh

2008-04-20 Thread Jason Norwood-Young
On Sun, 2008-04-20 at 13:32 -0500, Larry Garfield wrote: > On Sunday 20 April 2008, Jeffrey wrote: > > I'm working on an application that includes e-mail notifications of > > certain events. Because the application will have hundreds or thousands > > of users, I've designed it so that e-mail notif

Re: [PHP] Check RAW data

2008-04-20 Thread Richard Heyes
I mean, if you already specified it as a PNG image with header(), how do you execute Javascript/malicious code, as the browser will render it as a PNG? Malicious code can still be embedded in images. The vulnerabilities ISTR are in Windows image handling libraries. I assume they've been fixed n

Re: [PHP] Check RAW data

2008-04-20 Thread Richard Heyes
I don't believe malicious code can be executed with echo and header. The header of the PNG file, not a HTTP header. -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| +---

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Robert Cummings
On Sun, 2008-04-20 at 14:41 -0400, Nathan Nobbe wrote: > On Sun, Apr 20, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > > > On Sun, 2008-04-20 at 14:17 -0400, Nathan Nobbe wrote: > > > On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > > > > > > Nathan

[PHP] Opening a new window from Header Location or any other way

2008-04-20 Thread Richard Kurth
I have my login.php file that when I access the login fields they are in a small window width=400,height=250. When I click on submit I what it to close this window and open another full window with the web page that the script directs it to. But nomater what I do it opens it in the same window whi

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-04-20 at 14:17 -0400, Nathan Nobbe wrote: > > On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > > > > Nathan Nobbe wrote: > > > > > > > umm, so whats going on here is the implicit

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Robert Cummings
On Sun, 2008-04-20 at 14:17 -0400, Nathan Nobbe wrote: > On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > > Nathan Nobbe wrote: > > > > > umm, so whats going on here is the implicit component of the statement > > > that incorporates relative or absolute performance. in

Re: [PHP] Cron php & refresh

2008-04-20 Thread Larry Garfield
On Sunday 20 April 2008, Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or thousands > of users, I've designed it so that e-mail notifications are saved to a > MySQL table. Then a regular cron job run

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > > umm, so whats going on here is the implicit component of the statement > > that incorporates relative or absolute performance. in terms of > > relative performance the statement is accurate; in term

Re: [PHP] Alter Table newbie help needed ...

2008-04-20 Thread David Giragosian
On 4/20/08, revDAVE <[EMAIL PROTECTED]> wrote: > > On 4/19/2008 2:37 PM, "Jason Norwood-Young" <[EMAIL PROTECTED]> > wrote: > > > Might be obvious but you are doing "mysql_query($sql);", right? > > Hello Jason, > > Thanks - Your idea worked well - for a while - but then I ran into > trouble... > >

Re: [PHP] Alter Table newbie help needed ...

2008-04-20 Thread revDAVE
On 4/19/2008 2:37 PM, "Jason Norwood-Young" <[EMAIL PROTECTED]> wrote: > Might be obvious but you are doing "mysql_query($sql);", right? Hello Jason, Thanks - Your idea worked well - for a while - but then I ran into trouble... I added : mysql_error() and it said: Table 'connect2.ztest' doe

Re: [PHP] Check RAW data

2008-04-20 Thread Regular email
On Sun, 2008-04-20 at 15:52 +0200, rb wrote: I'm getting from an external source a PNG image in raw format (encoded in base64). And with this code I'll echo on the screen. -- $img=base64_decode($_POST['img']); header("Content-type: image/png"); echo $img; -- A quick way would be to

Re: [PHP] Check RAW data

2008-04-20 Thread Jason Norwood-Young
On Sun, 2008-04-20 at 15:52 +0200, rb wrote: > I'm getting from an external source a PNG image in raw format (encoded in > base64). > > And with this code I'll echo on the screen. > > -- > $img=base64_decode($_POST['img']); > > header("Content-type: image/png"); > echo $img; > -- A qui

[PHP] Check RAW data

2008-04-20 Thread rb
I'm getting from an external source a PNG image in raw format (encoded in base64). And with this code I'll echo on the screen. -- $img=base64_decode($_POST['img']); header("Content-type: image/png"); echo $img; -- How can I check if the data received is a real PNG raw (and not malicio

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Børge Holen wrote: > Is the MTA operational on the server? if so, forget > mailing with php and rather use php to access the mta. Yeah, that is what mail() does - it calls sendmail. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Jeffrey wrote: > Per Jessen wrote: >> Jeffrey wrote: >> >>> I'm working on an application that includes e-mail notifications of >>> certain events. Because the application will have hundreds or >>> thousands of users, I've designed it so that e-mail notifications >>> are saved to a MySQL table. T

Re: [PHP] Cron php & refresh

2008-04-20 Thread Jeffrey
Per Jessen wrote: Jeffrey wrote: I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular cron job runs a php pag

Re: [PHP] Cron php & refresh

2008-04-20 Thread Børge Holen
On Sunday 20 April 2008 11:27:38 Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or thousands > of users, I've designed it so that e-mail notifications are saved to a > MySQL table. Then a regular cron

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Per Jessen
Nathan Nobbe wrote: > umm, so whats going on here is the implicit component of the statement > that incorporates relative or absolute performance. in terms of > relative performance the statement is accurate; in terms of absolute > performance, its quite inaccurate. > Nathan, I think we're disa

Re: [PHP] Cron php & refresh

2008-04-20 Thread Per Jessen
Jeffrey wrote: > I'm working on an application that includes e-mail notifications of > certain events. Because the application will have hundreds or > thousands of users, I've designed it so that e-mail notifications are > saved to a MySQL table. Then a regular cron job runs a php page to > select

[PHP] Cron php & refresh

2008-04-20 Thread Jeffrey
I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular cron job runs a php page to select the data from the tab