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: portal smilies by gaza07
June 04, 2019, 10:45:01 pm

Re: portal smilies by EzPortal
June 04, 2019, 03:18:45 pm

portal smilies by gaza07
June 04, 2019, 11:58:52 am

Re: e-arcade by hrroach
May 03, 2019, 07:59:34 am

Re: e-arcade by EzPortal
May 02, 2019, 04:25:59 pm

e-arcade by hrroach
May 02, 2019, 03:18:38 pm

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

+- HTML Menu


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

Author Topic: PHP Ezblock  (Read 5176 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: 1199
  • 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
4235 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
6707 Views
Last post February 16, 2009, 03:52:14 am
by rockas
1 Replies
4045 Views
Last post February 22, 2009, 09:54:37 pm
by EzPortal
0 Replies
3635 Views
Last post July 11, 2009, 03:29:50 pm
by YM
1 Replies
3597 Views
Last post April 04, 2010, 09:19:35 pm
by EzPortal

+-SMF Gallery

Quick Menu








Members Online

11 Guests, 0 Users
Powered by EzPortal