Results 1 to 14 of 14
  1. #1

    how to get php.ini code

    Hello friends,

    i'm new and i've a question please

    now i've an hosting with certain php.ini settings and it fine with me


    now i've another hosting that allows me to edit the php.ini eaily

    How can i get the code of my 1st hosting ??? so that i copy it and insert it in the 2nd hosting custom field



    sorry for my bad english and it is in another meaning
    How can i know my php.ini code on my hosting ? ( cpanal hosting )


    thanks in advance

  2. #2
    Join Date
    Aug 2009
    Posts
    38
    I am assuming you do have root access to the old box to just look at the PHP config. In that case, create a PHP info page on your site and mirror the settings to your new host.

  3. #3
    Quote Originally Posted by Secter View Post
    I am assuming you do have root access to the old box to just look at the PHP config. In that case, create a PHP info page on your site and mirror the settings to your new host.
    indeed i don't have root access

    listen i will try to re-ask

    i'm not a client at hosting lacehost okay and thier php.ini are so good to me and made me script working fine


    now i'm willing to change the hosting to fatcow hosting, and they offer ability to change php.ini as i like



    so i want to get the code of php.ini used in my hosting
    ( lacehost ) and place it at my new hosting ( fatcow )

    so how can i do that ???

  4. #4
    Join Date
    May 2009
    Posts
    31
    Hello,

    Please create a phpinfo page under your document root (/home/account/public_html) hosted at lacehost and give the link to fatcow hosting. They will change the php.ini settings according to that.

    code:

    <?
    phpinfo();
    ?>

  5. #5
    Join Date
    Jun 2008
    Location
    India
    Posts
    261
    give the phpinfo page to the hosting company , they only could do this
    Ranjith
    Light travels faster thn sound.This is why some people look bright until you actually hear them speak

  6. #6
    Quote Originally Posted by serveradminz View Post
    Hello,

    Please create a phpinfo page under your document root (/home/account/public_html) hosted at lacehost and give the link to fatcow hosting. They will change the php.ini settings according to that.

    code:

    <?
    phpinfo();
    ?>
    well, it is very smart idea and i think fatcow support system will accept to help about that

    thanks i will give a try

  7. #7
    try
    Code:
    php -i > file.txt
    to save settings, than send the file to the hosting company

  8. #8
    Quote Originally Posted by NeWeb View Post
    try
    Code:
    php -i > file.txt
    to save settings, than send the file to the hosting company
    where can i write that command

  9. #9
    Quote Originally Posted by egturnkey View Post
    where can i write that command
    sorry, you don't have console access?

  10. #10
    Join Date
    May 2009
    Posts
    31
    no, he dont have.. please read the third post

  11. #11
    Join Date
    Jun 2008
    Location
    India
    Posts
    261
    create a file phpinfo.php on your local PC with this code and upload it to your web directory. Then provide your hosting support the url to the file
    Ranjith
    Light travels faster thn sound.This is why some people look bright until you actually hear them speak

  12. #12
    Join Date
    Jul 2009
    Posts
    178
    php -i | grep php.ini

    check the loded section which will be like

    Loaded Configuration File => /usr/local/lib/php.ini

    copu this to your public_html directory.


    Then you can customize it as you want.

  13. #13
    Quote Originally Posted by eth10 View Post
    php -i | grep php.ini

    check the loded section which will be like

    Loaded Configuration File => /usr/local/lib/php.ini

    copu this to your public_html directory.


    Then you can customize it as you want.
    He does not have root access to the server.
    Hence, the phpinfo method, as suggested by others above ,would be the best way to go about this.

  14. #14
    Join Date
    Nov 2006
    Location
    Pune, India
    Posts
    1,417
    I saw this thread now, so, I am sorry for the late post.

    php.ini files can be added to lacehost.com hosting as well, to change some settings. Please open a ticket if you need help with it.

    Thank you,
    Ishan
    LeapSwitch Networks Pvt. Ltd. - Managed VPS / Dedicated Servers India
    ASN 132335 - India - USA - Spain - Portugal - Ukraine - Germany
    █ Shared, Reseller, VPS, Dedicated Servers, Colocation
    Pay via - PayPal, Payza, Skrill, Credit/Debit Cards (USD / INR)

Similar Threads

  1. simple php code needing converted to asp code.
    By lochie in forum Programming Discussion
    Replies: 2
    Last Post: 08-30-2007, 04:33 AM
  2. Invalid response code received from server code: 451,
    By xserverx in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-17-2007, 05:40 AM
  3. Replies: 3
    Last Post: 04-02-2007, 04:06 AM
  4. Replies: 0
    Last Post: 07-25-2006, 03:25 AM
  5. Image Ready code -VS- 'Proper' code... the difference?
    By Gen-T in forum Web Design and Content
    Replies: 6
    Last Post: 03-26-2004, 10:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •