bagder: curl-www/libcurl/php/examples Makefile, 1.1, 1.2 callbacks.php.html, 1.2, 1.3 cookiejar.php.html, 1.1, 1.2 ebay_login.php.html, 1.1, 1.2 getpageinvar.php.html, 1.1, 1.2 mkindex.pl, 1.1, 1.2 multi.php.html, 1.1, 1.2

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/libcurl/php/examples
In directory labb:/tmp/cvs-serv23155

Modified Files:
	Makefile callbacks.php.html cookiejar.php.html 
	ebay_login.php.html getpageinvar.php.html mkindex.pl 
	multi.php.html 
Log Message:
more updates


Index: multi.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/multi.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- multi.php.html	7 Aug 2005 18:08:33 -0000	1.1
+++ multi.php.html	4 Nov 2005 22:37:55 -0000	1.2
@@ -1,2 +1,2 @@
-Roman Rozanov's example shows how to fetch several documents at once by using
-the multi interface.
+Shows how to fetch several documents at once by using the multi interface
+(Roman Rozanov)

Index: getpageinvar.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/getpageinvar.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- getpageinvar.php.html	2 Oct 2001 07:45:45 -0000	1.1
+++ getpageinvar.php.html	4 Nov 2005 22:37:55 -0000	1.2
@@ -1,2 +1 @@
-A most simple example snippet to get the contents of a remote web page into a
-PHP variable.
+Get the contents of a remote web page into a PHP variable

Index: callbacks.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/callbacks.php.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- callbacks.php.html	24 Mar 2004 22:11:36 -0000	1.2
+++ callbacks.php.html	4 Nov 2005 22:37:55 -0000	1.3
@@ -1,2 +1,2 @@
-This script demonstrates how you can set callback functions to receive the
-HTTP response as it comes through.
+Demonstrates how you can set callback functions to receive the HTTP response
+as it comes through.

Index: cookiejar.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/cookiejar.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cookiejar.php.html	17 Feb 2002 11:05:45 -0000	1.1
+++ cookiejar.php.html	4 Nov 2005 22:37:55 -0000	1.2
@@ -1,2 +1,2 @@
-An example of using curl in php to log into on one page and 
-then get another page passing all cookies from the first page along with you.
+Login to on one page and then get another page passing all cookies from the
+first page along

Index: Makefile
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile	4 Nov 2005 22:27:45 -0000	1.1
+++ Makefile	4 Nov 2005 22:37:55 -0000	1.2
@@ -9,21 +9,15 @@
 
 PHPSRC = $(shell echo *.php)
 PHPHTML = $(patsubst %.php,%.html,$(PHPSRC))
+PHPDESC = $(patsubst %.php,%.php.html,$(PHPSRC))
 
 all: index.html $(PHPHTML)
 
-index.html: ./mkindex.pl $(MAINPARTS)
+index.html: ./mkindex.pl $(MAINPARTS) $(PHPDESC)
 	./mkindex.pl > $@
 
-
-%.html: %.php ./mkindex.pl
-	echo $@ $<
+%.html: %.php ./mkindex.pl %.php.html $(PHPDESC)
 	./mkindex.pl $< > $@ 
 
-php:
-	(for i in $(PHPSRC); do \
-	  echo $$i; \
-	done)
-
-html:
-	echo $(PHPHTML)
+clean:
+	rm -f index.html $(PHPHTML)

Index: ebay_login.php.html
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/ebay_login.php.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ebay_login.php.html	24 Mar 2004 22:11:04 -0000	1.1
+++ ebay_login.php.html	4 Nov 2005 22:37:55 -0000	1.2
@@ -1 +1 @@
-Script that mimics a browser and logs in to ebay
+Mimics a browser and logs in to ebay

Index: mkindex.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/mkindex.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mkindex.pl	4 Nov 2005 22:27:45 -0000	1.1
+++ mkindex.pl	4 Nov 2005 22:37:55 -0000	1.2
@@ -8,7 +8,7 @@
 sub listexamples {
     print <<MOO
 <p>
- We try to collect examples on how to program the CURL interface from PHP
+ We try to collect examples on how to program the PHP/CURL interface
  here. If you have any source snippests you want to share with the rest of the
  world, please let <a href="mailto:[email protected]">us</a> know!
 MOO
@@ -53,6 +53,15 @@
 
 &catfile("../examples.html");
 
+{
+    where("libcurl", "/libcurl/",
+          "PHP", "/libcurl/php/",
+          "Examples");
+
+    &title("PHP/CURL Examples Collection");
+    listexamples();
+}
+
 # get example file name from argv
 $ex = $ARGV[0];
 
@@ -63,12 +72,13 @@
     else {
         $ex =~ s/.*\/(.*)/$1/;
     }
-    
-    where("libcurl", "/libcurl/",
-          "PHP", "/libcurl/php/",
-          "Examples", "/libcurl/php/examples/",
-          $ex);
-    &title("The $ex Example");
+
+     
+ #   where("libcurl", "/libcurl/",
+ #         "PHP", "/libcurl/php/",
+ #         "Examples", "/libcurl/php/examples/",
+ #         $ex);
+    subtitle("The $ex Example");
 
     if( -r "$ex.html") {
         precatfile("$ex.html");
@@ -76,14 +86,6 @@
 
     precatfile($ex);
 }
-else {
-    where("libcurl", "/libcurl/",
-          "PHP", "/libcurl/php/",
-          "Examples");
-
-    &title("PHP/CURL Examples Collection");
-    listexamples();
-}
 
 &catfile("../../../foot.html");
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.