php noob problem - require_once

This is a discussion on "php noob problem - require_once" within the PHP Forum section. This forum, and the thread "php noob problem - require_once are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 1st, 2006, 12:19
New Member
Join Date: Jul 2006
Location: SWE
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
php noob problem - require_once

Hi, im doing a simple site and im pretty much total noob in PHP, just learning it so sorry

<div class="next">
<?php @ require_once ("next.html"); ?>
</div>
<div class="navi">
<?php @ require_once ("navi.php"); ?>
</div>

<div class="cont">
<?php @ require_once ('./$page.html'); ?>
</div>

So thats the code and what i want to do is that the menu (where all the links are) are in navi.php file. And when you click one of those links the page opens in "cont" box. But for some reason that doesnt work. Where's the problem. Im not sure but should i have somewhere something like $_GET

thanks,
donnie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 1st, 2006, 12:55
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php noob problem - require_once

Here's the manual -

http://uk.php.net/require
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 1st, 2006, 21:50
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php noob problem - require_once

It doesn't seem like you've learned enough php to accomplish this. Try studying a tutorial on generating $_GET variables. I don't know what @require_once ('./$page.html') is supposed to accomplish.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
php, noob, problem, require_once

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Noob looking for help Gardenworks Starting Out 2 Apr 6th, 2008 15:57
noob needs help louie2k2 Flash & Multimedia Forum 1 Aug 5th, 2007 17:56
Noob needs help. Geekmation Flash & Multimedia Forum 3 Jan 14th, 2007 23:51
Passing Variables to a require_once() Page darryladie PHP Forum 3 Jun 20th, 2006 18:36


All times are GMT. The time now is 16:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42