php-general Digest 24 May 2010 09:20:55 -0000 Issue 6761

Topics (messages 305461 through 305478):

Re: Remove blank lines from a file
        305461 by: Robert Cummings
        305463 by: Nathan Rixham
        305465 by: Robert Cummings
        305466 by: Nathan Rixham
        305467 by: Robert Cummings
        305471 by: Nathan Rixham
        305472 by: Robert Cummings
        305473 by: Nathan Rixham
        305476 by: Robert Cummings

Re: Multiple Login in a single PC should not be possible
        305462 by: Karl DeSaulniers
        305464 by: Nathan Rixham
        305468 by: Karl DeSaulniers
        305469 by: Karl DeSaulniers
        305474 by: Karl DeSaulniers
        305475 by: Karl DeSaulniers

[email protected] Buy real VIAGRA!
        305470 by: php-general.lists.php.net

simplexml_load_file problem
        305477 by: shahrzad khorrami
        305478 by: shahrzad khorrami

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Nathan Rixham wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
tedd wrote:
At 1:02 PM -0400 5/22/10, Robert Cummings wrote:
tedd wrote:
If that is all (i.e., removing double linefeeds), then this will do it:

$text_array = array();
$text_array = explode("\n\n", $input_text);
$output_text = implode("\n",$text_array);
Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system:

<?php

$data = preg_replace( "#[\r\n]+#", PHP_EOL, $input );

?>

Cheers,
Rob.
Rob:

It's not broken according to my "given", which was "If that is all (i.e., removing double linefeeds), then this will do it:" My code does exactly what was stated.
Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :)

I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address.

Also, the solution you provided works better this way:  :-)

$input = preg_replace( "#[\r\n]+[[:space:]]+[\r\n]+#", "\n", $input );
$input = preg_replace( "#[\r\n]+#", PHP_EOL, $input );
$input = trim( $input );
preg_replace( "/(\s)\s+/im", '\\1', $input );

:)

ahh just read the rest of this thread.. icnase it gets a bit pedantic then here's a horizontal white space only one:
   preg_replace( "/(\h)\h+/im", '\\1', $input );

and vertical only:
   preg_replace( "/(\v)\v+/im", '\\1', $input );

(spot a pattern?)

Hi Nathan,

You may want to start testing your solutions. None have worked yet. Not even close :)

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
Nathan Rixham wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
tedd wrote:
At 1:02 PM -0400 5/22/10, Robert Cummings wrote:
tedd wrote:
If that is all (i.e., removing double linefeeds), then this will do it:

$text_array = array();
$text_array = explode("\n\n", $input_text);
$output_text = implode("\n",$text_array);
Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system:

<?php

$data = preg_replace( "#[\r\n]+#", PHP_EOL, $input );

?>

Cheers,
Rob.
Rob:

It's not broken according to my "given", which was "If that is all (i.e., removing double linefeeds), then this will do it:" My code does exactly what was stated.
Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :)

I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address.

Also, the solution you provided works better this way:  :-)

$input = preg_replace( "#[\r\n]+[[:space:]]+[\r\n]+#", "\n", $input );
$input = preg_replace( "#[\r\n]+#", PHP_EOL, $input );
$input = trim( $input );
preg_replace( "/(\s)\s+/im", '\\1', $input );

:)

ahh just read the rest of this thread.. icnase it gets a bit pedantic then here's a horizontal white space only one:
   preg_replace( "/(\h)\h+/im", '\\1', $input );

and vertical only:
   preg_replace( "/(\v)\v+/im", '\\1', $input );

(spot a pattern?)

Hi Nathan,

You may want to start testing your solutions. None have worked yet. Not even close :)

filed under 'works for me'

<?php
$input = 'blah b  asd as d
asd
a
sd

da




 asd
  d
  asd


   da';
echo preg_replace( "/(\s)\s+/im", '\\1', $input );

on PHP/5.2.8 produces:

blah b asd as d asd
a
sd
da asd
d
asd
da

