If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Parse error if used with something else  XML
Forum Index » Support Forum
Author Message
kramer65
Newbie

Joined: 28/05/2004 13:23:18
Messages: 3
Offline

Hello,
If I put the following required line:

<?php require "http://www.lyriczz.com/poll/poll_cookie.php"; ?>

in the top of one page of my website where I have the poll, I get a parse error in that line.
I only have it with this page. The only different thing with this page is that I post directly after this line the following:
<?
if ($_POST) {
if ($comments) {
$msg = "
Name: $name
Email: $email
";
mail("webmaster@mydomain.com", "COMMENTS", "$msg", "From: COMMENTS_FORM");
header("Location: thanks.php");
} }
?>

How can I avaid this error?
[WWW]
Anonymous



im not really very good at php but aren't you supposed to write it like this:

<?php include("http://www.yourwebsite.com/1/2/"); ?>

just change the underlined part to the URL you need
hope this helped
Anonymous



sorry i made a mistake... it should be like this:

<?php require('http://www.yoursite.com/1/2'); ?>
kramer65
Newbie

Joined: 28/05/2004 13:23:18
Messages: 3
Offline

Hello,

True, the best way to write it is with the brackets. But it works as well without
Anyway, sorry but if you refer to
mydomain.com/1/2,
you basically refer to a folder named 2 which is in a folder named 1 right?
But I installed the poll in my folder named 'poll'. In the help archive or something, it said that I had to include this line before anything in every page in which the poll is embedded in.
So what is wrong with this?

One more problem I have is the fact that if you enter a vote in the poll and come back or refresh the page. It doesn't say that you already voted, but you can just vote again. How come this happens?
Can it have something to do with the fact that I include the file in which the lines are which include the poll?
Please help!
[WWW]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

go to poll admin area and click on the menu icon furthest to the right.
this page shows you all the code for different polls eg. newest ect.
this page also shows you the full path to booth.php this path is the same for poll_cookie.php.
so try using that path instead.

- Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
kramer65
Newbie

Joined: 28/05/2004 13:23:18
Messages: 3
Offline

Well. The url and path to the cookie.php is correct. It works in other pages (there are at least no errors). But since I use php and mysql extensively in all my pages I thought that it maybe had something to do with that. In all my pages it works, exept in the ones which have a respond form in it.
This respond form sends an automated email to my webmaster account. This is done with the code which I posted above. But how can this piece of code fuck up the poll?? Cause I don't have a clue??

Anybody??

Currently the poll uses my database which is used for other purposes as well. Would it help if I create another database just for the poll?
[WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum