fourninjadeveloper
Forum Replies Created
-
Forum: Plugins
In reply to: [WP RSS Multi Importer] Save informatoin?thanks for the information.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Save informatoin?So all the database calls are there?
(btw you’re very responsive and that is good)
Forum: Plugins
In reply to: [WP RSS Multi Importer] I lost all feeds settings. Where were they saved?Do you have a link for a starting point?
Forum: Plugins
In reply to: [WP RSS Multi Importer] I lost all feeds settings. Where were they saved?ok I found them… How can I read the data? The beginning is a:2{i:1;a:3 etc
What does that mean?
Forum: Plugins
In reply to: [WP RSS Multi Importer] I lost all feeds settings. Where were they saved?I’m also trying to find those tables and can’t find them. My plugin is live. Can you help me?
Forum: Plugins
In reply to: PHP header problemI solved the issue.
Apparently when using the header command it requires a browser and since I need this to happen in the background the header command will not work. After some researching and trial and error I came across another way of using the file_put_contents. It’s hard for me to explain it thoroughly but some example code and solution can location here.
Forum: Plugins
In reply to: PHP header problemfunction check($data) { /* function checks parser and than parse the information and send it to the actions folder. */ $pattern = '|X-Original-To: (.*)|i'; /* retrieving sql statement */ $test = checkparsers(); $flag = 0; $par = ""; $parse =""; $i = 0; /*Database connection*/ /*Checking Database for match*/ preg_match_all($pattern, $data, $out, PREG_PATTERN_ORDER); $matches = explode(': ',$out[0][0]); while($result = mysql_fetch_array($res)) { if($matches[1] == $result[$i]) { /*set flag to one*/ $flag = 1; /*Database connecting take out*/ while($result2 = mysql_fetch_array($res)){ /*building array to pass to parsing function*/ $type = $result2[4]; $src = $result2[5]; if($src == 'body') { /*This should split the entrie email into two parts*/ $split = preg_split("Content-Transfer-Encoding:", $data); $parse = $split[1]; } /*This gets the header information*/ if($src == 'email') { $split = preg_split("Content-Transfer-Encoding: 7bit", $data); $parse = $split[0]; } if($src != 'email' && $src != 'body') { $parse = $data; } if($type == 'beforeafter') { $par = 'beafter'; $parse = beafter($parse, $result2); } if($type == 'reg') { $par = 'regexpress'; $parse = regexpress($parse, $result2); } if($type == 'fnot') { $par = 'fnot'; $parse = fnot($parse, $result2); } if($type == 'cal') { $par = 'calculate'; $parse = calculate($parse, $result2); } } /*Database connection taken out*/ /*looping through the files. */ /* This is a test*/ header('Location: somesite.php?num=0'); } $i = $i + 1; } /*psssing information to to the action files*/ /*Handling action files*/ file_put_contents("/home/amuser1/public_html/1funnel.com/public/wp-content/plugins/Paser/actions/actionlog.txt","functions.php passed\n" , FILE_APPEND); };Here is the function. I took out the database connection for security purposes.
Forum: Plugins
In reply to: PHP header problemDo you think file_put_contents command is causing an issue?
Forum: Plugins
In reply to: PHP header problemYes and it didn’t work. I have the page using file_put_contents in a log so if the data is being sent the php page. However when I take the link out the code and paste into the web browser; it works fine.