473,408 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
Feb 29 '12 #1
3 1842
Dormilich
8,658 Expert Mod 8TB
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
Edster
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
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="http://bytes.com/topic/php/index.php">Home</a>

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

Bharat Parmar(Bharat383)
Apr 16 '12 #4

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

Similar topics

0
by: bruce | last post by:
Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user:...
0
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
1
by: zia | last post by:
Dear friends! I have decided to do my final Project in PHP and MySQL.Can Anybody plz tell me wether these Tools Will Support Distributed Databases. Aspecially MySQL. As some people says MySQL...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
1
by: edfialk | last post by:
Hi all, I'm desperately trying to get a simple mysql connection working in php 4.3.9 and I think I have a doozy for you guys. First of all, I didn't set up ANY of this system, I'm just working...
6
by: mfoolb | last post by:
Hi, I need to import lot of data from html files (all the same layout and tables name) to a MySQL db. Is there any class that fullfill my needs? What's the fastest way to accomplish that? ...
6
by: babbi | last post by:
hi, i am new to mysql and i had to do a project using mysql.so can u please help me in finding out how to establish relation between html and mysql.its urgent.thankyou.
4
by: roopamani | last post by:
hi everybody, i am working on mysql blob i am storing doc,pdf files in mysql and how to read that files by using php and mysql.please anyone can help me Roopa Mani
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.