Re: ini_set(); and URLs
| From: | Monte Ohrt | Date: | Fri, 02 Feb 2001 14:44:04 +0000 |
| Subject: | Re: ini_set(); and URLs | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-44@lists.php.net to get a copy of this message | ||
Hmm, it must not be documented yet. ini_set was added in 4.0 release
candidate 1.
I'm not sure what you can change, probably anything that is not a system
setting
i.e., something that would require a restart of PHP to take effect. As
far as
figuring out what is/isn't a system setting, you'll just have to try.
// unix
ini_set("include_path",".:/usr/local/lib/php:libs:includes");
// windows
ini_set("include_path",".;C:\php\lib;libs;includes");
Andreas Heintze wrote:
>
> Haven't heard of this function before, I also did a search on the PHP manual
> couldn't find it! Can I set every php.ini setting with this one at runtime?
>
> Another thing I would like to mention... about using URLs in your website,
> always use relative paths everywhere!
> This is why: (Q&A from www.websiteproviders.net)
>
> >Why do my links and graphics not work correctly?
> >
> >This is due to the fact that you are using a different URL to view your SSL
> rather
> >then your normal URL. When you make a your links and graphics with leading
> slashes
> >it will work fine via https://www.yourdomain.com, but it
> >will not work
> correctly
> >with the https://www.secure-website.net/~user/.
> >This is because when you make a link like the example listed below, the
> server attempts
> >to take you to the beginning of the URL, which would be
> https://www.secure-website.net.
> >
> >Example:
> ><a href="/cgi-bin/formmail.cgi">FormMail</a>
> >
> >Would take you to:
> >
> >https://www.secure-website.net/cgi-bin/formmail.cgi
> >
> >To correct this, we suggest you use the relative path
> >(i.e.: cgi-bin/formmail.cgi or ../cgi-bin/formmail.cgi or
> /~username/cgi-bin/formmail.cgi etc)
> >
> ><a href="/~username/cgi-bin/formmail.cgi">FormMail</a>
> >
>
> If someone is using SSL not using his own certificate he will be in trouble
> if using
> code written using absolute URLs, I know PHPSHOP had this problem, don't
> know if
> it solved now or..? How about 'Smarty' any absolute paths there??
>
> /Andreas
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/