Welcome Guest, Not a member yet? Register   Sign In
Problem with base_url() and files not loading
#1

[eluser]copernicus[/eluser]
I am using base_url() to echo out my base url in my paths and it is working. I can see the correct path in the HTML and if I copy and paste it into the browser, it will go to the correct file. The problem is that the browser doesn't seem to be loading any of my CSS, JS, or images that are using base_url() to do the path.

For instance:
<img src="&lt;?php echo base_url(); ?&gt;assets/images/logo.jpg" alt="Reporter Ads" />

Will produce this HTML:
<img src="http://reportermag.com/beta/ads/adrequest/assets/images/logo.jpg" alt="Reporter Ads" />

The image file is there and works if you go to that URL but the browser doesn't seem to be loading it onto the page.


Messages In This Thread
Problem with base_url() and files not loading - by El Forum - 03-25-2009, 03:20 PM
Problem with base_url() and files not loading - by El Forum - 03-25-2009, 03:36 PM
Problem with base_url() and files not loading - by El Forum - 03-25-2009, 03:43 PM
Problem with base_url() and files not loading - by El Forum - 03-26-2009, 11:12 PM
Problem with base_url() and files not loading - by El Forum - 03-27-2009, 10:32 AM
Problem with base_url() and files not loading - by El Forum - 03-29-2009, 05:05 PM
Problem with base_url() and files not loading - by El Forum - 03-29-2009, 05:39 PM
Problem with base_url() and files not loading - by El Forum - 04-07-2009, 04:18 PM
Problem with base_url() and files not loading - by El Forum - 04-07-2009, 04:36 PM
Problem with base_url() and files not loading - by El Forum - 04-07-2009, 06:06 PM
Problem with base_url() and files not loading - by El Forum - 04-10-2009, 06:24 PM
Problem with base_url() and files not loading - by El Forum - 04-10-2009, 06:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB