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

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

Re: Theme Select Box question? by EzPortal
March 02, 2023, 11:26:15 pm

+- HTML Menu


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

Recent Topics ezBlock

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

ezPortal 5.5 by EzPortal
May 20, 2022, 09:59:30 am

Author Topic: PHP Ezblock  (Read 8433 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: 1298
  • Karma: 67
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
6259 Views
Last post January 18, 2009, 03:19:32 pm
by EzPortal
7 Replies
10688 Views
Last post February 16, 2009, 03:52:14 am
by rockas
0 Replies
5777 Views
Last post July 11, 2009, 03:29:50 pm
by YM
5 Replies
9330 Views
Last post October 01, 2009, 01:54:12 pm
by Marian
1 Replies
6212 Views
Last post April 04, 2010, 09:19:35 pm
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal