By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,873 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

Html, css, php& mysql

P: 1
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
Feb 29 '12 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 8,639
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.
Feb 29 '12 #2

P: 2
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.
Feb 29 '12 #3

P: 93
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">Adminpanel</a>

if any file is coming from outer of paren directory then the path like this ::
<a href="">Home</a>

try it..........

Bharat Parmar(Bharat383)
Apr 16 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.