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.
Related
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 want to make sure visitors to my site can't see the PHP code that's generating the page. Here is a reference: http://may.edu.np/tmp/
Can anyone explain to me how server-side scripts are interpreted and how the result is delivered to the end user?
If I understand your question correctly, no one should be able to access your source code so long as they don't have access to the server. When a browser makes a request for a .php file to the server, the server knows that it must first interpret the script and then send the output from your echo statements and/or inline HTML. As far as I know, there's no way for the user to "trick" the server into sending it as plain text, so I wouldn't worry about that. Also, as long as you disable error reporting, no one should even know you're running php, as there's no ".php" in the URL. Hope this helps :)
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
Suggest a method to take input as command-line-arguments from a single text-box in Web-Browser.
These numbers are then added using C code and Display the result again in the Web-Browser.
Suggest, How can I use PHP or HTML to link my C code?
I haven't done php for a long time now ...
If I understand you well I would do that :
Your html should send the request (http GET request) with the two numbers to your server (from your form).
The triggered php script should use the shell_exec command from php to execute a c program.
The program shall print the sum to the console (http://php.net/manual/en/function.shell-exec.php).
Then the result string would be sent back to the webbrower
I hope I'm right.
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.
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 want my client to be able to log into their website, fill out a form and then have that webpage permanently have whatever they put into that form. Is there a way to use php to take whatever is submitted in that form and replace the html content with it? Im new to php, which functions could I use? And is it possible for php to permanently change anything on a site? Im not terribly concerned with security
Start with wordpress and if you don't like it, then there are other content management systems out there. Google can help you find one too.
Wordpress site
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.