Run PHP client side [closed] - php

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
Is it possible to launch a PHP script, client side, using an HTML web page?
If not, is there a way to embed the PHP into the HTML so it can run client side?

I think what you want is JavaScript. PHP is meant for server-side and JavaScript is meant for client side, among other things.

No. PHP cannot be run in browser. Learn JavaScript, alternatively CoffeScript if you don't like JavaScript's syntax.

Related

Play a beep sound on onboard speaker using PHP [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 7 years ago.
Improve this question
I want to play an beep sound on internal(on-board) speaker to alert the user about a specific activity on a webpage.
Is it possible in PHP?
No this is not possible, not on the client's machine anyway. PHP is a back-end language that uses HTML / CSS as a front-end output, thus you can't do anything to the user's machine that the front-end languages can't do (HTML, CSS, Javascript)

Navigate Website with PHP [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 7 years ago.
Improve this question
How can I navigate on a website, using php ? (I want with a local program to access a website and parse html pages, fill forms, click buttons and being redirected, etc.; as if PHP was a real guy). Yet, I use Ruby Mechanise but it's not sufficient.
Thanks
To interact with a website you would most likely use a javascript framework such as phantomjs or dalekjs. PHP is not made for DOM manipulation and interaction or page automation.

Converting a php based website to a mobile app [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 7 years ago.
Improve this question
Is there a posibility that i can convert my php website to an mobile app or i should convert it into html then convert it to mobile app??
No, you cant run php client side. You should just make it a responsive website
There are multiple technologies. You will need to adjust your HTML/CSS to cater for how they work, but it is possible. I'd suggest looking at PhoneGap
PHP is server-side language and that gives HTML page output after execution at server-side so that is not possible.
But You can use native browser of that os e.g. for android webview.And can load your page into it.
Another option is PhoneGap but it slow down application than Native.

Parsing html and server side codes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How knows how the browsers render the html and server side codes? does the browser render it line by line? or do the server side code first then the html? specially in php? And is there a way to force the browser to do the php code first, and then the html, or not?
Any help?
Server-side code is never sent to the browser. The server executes the PHP code and sends the resulting HTML to the browser, which then parses it. It already does what you want.

Download big remote files to client with PHP with resume capability [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
I think the title is explaining perfectly.
How I can deliver big REMOTE files to client with resume capability through PHP?
You likely wouldn't want to use PHP for that, since it's not really made for this kind of task.
For Resume capability, your script needs to be able to read and act properly upon the Range: HTTP request header the client sends, as well as correctly serve a Content-length: header at least.

Categories