This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Download entries using wget
Started 14 years ago by isaoyoshikoshi | 2 posts |
-
Hi, everyone!
I'm tring to get entry data Excel files using wget program.
But following commands get "manage_form.php" file
and an empty files which name is "export_entries.php@id=n".Could anyone help me?
wget --cookies=on --keep-session-cookies --save-cookies=cookie.txt --post-data="admin_username=admin_name&admin_password=password=login" http://foobar.com/index.php
wget -O --cookies=on --load-cookies=cookie.txt --keep-session-cookies http://foobar.com/export_entries.php?id=n&type=xlsPosted 14 years ago # -
I'm not too familiar with wget. However, try to test it by disabling the session checking within export_entries.php file.
Edit your export_entries.php file, search around line 18:
require('includes/check-session.php');
remove that code and then do this:
wget -O http://foobar.com/export_entries.php?id=n&type=xls
if that doesn't work, try edit the file again around line 147:
$workbook->send("{$clean_form_name}.xls");
remove that code as well.
MachForm Founder
Posted 14 years ago #
Reply
You must log in to post.