| Welcome Guest ( Log In | Register ) | Resend Validation Email |
|
PHP Magazine Feed![]() ![]() ![]() |
| santanu |
Posted: February 07, 2010 02:16 pm
|
||||
|
Administrator Group: Admin Posts: 7,337 Member No.: 1 Joined: November 22, 2005 IGNOU:MCA Joining Year: 2006Study Centre:St. Xavier's College, Kolkata (2802) |
Its difficult if not impossible to do in a simple manner. We discussed this in http://www.santanu.in/forums/index.php?showtopic=5951 . You have to think of an alternative solution. Generally there is no need to transfer javascript variable values to PHP.
There are many. Some of these are - password protection with md5 hashing of password - checking of inputs to ensure that SQL injection attack can't be done - encrypting data transfer between client and server etc. I had mentioned some in my icNIMS project. You can find details in the following sites: http://articles.sitepoint.com/article/php-security-blunders http://www.devshed.com/c/a/PHP/PHP-Security-Mistakes/ http://www.phpfreaks.com/tutorial/php-security |
||||
| IMSF |
|
|
Tech for GenY Group: Bot IGNOU:MCA Joining Year:Study Centre: |
|
|
|
| sumitarorasa |
Posted: February 07, 2010 12:41 pm
|
|
6th Sem Group: ACTIVE Members Posts: 288 Member No.: 4,479 Joined: December 21, 2007 IGNOU:MCA Joining Year: Not ApplicableStudy Centre: |
@santanu
I think it is setting's problem because at my home and office PC it is showing "<" instead of > but when i run the same example in the online compiler like given in this forum, it shows >. I have two more queries i.e 1) How to store a Java Script variable's value in PHP variable? 2) What steps can be taken for Security in PHP? |
| santanu |
Posted: February 06, 2010 11:55 pm
|
|
Administrator Group: Admin Posts: 7,337 Member No.: 1 Joined: November 22, 2005 IGNOU:MCA Joining Year: 2006Study Centre:St. Xavier's College, Kolkata (2802) |
Me too. But I am getting the actual character within quotes. If you are using double quotes, can you try single quotes?
|
| sumitarorasa |
Posted: February 06, 2010 10:35 am
|
|
6th Sem Group: ACTIVE Members Posts: 288 Member No.: 4,479 Joined: December 21, 2007 IGNOU:MCA Joining Year: Not ApplicableStudy Centre: |
I am using PHP5.
|
| santanu |
Posted: February 06, 2010 10:05 am
|
||
|
Administrator Group: Admin Posts: 7,337 Member No.: 1 Joined: November 22, 2005 IGNOU:MCA Joining Year: 2006Study Centre:St. Xavier's College, Kolkata (2802) |
But I just checked it and print(">") printed > :think: It does not print > in my case. Which version of PHP are you using? |
||
| sumitarorasa |
Posted: February 06, 2010 09:46 am
|
|
6th Sem Group: ACTIVE Members Posts: 288 Member No.: 4,479 Joined: December 21, 2007 IGNOU:MCA Joining Year: Not ApplicableStudy Centre: |
@Santanu,
I want to print > or the other characters for various symbols like > for >, < for < etc. and print(">") also prints >. |
| santanu |
Posted: February 05, 2010 10:56 pm
|
|
Administrator Group: Admin Posts: 7,337 Member No.: 1 Joined: November 22, 2005 IGNOU:MCA Joining Year: 2006Study Centre:St. Xavier's College, Kolkata (2802) |
You want to actually print > < or > < etc.? I think in either case, a simple print command should print it
print("<") or print(">") |
| sumitarorasa |
Posted: February 05, 2010 10:02 pm
|
|
6th Sem Group: ACTIVE Members Posts: 288 Member No.: 4,479 Joined: December 21, 2007 IGNOU:MCA Joining Year: Not ApplicableStudy Centre: |
Hi All,
Can anyone guide me with script how to print >, < and other characters of html entities using php functions? |
![]() |
![]() ![]() ![]() |