Unstoppable Domains

[PHP] Whats wrong here (easy one)

Spaceship Spaceship
Watch

w1ww

Established Member
Impact
9
Whats wrong here?:

PHP:
//array of invalid characters
  $junk = array('.' , ',' , '/' , '\' , '`' , ';' , '[' ,  ']' , '-', '_', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');

Error:

Parse error: syntax error, unexpected '`', expecting ')'


Thank you :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
w1ww said:
Whats wrong here?:

PHP:
//array of invalid characters
  $junk = array('.' , ',' , '/' , '\' , '`' , ';' , '[' ,  ']' , '-', '_', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');

Error:




Thank you :)

I don't know php but I think you have to escape special characters, So where you have '\' it should be '\\'. There are other special characters you have to escape but like I said I don't know PHP, So I don't know witch ones
 
0
•••
0
•••
Try this.

Code:
$junk = array('.' , ',' , '/' , '\'' , '`' , ';' , '[' ,  ']' , '-', '_', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');
 
0
•••
Code:
$junk = array('.' , ',' , '/' , '\\' , '`' , ';' , '[' ,  ']' , '-', '_', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '=');
You need to escape the \
 
0
•••
Thank for the help guys:)
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back