You are here: Sessions and Shared Hosting Provider issue « PHP Programming Language « IT news, forums, messages
Sessions and Shared Hosting Provider issue

Posted by comp.lang.php on 11/29/06 17:30

I am in the middle of debugging a script that is hanging on
"session_start()", which, if I recall, can occur if session.save_path
points to a directory onto which you do not have permission to access
(I verified and yep, no love on that folder).

So I figured I'd simply rewrite session.save_path:

<? ini_set('session.save_path', '/path/where/there/is/love'); ?>

To no avail, because the shared hosting provider also informed me that
you are not permitted to overwrite the default settings of php.ini
because it's a shared hosting provider.

UGH!

So my next and last idea is to copy over a local copy of php.ini to my
/[account root folder] directory, however, I am only given access to
/htdocs and /cgi-bin.

Obviously /htdocs = BAD IDEA since the known universe can read the
contents of php.ini via browser, but the shared hosting provider will
not allow me to move it outside of /htdocs document root folder.

That leaves /cgi-bin. Is that a good idea? Or do you all have a better
idea as to what to do? Bottom line: I just want to be able to use
session_start(), optionally, ini_set().

I need an answer rather quick as the site is breaking and my boss wants
an answer before COB today and I am trying to come up with one stat!

Thanx
Phil

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация