Lissa Explains it All:  Web Design Forums  

Go Back   Lissa Explains it All: Web Design Forums > LEIA Archives > Web Site Help > Advanced Programming

Notices

 
 
Thread Tools Display Modes
  #1  
Old 12-04-2004, 01:24 AM
PleaseDontCry PleaseDontCry is offline
Propellerhead
 
Join Date: Jul 2004
Location: Florida
Posts: 79
PleaseDontCry is an unknown quantity at this point
Question & Answer Script..

This may sound stupid.. -sigh-.. but..I have hardly any knowledge of .php.. So anywho, I downloaded Wak's Ask and Answer script.. Here are the instructions ->

Code:
Step 1: Upload all files to its own directory

	Step 2: CHMOD this directory to 777

	Step 3: Run setup.php in your browser, this script creates files for you and should
		announce "Installation Complete!". This file will NOT
		overwrite your current questions or templates. Configuration is the only
		thing that will be reset.
		
		Copy and paste the absolute path URL to somewhere
		where you can get back to it, or simply leave the window open

	Step 4: Run askme.php and test that everything works properly.
		To answer a question, open answer.php in your browser
		The secret key/password is: askme
		Click on Configuration and immediately change your password. 

	Optional Steps:
	Include script into your layout:
		Now, to include the script to your layout or another webpage:
		Place the following code at the very beginning of your page:
		This is also where you will need to use your absolute
		path 

		<?php
		session_start();
		// enter the absolute path to ask&answer directory here
		$dir = "/path/to/ask&answer/directory/";

		// ask and answer functions
		include_once("{$dir}functions.php");
		?>
		
		Now place this code where you want the script to show up:

		<?php include("{$dir}ask.php")?>

		
		For an example of how your code should look, have a look at
		the code within askme.php included with this script
		
	Separating ask form from ask.php:

		If you want to place the ask form in a separate file from ask.php, for
		example in index.php
		First open askform.php and read the instructions inside, bascially you need
		to change the url that the form submits to, to your ask&answer_page.php
		(eg: askme.php NOT ask.php)

		Now place this code anywhere that you want the form to
		be displayed. You will need to change the path to the askform.php file:

		<?php include('path/to/askform.php')?>

		If you use the above code, please remember to save that file with a .PHP 
		extension, If you don't do this, your script will not work.
I did as it said.. Made a new directory.. and uploaded ALL of the files in the .zip file. Now, what does CHMOD mean? I'm sorry if I sound impossible.. but I'm just so confused.. >_<

[EDIT] I just need someone to kind of walk me through the basics. ^^
Sponsored Links
  #2  
Old 12-04-2004, 01:47 AM
starlet starlet is offline
`````````
 
Join Date: Aug 2000
Location: England
Posts: 20,088
starlet is an unknown quantity at this point
http://www.lissaexplains.com/html8.shtml#cgiscripts

Read the 'Set file permissions' part.
  #3  
Old 12-04-2004, 02:01 AM
PleaseDontCry PleaseDontCry is offline
Propellerhead
 
Join Date: Jul 2004
Location: Florida
Posts: 79
PleaseDontCry is an unknown quantity at this point
Alright, I CHMOD all of the files to 777..Like it said.. Now I'm just confused as to how to set it up.. If you go to my site in my profile..but add /questions to it.. that's the directory..and you'll see the error messages on the pages.. Such as setup.php.
 

Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.