Urgent help!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Urgent help!!

Post by OOnegative »

I'm trying upload a php poll to my site, xboxextended.com to my menu.html file ... I used the code that sympoll told me to but it's still nto appearing on my site. Please help!
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

how about starting with what problems you're having (error msgs) and what code you're trying to use
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

I'm not getting an error message, its just now showing up. Here is the code i'm using ...

Code: Select all

<?php require '/home/xboxexte/public_html/poll/booth.php';
  display_booth(1); ?>
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

ok. please don't get offended, but since i'm rather new 'm going to do something that should help everyone, ask you questions that build from the most basic levels i can think of.


1: do you have (enabled) php on the server?
2: what version of php is the server running?
3: what version php is that code?
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

1. yes
2. 4.3.1
3. php3, i think

sympoll just stays make sure you have php 3 or 4.
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

Anyone know what the problem is?
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post by pootergeist »

rename menu.html to menu.php :) or whatever document holds the heirarchical top.

either that or configure a .htaccess to parse all .html files as php
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

I don't want to rename it to .php because then I'll have to manually change everything one every page. You said I should configure a.htaaccess to parse all.html as php, how do I do this and what other effects will it have?
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

anyone?
OOnegative
Forum Newbie
Posts: 11
Joined: Mon Jan 20, 2003 4:12 pm

Post by OOnegative »

Okay, it says i can insert:

Code: Select all

<!--#include virtual="/poll/p1.php"-->
Then I can make p1.php contain the original code:

Code: Select all

<?php require '/poll/booth.php';
  display_booth(1); ?>
It still doens't work.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if you request this document in your browser and open view->source do you see the script code in there?
Okay, it says i can insert:
it? ;)
Post Reply