View Single Post
Old 05-02-2005, 10:46 AM   #22 (permalink)
arch13
Loves my girl in thongs
 
arch13's Avatar
 
Location: North of Mexico, South of Canada
Ya know, are you a teacher Silvy? You should be.
This url still isn't working though:
http://www.arch13.com/index.php?id=brewery&id2=11

I killed off the brewery.php in the local root, so we know that your new lines in the index.php did the trick. It's looking in /brewery for the page when given $id=brewery.
So now it's down to a single problem I guess.
I changed the image paths in the begining of index.php to:
Code:
define ('IMAGE_FS_PATH', '/homepages/6/d93661089/htdocs/imgs/');  //full filesystem path to images
define ('IMAGE_WWW_PATH', 'imgs/');  // path relative to the URL
It looks right to me (And I see where you got the full system path from phpinfo.php
The code in brewery.php itself looks like this:

Code:
$base = 'brewery';   //CHANGED  (removed _ )
$id = $_REQUEST['id2'];
if(file_exists(IMAGE_FS_PATH.$base.'/'.$base.'_'.$id.'jpg')) {  //CHANGED added $base.'/'.  and .'_'
echo "<img src='".IMAGE_WWW_PATH.$base.'/'.$base.'_'.$id.".jpg'>";  //CHANGED added same as the line above, watch for correct quotes!
} elseif(file_exists($id.".php")) {
include($id.".php");
} else {
echo "<img src='brewerysplash.jpg'>";
}
I'm guessing that the problem lies in here somewhere.
My question is, why isn't $id2 showing brewery_11.jpg in the url I gave at the begining of htis post?
It seems as the though the problem is with the image paths in some way.
__________________
Seen on an employer evaluation:

"The wheel is turning but the hamsters dead"
____________________________
Is arch13 really a porn diety ? find out after the film at 11.
-Nanofever
arch13 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76