<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://127.0.0.1:1285");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
//1 turns an option on and 0 turns an option off
'striphtml' => '0',
'parshuf' => '0',
'parrestruc' => '0',
'phrase' => '1',
'word' => '1',
'custom' => '0',
'content' => 'Content you want rewritten'
));
$result = curl_exec($ch); //contains the rewritten content
curl_close($ch);
?>
So with this rewriter do you still have to use the syntax {xxxx|YYYY} etc
For the next ten people who buy use the discount code: WFSPECIAL to get $10 off the cost price.
Should be now.
you rule :bowdown:Ok so I have listened to the feedback given by the users of ReWriter and the main request everyone had was some way to incorporate rewriter within their current scripts. With this update that is now possible.
Sorry, I didn't mean "native" php function instead of using curl. What I meant is having a php class rather then having to setup a windows server with the exe.Thanks for the comment phrench. I'll have a function up in a few hours using the native PHP function stream_context_create().