1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Style "preformatted text" :)

This commit is contained in:
Hannes Magnusson
2010-12-26 21:40:12 +00:00
parent 0d876c0f04
commit a8806d2d98
6 changed files with 19 additions and 12 deletions

View File

@@ -59,9 +59,9 @@ site_header("Setting Up Local Stats");
regularly. Something like this will be sufficient (update things
daily at 3 am):
</p>
<pre>
<pre class="info">
0 3 * * * (cd /your/stats/folder;/usr/bin/webalizer -c php.conf) >/dev/null 2>&amp;1
</pre>
</pre>
<p>
Provide the path of the stats directory in the "cd".
</p>

View File

@@ -32,7 +32,7 @@ site_header("The PHP mirrors problem and troubleshooting guide");
solution is to move the MultiViews option into a specific
directory and disable it from there. For example:
</p>
<pre>
<pre class="info">
&lt;VirtualHost *:80>
&lt;Directory /path/to/phpweb>
Options -Indexes -MultiViews

View File

@@ -82,7 +82,7 @@ $minute = rand(0, 59);
As you have rsync, fetch the web files with the following:
</p>
<pre>
<pre class="info">
rsync -avzC --timeout=600 --delete --delete-after \
--include='distributions/*.exe' \
rsync.php.net::phpweb /your/local/path
@@ -94,7 +94,7 @@ $minute = rand(0, 59);
language of the manual? Add:
</p>
<pre>
<pre class="info">
--include='manual/en/' --include='manual/en/**' --exclude='manual/**' --exclude='distributions/manual/**'
</pre>
@@ -154,7 +154,7 @@ $minute = rand(0, 59);
</p>
<a name="settings"></a>
<pre>
<pre class="info">
&lt;VirtualHost *-or-your-hostname-or-your-ip-here&gt;
&lt;Directory /www/htdocs/phpweb&gt;
# Do not display directory listings if index is not present,
@@ -271,7 +271,7 @@ $minute = rand(0, 59);
is up to date. Something like:
</p>
<pre>
<pre class="info">
<?php echo $minute; ?> * * * * rsync -avzC --timeout=600 --delete --delete-after --include='distributions/*.exe' rsync.php.net::phpweb /your/local/path
</pre>

View File

@@ -270,4 +270,11 @@ div.phpcode span.string {
border-top: 3px solid #ff4d4d;
background-color: #EFEFEF;
}
pre.info {
font-family:"Courier New", Courier, monospace;
border: 1px solid #ddd;
margin: 1em 2em 1.3em;
margin-right: 0.8em;
background-color: #efefef;
}

View File

@@ -129,7 +129,7 @@ function tip_title($title, $author = '', $date = '')
small modifications. The script uses the current selection, or prompts for
a function name, and uses the default browser to show the page at php.net.
</p>
<pre>
<pre class="info">
tell application "BBEdit"
set fu to selection of window 1 as string
if fu = "" then
@@ -225,7 +225,7 @@ end tell
any Opera window.
</p>
<pre>
<pre class="info">
[Search Engine 4]
Name=PHP
URL=<?php echo $MYSITE; ?>
@@ -340,10 +340,10 @@ Search Type=0
<li>
In that file, write the following code (substituting the path to Netscape,
if necessary):
<pre>
<pre class="info">
#!/bin/sh
/usr/bin/netscape <?php echo $MYSITE; ?>$1
</pre>
</pre>
</li>
<li>Save it and type <tt>chmod +x phpfind</tt> to make it executable</li>
<li>

View File

@@ -81,7 +81,7 @@ site_header("Unsubscribing");
something like:
</p>
<pre>
<pre class="info">
Return-Path: &lt;php-general-return-1234-joecool=example.com@lists.php.net&gt;
</pre>