AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Apr 6, 2007, 14:46   #1
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,183
Rep Power: 4
Reputation: 61
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
PHP: htmlspecialchars_decode();

string htmlspecialchars_decode ( string $string [, int $quote_style] )
serverum as default dras e vor $quote_style = ENT_QUOTES;
inchpes karam et defaulte poxem? (cankali e arans php.ini -i, tekuz htaccess)
uzum em defaulte dnel ENT_COMPAT; bays chem uzum amen angam functione kancheluc grem htmlspecialchars_decode ( $string ,ENT_COMPAT );
naxoroq mersiner!
Mesrop is offline   Reply With Quote Quote selected
Old Apr 6, 2007, 17:14   #2
Дикообраз-безобраз
 
AvDav's Avatar
 
Join Date: Jul 2004
Location: У самого синего моря
Posts: 2,666
Rep Power: 5
Reputation: 103
e inchna xangarum gres $quote_style = ENT_COMPAT ? ete petq e aveli chkun - if/else-i tak dir scripty vorpes command line argument poxanci paymany.
__________________
- Гитлер?!!
- Да?!!
- Зурна!!!
AvDav is offline   Reply With Quote Quote selected
Old Apr 7, 2007, 15:50   #3
Дошкольник
 
Join Date: Oct 2004
Location: Yerevan
Posts: 116
Rep Power: 4
Reputation: 12
Send a message via ICQ to Intel
1). override_function ( string function_name, string function_args, string function_code )
(PECL) :-(
2). Edit PHP source code :-(

reflectionnerov urish dzev baci 1).-ic el dzev chi vrode.
Imast/hnaravorutyun chem tenum, inch vor constant redefine anelu.
Ete daje hnaravor liner, hetaga development-i @ntacqum problemner klinen et function-i usage-i het.

Last edited by Intel : Apr 8, 2007 at 12:25. Reason: changed i to e :-P
Intel is offline   Reply With Quote Quote selected
Old Apr 7, 2007, 16:02   #4
Дикообраз-безобраз
 
AvDav's Avatar
 
Join Date: Jul 2004
Location: У самого синего моря
Posts: 2,666
Rep Power: 5
Reputation: 103
amena kyasar varianty henc ( $string ,ENT_COMPAT );-na, 1 hat argument vor avel tas inc kexni or?
__________________
- Гитлер?!!
- Да?!!
- Зурна!!!
AvDav is offline   Reply With Quote Quote selected
Old Apr 7, 2007, 19:34   #5
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,183
Rep Power: 4
Reputation: 61
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Quote:
Originally Posted by AvDav View Post
amena kyasar varianty henc ( $string ,ENT_COMPAT );-na, 1 hat argument vor avel tas inc kexni or?
harce nranum e, vor mot 200 failani script e, and ira mejis an@ndhat kanchvum e et functione... henc ($strinf) -ov... bays miban aresi... et sax faileri mej functoni anune poxeci urish anuni, u dzerov im uzas functione gresi..


PHP Code:
function htmlspecialchars_decode_m($string) {
    
$stringstr_replace(""""\""$string);
    
$stringstr_replace("'""'"$string);
    
$stringstr_replace("&lt;""<"$string);
    
$stringstr_replace("&gt;"">"$string);
    
$stringstr_replace("&amp;""&"$string);
    return 
$string;
  } 
Mesrop is offline   Reply With Quote Quote selected
Old Apr 8, 2007, 12:23   #6
Дошкольник
 
Join Date: Oct 2004
Location: Yerevan
Posts: 116
Rep Power: 4
Reputation: 12
Send a message via ICQ to Intel
Sovorabar, nman depqeum, nor function-ic kanchum en hin@ urish argumentnerov.

PHP Code:
function htmlspecialchars_decode_m($string
{
   
htmlspecialchars_decode($stringENT_COMPAT);

kam, ete meka sagh hatik hatik edit es anelu sarqes qo grac-@, hena miangamic sarqi htmlspecialchars_decode($string, ENT_COMPAT);
Zend@ angam hatuk feature uni, dra hamar.

BTW
$string= str_replace("'", "'", $string);
Intel is offline   Reply With Quote Quote selected
Old Apr 8, 2007, 16:39   #7
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,183
Rep Power: 4
Reputation: 61
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Quote:
Originally Posted by Intel View Post
Sovorabar, nman depqeum, nor function-ic kanchum en hin@ urish argumentnerov.

PHP Code:
function htmlspecialchars_decode_m($string
{
   
htmlspecialchars_decode($stringENT_COMPAT);

kam, ete meka sagh hatik hatik edit es anelu sarqes qo grac-@, hena miangamic sarqi htmlspecialchars_decode($string, ENT_COMPAT);
Zend@ angam hatuk feature uni, dra hamar.

BTW
$string= str_replace("'", "'", $string);
replace chey kara anel, vortev $string -i anune tarber failerum tarber e, => chey kara grel REPLACE htmlspecialchars_decode($string); to htmlspecialchars_decode($string, ENT_COMPAT);
isk func-i mejis func canchele kargin ban asesir... mtqovs cher ansel thanks!
Mesrop is offline   Reply With Quote Quote selected
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4.4.0 Problem... Mesrop Languages, Compilers and Interpreters 24 Nov 9, 2005 09:37
Программист PHP Unregistered Jobs 4 Oct 3, 2005 10:10
PHP against ASP acid Web Development 1 Aug 6, 2004 21:30
PHP remote vulnerabilities VX Software Security 0 Mar 4, 2002 19:20


All times are GMT. The time now is 13:33.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link