By awais.naseem.1 on
hello !
My name is Awais and i am quite new to Drupal, i have installed Drupal 6.13 in Ubuntu. Actually i've got a project, which have two parts.
- i have to create a php script which take a file as input and perform a process on that file, that process is done by back end perl script. i used shell_exec() function and display the output... this was a litle description abot my project
- The second step is to create a working module for that project, i want to assure that i have created that working project in php and now have to create a module for it
Please help me, how can i build a module for this project
Thank You
Comments
Ofcourse you can create a module for that
If you have already done it using php, you can do it in drupal as well.
just elaborate on the steps you are doing in php .
then I'll be able to tell you the steps to do it drupal way...
Must read book : pro drupal development
My project detail
Thank you very much :)
Brother i m doin follwing steps in my project code....
There is a html form, which take a file as input
Certain check are applied on input file e.g. its name should have an extension .fasta or .FASTA
Then uploaded file is moved to a directory
Now i have to pass this file to perl script at the back end, that script use this file and generate an output, i used shell_exec() function of php to do this
perl generate the output and php script got that output in a variable, then i make a array of it, and on every index of that array i provided a check box
when this array is displayed, every index of that file has check box, now user can check as many check boxes he wished
these checked indexes again send to an other perl script and again an output is generated from the perl script and that output is the final output which is again displayed by the php in a textarea
i think i made you confused:(, if you got me that is wonderful, otherwise i can provide you with my project code.
I'l advise you to go through
I'l advise you to go through pro drupal development book first , then only I'll able to help you.
We can create a module for this purpose and we will be using drupal's multi step form for this purpose.
drupal basic knowledge
Dear !
i have read that book infect first few chapters of this book, i have basic knowledge of drupal and i have also installed it. Still you want me to read some thing specifically then let me know that, i will read that topic.
Thank you
Read it all - it will answer
Read it all - it will answer most of your questions. If you want to do something right, then you should probably learn the right way to do it. We can't teach you how to write modules from scratch here, that's more than can be done in one thread.
Contact me to contract me for D7 -> D10/11 migrations.
Very true jay, @ awais :
Very true jay,
@ awais : Hope you are also creating example modules as mentioned in the book, that will help you a lot in writing your own module.
If you find any difficulty writing your own module then let us know the issue, but you will have to start it by your own.
Happy drupaling.