Re: Problem with php.ini file



John wrote:
Hello,


I'm trying to install a script and it needs register_globals = on.


I know about the security risk etc. and it should be off, but the
script will not run with it off.


I contacted my hosting company because I couldn't find the php.ini
file. They told me to create one and put it in the root.

The problem is I don't know exactly what is the root with all the
different folder.


etc 755 logs 750 mail 770 public_ftp 755 public_html 750 tmp 755 www 750 Create New File .bash_logout 0 k 0644 .bash_profile 0 k 0644 .bashrc 0 k 0644 .contactemail 0 k 0644 .cpanel-ducache 0 k 0600 .emacs 0 k 0644 .ftpquota 0 k 0600 .lastlogin 0 k 0600 .zshrc 0 k 0644 php.ini 0 k 0644 <-------------- I put it here


I have one line register_globals = on in the php.ini file.

When I try phpinfo.php to show what is set, it shows that the
registered globals are still off. I tried putting it in www and then
public_html and then also tried to put in my add on domain folder, but
none worked.

Any help would be appreciated.

Thanks!

Your host should help you with this, if they don't, I'd suggest moving to a competent web host. (Webcity.com.au springs to mind.)

Anyway, the php.ini file should be in *every* directory where you are executing the script from. So if you're executing http://www.domain.com/script.php, it would need to be in the www directory. If it is at http://www.domain.com/dir/script.php, it would need to be in www/dir/

Hope that clears things up for you.


--
DM davidm@xxxxxxxxxx

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
.



Relevant Pages

  • Jumpstart: syntax error and trying to load from /cdrom media, which disk to use for Solaris 8 image
    ... I'm not sure if I need to use that disk or the Solaris 8 Installation ... Using RPC Bootparams for network configuration information. ... Using finish script: diag_drv.fin ... Executing JumpStart preinstall phase... ...
    (SunManagers)
  • Re: understanding lambda
    ... All functions in the script are created when the script is parsed. ... A lambda function is created when the script is executing - and is not created unless that statement is executed. ... a new solid -- say, a cylinder, I would take two steps: ...
    (alt.php)
  • QUESTION: shared libraries
    ... how would I create a package easy-to-install for a new user? ... we could use a script to install the package. ... I have seen some scripts executing from a ... Gouvernement du Canada / Government of Canada ...
    (comp.os.linux.development.apps)
  • QUESTION: shared libraries
    ... how would I create a package easy-to-install for a new user? ... we could use a script to install the package. ... takes root privileges to do so. ... I have seen some scripts executing from a ...
    (comp.os.linux.development.system)
  • Re: What does this script do?
    ... This is the Machine Startup script: ... dim installMediaPath, installMediaFileName ... local drive and executing it. ...
    (microsoft.public.scripting.wsh)