Author |
Message |
22/07/2003 23:10:25
|
Anonymous
|
No defensive.. just making note of your start of your message..
"ermm....kinda a stupid question rly, everything " that is not a good way to start off.. indicating that others aren't with the program.
Never the less, I understand fully the differences, I'm saying CAN IT WORK? being inserted into an htm file? that's what I'm trying to find out, I have tried several methods and none work.
The author doesn't support this application, so I'm not going pay the 15 bucks.. I have over 300 customers and look for various methods to provide new things, surverys and such to my clients, but have to know they will want to work with their htm and things along those lines.
|
|
23/07/2003 00:28:32
|
fove
Beginner
Joined: 21/07/2003 21:31:13
Messages: 12
Location: Scotland
Offline
|
Lol that wasn't my post, I merely agreed. Anyhow, there is no way a php code can work in a .html or .htm file. The various extentions are there for a reason. However php files are no different to html files so I don't see the problem of using them. You only have to rename them.
If you are not willing to pay for php hosting then you should look for a free provider.
|
fove
Wendy |
|
23/07/2003 07:04:35
|
Anonymous
|
I'm new to PHP myself and agree that there are no stupid questions. And I think some of these answers are a little rude to newbies like myself. I am used to Perl but just learning PHP.
I had the same problem as others here. I also use Dreamweaver and am using htm as an extension.
Can I change ONLY the pages that I am putting the poll on to php and leave the index as htm? I don't see why not. I will try it but thought I'd run it by the pros here.
Anyone?
|
|
23/07/2003 15:42:10
|
xenzap
Beginner
Joined: 18/06/2003 01:28:42
Messages: 10
Offline
|
Yes, you need to rename the page where you place the php code to .php, but you don't have to rename all the .html files, just the one where you put the poll.
If you are being hosted, and you want to put the poll on the first page, ask your server admin to put index.php AND index.html into your default document settings.
There are no stupid questions, I agree!
Xenzap
|
|
23/07/2003 18:55:32
|
Anonymous
|
When i go to install advanced poll 2.0 using mysql, i get a query error and it says the file poll config has already been created...what do i do?
|
|
29/07/2003 07:23:33
|
Anonymous
|
Dreamweaver does not show the poll when you view the browser from your desktop. The file has to be saved as .php (unlike with Perl/CGI scripts) and uploaded to your server in order to view the poll.
The code for each poll can be found here:
- Poll List
- Click the Text icon under Stats for the poll that you want to use
Copy and paste the code for the poll into your HTML code. The top part (<?php ...) goes in the Header before <HTML>.
The part after <body> is the actual poll code and is inserted wherever you want the poll to appear on the page.
Hope this helps.
~ Dawn
|
|
02/08/2003 17:37:07
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Hey guys here's a question for ya....
If HTML works in a file with the extension .HTML or .HTM
then....
PHP will work in a file with the extension .PHP ???
and...
You've got PHP code in a file with the extentsion .HTML or .HTM then it won't work!!! You need to change it to .PHP for it to work. Another major factor is that PHP won't just work in your browser like HTML. HTML is parsed by the browser, and PHP code is parsed and executed by a separate script interpreter engine thingy and then the results are sent to the browser. Try this great place :: http://www.php.net/
The principle here is that the PHP code is embedded in the HTML code. This means all you have to do is change the files extension to .PHP and add the relevant bits of PHP code inbetween these tags <?php ...code goes here... and ?> The rest of the file can be just normal HTML. Read this for more info :: http://proxy2.de/forum/viewtopic.php?t=2067 ::
Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
|