Well, although that runs fine when I run the file activetopics.php by itself, I seem to be having trouble including it. Sacremen, I stuck that include statement at the top of the main file, tried it various other places, tried it inside the activetopics.php file. I tried it with full absolute path, relative path, or URL to the file global.php. I always seem to get the "Warning: Supplied argument not a valid etc.".
If I put it anywhere inside the activetopics.php file, I get the msg "Warning: Cannot add header information - header already sent etc.".
I've also tried it both with the path in the include statement, or with the separate line with the chdir statement.
Obviously, I'm missing something. Can you explain it to me, please? Thanks!
|