HELP !!!
IGNOU MCA Students Forum


Posting in IMSF:

To Subscribe to Free SMS Alerts from IMSF, Click the Green SMS Button on the toolbar or SMS ON IMSF-IGNOU to 9870807070

Forum Rules PHP Magazine Feed


  
 
Reply to this topicStart new topicStart Poll

> How to print Special Characters, like > or < ...
santanu
Posted: February 07, 2010 02:16 pm Posted since your last visit
Quote Post


Administrator
Group Icon

Group: Admin
Posts: 7,337
Member No.: 1
Joined: November 22, 2005

IGNOU:

MCA Joining Year: 2006
Study Centre:St. Xavier's College, Kolkata (2802)



QUOTE (sumitarorasa @ February 07, 2010 12:41 pm)
1) How to store a Java Script variable's value in PHP variable?

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.

QUOTE
2) What steps can be taken for Security in 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
PMEmail PosterUsers WebsiteYahooMSN
Top
IMSF
Sponsored Links Posted since your last visit


Tech for GenY


Group: Bot




IGNOU:

MCA Joining Year:
Study Centre:





Top
sumitarorasa
Posted: February 07, 2010 12:41 pm Posted since your last visit
Quote Post


6th Sem
Group Icon

Group: ACTIVE Members
Posts: 288
Member No.: 4,479
Joined: December 21, 2007

IGNOU:

MCA Joining Year: Not Applicable
Study Centre:



@santanu

I think it is setting's problem because at my home and office PC it is showing "<" instead of &gt; but when i run the same example in the online compiler like given in this forum, it shows &gt;.

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?
PMEmail Poster
Top
santanu
Posted: February 06, 2010 11:55 pm Posted since your last visit
Quote Post


Administrator
Group Icon

Group: Admin
Posts: 7,337
Member No.: 1
Joined: November 22, 2005

IGNOU:

MCA Joining Year: 2006
Study 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?
PMEmail PosterUsers WebsiteYahooMSN
Top
sumitarorasa
Posted: February 06, 2010 10:35 am Posted since your last visit
Quote Post


6th Sem
Group Icon

Group: ACTIVE Members
Posts: 288
Member No.: 4,479
Joined: December 21, 2007

IGNOU:

MCA Joining Year: Not Applicable
Study Centre:



I am using PHP5.
PMEmail Poster
Top
santanu
Posted: February 06, 2010 10:05 am Posted since your last visit
Quote Post


Administrator
Group Icon

Group: Admin
Posts: 7,337
Member No.: 1
Joined: November 22, 2005

IGNOU:

MCA Joining Year: 2006
Study Centre:St. Xavier's College, Kolkata (2802)



QUOTE (sumitarorasa @ February 06, 2010 09:46 am)
print("&gt;") also prints >.

But I just checked it and print("&gt;") printed &gt :think: It does not print > in my case.

Which version of PHP are you using?
PMEmail PosterUsers WebsiteYahooMSN
Top
sumitarorasa
Posted: February 06, 2010 09:46 am Posted since your last visit
Quote Post


6th Sem
Group Icon

Group: ACTIVE Members
Posts: 288
Member No.: 4,479
Joined: December 21, 2007

IGNOU:

MCA Joining Year: Not Applicable
Study Centre:



@Santanu,

I want to print &gt; or the other characters for various symbols like &gt; for >, &lt; for < etc. and print("&gt;") also prints >.

PMEmail Poster
Top
santanu
Posted: February 05, 2010 10:56 pm Posted since your last visit
Quote Post


Administrator
Group Icon

Group: Admin
Posts: 7,337
Member No.: 1
Joined: November 22, 2005

IGNOU:

MCA Joining Year: 2006
Study Centre:St. Xavier's College, Kolkata (2802)



You want to actually print > < or &gt; &lt etc.? I think in either case, a simple print command should print it

print("<")

or

print("&gt;")
PMEmail PosterUsers WebsiteYahooMSN
Top
sumitarorasa
Posted: February 05, 2010 10:02 pm Posted since your last visit
Quote Post


6th Sem
Group Icon

Group: ACTIVE Members
Posts: 288
Member No.: 4,479
Joined: December 21, 2007

IGNOU:

MCA Joining Year: Not Applicable
Study Centre:



Hi All,

Can anyone guide me with script how to print &gt;, &lt; and other characters of html entities using php functions?



PMEmail Poster
Top

Topic Options Reply to this topic Fast ReplyStart new topicStart Poll



 



[ Script Execution time: 0.0871 ]   [ 17 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.86 ]






Skin arobase par alphega@ipb-skins.org 2005 (original)

Privacy Policy