[PHP] AJAX and PHP

2008-04-21 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 can

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
Quoting Alain Roger [EMAIL PROTECTED]: 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

Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
you understood right. basically my problem is that the layout avoid it. here is something like my layout : div#0 div#1Lanague (label) : img flag img arrow to show all languages from div#2/div#1 div#2 all flags/div#2 div#3 login field + pwd field + submit button/div#3 /div#0 till now i only use

Re: [PHP] AJAX and PHP

2008-04-21 Thread Alain Roger
in fact i meant by redirecting the following thing : - if user wrote a correct pwd and login, the system should redirect [using header(Location ] syntax to launch the application. but if i use such syntax it will be redirected only into the div#0, and not in the browser itslef. is it clearer

[PHP] mime_content_type and FileInfo

2008-04-21 Thread Paul Scott
I am in a bit of a pickle, or is that PECL? I need to use either mime_content_type or FileInfo to get the mime type of a file that is dumped into the system via email. Now that is the easy part, where the hard part comes in is that a commercial host that I use will do neither reason being that

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
Quoting Alain Roger [EMAIL PROTECTED]: in fact i meant by redirecting the following thing : - if user wrote a correct pwd and login, the system should redirect [using header(Location ] syntax to launch the application. but if i use such syntax it will be redirected only into the div#0, and

Re: [PHP] Check RAW data

2008-04-21 Thread Nitsan Bin-Nun
On IE 5.5 and 6.x you can inject JS through PNG's As I remember, they patched it at 7.x On 20/04/2008, Richard Heyes [EMAIL PROTECTED] wrote: 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

Re: [PHP] AJAX and PHP

2008-04-21 Thread Nitsan Bin-Nun
Hi Alain, You can create a mini-db with XML, that contains translations for each of the words you need (if there are 10 words, 50 langs, you got 500 records.. small and useful). HTH, Nitsan On 21/04/2008, Alain Roger [EMAIL PROTECTED] wrote: Hi, i'm playing around with AJAX and PHP to create

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
Quoting Alain Roger [EMAIL PROTECTED]: you understood right. basically my problem is that the layout avoid it. here is something like my layout : div#0 div#1Lanague (label) : img flag img arrow to show all languages from div#2/div#1 div#2 all flags/div#2 div#3 login field + pwd field +

Re: [PHP] function returns no value

2008-04-21 Thread Ali Reza Sajedi
I added var_dump($result); to the function. As part of the output I get the following: [fields]= array(1) { [fa]= string(22) ورود به سایت} which is the string which should be returned and printed. The result is there, however, it couldn't be printed. Any ideas? Regards Ali - Original

Re: [PHP] function returns no value

2008-04-21 Thread Thijs Lensselink
Quoting Ali Reza Sajedi [EMAIL PROTECTED]: I added var_dump($result); to the function. As part of the output I get the following: [fields]= array(1) { [fa]= string(22) ورود به سایت} which is the string which should be returned and printed. The result is there, however, it couldn't be

Re: [PHP] function returns no value

2008-04-21 Thread Ali Reza Sajedi
using $result-fields[fa] did solve the problem. thanks very much Thijs - Original Message - From: Thijs Lensselink [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, April 21, 2008 2:48 PM Subject: Re: [PHP] function returns no value Quoting Ali Reza Sajedi [EMAIL

[PHP] Security Concern?

2008-04-21 Thread Jason Pruim
Hi Everyone, Last week you all helped me with the code to pull the database field names directly from the database rather then being hardcoded by me. Now I got to thinking, that I have exposed my database layout to anyone who can log in and see it. Is that a security issue? I've heard

Re: [PHP] PHP Serialization Performance

2008-04-21 Thread Waynn Lue
Thanks very much, I ended up using seralize in the database. On Thu, Apr 17, 2008 at 4:42 AM, Casey [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 4:04 AM, Waynn Lue [EMAIL PROTECTED] wrote: I'm using PHP to cache files that are backed by the database. In the course of writing these

[PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But this time, I've spent an hour running down various files and not seeing what the heck is wrong. Here's the essential setup. main.php ? require_once

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Daniel Brown
On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue [EMAIL PROTECTED] wrote: I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But this time, I've spent an hour running down various files and not seeing what

Re: [PHP] Security Concern?

2008-04-21 Thread Philip Thompson
On Apr 21, 2008, at 8:03 AM, Jason Pruim wrote: Hi Everyone, Last week you all helped me with the code to pull the database field names directly from the database rather then being hardcoded by me. Now I got to thinking, that I have exposed my database layout to anyone who can log in and

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread paragasu
On Mon, Apr 21, 2008 at 11:37 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue [EMAIL PROTECTED] wrote: I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread mike
this also should not be an issue if you have output buffering turned on. PHP is great, it will make sure to send the headers *first* then. but yes, whitespace sucks as well. it makes IE's CSS flake out weird sometimes. there's multiple reasons to write clean code :) On Mon, Apr 21, 2008 at

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
This is for a facebook app, so it's just public function set_user($user, $session_key, $expires=null) { if (!$this-in_fb_canvas() (!isset($_COOKIE[$this-api_key . '_user']) || $_COOKIE[$this-api_key . '_user'] != $user)) { $cookies = array();

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Waynn Lue
Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) Waynn On Mon, Apr 21, 2008 at 5:39 PM, Waynn Lue [EMAIL

[PHP] Dear php-general@lists.php.net April 84% 0FF

2008-04-21 Thread php-general
Canadian Doctor Hazel Best Price On Net http://zxa.pharmstorez.com?liyws -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Membership Management

2008-04-21 Thread Jason Pruim
Hi Everyone, I have a client that wants me to fork a current project into a membership management piece of software. Does anyone know of any open source projects that I can look at? The big things I need, are the ability to decide if the members will receive a paper copy of a newsletter

[PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nick Gasparro
Hello Group, I have an immediate need for a Sr. Developer; with one of Denver's Best employers (relocation assistance available). They are a Web 2.0 company, rapidly growing and very profitable. 4-Senior Software Engineers Denver Metro Area We are looking for a Senior Software Engineer

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Richard Heyes
Web 2.0 *and* profitable? Surprising. -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Jim Lucas
Waynn Lue wrote: Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) You are probably looking for something

Re: [PHP] Membership Management

2008-04-21 Thread Ken Kixmoeller.com
Jason -- - - - There are many, many membership management programs out there, though I doubt that there are any open source ones. It is a lucrative business for many-a-folk. I have always advised prospective clients to buy, not build, as the commercial software choices out there are many

RE: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nick Gasparro
Hey Richard, Not sure how to respond to your question other than to say yes they are profitable. They are an established organization that has been around since 2003, they have upwards of 60 million users and tons of traffic. They are the market leader in their space. Please let me know if you

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread David Giragosian
On 4/21/08, Nick Gasparro [EMAIL PROTECTED] wrote: Hey Richard, Not sure how to respond to your question other than to say yes they are profitable. They are an established organization that has been around since 2003, they have upwards of 60 million users and tons of traffic. They are the

Re: [PHP] Security Concern?

2008-04-21 Thread Jason Pruim
On Apr 21, 2008, at 11:49 AM, Philip Thompson wrote: On Apr 21, 2008, at 8:03 AM, Jason Pruim wrote: Hi Everyone, Last week you all helped me with the code to pull the database field names directly from the database rather then being hardcoded by me. Now I got to thinking, that I have

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Richard Heyes
The commute would be a killer, Richard. LOL. I think you're right. A 60 mile commute caused me to quit a job, so several thousand miles sounds excessive... :-) -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |

Re: [PHP] Cannot modify header information - headers already sentby ...

2008-04-21 Thread M. Sokolewicz
Jim Lucas wrote: Waynn Lue wrote: Actually, I think I fixed it by moving the style sheets below the instantiation of the facebook client, where I *think* set_user was being called. I'm still curious if it's possible to get stack trace information on errors, though. :) You are probably

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Jason Pruim
On Apr 21, 2008, at 2:57 PM, Richard Heyes wrote: The commute would be a killer, Richard. LOL. I think you're right. A 60 mile commute caused me to quit a job, so several thousand miles sounds excessive... :-) Depends on the pay I'm looking at a job that's 30 minute drive away...

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Daniel Brown
On Mon, Apr 21, 2008 at 3:01 PM, Jason Pruim [EMAIL PROTECTED] wrote: Just think about the frequent flyer miles you'd get! Vacation anywhere you want in the world! :) Like you'd want to fly to a vacation spot after two 10 hour, 15 minute flights per day, five days per week. ;-P --

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Robert Cummings
On Mon, 2008-04-21 at 15:20 -0400, Daniel Brown wrote: On Mon, Apr 21, 2008 at 3:01 PM, Jason Pruim [EMAIL PROTECTED] wrote: Just think about the frequent flyer miles you'd get! Vacation anywhere you want in the world! :) Like you'd want to fly to a vacation spot after two 10 hour,

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nathan Nobbe
On Mon, Apr 21, 2008 at 1:48 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at 15:20 -0400, Daniel Brown wrote: On Mon, Apr 21, 2008 at 3:01 PM, Jason Pruim [EMAIL PROTECTED] wrote: Just think about the frequent flyer miles you'd get! Vacation anywhere you want in

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Robert Cummings
On Mon, 2008-04-21 at 14:16 -0600, Nathan Nobbe wrote: On Mon, Apr 21, 2008 at 1:48 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-04-21 at 15:20 -0400, Daniel Brown wrote: On Mon, Apr 21, 2008 at 3:01 PM, Jason Pruim [EMAIL PROTECTED] wrote: Just think about the

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

2008-04-21 Thread revDAVE
Jason David, Thanks so much for your help BTW: to reiterate the problem: I guess it was not knowing to use the 'try1' connection ( try1.ztest) - and used 'connect2' connection instead... Error said : Table 'connect2.ztest' doesn't exist (connect2 was some other one I set up for something

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

2008-04-21 Thread revDAVE
On 4/21/2008 2:04 PM, revDAVE [EMAIL PROTECTED] wrote: : Is there a way to insure that it uses the right connection ( try1 - not connect2 )? - seems to be ok now with this new db selector line... mysql_select_db($database_try1, $try1); // this new line New ... ?php $sql = 'ALTER TABLE

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Manuel Lemos
Hello, You may want to take a look here and find qualified PHP developers near your region. You may even search for developers that have relevant skills. http://www.phpclasses.org/professionals/country/us/ -- Regards, Manuel Lemos PHP professionals looking for PHP jobs

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

2008-04-21 Thread Jason Norwood-Young
Darn forgot to hit reply to all Forwarded Message From: Jason Norwood-Young [EMAIL PROTECTED] To: revDAVE [EMAIL PROTECTED] Subject: Re: [PHP] Alter Table newbie help needed ... Date: Mon, 21 Apr 2008 23:52:30 +0200 On Mon, 2008-04-21 at 14:04 -0700, revDAVE wrote: Jason

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nathan Nobbe
On Mon, Apr 21, 2008 at 3:59 PM, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, You may want to take a look here and find qualified PHP developers near your region. You may even search for developers that have relevant skills. http://www.phpclasses.org/professionals/country/us/ the zend

[PHP] Humour in Hotmail :OT

2008-04-21 Thread Bastien Koert
Guys, I switched to gmail since I was having so many issues getting my emails thru the spam filter thanks to M$ adding ads to the bottom of the message. To make it even better, the unsubcribe confirmation email is also being rejected due to spammy urls in the message. Anyway, this should work

[PHP] php, ajax and international application

2008-04-21 Thread Alain Roger
Hi, Till now, i'm used to have a php file (for each language) to store all text labels for my international application. i tried with Ajax to improve it but it seems not so flexible at it promised. my purpose was to limit the transfer data and especially to not load too much the server with not