PhpWiki To Mediawiki Converter In Php Or Perl?
I'm looknig for advice / inspiration / modules / libraries, I'm a little more fluent in perl, but a php solution would also be fine.
I'm having two Wiki servers:
Server1: - phpwiki with user authentication - direct access to the mysql data base possible - contains about 400 entries
Server1: - MediaWiki (Wikipedia is Mediawiki based) with user authentification - direct access to the mysql data base possible - contains about 30 entries
I'd like to copy over about 350 entries from Server1 to Server2(I could apply a filter rule or semiautomatically create a list with entries to copy
As the amount of entries is low I don't really need an optimized solution.
Entries in server 2 can be overwritten.
I wanted to have your advice: 1.) Is there already something similiar, that exists? 2.) Is there a Wikiadmin focused news group (I don't like mailing lists and web based forums, as you have to create a noew account for most of them or to increase your spam rate even more) ?
If not: I know very little about the wiki internals and was thinking about a 'brute force' method, not knowing if something better exists:
The idea: 1.) get all the entries from the phpWiki via mysql ( from table "wiki" ) 2.) fix naming style (my phpwiki entries contain spaces) 3.) replace the phpWiki syntax with Mediawiki syntax (I found url with some sed rules, which are probably incomplete, but could be a goiod starting point) and fix naming styles of interlnal links. 4.) access the Mediawiki via http, authenticate and post the new entries
My idea was to 'post' new entries though it is probaly slower than directly populating the mysql data base as this allows to populate Mediawiki without having to know how the internal mysql book keeping works exactly.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Phpwiki Login And Tilde
I have been testing phpwiki on various setup. The main problem currently is that I can't login as administrator Tested with locally: MacOSX 10.2.8 Apache 1.3.X phpwiki 1.3.4 PHP 4.3.4
Experimenting With Records Keeping With PhpWiki
How this would work in essence: User would be presented with, say, a "members" page containing an alphabetised list of member name links and an add member link. Each member name link would lead to the member's page and would provide for updating information about that member in the usual way for a wiki. However, the add member link would arrange to create a link for a new member--with initial contents in the linked page set from another file thereby making it possible to provide for collecting the same information about each member. I assume that this is not somehow built into PhpWiki. Does it seem possible (or would subvert some mechanism on which PhpWiki depends)? Does anyone know of an example of a system that works in this general way.
FLV Converter With Php
Somedy know how to convert avi, mpg or other video files in flv format, with PHP script?
Html To Pdf Converter?
I am searching for code that convert html to pdf. Do anybody had idea or anylink to exisisting source code.
Md5 Password Converter
just want to ask if there is any tool or code that can convert md5 password to the normal password?
Converter For PhpBB To VBullettin
I want to convert an existing site in phpBB to Vbullettin.Is there any converters available for the same.Please let me know more about this as this is an urgent requirement
Want Currency Converter In Php Code
i want to convert one country currency to another country currency in my shopping web site without redirecting to another site. can u suggest some idea to do this.
Easy Comma-delimited List To Dropdown Box Converter
I was working on a simple converter when I realized that by not setting the id param of the option tag, it wasn't going to send the value of the dropdown box to my php script. I had this to start with: Code:
2>&1 Arg In Exec(perl.... + "sh: /perl Not Found Error" TIA For Help
I have the following line in a php file: $msg= exec("perl $scriptPath/insert.pl $d $u $t 2>&1", $returnVal); Can someone explain the "2>&1" argument? Second problem, this same line of code when run from the unix command line returns the following error: sh: /perl: No such file or directory I've verified that perl is located in /usr/bin/ /usr/bin is in the environment variable "PATH" all the directories from php program to the root and back down to usr/bin have 755 permissions. if I run the program (insert.pl) from the command line it works I've tried putting the following in both the php and perl programs: #!/usr/bin/perl #!/usr/bin
PHP Vs. Perl/Mod Perl
Age old question which program language is better PHP or PERL with MOD PERL. Depends on that application? Well how about if we examine this application: A website that has 1000s of concurrent users all with their own session. A website that is dynamically generated via a database. Now I know with PHP there is the advanced ZEND optimizers / engines - that help in some areas. What about PERL / MOD PERL? Do they have such a thing? Support: The amount of PHP usage on the net is prolific - even this message board runs on PHP. Even if we compare the PERL post to the PHP post there is a difference of 10 to 1 in favour of PHP. Thanks so much!
PHP Vs Mod Perl
I'm doing some research on different programming languages, and I'm looking for some help! I apologize in advance if my questions seem naiive, but I'm not a programmer, and I am approaching this from the business side of things. I work with a company that has an existing site using mod perl to process subscriber information and a number of other high-volume items. We need to add significant new functionality quickly and we are considering using PHP. My questions are: 1) is is possible to have mod perl and PHP coexist so we do not have to re-do the work that we've already done 2) what makes PHP better than mod perl 3) are there speed issues using some of the existing web email applications such as IMP or Endymion
Which Is The Best, Perl Or PHP?
I am a totally new comer for server side scripting and I want to learn it because of its high functionality. Which language is best to begin with? Perl or PHP?
PHP To Perl/CGI
I have somewhat of dilemma. I have created a php script for a client that works fine if executed manually but now he wants it as a cron job. i don't have any problem creating a cron job, but apparently i can't call my php script, i have to call perl and cgi. I thought you could call any file under a UNIX server. PHP Code:
Perl And Php
I have a perl file which makes sure the user is coming from the payment processor page. I have a page which is a php file. Is there any way to have them both in one page, when I tried to include it just displayed the perl file in text at the top. What can I do?
PHP V PERL
at the CGI thing so I thought I'd ask you PHP boys what you think about Perl v PHP What are their relative strength and weaknesses?
Perl And Php
why is perl referred to as a CGI script and not php, php has the facility to execute backticked execute commands that enable the programmer to use operating system facilities as well ? why would you bother with perl when you can use PHP which is far easier than that other bloody language.
PHP Vs Perl
I recently had a few Perl scripts developed (rentacoder) and now looking back, maybe I should have had php scripts developed instead. My questions: 1. Does PHP hold any advantages over Perl when working with MySQL DB? 2. Is it difficult to convert from Perl to PHP? Basically, I'm not looking for specifics, just advise on whether to convert to PHP for future maintainability and support. I have a total of 5 Perl scripts that were custom built for my needs that do text parsing and interact with MySQL.
Perl And PHP Together
I am running a perl scrip which outputs an html file. But can I put a PHP routine within the html?
PHP Or Perl?
if you only care about sql then use php - not that its got more options, but it is easier to learn (may be?) and code and has (sort of) more freedom then perl (that is cgi-bin stuff).
PHP Vs PERL
I am part of a project team that will implement a Web based WAP management system. The main function of WWW version of the web site is to manage the user's settings of the WAP version site. Since all the huge databases are in Oracle, and the previous versions was develop with Perl, i ask you if there is any advantage to convert the web site to PHP (my preference!!)...
Perl Vs PHP?
What is the difference between Perl (CGI) and PHP (Apache module)? I thought both used servers to direct the user to the appropiate Perl or PHP program in order to execute the program to interpret the user's Perl or PHP script
PHP Or Perl
I am wondering as broad as it is which language would be better to build a project in PHP or Perl. I don't have any experience of either, just some VB,Fox,C++ and Java.So really I am asking for the pro and cons before I start.
Php Or Perl For CGI?
I'm trying to learn how to implement CGI on my site, and would like to know what are the advantages of using Perl over PHP, if any.
Is There A Better Way? (perl In PHP)
Is there a better way of doing this? I want to take in a large amount of text/data, process it with a perl script then print the results to the browser <?php $tmpfname = tempnam ("/tmp", "FOO"); $fp = fopen($tmpfname, "w"); fwrite($fp, $text_in); fclose($fp); if (isset($alias)) { $file = `perl /home/httpd/cgi-bin/perl_script.pl $tmpfname`; unlink($tmpfname); print"$file"; ?>
PHP And Perl Intergration
I have a very unique situation. I must use a perl program that a company has already pre written and they are using a PERL package called HTML::Template. This is a very neat package, with the downside that when it comes to conditionals, you can't do ANYTHING with it. IF I can print a PHP header, instead of text/html header, I believe I can make perl parse PHP. I may be barking up the wrong tree, but here's an example of what I am talking about. ------ Sample of Current Output ------ print "Content-type: text/htmlnn"; my $template = HTML::Template->new_file($action . '.tmpl'); $template->param(%template); print $template->output; In the .tmpl file, you use HTML type tags like this "<tmpl_var name="MESSAGE">" to print to the page. What I woudl like to do is assign the "<tmpl_var name="MESSAGE">" to a PHP variable, and use PHP to read it and decide what to print if MESSAGE is "YES" then the program would return one thing, if not, it would return another. Personally, I would have written this differently, but the company wants it this way...
Calling Perl From Php?
I have a site all in PHP, for login, auth, session management, etc. I have to interface it with a banks perl scripts to do credit card transactions. Their wrapper perl script expects a few arguments, including a hash with all the data. What would be easiest way to get the data entered into my adduser.php form to the perl script?
Using Php From A Perl Script
Is it possible to execute a php script from with in a perl script? If so, what if a form is submitted via post and the action points to a perl script which then calls a php script. Would the php script still be able to access the stdin?
Perl Includes
Am I using this right, trying to get a cgi/perl script to run as an include on a php page virtual("./cgi-bin/schlabo/potd/potd_thumbnail.pl"); Im pretty sure thats correct but when i use it, its read as text on the page and doesnt run the script.
What To Learn First? PHP Or Perl
I've looked around on google, and found quite a few articles on php vs perl. From them, I've decided to learn both languages....maybe . Anyway, if I were to decide to learn both, which one should I do first? I'm not asking which language is better or worse, but which would be better to learn first. ie Would learning php first make it harder for me to learn perl later on?
How Would You Introduce PHP To A Perl Guy?
I have a coworker that's never heard of PHP, yet loves UNIX/Perl and all derivatives thereof. I personally don't know PHP well but I know its capabilities and I was just wondering if there are any resources out there that I can kind of forward to him and let him do a quick perusal that would help him first, gain acceptance of the language (over Perl) by showing some real-world usage or real-world reviews, and secondly show him how things are faster and easier in PHP than Perl. While I'm not a UNIX person to begin with, I know that PHP is a language that's easy to pick up (I started it yet fell out of habit) and he thinks it doesn't get any easier than Perl for his scripting needs.
How To Call Perl From Php.
I want to call a perl script which takes input from the previous php page.will u provide me the code? i wrote perl script in Solaris & PHP script in windows & then uploadig to a server. so i have to give the perl script path as "/users/xyz/abc/perl.pl".
Translate Perl Into PHP
I have written a Perl script which basically splits a text file, greps the required image names, and returns the string in Javascript Code:
PHP With Perl/CGI Inclusions
I have a pre-made Perl script whcih e-mails me the contents of a form, and then I have the page in PHP which displays (using table and graphics) a page based on a users preferences loaded from a MySQL DB. If I do this PHP Code:
Errors Using Php And Perl
I'm trying to intergrate a cgi affiliate tracking system into a php website. When someone pays using PayPal it's supposed to direct them to one page if the payment is a success or another if payment failed. This is the code: if($action == order && $order_n != "") { include "engine/card_process.pml"; if($payment_status == success) { $page = payment_success; } else { $page = payment_failed; } } I'm trying to insert code into this process that will credit the affiliate the correct amount if the process is a success. This is the code that's supposed to be inserted to credit affiliates: <img src="http://www.yoursite.com/cgi-bin/affiliates/sale.cgi?payment= $amount" border=0> I tried inserting this before the line "$page = payment_success;" in various forms, but I either get errors, or the affiliate isn't credited, or both. I managed to get the code to credit affiliates correctly, by inserting this: include "<img src='http://www.yoursite.com/cgi-bin/affiliates/sale.cgi? payment=$amount' border=0>"; but it also gives me errors: Warning: main(): failed to open stream: No such file or directory in /home/httpd/vhosts/yoursite.com/httpdocs/index.php on line 18 Warning: main(): Failed opening '<img src='http://www.yoursite.com/cgi- bin/affiliates/sale.cgi?payment=0.01' border=0>' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/yoursite.com/httpdocs/index.php on line 18 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/yoursite.com/httpdocs/index.php:18) in /home/httpd/vhosts/yoursite.com/httpdocs/index.php on line 29 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/yoursite.com/httpdocs/index.php:18) in /home/httpd/vhosts/yoursite.com/httpdocs/index.php on line 29 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/yoursite.com/httpdocs/index.php:18) in /home/httpd/vhosts/yoursite.com/httpdocs/index.php on line 69 Line 18 is the inserted code, line 29 is: session_start(); Line 69 is: setcookie("current_page"' $page); If you can help me I would appreciate it. I really don't have a clue about what I'm doing. I'm just guessing. Also, the email address is valid. Address harvesters are programmed to ignore email addresses that contain the word "fake".
Using Perl, But Would Php Be Wiser...?
I designed pages where the PHB's upstairs can go to a 'content insertion' page and type in the show's content for the week. This info is written to a text file, and that text file is read & inserted into the web page using SSI. The page that the PHB's use are created by a unique perl script for that show, which in turn call another unique perl file that writes to the text file. I used this method because when the PHB calls up the content updater page the current text is displayed in the form's textarea (easier to correct information that way). I am rewriting this so PHB's go to an HTML page which calls only one script for ALL the shows, and would potentially be more secure, and am wondering would php be more appropriate for this sort of thing? I am not sure how to have the current show's data displayed in the textarea without the page being dynamically created by a cgi form (which can read from the text file).
Perl Poetry
#voline # ActiveState for Win requires no bash # salom @venividicogniti = (); push (@venividicogniti, "freedom"); push (@venividicogniti, "work"); push (@venividicogniti, "organisation"); @social = (2,1,0,1,2,2); @revolution = (2,1,4,0,5,11); open ($public_access, "<", "poem.pl"); while (<$public_access>) {print $_;} for ($people=0; $people<=$#revolution; ++$people) { if ($people == 0) {print " "}; print substr(@venividicogniti[@social[$people]], @revolution[$people], 1); }
Difference Of & In Perl And Php
I'm porting a program from php to perl and discovered, that the bitwise operator & seems to work differently, which I don't understand why. I tested it with the values: a=5543039447 and b=13 Then in perl the expressions: $result= ($z & $a); returns 2147483648. But in php the same expression returns zero.
Perl Tr/ Substitution In PHP?
Quick question for how to convert this little perl routine into a PHP function: Perl: --- $variable =~ y/abcdef/qwerty/; PHP: ?? The preg_replace is not making sense to me to do a "tr" or "y" substitition in perl.
PHP-Perl Extension
I'm trying to install the PHP-Perl extension with cvs but I'm getting the following error: [root@localhost conf]# cvs -d :pserver:cvs.php.net:/repository co pecl/perl cvs checkout: authorization failed: server cvs.php.net rejected access to /repository for user root cvs checkout: used empty password; try "cvs login" with a real password
Form And Perl
I've written a Perl script which shows a Form, and if the form has just been submitted by the user the same script analyzes the input. This script runs ok if launched all alone. I want to insert this script in my Php page, the form is correctly shown, but as I press the submit button all input datas are saved in HTTP_POST_VARS, and Perl can't access them, so it shows the form again. I have then to pass this datas to the Perl script to filter them (for security reasons) and to elaborate them. So I thought to pass them as command line args, and it works correctly. Obviously I had to make a pre-filter in Php before pass these args in the command line. So I really don't like this solution for some reasons: 1) Filtering is done part in Php and part in Perl, I'd prefer to make it all in one of them; 2) I'm not sure my server administrator lets me use shell_exec(), exec() or system(); I think they're run with the web user permissions , but I'm not really sure.
PHP And Perl In Same File
Can you have a page that runs php and perl in the same file? I have a canned script that integrates an internet telephony service. The ISP doesn't have curl so I can't post securely using PHP. They've given me a perls script that I could integrate with my php. I basically need to pass the variables from php to the perl script. Variables like the phone number to call. If I can't combine the two scripts can I pass the variables using exec()?
Perl Style In Php ?
Often I just want to be able to get at a single element from a function that returns an array. For example, if I just want the current year I need to write: $today = getdate(); $year = $today['year']; Call me lazy but this is two steps to return a single value. In perl I can nest these two step together into something like: $year = ( $getdate() )['year']; I've tried to get several variations of this to work in php but I don't seem to be having any luck. Is this style possible in php?
Perl Extension For PHP -
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the functionality of php. The extension uses the '$perl->eval' function. i am kind of stuck with the syntax or how to put the php variable into the perl script. I have a form where the user puts in a grid reference. Then a php script that gets the entered values and puts them into a sql. Except all that bit is in Perl. How can this be done? <?php //php request $easting = $_REQUEST['easting']; $northing= $_REQUEST['northing']; //perl code $perl = new Perl(); $perl->eval('use CGI'); $perl->eval('use DBI'); // declare variables $perl->eval('my ($dbh, $sth, $cgi, $the_value, $easting,$northing)'); //instance of the cgi module $perl->eval('$cgi=new CGI'); //connects to the database $perl->eval('$dbh = DBI- Quote:
HELP: Getting Input From Perl Cgi To PHP.
I have this: ------------ print "<FORM name="form3" ACTION="cmdlog_rep.php"> "; print "<TD><INPUT TYPE="submit" VALUE="Submit"></TD> "; .. print "<INPUT type="HIDDEN" name="year1" > "; print "<INPUT type="TEXT" name="when" > "; print "</FORM> "; if click on submit I get this: ------------------------------ http://cpstmws2/p/cmdlog_rep.php?when=0&year1= and I can't get the values here: -------------------------------- <?php // set server access variables $when = $_REQUEST['when']; $year1 = $_REQUEST['year1']; .. .. echo $when; echo "<BR>"; echo $year1; echo "<BR> The test ends here "; ?> --------------------------------- What am I doing wrong?
Php And Regex (why No =~ Like Perl)?
Is there a good article that explains why php does not support =~ like perl for regex? I am confused by all the different ways one can do regex in php but it would seem supporting =~ would eliminate alot of redundancy.
Perl Includes In A Php Page
I'm converting some html pages to php pages. The original pages have perl includes in them with this syntax in the html: <!--#exec cgi="/cgi-bin/ads/zonea.pl"--> Of course, such includes in my php pages aren't working. Is it possible to run this perl script and put the results into a php string variable by something like: $variable = system("perl /path_to/cgi-bin/ads/zonea.pl"); that might not be syntacticly correct, but I hope the idea is getting across. I just discovered the answer to my question, and I'll go ahead a post in case some else would like to know, or if someone else knows a better way to do this, but this worked: $variable = echo("perl /path_to/cgi-bin/ads/zonea.pl"); echo $variable; Which printed the banner to the php document just like the ssi did in the original html doc. Hope someone finds it helpful!
Calling Perl Script From PHP
Ok, I have a Perl script that does some specific text manipulation. I'd like to have my main page written in PHP, which takes some text input from a user. The input is then passed to the Perl script, processed, and the result is passed back to the PHP script. Is this possible? I know how to pass variables from one PHP page to a CGI page written in Perl, but I don't want to write a whole CGI Perl page. I only need this function that is already written in Perl. Is there some include or require type command that can do this?
SSI And Perl Within .php3 Documents
Im new to PHP. I want to know if you can use ssi within .php3 documents and call php3 funtions in a .pl scritp. That is if you want to use the useful perl scripts you find on the web and combine them with php.
|