unless I'm completely missing the elephant in the room here!

Best,

Nathan

--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
Robert Cummings wrote:
Nathan Rixham wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
tedd wrote:
At 1:02 PM -0400 5/22/10, Robert Cummings wrote:
tedd wrote:
If that is all (i.e., removing double linefeeds), then this will do it:

$text_array = array();
$text_array = explode("\n\n", $input_text);
$output_text = implode("\n",$text_array);
Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system:

<?php

$data = preg_replace( "#[\r\n]+#", PHP_EOL, $input );

?>

Cheers,
Rob.
Rob:

It's not broken according to my "given", which was "If that is all (i.e., removing double linefeeds), then this will do it:" My code does exactly what was stated.
Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :)

I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address.

Also, the solution you provided works better this way:  :-)

$input = preg_replace( "#[\r\n]+[[:space:]]+[\r\n]+#", "\n", $input );
$input = preg_replace( "#[\r\n]+#", PHP_EOL, $input );
$input = trim( $input );
preg_replace( "/(\s)\s+/im", '\\1', $input );

:)
ahh just read the rest of this thread.. icnase it gets a bit pedantic then here's a horizontal white space only one:
   preg_replace( "/(\h)\h+/im", '\\1', $input );

and vertical only:
   preg_replace( "/(\v)\v+/im", '\\1', $input );

(spot a pattern?)
Hi Nathan,

You may want to start testing your solutions. None have worked yet. Not even close :)

filed under 'works for me'

<?php
$input = 'blah b  asd as d
asd
a
sd

da




  asd
   d
   asd


    da';
echo preg_replace( "/(\s)\s+/im", '\\1', $input );

on PHP/5.2.8 produces:

blah b asd as d asd
a
sd
da asd
d
asd
da

unless I'm completely missing the elephant in the room here!

Doesn't appear to work on the following:

$input = '

1
2

3
4


5

6';

Additionally, your solution modifies lines that weren't asked to be modified :) I realize it potentially makes for a more succinct solution (if you ever get it to work properly in the general case) but it is not a valid solution for the requested functionality-- The OP did not ask for trimming of lines with content ;)

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
Nathan Rixham wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
tedd wrote:
At 1:02 PM -0400 5/22/10, Robert Cummings wrote:
tedd wrote:
If that is all (i.e., removing double linefeeds), then this will do it:

$text_array = array();
$text_array = explode("\n\n", $input_text);
$output_text = implode("\n",$text_array);
Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system:

<?php

$data = preg_replace( "#[\r\n]+#", PHP_EOL, $input );

?>

Cheers,
Rob.
Rob:

It's not broken according to my "given", which was "If that is all (i.e., removing double linefeeds), then this will do it:" My code does exactly what was stated.
Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :)

I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address.

Also, the solution you provided works better this way:  :-)

$input = preg_replace( "#[\r\n]+[[:space:]]+[\r\n]+#", "\n", $input );
$input = preg_replace( "#[\r\n]+#", PHP_EOL, $input );
$input = trim( $input );
preg_replace( "/(\s)\s+/im", '\\1', $input );

:)
ahh just read the rest of this thread.. icnase it gets a bit pedantic then here's a horizontal white space only one:
   preg_replace( "/(\h)\h+/im", '\\1', $input );

and vertical only:
   preg_replace( "/(\v)\v+/im", '\\1', $input );

(spot a pattern?)
Hi Nathan,

You may want to start testing your solutions. None have worked yet. Not even close :)

filed under 'works for me'

<?php
$input = 'blah b  asd as d
asd
a
sd

da




  asd
   d
   asd


    da';
echo preg_replace( "/(\s)\s+/im", '\\1', $input );

on PHP/5.2.8 produces:

blah b asd as d asd
a
sd
da asd
d
asd
da

unless I'm completely missing the elephant in the room here!

Doesn't appear to work on the following:

$input = '

1
2

3
4


5

6';

