answersLogoWhite

0

Why does your browser try to save rather than open your PHP scripts?

Updated: 8/16/2019
User Avatar

Pandoga

Lvl 1
14y ago

Best Answer

PHP is a server-side scripting language, which means that scripts are interpreted and executed by the server before PHP pages are sent to the client (the browser). The server replaces PHP scripts with the output it obtains from their execution and then transmits to the client the output thus obtained. Hence, your browser cannot execute PHP scripts, but it can only request PHP pages from a server which runs the scripts.

Because the server is what processes the script, PHP needs to be installed on the server for the server to be able to process PHP scripts. If PHP isn't installed, the server has no idea that "foo.php" is a PHP script so just sends it to the browser as an executable - in a way that forces the browser to prompt to download it.

Consult your hosting provider's help for installing, setting up or enabling PHP. Alternatively, you can install it yourself if your host provides the permissions to (See the related questions for installation help). If your host does not provide PHP support, find another host.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why does your browser try to save rather than open your PHP scripts?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you copy my website to computer?

yes... just open your website in a browser, click 'File', and click 'Save', then save the website to wherever you want.


What is free open source web browser?

Chrome and FireFox are popular free open source web browsers. Both have the capability to save bookmarks, search the web on Google, and run multiple windows.


When i open Google site then ask me do you want to save it?

I don't KNOW...? IS THIS malware? or something simple to go into settings and change on the browser?


Is it possible to save many open browser tabs at once?

Yes! Some chrome extensions can help you do this. For example, Partizion is a tab manager that allows you to save groups/collections of tabs and open them in one click. It also syncs to the cloud so that your tab configurations are accessible on any device (and soon any browser, right now available on chrome).


How do you save a page using your web browser?

You can either save a web page to your system or bookmark it. Bookmarking will keep it on your browser only.


How do you install RSbot scripts?

In order to install RSBot scripts you need to go into your documents where their should be an RSBot folder. Open that and you will find a scripts folder. In there a Source folder which is where you save your script. Make sure you save the source as a .java or if it is a .class (already compiled Java code) put it into the pre-compiled folder. Once you have your .java source in the the folder back track and you should see a Compile Scripts CMD. Make sure you have java JDK (google it and download) then run the .bat. The script will compile and your good. Amplex~ RSBot Developer


How do you stop saving history opera 11 browser?

If you open a new private tab Opera won't save the history of the websites you visited in that tab


What do you do if Facebook won't save your password?

Enable cookies on your browser. Google how to do this with your browser. "How to enable cookies in [Browser Name]"


Why does FarmVille not save your changes?

Answer: Yeah ...uhhh no way the problem was found to be the browser open the game in a different browser ...firefox worked for me my normal is opera After making some changes, press "Play" again. The game will load again. After that you can close the browser or what ever. The game is saved.


How do you copy a web page to a word doc using a mac?

Copying and pasting a Web page with Word 2011Copying and pasting is a fast, easy way to get Web page content into Word. To do so, take these steps: Select what you want in your Web browser and then choose Edit→Copy from the menu bar, or press Command-C.Switch to Word and choose Edit→Paste from the menu bar, or press Command-P.If the result isn't good enough, try the steps in the next section.Saving and opening a Web page in Word 2011Word can open Web pages that have been saved as .htm, .html, or .mht (Web archives). For example, say you're using a Web browser and you find a Web page that you want to edit in Word. Use the Web browser to save the Web page as a file on your computer and then open the saved file in Word. Here's how: In the Web browser, choose File→Save As.Choose a location.Remember the filename or give the file a name of your choosing.Click Save to save the file.After you save the Web page, you need to know how to open it. To open the saved Web page in Word, follow these steps:In Word, choose File→Open from the menu bar.Choose All Files from the Enable pop-up menu.Navigate to and select the file you saved in the preceding steps.Click the Open button or double-click the filename.Word does its best to open the Web page you saved. Bear in mind, many Web page elements (such as Flash, Silverlight, style sheets, and various scripts) are ignored by Word. Just the same, you may be able to get the content you want into Word so that you can take it from there and do your own editing magic.If your first attempt didn't turn out well, you can try using a different Save As format in your Web browser. Web browsers and Web pages vary widely. In Word, a Web page saved by one browser, such as Safari, may look completely different from the same page saved by a different Web browser, such as Opera or Firefox.


How do you save a word document as a webpage?

Save your Word document normally so you have a copy of the original. From Word's File menu select Save As HTML or Save As Web Page (this varies in different versions of Word).From your browser's File menu select Open File... and select your newly saved web page. Check that it looks OK in the browser - you may need to adjust font size, layout etc.


What is a benefit of Windows cloud computing?

Windows cloud computing can allows users to save time and money by accessing and editing their computer software through an Internet browser rather than on a specific computer. It can be accessed via a password on a secure login browser.