-1

When I run my php file it just shows up as text in chrome. I am using the full tag, I have up to date php. I'm not using apache, we're doing it through my school and using something called putty. I've scoured through threads and haven't found anything to solve my problem. Based off other threads I've seen I don't think I need to provide my code, but let me know if you need it.

1 Answers1

0

Apache is needed to run .the php file . basically we need a server to run a web application so we are using apache as a local server in our system to run php files.

Apache is a web server. If you need to run php files in a web page, you need a web server and apache is one of the web servers available.

When PHP receives the file it reads through it and executes any PHP code it can find. After it is done with the file, the PHP interpreter gives the output of the code, if any, back to Apache. When Apache gets the output back from PHP, it sends that output back to a browser which renders it to the screen.

sabeen kanwal
  • 559
  • 4
  • 15