Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Open External PHP File from Nubuilder

Locked
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Open External PHP File from Nubuilder

Unread post by ruiascensao »

Hi,

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

Thank you.
BR
Rui
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: Open External PHP File from Nubuilder

Unread post by zazzium »

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
shane
Posts: 100
Joined: Mon Jun 15, 2009 10:04 am

Re: Open External PHP File from Nubuilder

Unread post by shane »

also, in any section where PHP can be included in nuBuilder you can use require_once or other similar functions.
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Open External PHP File from Nubuilder

Unread post by ruiascensao »

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
shane
Posts: 100
Joined: Mon Jun 15, 2009 10:04 am

Re: Open External PHP File from Nubuilder

Unread post by shane »

is this a regular task or a once off?
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Open External PHP File from Nubuilder

Unread post by ruiascensao »

Hi Shane,

This will be a regular task.

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

Re: Open External PHP File from Nubuilder

Unread post by ruiascensao »

Hi Shane,

Any advice / suggestion?


Thank you.
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Open External PHP File from Nubuilder

Unread post by massiws »

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.
Locked