Open External PHP File from Nubuilder

Open External PHP File from Nubuilder

Postby ruiascensao » Thu Apr 25, 2013 9:11 pm

Hi,

How can I open an external PHP file from a button ( edit screen) on a new window?

Thank you.
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

Re: Open External PHP File from Nubuilder

Postby zazzium » Fri Apr 26, 2013 2:39 am

Hi,
make a new procedure and in there include the php file.
u can call the protsedure with runIt("pCode")
(pCode - the procedure code)

zazzium
zazzium
 
Posts: 84
Joined: Mon Jul 04, 2011 8:22 am

Re: Open External PHP File from Nubuilder

Postby shane » Mon Apr 29, 2013 1:59 pm

also, in any section where PHP can be included in nubuilder you can use require_once or other similar functions.
shane
 
Posts: 100
Joined: Mon Jun 15, 2009 5:34 pm

Re: Open External PHP File from Nubuilder

Postby ruiascensao » Sun May 05, 2013 3:45 am

Hi shane, zazzium,

Thank you.

I need to upload 2 csv files to the database. One to create records and one to update records.

Any suggestion please?

Thank you.
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

Re: Open External PHP File from Nubuilder

Postby shane » Fri May 10, 2013 5:58 am

is this a regular task or a once off?
shane
 
Posts: 100
Joined: Mon Jun 15, 2009 5:34 pm

Re: Open External PHP File from Nubuilder

Postby ruiascensao » Fri May 10, 2013 7:06 pm

Hi Shane,

This will be a regular task.

Thank you.
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

Re: Open External PHP File from Nubuilder

Postby ruiascensao » Thu May 16, 2013 5:07 pm

Hi Shane,

Any advice / suggestion?


Thank you.
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

Re: Open External PHP File from Nubuilder

Postby massiws » Fri May 17, 2013 12:07 am

Rui,
in Add Activities you have to create new PHP procedure with your logic: here some basic stuff http://www.homeandlearn.co.uk/php/php10p6.html

Have the CSV files always the same names? If no, you have to implement a form fo ask user the names of the files to process.
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy


Return to Custom Code



cron