PHP scripts are missing? Php will not work
source link: https://www.codesd.com/item/php-scripts-are-missing-php-will-not-work.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
PHP scripts are missing? Php will not work
I've downloaded a module library for Yii in which every PHP file starts with this:
<?
...rather than:
<?php
On my local Apache server, these files get loaded as flat files, rather than as executable scripts, though the files are all modded as writable and executable. Is there a way to force these files to be run as PHP, or do I have to modify all the files (and there are probably a hundred of them).
You will have to enable short_php_tag
from php.ini Or better change <?
to <?php
in your file.
Tells PHP whether the short form () of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use inline. Otherwise, you can print it with PHP, for example: '; ?>'. Also, if disabled, you must use the long form of the PHP open tag ().
Related Articles
Two strings are equal but will not work on the if statement
Why strtotime PHP will not work for a date in this mdy format?
The download of PHP will not work, but the download of Wordpress
Downloading a file in PHP will not work
php will not work for any reason
Php Select Statement works with id as a record selector but will not work if I use another column as a selector
The PHP form will not work
Are you trying to not work in PHP?
PHP Will Not Update MySQL Tables
PHP does not work as js
Insert query in php does not work with ajax
Does PHP unlink () not work to delete files?
PHPMailer will not work with XAMPP. No errors. No email. Does not work?
Laravel default .htaccess will not work
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK