473,322 Members | 1,494 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,322 software developers and data experts.

httpd.conf and XAMPP

I am still pretty new to this environment and don't know much about
httpd.conf. I understand that it is the place to configure the server
but don't know how to actually use it for what I'm trying to do.

I use XAMPP to develop locally. There is an external test server here
but it can be a pain to mess with it as I can only use it via SSH
(something else I'm new to) and prefer to develop locally until I have
enough to bother with moving everything up.

In XAMPP, when I use an include, such as <?php include "menu.php";?>, I
have to change that include (which is in the root) to <?php include
"../menu/php";?> This is not a big deal BUT the menu in that include
references images, which are also in the root.

The problem: if the menu include file is called from another directory
underneath the root directory the images are broken because that
reference images in the root, not in the same directory. In ASP I
would just reference the images like this: <img src="/image.jpg">.
This way no matter where I was, in the root or 10 subdirectories deep,
"/image.jpg" would always be looked for in the root. The way it is
working out with XAMPP is it looks for the image in the "htdocs"
directory, not the root of the site I am working on. The only way I
can figure a way around this is to create 2 include files and I'm
trying to avoid that.

When I use the test server (external to this machine) I can apparently
use absolute directory references just fine but I want XAMPP to behave
the same way.

I'm only assuming but is httpd.conf the answer? And if so how do I do
it?

Thanks!!!

Jan 9 '06 #1
0 2222

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Prince of Code | last post by:
Hi all, I would like to know what is the difference between LoadModule & AddModule configuration directives in httpd.conf of Apache server. I guess LoadModule is for loading dynamic modules which...
0
by: Gerard Flanagan | last post by:
Hello, Does anyone know of an existing module to parse httpd.conf files? Thanks.
5
by: r.g. | last post by:
Hello, Recently, my PHP (5, as installed by the XAMPP package) stopped working, and won't let me run locally-served PHP files in my web browsers. I think (but I'm not sure) that the Apache...
4
by: coaxfiber | last post by:
Hi guys, my problem is when I installing the Apache v2.2.4 as my local server to run my php, and then run the test configuration, it tells me this error: httpd.exe: Syntax error on line 152 of...
0
by: s2rinivasan | last post by:
I am using Redhat linux EL4 2.6.9-5 . In it I am configuring httpd configuration with out authentication it gives the currect page. But with authenticetion it shows some error that MYSQL ERROR:...
3
by: lollielala | last post by:
Hi every one, I'm new to xampp & configuring etc I've installed, uninstalled, & again with what looks like a successful install. http://localhost/phpmyadmin/ apperas to be working also...
2
by: K. | last post by:
Hello! I would like to implement such funcionality: https://www.test.pl -I enter into this page without any problems (encrypted connection) when user tries to write: http://www.test.pl...
1
by: Doug Gentry | last post by:
I just picked up this book "Build your own Database Driven Web site using PHP & MySQL. On Page 18 section 4. It states all the remaining options in this long and intimidating configuration file...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.