10-02-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I want to wheather there is any command by using that we can reboot all the zones ,
Example : I have 10 zones, I can reboot all 10 zones by using one command (2 Replies)
Discussion started by: manoj.solaris
2 Replies
2. Solaris
I have a Solaris 10 box configured with a global zone and 3 non-global zones. All of the zones need to be configured so they can access and run an application in the global zone located at /export/home. How do i make this application and all of its accompanying files available to the 3 non-global... (3 Replies)
Discussion started by: goose25
3 Replies
3. Solaris
what are the files related to dns zones database file management ? (1 Reply)
Discussion started by: tirupathi
1 Replies
4. Solaris
I'm logged into a non-global zone server. How would I find out what the global zone server name is from there? (1 Reply)
Discussion started by: soupbone38
1 Replies
5. Solaris
Hi guys
Im using VMware and ive installed solaris 10 in that..ive configured virtual disks in that n im using it..my question is if im gona configure zones in it do i need a seperate NIC card..my virtual interface name is pcn0 and if i create zones can i give pcn0:1 n allocate a seperate... (1 Reply)
Discussion started by: madanmeer
1 Replies
6. Solaris
Hi Everyone,
I need the process of how to add a cpu to a non-global zone or how to add a resource to non-globalzone.
Thanks & Regards
Padmaja (2 Replies)
Discussion started by: padmaja
2 Replies
7. Solaris
Hi Everyone,
How to create a loopback filesystem in a running non golbalzone?
and how to share a diskgroup in veritas ?
Thanks & Regards
Padmaja (1 Reply)
Discussion started by: padmaja
1 Replies
8. Solaris
how can we know zone is migrate and which files going to update (3 Replies)
Discussion started by: nsusheelgoud
3 Replies
9. Solaris
Does anyone know if I have to use LDOMS on a Tseries server? Or can I just setup zones using solaris 10 without using LDOMS?
thanks. (2 Replies)
Discussion started by: cornsnap
2 Replies
10. UNIX for Beginners Questions & Answers
haven't work with zones in a while.
when shutting down zones from solaris 10
I have to do it from the global zone, but can I just shutdown the global zone and all non global zones will shutdown
or do I have to
zoneadm -z zonename shutdown
for all the non global zones ,then shutdown... (2 Replies)
Discussion started by: goya
2 Replies
LEARN ABOUT PHP
highlight_string
HIGHLIGHT_STRING(3) 1 HIGHLIGHT_STRING(3)
highlight_string - Syntax highlighting of a string
SYNOPSIS
mixed highlight_string (string $str, [bool $return = false])
DESCRIPTION
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax
highlighter for PHP.
PARAMETERS
o $str
- The PHP code to be highlighted. This should include the opening tag.
o $return
- Set this parameter to TRUE to make this function return the highlighted code.
RETURN VALUES
If $return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success,
FALSE on failure.
EXAMPLES
Example #1
highlight_string(3) example
<?php
highlight_string('<?php phpinfo(); ?>');
?>
The above example will output (in PHP 4):
<code><font color="#000000">
<font color="#0000BB"><?php phpinfo</font><font color="#007700">(); </font><font color="#0000BB">?></font>
</font>
</code>
The above example will output (in PHP 5):
<code><span style="color: #000000">
<span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span>
</span>
</code>
NOTES
Note
When the $return parameter is used, this function uses internal output buffering so it cannot be used inside an ob_start(3) callback
function.
The HTML markup generated is subject to change.
SEE ALSO
highlight_file(3), Highlighting INI directives.
PHP Documentation Group HIGHLIGHT_STRING(3)