Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Php help with syntax error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development
View previous topic :: View next topic  
Author Message
26
Master Cheater
Reputation: 0

Joined: 28 Feb 2009
Posts: 375
Location: Your closet

PostPosted: Sun Apr 18, 2010 10:48 am    Post subject: Php help with syntax error Reply with quote

Code:
<?php

////////////////////
// Process Reg //
//////////////////

//* Start Vars *//
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
$name = $_POST['name'];
//* End Vars *//

//* Start Process *//
file_put_contents('../login/'.$username.'type="text;", 'Done');
file_put_contents('../login/'.$password.'type="password;", 'Done');
file_put_contents('../login/'.$name.'type="text;", 'Done');
file_put_contents('../login/'.$email.'type="text;", 'Done');
//* End Process *//

//* Start Script *//
echo 'Thanks for registering for '.$websitename.'.<br>';
echo 'Click <a href="../default.HTML">here</a> to go back';
//* End Script *//

?>


That's my code but I get this syntax error: Parse error: syntax error, unexpected T_STRING

I get that error on line 14 and it seems my code is good any help :3
Back to top
View user's profile Send private message Yahoo Messenger
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Sun Apr 18, 2010 12:37 pm    Post subject: Re: Php help with syntax error Reply with quote

Code:
<?php

////////////////////
// Process Reg //
//////////////////

//* Start Vars *//
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
$name = $_POST['name'];
//* End Vars *//

//* Start Process *//
file_put_contents('../login/'.$username.'type="text;"', 'Done');
file_put_contents('../login/'.$password.'type="password;"', 'Done');
file_put_contents('../login/'.$name.'type="text;"', 'Done');
file_put_contents('../login/'.$email.'type="text;"', 'Done');
//* End Process *//

//* Start Script *//
echo 'Thanks for registering for '.$websitename.'<br>';
echo 'Click <a href="../default.HTML">here</a> to go back';
//* End Script *//

?>
Be sure to close your 's
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sun Apr 18, 2010 12:44 pm    Post subject: Reply with quote

Perhaps the directory is wrong?
Back to top
View user's profile Send private message
Up2Admin
I'm a spammer
Reputation: 126

Joined: 17 Oct 2007
Posts: 6546
Location: Texas

PostPosted: Sun Apr 18, 2010 4:13 pm    Post subject: Reply with quote

Holland spotted the only error I can find. If you run into any other trouble, let us know.
_________________
Back to top
View user's profile Send private message
CrisNMP
Fun Supervisor
Reputation: 16

Joined: 11 Apr 2007
Posts: 4649

PostPosted: Sun Apr 18, 2010 5:31 pm    Post subject: Reply with quote

Stone wrote:
Perhaps the directory is wrong?

Quote:
syntax error

_________________

BENBENBENBENBENBENBENBEN
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sun Apr 18, 2010 6:15 pm    Post subject: Reply with quote

CrisNMP wrote:
Stone wrote:
Perhaps the directory is wrong?

Quote:
syntax error

Loading from up a level when there is no high level returns a syntax error.
Just saying.
But it looks like Holly spotted a missing '.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites