CodeIgniter Forums
Auto Login issues - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Auto Login issues (/showthread.php?tid=15507)



Auto Login issues - El Forum - 02-06-2009

[eluser]waseem[/eluser]
Hi

Helping someone do a website, and i have downloaded all the files onto my PC, im using WAMP, the site works fine but whtn i go to the admin section it all goes a bit wrong.

So going to the URL below (of course specific to his site)

http://127.0.0.1/info/admin_en.php

ends up going to url below

http://127.0.0.1/info/admin_en.php/auth/login

This page rather than execute the PHP gives me a page like the one in the atttached screenshot, im very new to Codeignitor and was wondering if a setting was missing or something


Auto Login issues - El Forum - 02-07-2009

[eluser]bitist[/eluser]
It seem that php configuration short_open_tag is off.

There are 2 solution, activate it from .htaccess
php_value short_open_tag 1

Second is to change all
Code:
<?
to
Code:
<?php
on your PHP source code files.

I would choose the second for security reason.


Auto Login issues - El Forum - 02-07-2009

[eluser]Amir Bukhari[/eluser]
you can also search in you php.ini in WAMP for the line

short_open_tag = Off

turn it

short_open_tag = On

if didn't find it add this line at the end of php.ini

short_open_tag = On