By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,220 Members | 1,091 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,220 IT Pros & Developers. It's quick & easy.

Interact with External CGI Forms (Local PHP Site to Webmin)

P: 19
Hi I am new here,

I am having a hard time with this scenario. I am working on a PHP Website that needs to interact with a System Administration GUI called Webmin (http://www.webmin.com/) located in another server.

Basically the site I am working on allows users to register their domain Names (that they already own) and my PHP script needs to interact with Webmin in a Form by Form basis. The user should not see Webmin at all and shouldn't even realize that there are interactions with an external Site.

Anyone have any ideas, I was browsing through this community and I have read that a way of interacting with external forms is to have an invisible Iframe that contains the external site and posting elements through the iframe. But one problem is that Webmin requires someone to logon before they can configure DNS settings and set up Zones etc.

Anyway this is complicated and its my first time coding in PHP so any help would be greatly appreciated.

Thanks

Al
Aug 20 '07 #1
Share this Question
Share on Google+
5 Replies


P: 19
bump!
Sorry still could use some help :)
Aug 20 '07 #2

P: 19
Ok I have done some research and for anyone trying to load an external Form, you can use PHP function cURL or fopen.

http://curl.haxx.se/docs/manpage.html - Curl documentation

I just got to figure out how to get past the Webmin Authentication to post directly to the CGI forms.

Any ideas?

Al
Aug 20 '07 #3

P: 19
Ok I have done some research and for anyone trying to load an external Form, you can use PHP function cURL or fopen.

http://curl.haxx.se/docs/manpage.html - Curl documentation

I just got to figure out how to get past the Webmin Authentication to post directly to the CGI forms.

Any ideas?

Al

All solved,
Just use cURL it has function to handle authentication etc.

Happy coding!

Al
Aug 23 '07 #4

Atli
Expert 5K+
P: 5,058
I'm glad you worked it out.
Sorry we couldn't be of more help.

There is also some documentation on curl at php.net
Aug 23 '07 #5

P: 19
NP at all!

I hope someone else can benefit from this thread.
Aug 24 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.