Current location: Hot Scripts Forums » Programming Languages » Perl » Web Pages in CGI scripts


Web Pages in CGI scripts

Reply
  #1 (permalink)  
Old 02-18-04, 12:43 AM
chrslett chrslett is offline
New Member
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Web Pages in CGI scripts

Hi, I am not too familiar with the perl language and cgi scripting, however I do know a lot about HTML and PHP. Anyway I recently installed a cgi script onto my web server (it is a photo gallery script) and I have that working fine. My question is, how can I edit the cgi script or how can I incorporate that script into my web site (besides just linking to the cgi script).

There are a few ways I was thinking of to approach this situation:

Is there any simple way I can convert the script to PHP or can I just treat the script as it is php in reguards to plugging in the HTML?

Can I get this script page to display inside a HTML table, as apart of my template? Is there another way I can get this script to appear inside of my web site template?

Are there Perl 'tags' or something of that nature to allow me to code in some web page elements such as a .jpg on the top of the page and some text at the bottom of the page, etc.?


This is what my page looks like now

http://www.licrew.com/cgi-bin/gallery.cgi

and this is somewhat what I am tryin to do (it appears the part that is from the script is incorporated into the page)

http://www.picsharing.com/cgi-bin/gallery.cgi

If you can not understand what I am tryin to do, please feel free to e-mail me stoli@licrew.com

If you can help me please either e-mail me stoli@licrew.com or post here.

Any help at all is much appreciated, THANK YOU!!!
Reply With Quote
  #2 (permalink)  
Old 02-26-04, 03:54 AM
ArmedGeek's Avatar
ArmedGeek ArmedGeek is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Houston
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by chrslett

Is there any simple way I can convert the script to PHP or can I just treat the script as it is php in reguards to plugging in the HTML?

Can I get this script page to display inside a HTML table, as apart of my template? Is there another way I can get this script to appear inside of my web site template?
I'm a bit of a perl hacker. Although I don't do much cgi with perl, I think I might be able to help. As far as simple 'including' or 'pluging in' the cgi, there are ways to do it, but none are very safe (security-wise), however, all is not lost. There is a 'safe' way to plug HTML into perl via print statements. I can probably help you out with that.

A couple of questions/comments:
1) Are you not able to code/download an image gallery in a language you know (PHP)?

2) You could learn perl. IMO, it is a much broader, 'real' programming language than PHP (I do NOT want to get into a fight over perl/php/asp/jsp/etc, this is MY opinion).

If you'd like some assistance, just let me know what script it is (if available for download) and I'll take a look at it, maybe even comment the heck out of it so you can edit it yourself.

--ArmedGeek

Work is punishment for failing to procrastinate effectively.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing sponsored scripts BosDev HotScripts Site Bug Reports 3 01-22-04 05:43 PM
How to convert php generated pages to SE friendly HTML or PHP(SE friendly) -CLASS 101 crippled PHP 1 11-16-03 06:37 AM
please sort scripts by updated date teletubby Hot Scripts Forum Questions, Suggestions and Feedback 11 08-17-03 12:23 PM
Folder access counting scripts? RageWinter22 Script Requests 0 07-20-03 12:15 PM


All times are GMT -5. The time now is 04:57 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.