[eluser]Reynolds[/eluser]
[quote author="coolfactor" date="1188886989"]The change you made should not be the source or solution for this problem. It was valid code. Did it make the problem go away?
I'd check your own files to make sure you have balanced brackets { and } everywhere.[/quote]
the problem did go away...
yes, I had thought of brackets too, but having CI modules in mind, I only added a single view file, which only shows a random images, no class, no methods made...
though I modified the config file a bit...
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://www.your-site.com/
|
*/
$url = $_SERVER['SERVER_NAME'];
$r = explode("/",$_SERVER['SCRIPT_NAME']);
$cnt = count($r)-1;
for($i = 0; $i<$cnt;$i++)
{
$url.=$r[$i] . "/";
}
$config['base_url'] = "http://" . $url;
//$config['base_url'] = "http://{$_SERVER['SERVER_NAME']}/portfolio/reynold.lariza/";
//.....
?>
and the view file is...
[code]
<HTML>
<HEAD>
<TITLE>reynold.lariza</TITLE>
<style type="text/css">
body {
background-color: #ffffff;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 12px;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
code {
font-family: Monaco, Verdana, Sans-serif;
font-size: 10px;
color: #002166;
display: block;
}
</style>
</HEAD>
<BODY>
<br />
<br />
<div style="text-align:center;">
<img alt="reynold.lariza logo" src="<?=$image_path?>reynold.lariza-<?=rand(5,10)?>.png" />
<span style="position:relative;top:10px;"><code />Page rendered in {elapsed_time} seconds</code></span>
</div>
</center>
</BODY>
</HTML>
[code]
hmn.... i just noticed... I remembered somewhere about problem with short-tags, I'll take a look at it too "<?"
Edit... my bad I re-checked and realized that after changing all the php short-tags to long form, the problem disappeared, so I returned URI.php to its original state.
thanks for noticing
CF