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:
@@ -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>&1
|
||||
</pre>
|
||||
</pre>
|
||||
<p>
|
||||
Provide the path of the stats directory in the "cd".
|
||||
</p>
|
||||
|
||||
@@ -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">
|
||||
<VirtualHost *:80>
|
||||
<Directory /path/to/phpweb>
|
||||
Options -Indexes -MultiViews
|
||||
|
||||
@@ -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">
|
||||
<VirtualHost *-or-your-hostname-or-your-ip-here>
|
||||
<Directory /www/htdocs/phpweb>
|
||||
# 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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
8
tips.php
8
tips.php
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user