alin19 Posted February 10, 2009 Share Posted February 10, 2009 i have a new code that i must use; this constant is defined: HTTP_SERVER_BASE and points well but this link isn't working: need some help <link href="<?=HTTP_SERVER_BASE?>css/styles.css" rel="stylesheet" type="text/css" /> Link to comment https://forums.phpfreaks.com/topic/144602-constants-add/ Share on other sites More sharing options...
andy_b42 Posted February 10, 2009 Share Posted February 10, 2009 alin19, A few things i would check would be that your setup accepts <? instead of <?php (i doubt this would make any difference but i would check anyway) Next, i would check that HTTP_SERVER_BASE ends with a "/". Link to comment https://forums.phpfreaks.com/topic/144602-constants-add/#findComment-758806 Share on other sites More sharing options...
PFMaBiSmAd Posted February 10, 2009 Share Posted February 10, 2009 If the line of code you posted is what appears when you do a "view source" of the page in your browser, then you server is not configured to use <? and <?= You should always use <?php and <?php echo to insure that your php code will always be parsed by php. Link to comment https://forums.phpfreaks.com/topic/144602-constants-add/#findComment-758854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.