PDA

Click to See Complete Forum and Search --> : [RESOLVED] Include problems


I_Love_My_Vans
Oct 12th, 2007, 01:15 PM
I am trying to use an include file...

<?php include('./includes/links.php?current=home'); ?>

Returns this error

Warning: include(./includes/links.php?current=home) [function.include]: failed to open stream: Invalid argument in C:\xampp\htdocs\ValueTech\index.php on line 25

Whats happening?

RudiVisser
Oct 12th, 2007, 02:10 PM
Let's remember local files don't take query strings :)

Do it like this:

$current = "home";
include('./includes/links.php');

I'll assume you was using $_GET['current'], so just replace that with $current.