Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

t variable error

1:56 pm on Aug 7, 2007 (gmt 0)

New User

5+ Year Member

joined:Aug 7, 2007
votes: 0

I am trying to use the following code to wirte a page contents to a file. I however get the error:

Parse error: parse error, unexpected T_VARIABLE ....on line 2.

$str$fh = fopen("http://blabla.com/bla.htm","r");
$fo = fopen("test1.txt","w");

Could you please help with this error?

2:03 pm on Aug 7, 2007 (gmt 0)

Preferred Member

5+ Year Member

joined:Jan 16, 2007
votes: 0

change the first line to this
$fh = fopen("http://blabla.com/bla.htm","r");
2:04 pm on Aug 7, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Oct 15, 2003
votes: 0

I'm guessing the error refers to this '$str$fh.' It looks like you have two variables put together.
2:04 pm on Aug 7, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
votes: 0

Hi rlansi, welcome to Webmaster World. :)

I`m guessing this is your problem:


What is that exactly?