Is it possible to screenshot the whole desktop of users visiting my website?
I am using the PHP function imagegrabscreen() but it's only working on localhost. Is this done on the server or can I do this with WebRTC without a chrome extension?
Is this done on the server
Yes. Of course. PHP is a server-side language.
Is it possible to screenshot the whole desktop of users visiting my website?
Not without asking them to do so.
Related
My Employer would like me to take a web application written entirely in PHP to be accessible while offline. (it has to be accessible by an ipad without internet connection.)
I have tried the following things:
http://solesignal.com/draftcode/
http://blog.smartbear.com/codereviewer/15-code-editors-for-the-ipad-for-free-or-very-cheap/
https://itunes.apple.com/us/app/offline-pages-save-complete/id364859644?mt=8
Before I'm going to spend any money i have to be 100% positive it works.
Does anyone know how i can achieve this?
What do you mean by offline?
If you're looking to embed the server within your app, you're out of luck, it's not possible nor allowed. However if you want to run a local environment in your computer, take a look at MAMP
Knowing more about Mike's question, He's trying to run a website/webapp made in PHP offline/stand-alone on iOS devices.
As PHP is a pre-processor, this is not possible without a seperate server doing the magic. Depending on what this application has to do, I suggest you try to re-make the webapp so it does not use PHP. A lot of the things done with PHP can also be done client-side with JavaScript.
If you require more sophisticated things, try looking into the Meteor Framework. It supports PhoneGap exportation natively so the applications can run stand-alone on mobile devices as apps.
EDIT: If you can use an android device, you CAN run a PHP server on the same device as the pages are displayed because android is simply more open then iOS. If you're not willing to re-write the PHP code to JS, grab an android tab and use a PHP server package for android like this or another one that does include a MySQL server like this one
I am working on a Android Application that has web view where i need to load html, jquery and js and php also. Now i am able to load html jquery css javascript , But my problem is i am unable to load php in web view in offline is there any way to execute php in web view
Please Help Me Thanks In Advance
You almost certainly don't want to run PHP on your Android. But in case you do, then you would want http://code.google.com/p/php-for-android/. Better link: http://phpforandroid.net/
PHP is a server side language. It cannot run inside the browser. It helps you to build the dynamic web pages.
You can call any web page in the webview when you are online. it doesn't matter what is the server side language.
When you are offline, you cannot send request to any server. so no question of executing any page.
You can do it easyly with AndroPhp, just search it in Google play and install.
Its like WampServer for Php+Mysql. You should run it than just create your PHP project under www/ folder and call it from Android webview 127.0.0.1:80/yourproject
This way you you have local server on your Android, you shouldnt code in Java for Android all you can code in PHP. Maybe it is not a elegant way to code for Android but works !!
I'm just about to start a small mobile site that will be written in PHP. I am aware of the design principles of developing for mobiles, my question is more to do with the compatability of PHP on mobile devices. It is:
If I use PHP to make this mobile site (which will render in the client's mobile browser as good old HTML) will I run into any compatability problems?
As far as I can see, because PHP is a server side language, as long as it serves mobile friendly HTML, I should be able to do everything I please in PHP in my scripts? Is this correct? Or will iPhones, Android Mobiles and various Fondle Slabs refuse to render a xxx.php file?
You're right that it's a server-side technology. The browsers (whether mobile or desktop) will not care that it's PHP as it will never see anything but the html/js that is rendered from your PHP scripts.
As you mentioned PHP is server side language, so there is no way it could possibly be cause of compatibility issues.
PHP is a scripting language that dynamically generates HTML.
So instead of creating a website from lots of static HTML files, a dynamic website generates the HTML when required - each time a user browses to a page the PHP is run on the server to create the HTML that is shown in the browser.
To answer your question, it is not the PHP that determines how sites look on mobile devices, more the HTML it generates :)
You are correct. You could use haskell (as long as it renders html) and still make it show on a mobile device.
Hey friend as you know I am new in iphone I didn't know any think about can anyone help me.
Can I use PHP in iPhone for storing music file And get get this file again when ever I need this any one who can help out this condition or give some hint to solve this
Previously I also put one question about this.But it is with the cloud server using in iphone
please help me friends .
If you mean to natively run on the iPhone, no. PHP is a server side script for web development, you can have a website developed with it and access that website using the iPhone just fine. As far as uploading from the iPhone you cannot do that either as Safari does not have access to the file system. If needed you could develop a custom application that would allow uploads to your website.
PHP is a server side scripting language, iPhone uses Objective-c, it means the answer to your question is Plain "NO", well you can always go with other way round, you can create a iphone optimized web application using PHP and Javascript, and access it in your iPhone using the web browser like safari.
I am developing an application in php. I need to display a notification message on windows taskbar. So please help me...How to do it using php.
With PHP, your domain is the web browser. You can display a message in the browser or in a pop up window. You can't connect to the operating system.
Probably PHPGTK can help you. But your question smells a bit, because as Sohnee mentioned PHP is made for creating web pages or things which are highly connected to the web.
However, it could help us if you provide much more information what you do, why you do it, and so on...
You could change the window title using ajax to display a message in the taskbar. That's as far as you can go using a webapp i think.
You might want to look for a Growl library. On Widows it would require some additional software. Google turns up:
http://forums.cocoaforge.com/viewtopic.php?f=6&t=16872
http://github.com/tylerhall/php-growl/tree/master
With C# for .NET you can easily write a notifier application which resides in the tray.
I just have written an XML based notifier application which communicates (XML data transfer) with a server that runs php. The IDE comes with a sample notifier application. If you are familiar with c# then go and get it.
It's open source
Goto SharpDevelopment IDE
What you can do, is develop a program that does this in another language, and then call it via system() in PHP.
Note that the notification will only pop up on the server. Since no actual PHP code is run on the client's machine.