determine software installed in computer using php/javascript [duplicate] - php

This question already has answers here:
Can I use JavaScript to check for installed software on a client machine?
(3 answers)
Closed 10 years ago.
is there a way to detect what software is installed in computer using php/javascript or any plugin.
what i want to do is if a client open our site using firefox or ie and our web detected that chrome is installed, the chrome will open automatically directing to our site.

No you can't do that. That would be a huge security risk.

This is not possible, I'm sorry.

No, that is not possible, not unless you ask the user to install and run client-side software written using something other than JavaScript. To allow otherwise would be a large security and privacy risk.

Related

Why web servers are needed even for local web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm searching for a means to overpass the need for a web server when using a local web application. Why aren't there browser extensions or special browsers to do so? It seems very easy to code to me. The browser or extension would call a php interpreter to compose web pages from php files. Local urls (file:///) would be used. No web service or port would be necessary. Is this just nonsense? Or am I the first person to think about this? In fact, this does already work with static html files.
First edit: I was looking for a server for testing purposes, being able to compose output from php files, without the need to communicate through network ports. Maybe I should have started from here, but Stackoverflow does not allow this kind of posts.
That sounds nice, please go ahead and build that technology. I will also use it. But oh, for now that has nothing to do with SO.
Why web servers are needed even for local web application
Because they are web applications. Technically you don't need a web server for local stuff if all your application code relies on client side programming. You can just go ahead open your html files in browser.
Browsers know how to interpret client side code already, so why re-invent the wheel? If you ever wish to write 1 line of server side code then obviously you'd need a web server at that point.

HTTP server written on php [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
PHP web server in PHP?
http server in php
I want to use HTTP server written on PHP instead of Apache. Who knows solutions? Best is one php file.
It was done once for some kind of a proof of concept we did, as PHP is faster to develop in than, say CPP. but in no way it is a solution for a production environment.
Others have done so too http://nanoweb.si.kz/ is one for example.

Can PHP be used to make desktop application or only make web-based application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can anybody tell me is a PHP desktop application possible? Like software we install on our computer system?
It is definitely possible to make desktop applications in PHP.
If you're looking for a starting place, I would check out (to cover the very basics):
Building Desktop Applications with PHP
Have a look at:
php-gtk
winbinder
PHP also comes with ncurses support if you are happy to deal with a character based front end.
However for standalone apps, you could do a lot worse that looking at HTML5's offline capability.
its possible to make desktop applications using php. You can run your php independent of you apache server.
Yes, you can use bcompiler to enable the production of php-gtk applications that could be used on client desktops, without the need for a php.exe. However, just because it is possible, does not mean it is practical. There is better platforms for developing desktop applications available.
Is worth noting you can also use Phalanger (PHP in .net) and the .Net framework to do some of the same stuff. Interesting, but useless, really.
PHP-GTK, WinBinder, etc... are very outdated and may not work in all three platforms. But the new opensource alternative is PHP Nightrain and it works great in all three platforms. Since the source is available you can always compile to any architecture you may need.
Here are some resources to help you develop cross platform GUI applications with PHP Nightrain:
http://www.naetech.com/php-nightrain
http://www.naetech.com/developing-ribbon-desktop-application-php.html
http://www.youtube.com/watch?v=GXt8erPLf4o
Hope it helps!

PHP getting the PHP file [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Is there any way to get the source file of PHP like you would for HTML file or javascript from web browser alone? If so how? If not why?
No, this is not possible. Server-side languages are meant to be interpreted and run before the output is sent to the browser.
Of course. But only if the web server is configured to return just the file and not interpret it first. Most web servers hosting PHP files aren't configured this way.
In order to read PHP source code on a remote server, the user needs to find and exploit a remote file disclosure vulnerability. These most often occur in the application its self and can be detected by using a web application vulnerability scanner like w3af.
MySQL based sql injection can be used to read files using the load_file() function as described here.
It is possilbe that the httpd can be vulnerable to a source code disclosure attack, such as this one in IIS.
Only if the web server happens to fail. Otherwise no, because all code is executed on server and only it's result are being send to browser.
There is a way to do this - but you have the web server needs to be setup to serve ".phps" as text/plain as I've done to demonstrate code examples from my web server. However, if you're trying to poach code from a website running php it's really not possible. Not from the web browser.
No, it would pose a massive security risk with MySQL passwords and other sensitive data.
<?printf($f='<?printf($f=%c%s%c,39,$f,39);?>',39,$f,39);?>
so, yes.

Obfuscate PHP code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I create software using PHP. I'm going to sell this software so I need to protect my source code so that nobody can view it. How can I protect my PHP code so that the software still functions the same?
I also need to bind the software to a particular, authorized PC. It should not run on any other PC. How can I do that? Should I encrypt using LAN MAC address? Does anyone have any other ideas?
I put together the following list a ways back - don't know if they are all current, or how many are now free, but you should find something useful here:
About:
Wikipedia article: PHP Accelerator
Comparison of APC, Zend, xCache, & the Zend Framework
Software:
Safeyar (Best)
PHP's APC (PECL page)
RoadSend
Turck-mmcache
eAccelerator
PHP-Accelerator
SourceGuardian
NuSphere Nu-coder
Gridinsoft
IonCube SA-Encoder.php
Another thread on SO that adds a few more (check it out):
Can I encrypt PHP source or compile it so others can't see it? and how?
Zend Guard
BCompiler (PECL page)
PHC
What you may be looking for is not cryptography per se, but rather obfuscation. If you Google for "php obfuscate", many choices show up. The first one is from Raizlabs.
SourceGuardian will do what you want.
Just Download http://www.phplockit.com/demo.php its gives what you want.
Why do not you use ionCube or Zend Guard?
Usually there is a key to every locked door...
So before using / purchasing some of the encryptors on the market, take your time and search google to check if it is not already an "easy breakable" way of encoding.
For example: http://www.kgbiz05.com/decoders
See our SD PHP Obfuscator for a reliable PHP obfuscation tool.

Categories