EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

ezPortal 4.5 Released! by EzPortal
March 30, 2019, 09:10:23 pm

Re: ezPortal 4.1 Released by EzPortal
February 11, 2019, 10:07:05 pm

Re: ezPortal 4.1 Released by EzPortal
February 10, 2019, 09:24:08 pm

Re: ezPortal 4.1 Released by arslun
February 10, 2019, 09:21:20 pm

Re: ezBlock listed as installed by EzPortal
January 30, 2019, 09:49:33 am

Re: ezBlock listed as installed by Trower
January 30, 2019, 06:48:34 am

Re: How to change Forum text for link by Mont
January 14, 2019, 01:06:10 am

Re: How to change Forum text for link by EzPortal
January 13, 2019, 01:46:23 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Author Topic: PHP Ezblock  (Read 5049 times)

0 Members and 1 Guest are viewing this topic.

Offline jcsnider

  • Posts: 3
  • Karma: 0
  • Gender: Male
PHP Ezblock
« on: December 06, 2009, 04:36:04 pm »
Every time I try to use the PHP Ezblock, it always says I have the wrong syntax...
here is the code I am trying to use...
<? $myFile "users.txt"
$fh fopen($myFile'r'); 
$theData fread($fhfilesize($myFile)); 
fclose($fh); 
echo 
$theData?>


Any Ideas?

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1197
  • Karma: 66
Re: PHP Ezblock
« Reply #1 on: December 07, 2009, 06:48:14 pm »
Looks fine. I would try using the following and putting the full path to the file just in case
Code: [Select]
<?php 
$myFile 
"users.txt"
$fh fopen($myFile'r'); 
$theData fread($fhfilesize($myFile)); 
fclose($fh); 
echo 
$theData
?>

Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4113 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
6578 Views
Last post February 16, 2009, 03:52:14 am
by rockas
1 Replies
3970 Views
Last post February 22, 2009, 09:54:37 pm
by EzPortal
0 Replies
3581 Views
Last post July 11, 2009, 03:29:50 pm
by YM
1 Replies
3481 Views
Last post April 04, 2010, 09:19:35 pm
by EzPortal

+-SMF Gallery

Quick Menu








Members Online

13 Guests, 0 Users
Powered by EzPortal