Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRIN


PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRIN

Reply
  #21 (permalink)  
Old 08-31-11, 05:56 AM
sonic656 sonic656 is offline
New Member
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Please help me! :d

Hi i'm new here....plzz can anybody help me with this error? "Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING"

PHP Code:

$fh fopen("../../".$_POST['dir']."/index.php"'w') or die("Can't create file");

if (
$_SESSION['c']) {$line16="echo 'Hi, '.$_SESSION['nick'].' - <a href='acc.php'>My account</a> | <a href='logout.php'>Logout</a>';";}
else {
$line16="echo '<a href='sup.php'>Sign up</a> or <a href='sin.php'>Sign in</a>';";}
fwrite($fh$line16);
fclose($fh); 
thank you
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 4 (0 members and 4 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
PHP / Graphic Developers someotherguy582 Job Offers & Assistance 1 06-05-05 07:40 PM
Parse error in php file sahil PHP 1 06-30-04 05:05 AM
PHP script to parse HTML Skeleton Man Script Requests 2 10-05-03 08:41 PM


All times are GMT -5. The time now is 07:00 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.