Sponsored Content
Full Discussion: Perl for Unix & Windows
Top Forums Shell Programming and Scripting Perl for Unix & Windows Post 302331094 by KevinADC on Friday 3rd of July 2009 11:34:20 AM
Old 07-03-2009
Change the single-quotes that surround the code to double-quotes when running on Windows.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

seperate hard drive for unix & x windows

thanks for your help, i didnt realise you could download the operating system from sun.com:D Ive just had a new hard drive installed 20 GIG for unix and x windows. How can i connect this hard drive for unix and x windows only? and are there any helpful tutorials for starters?? Many thanks (4 Replies)
Discussion started by: jeffersno1
4 Replies

2. UNIX for Advanced & Expert Users

Connectivity B/w Unix & windows

i want to install ScO UNIX 5.1 in a windows 98 system. i want it as a DUAL BOOT system. can i doit? If yes How. and also i want to network unix with my clients. is it poosible to network both unix & windows thru a single network card. if yes how? also i wanted to know that thru a switch can i... (3 Replies)
Discussion started by: jigs
3 Replies

3. IP Networking

UNIX OS & Windows XP

Hello, Can someone please tell me if it is possible to install a Unix Os on a system that already has a Windows XP? If so, how do i go about it doing it?: (6 Replies)
Discussion started by: Ike
6 Replies

4. UNIX for Dummies Questions & Answers

Different Format in Unix & Windows

I used the following commands to store the discription of "sed" into a unix file: man sed > sed.txt But, after I download the file "sed.txt" to a Windows XP system, the file can not be displayed correctly. How to change the format of a Unix file to a Windows one? (5 Replies)
Discussion started by: endeavour1985
5 Replies

5. UNIX for Dummies Questions & Answers

Networking unix & windows

I have very basic question: I have 2 windows sytem & 1 Unix system & wanted to put all three system into one network to each other. what kind of other hardware I need? like cable , router? can anybody tell me the configuration? like how to connect to external hardware to put into network? ... (9 Replies)
Discussion started by: kar1
9 Replies

6. UNIX for Dummies Questions & Answers

FILE MANAGEMENT in WINDOWS & UNIX

Hi, I am a new member here. I am in my final year of engineering in Computer & Information Systems. Wanted to know, how file management is done in both windows and unix. Kindly, tell me anyone who knows it in detail, or has any links regarding it. Thanks (1 Reply)
Discussion started by: farazcis
1 Replies

7. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

8. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

9. Solaris

Compatibility between Unix & Windows

Pl. let me know whether Sun Solaris Server (Unix OS) is compatible with Windows Server or Vise Versa. Can i update the data first in Windows Server and then copied it to Sun Solaris Server or Vise Versa. (1 Reply)
Discussion started by: seemaitri
1 Replies

10. Red Hat

Unix services for windows & Linux\Red Hat

I am not too familiar with linux, so please keep that in mind while reading this post. We have a few linux servers joined to the domain, and linux services for windows running. I have a user that can connect to one linux server, but not another. I ran the cat /etc/passwrd and noticed the user... (0 Replies)
Discussion started by: dcatcha
0 Replies
GET_HTML_TRANSLATION_TABLE(3)						 1					     GET_HTML_TRANSLATION_TABLE(3)

get_html_translation_table - Returns the translation table used byhtmlspecialchars(3)andhtmlentities(3)

