problem with.php.ini
Posted: Wed Dec 05, 2007 10:12 am
feyd | Please use
i try with mod_rewrite but i always get no input file specified. My host provider said to me that this is php.ini problem but they do not know how to fix it. Can someone help me?
Regards
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
look here:
[url]http://turisticnioglasnik.si/test/index.php/param1/name[/url]
i get No input file specified instead od word name
i use this class for reading parametherCode: Select all
class Request
{
protected static $instance = null;
protected $vars = array();
protected function __construct()
{
if(!isset($_SERVER['PATH_INFO']) || strlen($path = trim($_SERVER['PATH_INFO'], '/')) == 0)
return;
$matches = explode('/', $path);
$c = count($matches);
for($x=0;$x<$c;$x+=2)
if(isset($matches[$x+1]))
$this->vars[$matches[$x]] = $matches[$x+1];
unset($matches);
}
public static function getInstance()
{
if(self::$instance === null)
self::$instance = new Request();
return self::$instance;
}
public function get($name)
{
if(isset($this->vars[$name]))
return $this->vars[$name];
else
return null;
}
}
$r = Request::getInstance();
echo $r->get('param1');Regards
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]