php - Different URLs when calling the base_url() function -
i have php file following content: <script type="text/javascript" src="<?php echo base_url();?>js/example1.js"></script> <script type="text/javascript">var base_url = '<?php echo @base_url(); ?>';</script> ........ <input type="hidden" id="testvpn" value="<?php echo base_url(); ?>js/example.js"/> ........ when try open page locally, everything's ok: <script type="text/javascript" src="http://example.com/js/example1.js"></script> <script type="text/javascript">var base_url = 'http://example.com/';</script> ........ <input type="hidden" id="testvpn" value="http://example.com/js/example.js"/> ........ when try open page on web vpn, want see: <script type="text/javascript" src="https://mywebvpn.com/+csco+numbers++/js/example1.js"></s...