EzPortal - Portal Software for Forums

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

Advertise Here +- +-

UserBox

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

+- Recent Posts

ezPortal 7.0 Released! by EzPortal
February 23, 2026, 08:35:20 pm

ezPortal 6.5 Released! by EzPortal
January 18, 2026, 02:46:30 pm

ezPortal 6.0 released! by EzPortal
July 10, 2025, 10:50:58 pm

Re: TinyMCE Editor disapears by ezxenova
May 06, 2025, 07:38:09 am

Re: TinyMCE Editor disapears by DenDen66
March 02, 2025, 06:59:40 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 08:09:43 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 07:31:29 am

Re: TinyMCE Editor disapears by EzPortal
February 27, 2025, 06:57:30 pm

+- HTML Menu


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

Recent Topics ezBlock

ezPortal 7.0 Released! by EzPortal
February 23, 2026, 08:35:20 pm

ezPortal 6.5 Released! by EzPortal
January 18, 2026, 02:46:30 pm

ezPortal 6.0 released! by EzPortal
July 10, 2025, 10:50:58 pm

TinyMCE Editor disapears by ezxenova
May 06, 2025, 07:38:09 am

Renaming a page by DenDen66
February 23, 2025, 10:51:22 am

Styling ezBlock by EzPortal
February 19, 2025, 09:15:05 pm

I don't remember how to upgrade by EzPortal
February 05, 2025, 08:44:58 am

ezPortal 5.6 release by EzPortal
January 31, 2025, 11:21:34 am

5.5.4 by EzPortal
January 16, 2025, 08:31:41 pm

Moving a block higher in list by UkuleleMan
December 17, 2024, 07:58:27 am

Author Topic: PHP Ezblock  (Read 15309 times)

0 Members and 4 Guests are viewing this topic.

PHP Ezblock
« on: »
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($fh, filesize($myFile)); fclose($fh); echo $theData; ?>


Any Ideas?

Re: PHP Ezblock
« Reply #1 on: »
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($fh, filesize($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
9331 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
15159 Views
Last post February 16, 2009, 03:52:14 am
by rockas
0 Replies
8212 Views
Last post July 11, 2009, 03:29:50 pm
by YM
5 Replies
13040 Views
Last post October 01, 2009, 01:54:12 pm
by Marian
1 Replies
19230 Views
Last post April 04, 2010, 09:19:35 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal