SitePoint Sponsor

User Tag List

Results 1 to 24 of 24

Thread: php.ini

Hybrid View

  1. #1
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you edit php.ini on hostrocket servers?

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I doubt you can your best bet is to add php directives to a .htaccess file in the form of for example

    php_value auto_prepend_file "/home/html/prepend.php"
    php_value auto_append_file "/home/html/append.php"
    php_value include_path "/home/html"
    php_value session.name "PHPSESSID"
    php_value session.cookie_path "/"
    php_value session.cookie_domain "www.yourdomain.com"
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if i cna use .htaccess files

    STRANGE

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems you are using a Linux server running apache so I don't see why you can't use .htaccess files have you tried? Normall a virtual host will not let you have access to the php.ini file and will force you to put your directives in a .htaccess file.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am contacting HostRocket about this, strange.

    No .htaccess...

    I wanted to change the php.ini to change include path as i read the databse articles by Matt and i was doing that security thing. Including a user name and password and storing it in the base dir

  6. #6
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't need to do that just specify the absolute path to the file you want to include

    like

    include("/home/myuser/dbstuff.inc");
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  7. #7
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok...

    I found that .htaccess does work but is delete when uploaded as it changes server config files

  8. #8
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or is it that your ftp client is not setup to show system files or .htaccess files after you upload it can you telnet in and see it, if so that just means that you need to configure your ftp client properly, did hostrocket tell you that you could use them and you just can't see them after you upload them?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  9. #9
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HostRocket says i can use them but nothing about them being invisible.

    FTP confirgured fine.

    STRANGE, maybe because i only signed up with them 1 hour ago

  10. #10
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HostRocket wouldn't tell you they were invisble it would be your ftp client that couldn't see them unless you have configured it to recognize files with a .htaccess extenstion what ftp client do you use?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  11. #11
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CuteFTP

    I logged onto a different host - petestech.com and i could see my htaccess filez

  12. #12
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the wonderful land of unix, files that begin with a "." are dot-files and are generally not displayed when you LIST (ftp) or ls (normal) the directory. This is because they are generally configuration files.

    In almost all FTP clients, there is an option to "Show hidden files" or "Show dotfiles." Turn this on and you will be able to see them.

  13. #13
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To show it, you have to use LIST -la

  14. #14
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What was that List thingo?

  15. #15
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My CuteFTP doesn't show them either just telnet in and cd into the dir where you uploaded it then issue the following command

    ls -la

    you should get the directory contents including the .htaccess file
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  16. #16
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it, how do you delete a file in Telnet

  17. #17
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rm -r -f filename
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  18. #18
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx allot every1, BTW, the rm -r -f goes for folders aswell right?

    I got my first eva database up and running. At the age of 14

    216.74.101.27/test.php

    I just have to work out how to use a form to add things to the database

  19. #19
    ********* Zealot hostfree's Avatar
    Join Date
    May 2000
    Location
    ny
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    rmdir is the remove directory command.

    -Brendan Brader
    HostRocket! Launch Your Site Today
    http://www.hostrocket.com

  20. #20
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rm -r -f dirname will remove it as well try it if you like
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  21. #21
    SitePoint Enthusiast JohnM's Avatar
    Join Date
    Dec 2000
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by petesmc
    I got my first eva database up and running. At the age of 14
    I've WRITTEN bigger stuff at the age of 14
    - John M

  22. #22
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I only learnt HTML 6 months ago

  23. #23
    SitePoint Enthusiast JohnM's Avatar
    Join Date
    Dec 2000
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I learned PHP a few months ago
    - John M

  24. #24
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I learnt it yesterday


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
  •