Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Apache with PHP and Perl

AmanteAmante Member Posts: 52
Hi,
First,
Congratulation on your new form.

For my question:
I want to be able to create a html page with option boxes to retrive information from a MySQL database. I can do it with CGI-BIN exe file no problem (i'm a c++ programmer) but i think that with perl scripts or php i can do it better.

Any ideas of how i call Perl script from apache to retrive the specific information from the database?
Do i need to use PHP?

Thanks, Don.

Comments

  • garwaingarwain Member Posts: 297
    throw the perl script into a cgi enabled folder, and call it just like you would a web page.

    ie if you have a script located in /www/cgi-bin called retrieve.pl (the folder being the found at http://server.com/cgi-bin/ and retrieve.pl retrieves info from your DB and displays

    you would simply call
    http://server.com/cgi-bin/retrieve.pl

    and it would retrieve the data and display it as a web page.
    : Hi,
    : First,
    : Congratulation on your new form.
    :
    : For my question:
    : I want to be able to create a html page with option boxes to retrive information from a MySQL database. I can do it with CGI-BIN exe file no problem (i'm a c++ programmer) but i think that with perl scripts or php i can do it better.
    :
    : Any ideas of how i call Perl script from apache to retrive the specific information from the database?
    : Do i need to use PHP?
    :
    : Thanks, Don.
    :


  • AmanteAmante Member Posts: 52
    Thanks Man,

    For all your answers ... Apache install and PHP and perl.

    Everything is working fine now ... relly everything.

    Thanks again, Don.


    : throw the perl script into a cgi enabled folder, and call it just like you would a web page.
    :
    : ie if you have a script located in /www/cgi-bin called retrieve.pl (the folder being the found at http://server.com/cgi-bin/ and retrieve.pl retrieves info from your DB and displays
    :
    : you would simply call
    : http://server.com/cgi-bin/retrieve.pl
    :
    : and it would retrieve the data and display it as a web page.
    : : Hi,
    : : First,
    : : Congratulation on your new form.
    : :
    : : For my question:
    : : I want to be able to create a html page with option boxes to retrive information from a MySQL database. I can do it with CGI-BIN exe file no problem (i'm a c++ programmer) but i think that with perl scripts or php i can do it better.
    : :
    : : Any ideas of how i call Perl script from apache to retrive the specific information from the database?
    : : Do i need to use PHP?
    : :
    : : Thanks, Don.
    : :
    :
    :


Sign In or Register to comment.