Publish Articles
Random Questions
 1  What if I do not have any question?
 2  Do you you love me?
 3  Tab function.... possible
 4  Joomla, How to change Menu?
 5  Deny access from other pages in PHP or HTML?
 6  Would you help me change this joomla template?
Latest Articles

jAnswers revealed - Yahoo Answers Clone Script

jAnswers Factory provides the perfect Question and Answers Solution for the Joomla CMS integrating features from the well know Jahoo Answers system. Users can ask questions, Community provides answer...
Read more...

Resolved Question

How can i turn on PHP magic_quotes_gpc setting during joomla 1.0 installation.?
how can i turn on PHP magic_quotes_gpc setting, during joomla 1.0 installation. whereas XAMPP is already installed on my machine. if u can help me so please send me complete path/command.

Best Answer - Chosen by Asker

  • If you have access to php.ini

    set the
    magic_quotes_gpc directive to On
    magic_quotes_runtime=on

    If you don't have access to php.ini

    ini_set('magic_quotes_gpc', 1); in your code

    Source(s):

    INTERNET

    • 04/22/2009
    • Report as abusive/illegal
  • 1 Interesting!
  • Hits: 487
  • Closed on: 04/22/2009 13:40

Other Answers:

  • Have you got access to php.ini? If so then change these in the file to:

    magic_quotes_gpc = On
    magic_quotes_runtime = On

    If you are in a shared environment, you may need to contact your hosting provider.

    You may be able to change it via an .htaccess in the same directory as your php script files:

    Content of .htaccess:

    <IfModule mod_php4.c>
    php_value magic_quotes_gpc 1
    </IfModule>

    Another option might be to use the iniset() function in the php script file itself (this may or may not work depending on your hosting environment)

    PHP Syntax:

    <?php
    ini_set ('magic_quotes_gpc', 1);
    ?>

    Source(s):

    10 Years of PHP Coding

    • 04/22/2009
    • Report as abusive/illegal
  • You go into the php.ini file and turn it on.

    • 04/22/2009
    • Report as abusive/illegal