Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By BinaCh
#812737
I created a new directory in processmaker file manager, I put the php code in it and now I want to access these pages. please can you help me
User avatar
By amosbatto
#812738
If you want to execute the code in a process's Public Files, you can use this code in a trigger:
Code: Select all
require_once(PATH_DATA_PUBLIC . @@PROCESS . PATH_SEP . 'mycode.php'); 
If you uploaded to another process, then use that process's ID:
Code: Select all
require_once(PATH_DATA_PUBLIC . '1234567890abcde1234567890abcde' . PATH_SEP . 'mycode.php'); 
If you want the URL for the file, then see:
http://wiki.processmaker.com/3.0/Public ... blic_Files

If you want to display that code then you can use this code in a trigger:
Code: Select all
header("http://example.com/sys". @@SYS_SYS .'/'. @@SYS_LANG .'/'. @@SYS_SKIN .'/'. @@PROCESS .'/mycode.php');
die; 
Or you can create a custom plugin with an External Step.

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]