简体   繁体   中英

Moving codeigniter program from xampp to lampp

I just complete develop a web application using codeigniter framework in xampp. The testing done and all looks good in xampp server.

Due to production requirement, the production server is installed with lampp. I already move all the required folder and necessary settings.

The login page display correctly.. however, after success login, all the css and js did not load.. even PHP codes are not loaded as well..

Any ideas? Because I don't think it was my program because in development, we already completed the UAT. The only difference is the web server XAMPP in development and LAMPP in production.

Is there anything I should change in the setting or anything?.. Appreciate your advice. Thank you

Note: In browser.. it display as follows:

load->view('templates/header'); ?>

<text contents with no css / js>

load->view('templates/footer'); ?>

Solved... Its just because I use short php tags in development. But in production need to use long php tags.

change from

<? $this->load->view('templates/header'); ?>

to

<?php $this->load->view('templates/header'); ?>

Thanks @TouheedKhan and all..

Glad you found my answer useful @julie .. here is little detail and suggestion on your issue.

You're using short tags <? which is disabled on the production server. I would not suggest you to use short tags as it is mostly disabled on the production servers.

Please check out this answer for details. why avoid short tags

PS: you can enable short code by changing this on your php.ini

short_open_tag=On

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM