TinyPortal
Development => Support => Topic started by: noxe on June 07, 2008, 09:13:06 PM
Hi, first time using PHP article in TP, here's what I am trying to achieve
require_once("file1.php");
PermitAccess("www.domain.com");
echo '<a href="http://www.domain.com/file1.rar">Download</a>';
Problem is, I can't get an output saying "Download" :( Please help
Don't see why it wouldn't work. Maybe your file that you're included is causing problems? Did you try it with only using the echo line and nothing else?
Quote from: IchBinâ,,¢ on June 07, 2008, 09:15:58 PM
Don't see why it wouldn't work. Maybe your file that you're included is causing problems? Did you try it with only using the echo line and nothing else?
Yep, using echo line works out just fine
Then that would indicate something in your include that is causing the problemo. :( If you can't figure it out, feel free to post the content of your file if you need help.
Or it could be the
PermitAccess("www.domain.com");
line.
Take out one line and see what happens. Then put it back and take out the other. That'll narrow down the problem.
edit - something is wrong with my server, not willing to connect to another server, so yeah, not a TP fault, sorry, please close
Ah, thanks for telling us this. Certainly server security settings can come into the picture. :)