0

I am very new to the ant scripting, I want to create ant script that will execute and grab data from php script and insert data into database.

I have going through previous two question Running PHP script in background using Ant and build PHP with ant scripts but it is not working for me.

i have tried below code:

  <project name="fetch_record_test" basedir="." default="*install"> 
    <target name="*install" depends="test-src">
        <exec executable="${php}" failonerror="true" dir="${source}">
            <arg line="${projectdir}/Connectors/record_mapping.php"/>
            <arg line="-output" />
        </exec>
   </target>
</project>

can any one show me ant script to do so.
Thanks

Community
  • 1
  • 1
Pragnesh Chauhan
  • 8,363
  • 9
  • 42
  • 53

1 Answers1

1

There is an issue with ${php} so try to change executable=${php} to executable="php"

Check this link for more information.

For storing data in database you can connect your php file with database or use ant sql

Community
  • 1
  • 1