<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to run FA files using cron]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6478&amp;type=atom" />
	<updated>2016-09-17T15:56:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6478</id>
		<entry>
			<title type="html"><![CDATA[Re: How to run FA files using cron]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26389#p26389" />
			<content type="html"><![CDATA[<p>It&#039;s a security break if you do it like this. But if you are doing it by your own pc or local system.&nbsp; That&#039;s no problem.&nbsp; If you want to do the cron job in it.&nbsp; Each file has a security parameter.&nbsp; Just make one like this. </p><div class="codebox"><pre><code> $page_security =&quot;SA_OPEN&quot;; 

// Here your code can go on. 

?&gt;</code></pre></div><p>You can use this file for corn job.&nbsp; It will grant you the access.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-09-17T15:56:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26389#p26389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to run FA files using cron]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26388#p26388" />
			<content type="html"><![CDATA[<p>If the custom cron php file is in the FA web folder then anyone from outside too can execute it. Why would you want a security vulnerability?</p><p>If you wish to directly interact with the FA&#039;s DB tables, then write your own php file and keep it outside your webroot and include the relevant files like <em>config_db.php, includes/db/connect_db.inc</em> and operate on them directly.</p><p>If you wish to simulate a login and perform the FA&#039;s form based operations then use <a href="http://php.net/manual/en/curl.examples-basic.php">php cURL</a> to achieve it. Teaching PHP is outside the scope of this forum.</p><p>Provide an example of what you wish to achieve and in which version of FA?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-17T15:10:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26388#p26388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to run FA files using cron]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26386#p26386" />
			<content type="html"><![CDATA[<p>As we know, To access frontaccounting code files, it is must to login. I want to execute a script automatic using the Cron. I manually tried it but every time it ask for login and after login it hit the script. But in cron, how to login automatically so after which it execute the script. Is there any way to run a FA file without login or remove security permissions in code. Please give me the solution for this&nbsp; asap.</p>]]></content>
			<author>
				<name><![CDATA[Romil Gupta]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19948</uri>
			</author>
			<updated>2016-09-17T06:59:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26386#p26386</id>
		</entry>
</feed>
