Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2010
    Posts
    122
    Thanks
    6
    Thanked 0 Times in 0 Posts

    file acess problem

    hi i have file dbconnection.php file inside the include folder

    Main Folder is pro

    inside the pro ther are two folders include and custom

    Inside include folder - dbconnection.php

    Inside the custom flder - basicrpt.php

    i going to view 127.0.0.1/custom/basicrpt.php link

    now i want to access dbconnection.php via
    include("../include/dbcommon.php");

    when i use this code i will get error...

    please solve this problemmmmmmmmm

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by coolumanga View Post
    hi i have file dbconnection.php file inside the include folder

    Main Folder is pro

    inside the pro ther are two folders include and custom

    Inside include folder - dbconnection.php

    Inside the custom flder - basicrpt.php

    i going to view 127.0.0.1/custom/basicrpt.php link

    now i want to access dbconnection.php via
    include("../include/dbcommon.php");

    when i use this code i will get error...

    please solve this problemmmmmmmmm
    Unless you have forgotten to mention it, or unless the highlighted part is a typo in this thread but is correctly written in your script... There is no such file as "dbcommon.php" - this should be "dbconnection.php"
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

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