SYNOPSIS
array get_html_translation_table ([int $table = HTML_SPECIALCHARS], [int $flags = ENT_COMPAT | ENT_HTML401], [string $encoding = "UTF-8"]) DESCRIPTION
get_html_translation_table(3) will return the translation table that is used internally for htmlspecialchars(3) and htmlentities(3). Note Special characters can be encoded in several ways. E.g. " can be encoded as ", " or &#x22. get_html_translation_table(3) returns only the form used by htmlspecialchars(3) and htmlentities(3). PARAMETERS
o $table - Which table to return. Either HTML_ENTITIES or HTML_SPECIALCHARS. o $flags - A bitmask of one or more of the following flags, which specify which quotes the table will contain as well as which document type the table is for. The default is ENT_COMPAT | ENT_HTML401. Available $flags constants +--------------+---------------------------------------------------+ |Constant Name | | | | | | | Description | | | | +--------------+---------------------------------------------------+ | | | | ENT_COMPAT | | | | | | | Table will contain entities for double-quotes, | | | but not for single-quotes. | | | | | | | | ENT_QUOTES | | | | | | | Table will contain entities for both double and | | | single quotes. | | | | | | | |ENT_NOQUOTES | | | | | | | Table will neither contain entities for single | | | quotes nor for double quotes. | | | | | | | | ENT_HTML401 | | | | | | | Table for HTML 4.01. | | | | | | | | ENT_XML1 | | | | | | | Table for XML 1. | | | | | | | | ENT_XHTML | | | | | | | Table for XHTML. | | | | | | | | ENT_HTML5 | | | | | | | Table for HTML 5. | | | | +--------------+---------------------------------------------------+ o $encoding - Encoding to use. If omitted, the default value for this argument is ISO-8859-1 in versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. The following character sets are supported: Supported charsets +------------+--------------------------------------+---+ | Charset | | | | | | | | | Aliases | | | | | | | | Description | | | | | | +------------+--------------------------------------+---+ |ISO-8859-1 | | | | | | | | | ISO8859-1 | | | | | | | | Western European, Latin-1. | | | | | | |ISO-8859-5 | | | | | | | | | ISO8859-5 | | | | | | | | Little used cyrillic charset | | | | (Latin/Cyrillic). | | | | | | |ISO-8859-15 | | | | | | | | | ISO8859-15 | | | | | | | | Western European, Latin-9. Adds the | | | | Euro sign, French and Finnish let- | | | | ters missing in Latin-1 | | | | (ISO-8859-1). | | | | | | | UTF-8 | | | | | | | | | | | | | |T{ | | | | ASCII compatible multi-byte 8-bit | | | | Unicode. | | | | | | | cp866 | | | | | | | | | ibm866, 866 | | | | | | | | DOS-specific Cyrillic charset. | | | | | | | cp1251 | | | | | | | | | Windows-1251, win-1251, 1251 | | | | | | | | Windows-specific Cyrillic charset. | | | | | | | cp1252 | | | | | | | | | Windows-1252, 1252 | | | | | | | | Windows specific charset for West- | | | | ern European. | | | | | | | KOI8-R | | | | | | | | | koi8-ru, koi8r | | | | | | | | Russian. | | | | | | | BIG5 | | | | | | | | | 950 | | | | | | | | Traditional Chinese, mainly used in | | | | Taiwan. | | | | | | | GB2312 | | | | | | | | | 936 | | | | | | | | Simplified Chinese, national stan- | | | | dard character set. | | | | | | |BIG5-HKSCS | | | | | | | | | | | | | |T{ | | | | Big5 with Hong Kong extensions, | | | | Traditional Chinese. | | | | | | | Shift_JIS | | | | | | | | | SJIS, SJIS-win, cp932, 932 | | | | | | | | Japanese | | | | | | | EUC-JP | | | | | | | | | EUCJP, eucJP-win | | | | | | | | Japanese | | | | | | | MacRoman | | | | | | | | | | | | | |T{ | | | | Charset that was used by Mac OS. | | | | | | | | | | | '' | | | | | | | | | | | | | |T{ | | | | An empty string activates detection | | | | from script encoding (Zend multi- | | | | byte), default_charset and current | | | | locale (see nl_langinfo(3) and set- | | | | locale(3)), in this order. Not rec- | | | | ommended. | | | | | | +------------+--------------------------------------+---+ Note Any other character sets are not recognized. The default encoding will be used instead and a warning will be emitted. RETURN VALUES
Returns the translation table as an array, with the original characters as keys and entities as values. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.4.0 | | | | | | | The default value for the $encoding parameter | | | was changed to UTF-8. | | | | | 5.4.0 | | | | | | | The constants ENT_HTML401, ENT_XML1, ENT_XHTML | | | and ENT_HTML5 were added. | | | | | 5.3.4 | | | | | | | The $encoding parameter was added. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 Translation Table Example <?php var_dump(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES | ENT_HTML5)); ?> The above example will output something similar to: array(1510) { [" "]=> string(9) "&NewLine;" ["!"]=> string(6) "&excl;" ["""]=> string(6) "&quot;" ["#"]=> string(5) "&num;" ["$"]=> string(8) "&dollar;" ["%"]=> string(8) "&percnt;" ["&"]=> string(5) "&amp;" ["'"]=> string(6) "&apos;" // ... } SEE ALSO
htmlspecialchars(3), htmlentities(3), html_entity_decode(3). PHP Documentation Group GET_HTML_TRANSLATION_TABLE(3)
All times are GMT -4. The time now is 08:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy