Html, css, php& mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jiger linux
    New Member
    • Feb 2012
    • 1

    Html, css, php& mysql

    Dear Friends

    I have a problem.I make a project with using Layout in HTML and CSS and Scripting in mysql and PHP....
    but problem is that when I copy that project in any other drive or in another computer then second time i set my all scripting path and image path and css background path.

    Dear friend have you any solution about this ? I want that when i select image or file path in <a> tag then it will never change if i copy complate project in anywhere then it select automatially that path??
    if you not understand then call me on
    MO: +91 9904159648 Jignesh Prajapati
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    question: do you use PHP/MySQL without a server? every address related to a web project should be made relative to the project's base URL.

    Comment

    • Edster
      New Member
      • Feb 2012
      • 2

      #3
      I use a combination of relative paths with constants to stand in for sub-folder locations, which allows you to change the folder structure easily.

      Comment

      • Bharat383
        New Member
        • Aug 2011
        • 93

        #4
        first of all never use absolute path for images, hyperlink or any other linked files to project.

        use ==>
        <a href="home.php" >Home</a><a href="blog.php" >Blog</a> which are included in same folder.

        if any file is coming from inner folder then use the path like this ::
        <a href="admin/welcome.php">Ad minpanel</a>

        if any file is coming from outer of paren directory then the path like this ::
        <a href="http://bytes.com/topic/php/index.php">Home </a>

        ok..
        try it..........

        Bharat Parmar(Bharat38 3)

        Comment

        Working...