Additionally, your solution modifies lines that weren't asked to be modified :) I realize it potentially makes for a more succinct solution (if you ever get it to work properly in the general case) but it is not a valid solution for the requested functionality-- The OP did not ask for trimming of lines with content ;)

quote:

So in the file it would look like (from the original file the user uploads
that is)

1
2

3
4


5

6


but when the file is saved to the server it must look like


1
2
3
4
5
6
</quote>

the above produces what's required; and hence the vertical whitespace only solution included too "/(\h)\h+/im"

what version are you on btw? not being an ass and actually am interested in where it doesn't work (as I use the code on some important sites & in some apps that are open sourced)

Best,

Nathan

--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
Robert Cummings wrote:
You may want to start testing your solutions. None have worked yet. Not even close :)
filed under 'works for me'

<?php
$input = 'blah b  asd as d
asd
a
sd

da




  asd
   d
   asd


    da';
echo preg_replace( "/(\s)\s+/im", '\\1', $input );

on PHP/5.2.8 produces:

blah b asd as d asd
a
sd
da asd
d
asd
da

unless I'm completely missing the elephant in the room here!
Doesn't appear to work on the following:

$input = '

1
2

3
4


5

6';

Additionally, your solution modifies lines that weren't asked to be modified :) I realize it potentially makes for a more succinct solution (if you ever get it to work properly in the general case) but it is not a valid solution for the requested functionality-- The OP did not ask for trimming of lines with content ;)

quote:

So in the file it would look like (from the original file the user uploads
that is)

1
2

3
4


5

6


but when the file is saved to the server it must look like


1
2
3
4
5
6
</quote>

the above produces what's required; and hence the vertical whitespace only solution included too "/(\h)\h+/im"

what version are you on btw? not being an ass and actually am interested in where it doesn't work (as I use the code on some important sites & in some apps that are open sourced)

I think I see an issue... either my client, your client, both, or the PHP list is trimming email lines. I have spaces at the end of some of the lines in my example. Let's see if a text file attachment works for this.

FYI my command-line is currently running 5.2.11

Cheers,
Rob
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

1
2         
    
3
4
   
  
5  

6

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
Nathan Rixham wrote:
Robert Cummings wrote:
You may want to start testing your solutions. None have worked yet. Not even close :)
filed under 'works for me'

<?php
$input = 'blah b  asd as d
asd
a
sd

da




  asd
   d
   asd


    da';
echo preg_replace( "/(\s)\s+/im", '\\1', $input );

on PHP/5.2.8 produces:

blah b asd as d asd
a
sd
da asd
d
asd
da

unless I'm completely missing the elephant in the room here!
Doesn't appear to work on the following:

$input = '

1
2

3
4


5

6';

Additionally, your solution modifies lines that weren't asked to be modified :) I realize it potentially makes for a more succinct solution (if you ever get it to work properly in the general case) but it is not a valid solution for the requested functionality-- The OP did not ask for trimming of lines with content ;)

quote:

So in the file it would look like (from the original file the user uploads
that is)

1
2

3
4


5

6


but when the file is saved to the server it must look like


1
2
3
4
5
6
</quote>

the above produces what's required; and hence the vertical whitespace only solution included too "/(\h)\h+/im"

what version are you on btw? not being an ass and actually am interested in where it doesn't work (as I use the code on some important sites & in some apps that are open sourced)

I think I see an issue... either my client, your client, both, or the PHP list is trimming email lines. I have spaces at the end of some of the lines in my example. Let's see if a text file attachment works for this.

FYI my command-line is currently running 5.2.11

Yes it was client stripping out extra whitespace! thanks Rob, replicated your results:
1
2 3
4
 5 6

and then 'fixed' to give what's needed:
  preg_replace( "/(((\r|)\n)(\h*|))+/im", '\\1' ,  $input );

