TinyPortal

Development => Support => Topic started by: noxe on June 07, 2008, 09:13:06 PM

Title: Help with PHP Article
Post 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
Title: Re: Help with PHP Article
Post by: 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?
Title: Re: Help with PHP Article
Post by: noxe on June 07, 2008, 09:49:32 PM
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
Title: Re: Help with PHP Article
Post by: IchBin on June 07, 2008, 11:18:36 PM
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.
Title: Re: Help with PHP Article
Post by: JPDeni on June 08, 2008, 01:36:43 AM
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.
Title: Re: Help with PHP Article
Post by: noxe on June 08, 2008, 05:28:46 AM
edit - something is wrong with my server, not willing to connect to another server, so yeah, not a TP fault, sorry, please close
Title: Re: Help with PHP Article
Post by: IchBin on June 08, 2008, 06:24:25 AM
Ah, thanks for telling us this. Certainly server security settings can come into the picture. :)