Old 11-30-2003   #1 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
PHP Help Needed...

I'm getting an error when using a simple require code, so I tried include and got the same.. here is the require code...

PHP:
Quote:
<?php
require 'http://www.alexstanford.com/nav.php';
?>
Error:
Quote:
Warning: main(): stream does not support seeking in /home/alexsta/public_html/contact/index.php on line 10
Let me know if you need more information to help...

Thanks in advance!
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-02-2003   #2 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
to use includes and requires you need to do it like this:

PHP Code:
<?
    
require("/path/to/file.ext");
?>
but you will find that including a file is much better the requiring it:

PHP Code:
<?
    
include("/path/to/file.ext");
?>
And yes, there is a difference in requiring or including a file, requiring will check to see if the file exists before including it, while include will attempt to include the file whether or not it exists... you may want to look into include_once() and require_once() if you only need to include the file once...
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
Forum Jump


All times are GMT +1. The time now is 09:10 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT