Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: php parsing/reading large text files

  1. #11
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I'm not sure where the file is located, it varies by server. Try executing this

    PHP Code:
    <?php
    echo phpinfo();
    ?>
    that should tell you where the file is located, it wont necessarily take the changes though...
    Corrections to my coding/thoughts welcome.

  2. #12
    Join Date
    Jun 2011
    Location
    Pearl of the East
    Posts
    54
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    sir, @ini_set('post_max_size', '32M') is not working,.

    only @ini_set('memory_limit', '100M') is working,.

    the phpinfo() shows the current value that you changed after using ini_set and i observed that only memory_limit has changed..

    what does it mean sir?,.

    i can't re-write/overwrite my .ini file, what should i do sir?,.

    please help me,.




    thx in advance,.

    GOD bless



    -regicide del feroz

  3. #13
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    My understanding of the ini_set is that it only sets it for the run of the script so you wont see the actually change in the phpinfo.


    After looking at some other sites post_max_size can't be set with ini_set so you will have to contact your host or admin to up the setting manually.

    You could also try the htaccess solution they have here http://www.sitepoint.com/forums/php-...ze-751723.html
    Corrections to my coding/thoughts welcome.

  4. #14
    Join Date
    Jun 2011
    Location
    Pearl of the East
    Posts
    54
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    sir,. i already tried to changed the setting in the php.ini file,. but still nothing happened,.

    i gonna try the .htaccess,.




    thank you very much sir for your patience,.
    you're still trying to help me,. thanks a lot,.


    God Bless,.
    more power

    -regicide del feroz




    EDIT:

    sir,. does .htaccess working on linux?,. i tried to create an .htaccess but still nothing happened,.
    Last edited by regicidedelferoz; 06-29-2011 at 12:25 AM.

  5. #15
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I haven't used the htaccess before so I can't advise on that.

    Does anyone else have any advise for regicidedelferoz??
    Corrections to my coding/thoughts welcome.

  6. #16
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Does your host allow this? Have you tried to contact them? It may be blocked. Or you may risk your account being terminated if you do find a way around it-- read the TOS for the host to find out if this is the case.
    They may allow it, and you can find out the best approach by contacting them.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #17
    Join Date
    Jun 2011
    Location
    Pearl of the East
    Posts
    54
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    sir, i also tried this step from a localhost and i got the same problem,.
    so i think it's not about the host that i'm using,.


    thx for your helps,.

    more power,.

  8. #18
    Join Date
    Jun 2011
    Location
    Pearl of the East
    Posts
    54
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    bump!

  9. #19
    Join Date
    Jun 2011
    Location
    Pearl of the East
    Posts
    54
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    bump!

  10. #20
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    We've already answered your question. This is not a problem with PHP. It is a problem with your server's configuration so you have two options: 1) hire someone to configure your server; 2) do it yourself (possibly contacting the host for information).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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