Jump to content


Photo

Warning: main(\index.php?page_file=mainlogin.php): failed to open stream


  • Please log in to reply
1 reply to this topic

Poll: Warning: main(\index.php?page_file=mainlogin.php): failed to open stream (0 member(s) have cast votes)

Warning: main(\index.php?page_file=mainlogin.php): failed to open stream

  1. q (0 votes [0.00%])

    Percentage of vote: 0.00%

  2. s (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 truenitin

truenitin
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 04 July 2006 - 03:51 PM

Hiii

i get the following error
when i clik on

<li><a href="index.php?page_file=mainlogin">Login</a></li> the link i wrote in my menu item

error:


Warning: main(\index.php?page_file=mainlogin.php): failed to open stream: Invalid argument in c:\program files\easyphp1-8\www\index.php on line 16

Warning: main(): Failed opening '\index.php?page_file=mainlogin.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\program files\easyphp1-8\www\index.php on line 16

when i run this code:


<?php

$full_path = getenv("REQUEST_URI");
$root = dirname($full_path);
$page = basename($full_path);
if (strpos($page,"..")) {
    die("Bad page request");
}

if (!$page) $page = "index";
$content_file=$root."".$page.".php";

echo "this is full path".$content_file;

include("header.php");
include($content_file);
include("footer.php");

?>


is it something to do with setting of default paths to search for files?????

Nitin

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 04 July 2006 - 04:43 PM

Why have you made a poll for this topic? If you dont want a poll dont fill in the poll options, leave theme blank




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users