Hi Jim!
Ok couple of questions then...
.. yesterday these includes WERE working. For some reason I went to the site
today and they weren't. VERY weird! Since these includes are showing up on
multiple pages in different directories, I currently have them being called
like this:
Code in page: (out of whack due to cut/paste)
<?php
include("/home/metalages/common.php");
$bandname='evergrey';
for ($x=0; $x<count($GLOBALS["folders"]); $x++) {
if ($x > 0) {
$num=$x+1;
} else {
$num='';
}
$incline=$GLOBALS["prefix"] .
$GLOBALS["folders"][$x] . $GLOBALS["preband"] . $bandname . $num .
$GLOBALS["suffix"];
include($incline);
if ($x<(count($GLOBALS["folders"])-1)) {
echo"<br>\n";
}
}
?>
Then I have a common.php outside of web folder with this code:
<?php
$prefix='http://www.metalages.com/includes/';
$folders=array('relatedinfo/','alsosee/','sounds/','progged/');
$preband='inc-';
$suffix='.php';
?>
So, since it DID work yesterday for me, the code I have set up isn't
correct? I'm baffled by the fact that it did work for me yesterday, I kinda
wish it didn't now! LoL!
"Jimtronic" <[EMAIL PROTECTED]> wrote in message
news:p05101010b8359cecd8f0@[192.168.1.17]...
>
> It looks like you put a full URL into your include ... which would be
> incorrect.
>
> The syntax is ...
>
> include("path/relative/to/your/script");
>
> jim
>
> --
> Jim Musil
> ---------
> Multimedia Programmer
> Nettmedia
> -------------
> 212-629-0004
> [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]