IIS 7 and Above
PHP link functions problem
Last post Jul 28, 2013 10:51 PM by Pengzhen Song - MSFT
Jul 21, 2013 10:59 PM|vladnech|LINK
I am trying the get the WordPress site running on IIS 7.5. For some reason, the code:
<link rel="stylesheet" href="<?=get_stylesheet_directory_uri();?>/assets/prettyPhoto/css/prettyPhoto.css"
<img src="<?=get_field('site_logo', 'options'); ?>" alt="<?php bloginfo('name'); ?>" />
does not work. The browser shows, for example:
http://<site name>/%3C?=get_field(%27site_logo%27,%20%27options%27);%20?%3E - 404 not found. Looks like the PHP handler does not process
the inline functions in PHP.
The functions, where PHP is specified, are working '<?php function1() ?>'
What could be the reason of that?
P.S. I am not PHP developer - we are just got the request from client to host their site.
Thanks for your help.
Jul 22, 2013 01:36 AM|vladnech|LINK
Looks like I found the reason - I enabled PHP (short_open_tag = On) - it started to work.
Jul 28, 2013 10:51 PM|Pengzhen Song - MSFT|LINK
We are happy that your issue has been resolved. And thanks for sharing solution with us.