We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

PHP link functions problem [Answered]RSS

2 replies

Last post Jul 28, 2013 10:51 PM by Pengzhen Song - MSFT

  • PHP link functions problem

    Jul 21, 2013 10:59 PM|vladnech|LINK

    Hi guys

    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. 

  • Re: PHP link functions problem

    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. 


  • Re: PHP link functions problem

    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.

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.