php-general Digest 15 May 2010 10:02:42 -0000 Issue 6745

2010-05-15 Thread php-general-digest-help
php-general Digest 15 May 2010 10:02:42 - Issue 6745 Topics (messages 305228 through 305248): Re: opening a link in a new window 305228 by: Adam Richardson 305229 by: Michiel Sikma 305239 by: Andrew Ballard PHP framework 305230 by: jfmatos.electrex.pt

php-general Digest 15 May 2010 22:27:59 -0000 Issue 6746

2010-05-15 Thread php-general-digest-help
php-general Digest 15 May 2010 22:27:59 - Issue 6746 Topics (messages 305249 through 305260): Re: Multiple Login in a single PC should not be possible 305249 by: Lester Caine 305250 by: Ashley Sheridan 305257 by: Robert Cummings 305260 by: Nathan Nobbe Ruben

Re: [PHP] Question about creating php files from a form

2010-05-15 Thread Lester Caine
Kevin wrote: I am having some issues with connecting to a SQLite database right now ... I'm getting the following error Fatal Error: 'sqlite_open' is an unknown function But I'm putting that on the side right now. I think the docs are still screwed up. Try sqlite3_open() instead and see if

Re: [PHP] opening a link in a new window

2010-05-15 Thread Andrew Ballard
On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard aball...@gmail.com wrote: This also has the side effect that the decision of whether to open a link in the current window or a new window/tab belongs to the viewer instead of the author, which some argue is exactly as it should be. Andrew

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Jagdeep Singh
Hi! Thanks for all the replies... But may of the solutions are not for my question. Friends! E.g. : If user1 has logged in Internet Explorer on IP adress (Say IP - A) with MAC Adress (MAC-X) Then No other user can login on that IP (IP-A) AND MAC Adress (MAC-X) on any other browser say Firefox.

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Robert Cummings
Jagdeep Singh wrote: Hi! Thanks for all the replies... But may of the solutions are not for my question. Friends! E.g. : If user1 has logged in Internet Explorer on IP adress (Say IP - A) with MAC Adress (MAC-X) Then No other user can login on that IP (IP-A) AND MAC Adress (MAC-X) on any

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Lester Caine
Jagdeep Singh wrote: Hi! Thanks for all the replies... But may of the solutions are not for my question. But I am unable to stop Multiple logins on same machine (ofcourse on different Browsers) Because each browser has different SESSION and Cookie system. As I have already said ... you

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Jagdeep Singh
I am working on e-learning module... On Sat, May 15, 2010 at 12:03 PM, Robert Cummings rob...@interjinn.comwrote: Jagdeep Singh wrote: Hi! Thanks for all the replies... But may of the solutions are not for my question. Friends! E.g. : If user1 has logged in Internet Explorer on IP

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Lester Caine
Jagdeep Singh wrote: How can I define Machine? That IS the problem. As with a lot of this stuff - nothing was ever actually DESIGNED to work :( So $_SERVER[REMOTE_ADDR] will block multiple machines if they are sharing the one connection. I've been lucky so far in that 'REMOTE_ADDR' CAN be

RE: [PHP] Question about creating php files from a form

2010-05-15 Thread Lawrance Shepstone
Kevin wrote: I am having some issues with connecting to a SQLite database right now ... I'm getting the following error Fatal Error: 'sqlite_open' is an unknown function But I'm putting that on the side right now. I think the docs are still screwed up. Try sqlite3_open() instead and see if

Re: [PHP] create tree from arrays

2010-05-15 Thread shahrzad khorrami
Thanks to all, it works now: function mktree_array($arr, $id = 0) { $result = array(); foreach ($arr as $a) { if ($id == $a['parentID']) { $a['children'] = $this-mktree_array($arr, $a['nid']); $result[] = $a; } }

[PHP] Email with attachment

2010-05-15 Thread Php Developer
Hi, I found a good function at php.net that sends email with atachment, but unfortunately i still cannot figure out how to send a body of the email too. Here is the code: function sendEmailWithAttachement($to, $subject, $message, $file) { if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Ashley Sheridan
On Sat, 2010-05-15 at 08:18 +0100, Lester Caine wrote: Jagdeep Singh wrote: How can I define Machine? That IS the problem. As with a lot of this stuff - nothing was ever actually DESIGNED to work :( So $_SERVER[REMOTE_ADDR] will block multiple machines if they are sharing the one

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Lester Caine
This was bounced back to the list because of the php crap of needing to use 'reply all' - I SHOULD have used 'reply' in this case as jagdeep's email was to ME, but I automatically 'reply all' and replace return address with the list email to kill off all the extras! Ashley Sheridan wrote: On

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Ashley Sheridan
On Sat, 2010-05-15 at 11:50 +0100, Lester Caine wrote: This was bounced back to the list because of the php crap of needing to use 'reply all' - I SHOULD have used 'reply' in this case as jagdeep's email was to ME, but I automatically 'reply all' and replace return address with the list

[PHP] Ruben Knol has invited you to open a Google mail account

2010-05-15 Thread Ruben Knol
I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. --- Ruben Knol has invited you to open a free Gmail account. To accept this invitation and register for your account,

[PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Juan Rodriguez Monti
I guys, I'm having some problems with the following. I have a PHP Site working perfectly with HTML and CSS. The CSS runs flawlessly in Firefox and Google Chrome. However, I'm having some problems with Internet Explorer. I'm not able to show it centered ( the .css is to show centered content ) in

[PHP] Advice needed - general (GPS, databases, webs etc.)

2010-05-15 Thread SED
Hi, I'm in the search for resources for the next step in the information's age. I think smartphones with GPS and the internet will be THE BIG BUSINESS next years. Because this is hard business I'm not able to get overview and resources handly, except by selling my soul to the big

Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread tedd
At 10:30 AM -0300 5/15/10, Juan Rodriguez Monti wrote: I guys, I'm having some problems with the following. I have a PHP Site working perfectly with HTML and CSS. The CSS runs flawlessly in Firefox and Google Chrome. However, I'm having some problems with Internet Explorer. I'm not able to

Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Ashley Sheridan
On Sat, 2010-05-15 at 10:30 -0300, Juan Rodriguez Monti wrote: I guys, I'm having some problems with the following. I have a PHP Site working perfectly with HTML and CSS. The CSS runs flawlessly in Firefox and Google Chrome. However, I'm having some problems with Internet Explorer. I'm

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Robert Cummings
Ashley Sheridan wrote: I see exactly the issue you have now, and there's no way round it. You can't identify a single machine in the way you want. Maybe you could restrict access to test answer materials to a user who is logged in, and then lock them out when a test is in progress for their

Re: [PHP] Email with attachment

2010-05-15 Thread Jim Lucas
Php Developer wrote: Hi, I found a good function at php.net that sends email with atachment, but unfortunately i still cannot figure out how to send a body of the email too. Here is the code: function sendEmailWithAttachement($to, $subject, $message, $file) { if

Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Jim Lucas
Juan Rodriguez Monti wrote: I guys, I'm having some problems with the following. I have a PHP Site working perfectly with HTML and CSS. The CSS runs flawlessly in Firefox and Google Chrome. However, I'm having some problems with Internet Explorer. I'm not able to show it centered ( the .css is

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-15 Thread Nathan Nobbe
On Sat, May 15, 2010 at 10:18 AM, Robert Cummings rob...@interjinn.comwrote: Ashley Sheridan wrote: I see exactly the issue you have now, and there's no way round it. You can't identify a single machine in the way you want. Maybe you could restrict access to test answer materials to a user

Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Paulo Carvalho
On 15/05/2010 18:19, Jim Lucas wrote: Juan Rodriguez Monti wrote: I guys, I'm having some problems with the following. I have a PHP Site working perfectly with HTML and CSS. The CSS runs flawlessly in Firefox and Google Chrome. However, I'm having some problems with Internet Explorer. I'm not