Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Emmons
New Member
New Member



Joined: Feb 28, 2005
Posts: 3
Location: USA,Ohio

PostPosted: Mon Feb 28, 2005 2:29 pm Reply with quote

Ok well a long time ago a friend gave me a code , then three weeks ago i was cleaning my computer of old files and i deleted that file that had the script to make phpnuke modules.
Well im just trying to make a test module now but heres that code of what i have:
Code:
<?php

f (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$index = 0;
include("header.php");
OpenTable();

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
TEST TEST!

</body>
</html>

CloseTable();
include("footer.php");
?>


Then i upload my file to my server and made a new folder under modules and everything else but i get this message when i go to it:

Quote:
Parse error: parse error, unexpected '{' in /home/virtual/site58/fst/var/www/html/9thdesigns/modules/Test_Links/index.php on line 2


Heres my site module: [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website Yahoo Messenger
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Feb 28, 2005 4:04 pm Reply with quote

You didn't escape the quotes in that. Like this /"
Really give the book a read there is a lot of information there that can help you get started.

You don't really need to use the head and body for an embedded page like that its already there for you.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Emmons







PostPosted: Mon Feb 28, 2005 4:09 pm Reply with quote

What do you mean? excape the quotes?
 
ShosMeister
New Member
New Member



Joined: Jun 08, 2005
Posts: 18
Location: Harpers Ferry, WV

PostPosted: Wed Jun 08, 2005 8:33 am Reply with quote

Actually it's not the quotes. If you still need to get this working, look at your line. I think it should be "IF" not "F". Smile Smile

Also, you can't insert raw html in the middle of the php. If you want to keep it all php, then you have to echo the html code. If not, you can close the php before the html and then open it back up before the end to close the table and all.

_________________
Image

Old Programmers Never Die ... They Just Lose Their Bits 
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©