[PHP] How to fetch .DOC or .DOCX file in php

2008-12-04 Thread Jagdeep Singh
Hi !

I want to fetch text from .doc / .docx file and save it into database file.
But when  I tried to fetch text with fopen/fgets etc ... It gave me special
characters with text.

(With .txt files everything is fine)
Only problem is with doc/docx files.
I dont know whow to remove "SPECIAL CHARACTERS" from this text ...

Regards

Jagdeep Singh
India
9988009272


[PHP] Convert .docx /.pdf file to .txt

2008-12-05 Thread Jagdeep Singh
Hi!

I need a function to fetch text from docx file, but it is showing formated
characters in output. I was using fopen, fgets etc function .

I want to fetch text from .docx and save it to .txt file Without special
characters (Microsoft formated characters)

Is there any function or an example??

Thanks

Jagdeep Singh


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

2010-05-14 Thread Jagdeep Singh
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


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

2010-05-14 Thread Jagdeep Singh
Hi,

yes, I can make a databse table to record LOGIN details, But I want that No
other user can login on same machine on smae or another browser.

E.g.

If user1 has logged in from IE then user2 should not login from Firefox or
Chrome etc..

I need ONLY ONE USER ACCESS AT SAME TIME ON SAME MACHINE  (On Same or Other
broswers)

Regards

Jagdeep Singh

On Fri, May 14, 2010 at 1:26 PM, Peter Lind  wrote:

> On 14 May 2010 09:29, Lester Caine  wrote:
> > 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?
> >
> > The browser IP address works for us quite reliably. Once logged in, you
> get
> > a message saying already logged on ... and where ... but it does need a
> > little help if the user closes the browser without logging out. One needs
> a
> > facility to 'bounce' a user now and again  however some remote users
> may
> > well have 'floating' IP addresses :(
> >
>
> Don't rely on IP addresses staying the same for a user, it's not safe
> in any way and not needed anyway. Karls method is probably the best
> bet - just remember to record "last accessed time" so anyone not
> accessing for more than 15-20 minutes will succeed if trying to log in
> again.
>
> Regards
> Peter
>
> --
> 
> WWW: http://plphp.dk / http://plind.dk
> LinkedIn: http://www.linkedin.com/in/plind
> Flickr: http://www.flickr.com/photos/fake51
> BeWelcome: Fake51
> Couchsurfing: Fake51
> 
>


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

2010-05-14 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.

I can stop any user to login more than one time at two different machines..

But I am unable to stop Multiple logins on same machine (ofcourse on
different Browsers) Because each browser has different SESSION and Cookie
system.

I hope problem is very clear now..

regards

Jagdeep Singh

On Fri, May 14, 2010 at 9:51 PM, tedd  wrote:

> At 12:48 PM +0530 5/14/10, 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
>>
>
> Jagdeep:
>
> I don't think this is solvable.
>
> You can make it such that if a person is logged-in that they cannot log-in
> again until they log-out of their current session -- that's do able.
>
> But using IP addresses, or trying to sniff the machine, or other such
> attempts at identifying user will most certainly be problematic and not
> solve the problem.
>
> Good luck,
>
> tedd
>
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>


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

2010-05-14 Thread Jagdeep Singh
I am working on e-learning module...


On Sat, May 15, 2010 at 12:03 PM, Robert Cummings wrote:

> 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
>> other browser say Firefox.
>>
>> I can stop any user to login more than one time at two different
>> machines..
>>
>> But I am unable to stop Multiple logins on same machine (ofcourse on
>> different Browsers) Because each browser has different SESSION and Cookie
>> system.
>>
>> I hope problem is very clear now..
>>
>
> Oh, I see... you don't even want 2 DIFFERENT users on the same computer to
> log in at the same time. Hah, you must be doing an online game or something.
> You cannot do what you want to do.
>
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>