1
k1ll3rdr4g0n
PHP code not working

ok i put the following code in a custom block as tried it both as HTML and PHP

[size=xx-small]require("http://www.thatgamingsite.ath.cx/webstats/include/functions.php");

echo "Number of people today: " . stat_value("todayunique") . "
";
echo "Number of people this week: " . stat_value("weekhits") . "
";
echo "Record of people in one day: " . stat_value("record_day") . "
";
echo "Total Hits: " . stat_value("totalhits") . "

";

echo 'View the 5 day trend here.
';
echo 'Powered by Elite Stats ';[/size]

Ive also tried it with and it still doesnt work.

I even tried it in a seperate file, and it works there.

Anyone know what im doing wrong?

2
Chris03
Re: PHP code not working
  • 2004/10/31 3:23

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Yes you cannot include a HREF to a php document as there webserver will parse it out

3
k1ll3rdr4g0n
Re:PHP code not working

does anyone know?

4
Chris03
Re:PHP code not working
  • 2004/11/2 22:54

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


You cannot include a link to a PHP document....

Go to the php document in a browser and you will see that IIS or Apache or whatever there webserver is, is parsing the file to HTML







that is the source code that is give.

Login

Who's Online

431 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 431


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits