TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 118
  • Total: 118

Help with PHP Article

Started by noxe, June 07, 2008, 09:13:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

noxe

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

IchBin

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?

noxe

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

IchBin

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.

JPDeni

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.

noxe

#5
edit - something is wrong with my server, not willing to connect to another server, so yeah, not a TP fault, sorry, please close

IchBin

Ah, thanks for telling us this. Certainly server security settings can come into the picture. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.