the above keeps line termination the same as in the source file; can you give it a quick check your side to ensure it works (if you don't mind)?

modified one that 'cleans' the new lines:
 preg_replace( "/((\r|)\n(\h*|))+/im", PHP_EOL ,  $input );

Best,

Nathan

--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
Yes it was client stripping out extra whitespace! thanks Rob, replicated your results:
1
2 3
4
  5 6

and then 'fixed' to give what's needed:
   preg_replace( "/(((\r|)\n)(\h*|))+/im", '\\1' ,  $input );

the above keeps line termination the same as in the source file; can you give it a quick check your side to ensure it works (if you don't mind)?

No, no, you missed my meaning... I don't care about line ending... I care about trailing whitespace on non-empty lines.

modified one that 'cleans' the new lines:
  preg_replace( "/((\r|)\n(\h*|))+/im", PHP_EOL ,  $input );

Yes, this is preferred with respect to line ending IMHO. But it still strips trailing whitesapce.

Almost there... but you've also got that first blank line still hanging around which is supposed to be removed :D

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
Nathan Rixham wrote:
Yes it was client stripping out extra whitespace! thanks Rob, replicated your results:
1
2 3
4
  5 6

and then 'fixed' to give what's needed:
   preg_replace( "/(((\r|)\n)(\h*|))+/im", '\\1' ,  $input );

the above keeps line termination the same as in the source file; can you give it a quick check your side to ensure it works (if you don't mind)?

No, no, you missed my meaning... I don't care about line ending... I care about trailing whitespace on non-empty lines.

modified one that 'cleans' the new lines:
  preg_replace( "/((\r|)\n(\h*|))+/im", PHP_EOL ,  $input );

Yes, this is preferred with respect to line ending IMHO. But it still strips trailing whitesapce.

Almost there... but you've also got that first blank line still hanging around which is supposed to be removed :D

lol ahh hell yeah; trim() it ;) I'm done for the night

best,

nathan

--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
Robert Cummings wrote:
Nathan Rixham wrote:
Yes it was client stripping out extra whitespace! thanks Rob, replicated your results:
1
2 3
4
  5 6

and then 'fixed' to give what's needed:
   preg_replace( "/(((\r|)\n)(\h*|))+/im", '\\1' ,  $input );

the above keeps line termination the same as in the source file; can you give it a quick check your side to ensure it works (if you don't mind)?
No, no, you missed my meaning... I don't care about line ending... I care about trailing whitespace on non-empty lines.

modified one that 'cleans' the new lines:
  preg_replace( "/((\r|)\n(\h*|))+/im", PHP_EOL ,  $input );
Yes, this is preferred with respect to line ending IMHO. But it still strips trailing whitesapce.

Almost there... but you've also got that first blank line still hanging around which is supposed to be removed :D

lol ahh hell yeah; trim() it ;) I'm done for the night

*rofl* Have a good night :D

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer, then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out


Regards

Jagdeep Singh
+91 9988009272

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---
--- Begin Message ---
Karl DeSaulniers wrote:
Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer,
then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out

cool; only effective way i can see is to produce a unique (one time) hash in response to every request, and submit that with the answer; that way it's unique to every interaction. And only allow the test to be taken by a specific login once (ie if they've started it, they can't start again)

But doesn't effectively stop anything because they could have 2 user accounts, and all the previous matters.

you can make it more difficult, can't prevent it.

as far as I know anyway!

Best,

Nathan

--- End Message ---
--- Begin Message --- I was given a solution, or a work-around. You will have to use flash, but, you can set up a LocalConnection class that determines if the swf is being run on the same system and if it is boot one. You have the LocalConnection class send out a message to itself and if it answers itself, then there are two running. Otherwise only that one is running. Sort of hackish, but would probably do the trick.

HTH

Karl


On May 23, 2010, at 3:35 PM, Karl DeSaulniers wrote:

Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer, then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out


Regards

Jagdeep Singh
+91 9988009272

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---
--- Begin Message ---
You may still have trouble with virtual machines though.

Karl


On May 23, 2010, at 4:18 PM, Karl DeSaulniers wrote:

I was given a solution, or a work-around. You will have to use flash, but, you can set up a LocalConnection class that determines if the swf is being run on the same system and if it is boot one. You have the LocalConnection class send out a message to itself and if it answers itself, then there are two running. Otherwise only that one is running. Sort of hackish, but would probably do the trick.

HTH

Karl


On May 23, 2010, at 3:35 PM, Karl DeSaulniers wrote:

Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer, then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out


Regards

Jagdeep Singh
+91 9988009272

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---
--- Begin Message --- I was also told that you can use Adobe Air to control this as well. Air only allows one copy per machine to run originally. Here is a link to set it to run multiple copies. You can use this to see how to set it up and figure a way to not let yours. If that is the route you take.

http://www.colettas.org/?p=273

But here again, if they have a virtual machine...
HTH,


Karl


On May 23, 2010, at 4:21 PM, Karl DeSaulniers wrote:

You may still have trouble with virtual machines though.

Karl


On May 23, 2010, at 4:18 PM, Karl DeSaulniers wrote:

I was given a solution, or a work-around. You will have to use flash, but, you can set up a LocalConnection class that determines if the swf is being run on the same system and if it is boot one. You have the LocalConnection class send out a message to itself and if it answers itself, then there are two running. Otherwise only that one is running. Sort of hackish, but would probably do the trick.

HTH

Karl


On May 23, 2010, at 3:35 PM, Karl DeSaulniers wrote:

Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer, then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out


Regards

Jagdeep Singh
+91 9988009272

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---
--- Begin Message --- The consensus I have been getting is that there really is no way to block this type of activity,
BUT you can make it difficult enough to deter most attempts.


Karl


On May 23, 2010, at 9:42 PM, Karl DeSaulniers wrote:

I was also told that you can use Adobe Air to control this as well. Air only allows one copy per machine to run originally. Here is a link to set it to run multiple copies. You can use this to see how to set it up and figure a way to not let yours. If that is the route you take.

http://www.colettas.org/?p=273

But here again, if they have a virtual machine...
HTH,


Karl


On May 23, 2010, at 4:21 PM, Karl DeSaulniers wrote:

You may still have trouble with virtual machines though.

Karl


On May 23, 2010, at 4:18 PM, Karl DeSaulniers wrote:

I was given a solution, or a work-around. You will have to use flash, but, you can set up a LocalConnection class that determines if the swf is being run on the same system and if it is boot one. You have the LocalConnection class send out a message to itself and if it answers itself, then there are two running. Otherwise only that one is running. Sort of hackish, but would probably do the trick.

HTH

Karl


On May 23, 2010, at 3:35 PM, Karl DeSaulniers wrote:

Hi Nathan,
The problem is not mine to speak of necessarily. I was trying to help find a solution for another. But from what I understand, they have a online lesson that they dont want people to be able to log in as another user and get the answers to.

Here is the their post.

On May 14, 2010, at 2:18 AM, Jagdeep Singh wrote:

Hi All!

I am looking for a solution, I want a user to do a single Login only on a PC
.

E.g. If a User has logged on my website website.com in Internet explorer, then he cant login on same website in another browser like Firefox etc with
same loginid or another.

Can I trace MAC address of a single machine to solve this issue?

Or is there a concept of GLOBAL COOKIE / Cross Browser Cookie which will
work for all browsers in a single machine..

I hope You will help me out


Regards

Jagdeep Singh
+91 9988009272

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---
--- Begin Message ---
Discount ID99444 SALE 71%off  onPfizer! 
http://[email protected]


--- End Message ---
--- Begin Message ---
hi all,

$results is a xml format string,
I want to get this string as a real xml file
$nodes = simplexml_load_file($results);
but $nodes is empty array...
how can I do that?
nodes must be an object contains xml


Thanks,
Shahrzad Khorrami

--- End Message ---
--- Begin Message ---
by using of ' simplexml_load_string' instead of file, I solved my problem :)
thanks

--- End Message ---

Reply via email to