Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
hello all great programmers,
i m new to PHP. i m developed a simple page in which i use implode() function. this program was running fime when i was using php 4.3. but as i upgrade it to php 5.1 it is not working and giving error.
source is hereCode: Select all
<?php
$contents="";
include "config.php";
include "common.php";
$f="login.htm";
$contents = implode('',file($f));
$contents=formatPage($contents);
print $contents;
?>Warning: file(login.htm): failed to open stream: No such file or directory in d:\www\currNs\login.php on line 7 Warning: implode(): Bad arguments. in d:\www\currNs\login.php on line 7
but when i provide its path on local machine
Code: Select all
$f="D:\www\curr\Ns\login.htm";
$contents = implode('',file($f));what is this problem and how can i overcome this one i already waste a whole day on it..
pls email me gbuttgee@yahoo.com
thanks in advance
Khurram
twigletmac | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]