viclopez
03-14-2007, 10:34 AM
I have my site in the the main folder, its a php site and it runs fine. Now, i made a subfolder named images, i drop a gallery script.. like gallery.php. Now, when i go to mysite.com/images/gallery.php, it will display my main site without any css formatting.
Can someone tell me why this happends? How does it find my index.php in my root folder and im looking at site.com/images/ ?
can we have a link to your site ? it will be a lot easier for me to fix your problem
viclopez
03-14-2007, 12:08 PM
site is www.empire-earth3.com (http://www.empire-earth3.com)
script was at www.empire-earth3.com/gallery/gallery.php (http://www.empire-earth3.com/gallery/gallery.php)
I removed the script, but Ill re-upload it so you can see what i mean.
Also, i noticed it only does this when I chmod the gallery folder to 777 (which the script says it needs to be).
Now, if I dont chmod it correctly, it gives me this error.
Warning
You have no image files in your directory or you didn't config the setting correctly to allow all jpg, gif, or png files! Please run this script only when those are fulfilled! Thank you!
Im guessing it throws this out because there are jpg files in that directory, and the settings have been changed to allow jpg files.
Im lost... :(
<link rel="stylesheet" type="text/css" media="screen,projection" href="./css/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print" href="./css/style_print.css" />
you will add one more dot here etc.:
href="../css/style_screen.css"
now you owe me 100$ for consultation ;-)
it sould be ok if you fix this path problem :]
viclopez
03-14-2007, 12:58 PM
<link rel="stylesheet" type="text/css" media="screen,projection" href="./css/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print" href="./css/style_print.css" />
you will add one more dot here etc.:
href="../css/style_screen.css"
now you owe me 100$ for consultation ;-)
it sould be ok if you fix this path problem :]
Well that fixes the formatting problem when i try and access the script at ./gallery/gallery.php
so thanks for the help on that.
Exept, when i go there, it shows the main page, and not the gallery script.
Any ideas?
:unhappy:
i dont know really, it looks like some problem inside your files , but a lot more likely like htaccess problem...
the server thrown the index page at me inside that broken css file, so it looks like maybe problem with mod_rewrite usage or something, i cant tell that without ftp access im affraid ...
viclopez
03-14-2007, 01:29 PM
the server thrown the index page at me inside that broken css file, so it looks like maybe problem with mod_rewrite usage or something, i cant tell that without ftp access im affraid ...
bummer. i guess im going to have to make thumbs of the images and code them in to the site. :(
Thanks for your help.