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

Re: Remove links to comment and read topic by EzPortal
October 05, 2019, 11:42:56 am

Remove links to comment and read topic by cihancan
October 05, 2019, 02:58:36 am

Re: Forum name twice in breadcrumbs by EzPortal
August 12, 2019, 05:03:58 pm

Re: Forum name twice in breadcrumbs by kenmcneill
August 12, 2019, 03:15:26 pm

Re: Forum name twice in breadcrumbs by EzPortal
August 12, 2019, 12:28:01 pm

Re: Forum name twice in breadcrumbs by kenmcneill
August 12, 2019, 10:20:14 am

Re: Forum name twice in breadcrumbs by EzPortal
August 10, 2019, 06:33:57 pm

Re: Forum name twice in breadcrumbs by kenmcneill
August 10, 2019, 02:25:45 pm

+- HTML Menu


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

Author Topic: PHP Ezblock  (Read 5480 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: 1205
  • 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
4451 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
6843 Views
Last post February 16, 2009, 03:52:14 am
by rockas
1 Replies
4103 Views
Last post February 22, 2009, 09:54:37 pm
by EzPortal
0 Replies
3732 Views
Last post July 11, 2009, 03:29:50 pm
by YM
1 Replies
3731 Views
Last post April 04, 2010, 09:19:35 pm
by EzPortal

+-SMF Gallery

Quick Menu








Members Online

21 Guests, 0 Users
Powered by EzPortal