web browser not processing PHP code as PHP code

后端 未结 6 1547
天涯浪人
天涯浪人 2020-12-07 00:30

I have Joomla installed in my computer, but recently have been writing php files that aren\'t related to the Joomla-managed site. For some reason, when I try to open those p

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 01:02

    1. PHP is interpreted in the server, not the browser. Whatever's going wrong, you need to look at the SERVER side to resolve it.

    2. My first guess: maybe you didn't suffix the file ".php" (so the server doesn't recognize it as a PHP file?)

    3. Second guess: is the directory containing your PHP files configured to parse PHP?

    If you have Joomla, you probably have PHP. You probably also have Apache.

    So check your Apache configuration, and check your file naming conventions.

提交回复
热议问题