Update of /cvsroot/curl/curl-www/libcurl/php/examples
In directory labb:/tmp/cvs-serv23010
Modified Files:
Makefile blogpost.php.html mkindex.pl multi.php.html
resizejpg.php.html
Added Files:
authors.txt
Log Message:
provide authors in a separate mapping and then show them in a third column
of the table
Index: multi.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/multi.php.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- multi.php.html 4 Nov 2005 22:37:55 -0000 1.2
+++ multi.php.html 10 Nov 2005 23:15:16 -0000 1.3
@@ -1,2 +1,2 @@
Shows how to fetch several documents at once by using the multi interface
-(Roman Rozanov)
+
Index: blogpost.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/blogpost.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- blogpost.php.html 10 Nov 2005 22:49:38 -0000 1.1
+++ blogpost.php.html 10 Nov 2005 23:15:16 -0000 1.2
@@ -1 +1 @@
-Post a blog entry to blogger.com using their "Atom" XML-based API. Written by <a title="Michael Phipps is a PHP Programmer located in Brisbane, Queensland, Australia." href="http://michaelphipps.com" >Michael Phipps</a>
+Post a blog entry to blogger.com using their "Atom" XML-based API.
Index: Makefile
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile 4 Nov 2005 22:44:32 -0000 1.3
+++ Makefile 10 Nov 2005 23:15:16 -0000 1.4
@@ -16,7 +16,7 @@
index.html: ./mkindex.pl $(MAINPARTS) $(PHPDESC)
./mkindex.pl > $@
-%.html: %.php ./mkindex.pl %.php.html $(PHPDESC) $(MAINPARTS)
+%.html: %.php ./mkindex.pl %.php.html $(PHPDESC) $(MAINPARTS) authors.txt
./mkindex.pl $< > $@
clean:
Index: resizejpg.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/resizejpg.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- resizejpg.php.html 9 Nov 2005 09:00:10 -0000 1.1
+++ resizejpg.php.html 10 Nov 2005 23:15:16 -0000 1.2
@@ -1 +1 @@
-Download a remote image, resize it and show it to the user. Written by <a title="Michael Phipps is a PHP Programmer located in Brisbane, Queensland, Australia." href="http://michaelphipps.com" >Michael Phipps</a>
+Download a remote image, resize it and show it to the user
--- NEW FILE: authors.txt ---
blogpost.php <a title="Michael Phipps is a PHP Programmer located in Brisbane, Queensland, Australia." href="http://michaelphipps.com" >Michael Phipps</a>
callbacks.php Keyvan Minoukadeh
cookiejar.php <a href="mailto:tech at iserverpark dot com">Mitchell</a>
ebay_login.php <a href="mailto:imranlink at hotmail.com">Imran Khalid</a>
resizejpg.php <a title="Michael Phipps is a PHP Programmer located in Brisbane, Queensland, Australia." href="http://michaelphipps.com" >Michael Phipps</a>
multi.php Roman Rozanov
multipartpost.php Pete James
Index: mkindex.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/mkindex.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mkindex.pl 9 Nov 2005 09:06:32 -0000 1.6
+++ mkindex.pl 10 Nov 2005 23:15:16 -0000 1.7
@@ -22,6 +22,7 @@
print "<p><table border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr class=\"tabletop\">",
"<th>Example</th>",
"<th>Description</th>",
+ "<th>Author</th>",
"</tr>\n";
my $c;
@@ -50,11 +51,22 @@
else {
print " ";
}
- print "</td></tr>\n";
+ printf "</td><td>%s</td></tr>\n", $author{$filename};
}
print "</table>\n";
}
+# author info about each PHP file
+open(AUTH, "<authors.txt");
+while(<AUTH>) {
+ if($_ =~ /^([^ ]*) (.*)/) {
+ $author{$1}=$2;
+ }
+}
+close(AUTH);
+
+
+
&catfile("../examples.html");
{
@@ -87,6 +99,9 @@
if( -r "$ex.html") {
catfile("$ex.html");
}
+ if($author{$ex}) {
+ print "Written by ".$author{$ex};
+ }
print "<p><div class=\"quote\">\n";
precatfile($ex);
print "</div>\n";
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.