Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Help with Poll (in PHP/CGI) and SSI
Old 07-11-2004, 01:17 AM Help with Poll (in PHP/CGI) and SSI
Junior Talker

Posts: 3
Trades: 0
Hello everyone I'm new here. That aside I've a very pressing matter at hand. I run a site (won't put link because I'm not sure of the advertising rules), and I'm trying to put up a new version of it soon. Now the problem is that I want to have a poll. I also want the poll to show the results on the same page as where you voted. Now I know there are PHP scripts that will let me do it, but here's the catch, they require that I use PHP includes on the site to include the poll. But my site is based off of SSI (ends with .shtml), and I'm reluctant to change it because Google has archived my .shtml pages for a while. So I need to be able to include this poll with SSI.

Don't get what I'm talking about? Check this site: http://www.mugglenet.com/ . See the poll? And see what happenes after you vote? That's what I need to be able to do as well. Plus they are also using SSI, but they're quite unwilling to help others, so I can't ask.

Thanks a lot.

PS- I'm real desperate. I need to get the layout by atleast end of this week.

EDIT- The poll script can be CGI or PHP. It doesn't matter.
HyruleKnight is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-11-2004, 01:23 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
HyruleKnight,

If you need to enable PHP processing for the .shtml extension and you are using Apache (not sure, just guessing), then edit a line in your Apache configuration file httpd.conf which looks like this one:

AddType application/x-httpd-php .php

You should be able to add the .shtml extension on the end there to enable .shtml so that it looks like:

AddType application/x-httpd-php .php .shtml

I just performed a test on my server and it worked fine. This should allow you to insert PHP functionality into your pages without changing your extension.

I know I didn't answer your poll question, but this is a piece of what you will need to do.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-11-2004, 01:27 AM
Junior Talker

Posts: 3
Trades: 0
Yes I figured that solution out but I'm on a host that doesn't allow me to do that. I do believe they run on Apache though. And they don't have CPanel. The host is 1and1.com

I'm sorry for not being so clear

Thanks
HyruleKnight is offline
Reply With Quote
View Public Profile
 
Old 07-11-2004, 10:06 AM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
Well, in your .htaccess files, I know there's a trick to have .html files parsed as PHP, I would think you could do the same with .shtml. Put this in your .htaccess file and see what happens:

AddType application/x-httpd-php .shtml
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 07-19-2004, 11:25 PM
Junior Talker

Posts: 3
Trades: 0
No such luck. I tried the .htaccess thing but no avail. Anyother thing?
HyruleKnight is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with Poll (in PHP/CGI) and SSI
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20898 seconds with 12 queries