ask & answer script problem |
ask & answer script problem |
Oct 1 2005, 11:46 AM
Post
#1
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
so, lisa did not convert my "ask" page to php, so i attempted to do it myself. apparently, that was a bad idea. it works, but it has all these error messages at the top...
ask page CODE <?php session_start(); // enter the absolute path to ask&answer directory $dir = ""; // ask and answer functions include_once("{$dir}functions.php"); ?> this seems to be the problem. that i dont have anything in the first $dir = ""; but im not sure what to put there... |
|
|
|
![]() |
Oct 1 2005, 12:41 PM
Post
#2
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
this is the askme.php file:
CODE <?php session_start(); // enter the absolute path to ask&answer directory $dir = "/home2/asweetap/public_html/wonder/ask/"; // ask and answer functions include_once("{$dir}functions.php"); ?> <title>ask me anything</title> <link rel="stylesheet" href="style.css" type="text/css" /> <?include ("http://wonder.foreverbliss.org/header.php"); ?> <center> <h1>Ask<b>&</b>Answer</h1> <?php include("{$dir}ask.php")?> <?include ("http://wonder.foreverbliss.org/footer.php"); ?> </body> </html> the header.php has the <html>, <head>, and <body> in it. and this isnt how it originially was..but i think at some point i deleted a whole bucnh of stuff. |
|
|
|
insomniac ask & answer script problem Oct 1 2005, 11:46 AM
toyo loco You should take out whatever you did . Your pages... Oct 1 2005, 11:57 AM
insomniac i didnt change that part. that was already there. ... Oct 1 2005, 12:24 PM
toyo loco php includes are pretty much includes. The code yo... Oct 1 2005, 12:35 PM
mipadi It is an issue with a block of code for sessions, ... Oct 1 2005, 12:41 PM
mipadi Does ask.php modify any headers? Oct 1 2005, 12:58 PM
insomniac ..*blushes*. this is the ask.php file:
CODE<?... Oct 1 2005, 06:23 PM![]() ![]() |