Hi folks,
I have to import hundreds of images of an already existing site I am transforming in mediawiki. Is there a way to import them alltogether instead of importing image after image ?
thanks
Klaus
Klaus Becker wrote:
Hi folks,
I have to import hundreds of images of an already existing site I am transforming in mediawiki. Is there a way to import them alltogether instead of importing image after image ?
thanks
Klaus
maintenance/importImages.php
Am Mittwoch, 25. April 2007 22:23 schrieb Platonides:
Klaus Becker wrote:
Hi folks,
I have to import hundreds of images of an already existing site I am transforming in mediawiki. Is there a way to import them alltogether instead of importing image after image ?
thanks
Klaus
maintenance/importImages.php
So I tried :
------------------ $ ./importImages.php /home/daten/rezo/php/katalogdeutsch/images ./importImages.php: line 1: ?php: no file or directory found ./importImages.php: line 3: /bin: is a directory ./importImages.php: line 4: addwiki.php: command not found ./importImages.php: line 5: addwiki.php: command not found ./importImages.php: line 6: addwiki.php: command not found ./importImages.php: line 7: addwiki.php: command not found ./importImages.php: line 8: addwiki.php: command not found ./importImages.php: line 9: syntax error near unexpected token `newline' ./importImages.php: line 9: ` * @author Rob Church robchur@gmail.com' -----------------
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Am Donnerstag, 26. April 2007 09:02 schrieb Alexis Moinet:
Klaus Becker wrote :
So I tried :
$ ./importImages.php /home/daten/rezo/php/katalogdeutsch/images
you better try : $ php importImages.php /home/daten/rezo/php/katalogdeutsch/images
I did : $ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images jpg jpeg gif
and it worked
thanks !
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Where does this "$ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images" go to get it to work?
Regards,
Mike
From: Klaus Becker colonius@free.fr Reply-To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] importing many images Date: Thu, 26 Apr 2007 09:26:57 +0200
Am Donnerstag, 26. April 2007 09:02 schrieb Alexis Moinet:
Klaus Becker wrote :
So I tried :
$ ./importImages.php /home/daten/rezo/php/katalogdeutsch/images
you better try : $ php importImages.php /home/daten/rezo/php/katalogdeutsch/images
I did : $ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images jpg jpeg gif
and it worked
thanks !
Klaus
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_________________________________________________________________ Get Hotmail, News, Sport and Entertainment from MSN on your mobile. http://www.msn.txt4content.com/
Mike Lane a écrit :
Where does this "$ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images" go to get it to work?
in a command-line console (shell on Linux server or MS-dos on Windows WAMP) (on debian you must have php5-cli installed, don't know about others).
if you don't have command-line access to the server use phpShell (see http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-February/010220.ht...)
Thank you very much - this will come in very handy! :)
From: Alexis Moinet alexis.moinet@fpms.ac.be Reply-To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] importing many images Date: Fri, 27 Apr 2007 09:26:54 +0200
Mike Lane a écrit :
Where does this "$ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images" go to get it to work?
in a command-line console (shell on Linux server or MS-dos on Windows WAMP) (on debian you must have php5-cli installed, don't know about others).
if you don't have command-line access to the server use phpShell (see http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-February/010220.ht...)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_________________________________________________________________ Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/
Also, you'll need to give as its last arguments, the filename suffixes you want to import. For example:
php ./importImages.php /imported/images/dir png jpg gif
I put importImages in the "maintenance" scripts folder of the wiki, since that seems a reasonable place.
Cheers, Ken
Mike Lane wrote:
Thank you very much - this will come in very handy! :)
From: Alexis Moinet alexis.moinet@fpms.ac.be Reply-To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org To: MediaWiki announcements and site admin listmediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] importing many images Date: Fri, 27 Apr 2007 09:26:54 +0200
Mike Lane a écrit :
Where does this "$ php ./importImages.php /home/daten/rezo/php/katalogdeutsch/images" go to get it to work?
in a command-line console (shell on Linux server or MS-dos on Windows WAMP) (on debian you must have php5-cli installed, don't know about others).
if you don't have command-line access to the server use phpShell (see http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2006-February/010220.ht...)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org