View previous topic :: View next topic |
Author |
Message |
qwertz -
Joined: 17 Oct 2003 Posts: 15
|
Posted: Thu Apr 01, 2004 11:40 am Post subject: How Do You Set File Permissions (CHMOD)??? |
|
|
I'm running a Windows XP SP1, with Abyss, with MySQL installed, and PHP4 installed. They are both working great, and I'm running a few forums along with them.
Now, I'm trying to install a stand alone poll script. I found the poll script from phplite.com, but when I run it, it gives me a whole list of errors.
In the README file, it talks about setting making PHP4 have register globals turned off, and magic quotes on. I'm not sure if this is the default for PHP, or do i have to do that myself.
Also, it mentions "make sure that the file permissions for the files pollconfig.php and pollstyle.css are set to 0666". I have no clue how to do this, or what file permissions are. The only thing related to this that I know of is file sharing options in Windows XP.
So basically, when I enter admin, or vote in the poll, I recieve the following messages:
Quote: |
Notice: Undefined index: id in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 21
Notice: Uninitialized string offset: 0 in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 39
Notice: Uninitialized string offset: 1 in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 39
Notice: Undefined index: display in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 177
Notice: Undefined index: voted in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 181
Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php:21) in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\pollprocessor.php on line 188
Notice: Undefined variable: notselected in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\polldisplay.php on line 15
Notice: Undefined variable: already_voted in D:\Program Files\Abyss Web Server\htdocs\desktopdrawer\poll\polldisplay.php on line 17
|
Even though I recieve these errors, I can still vote. And, the results do change. But I can't seem to use the admin control panel, and many of the other poll scripts I tried don't even get close.
Is there a way I can solve the problems? Any help would be greatly appreciated!
Kevin |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Apr 01, 2004 5:00 pm Post subject: |
|
|
Your setting should be the following
Register Globals = On
Display Errors = Off
-------------------------------------------------------------------------------------
Im not sure about magic quotes :? |
|
Back to top |
|
 |
nquin321 -
Joined: 29 Jan 2004 Posts: 296 Location: Right Behind You
|
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Fri Apr 02, 2004 2:17 am Post subject: |
|
|
Although you can't CHMOD in Windows, this topic has already been talked about. Just search this forum for "chmod" and the third or fourth result should give you all the information you need about "CHMODing." _________________ Bienvenidos! |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Apr 02, 2004 5:07 am Post subject: |
|
|
I just now found out what Magic Quotes are , this is a option
inside PHP where it can take away those crappy slashes when
someone submits data through a form that looks like don\'t
instead of the word don't , its a very handy feature , you can
also use the following code to manually set this up without the
php.ini file having Magic Quotes turned off , just use this
Code: | $var = stripslashes ($var); |
If you don't know PHP , you probably don't know
how to set that up in your script , just leave Magic
Quotes Off is your best bet , LateR!
Last edited by TRUSTAbyss on Fri Apr 02, 2004 5:13 pm; edited 1 time in total |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Fri Apr 02, 2004 5:22 am Post subject: |
|
|
So this is when the actual page shows words like "don\'t?" _________________ Bienvenidos! |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Apr 02, 2004 6:48 am Post subject: |
|
|
Exactly ! Larry Ullman taught this on
his forum and if you don't know him.
He's the author of my PHP Book
and luckily he answered my post. 8)
Look for books on PHP by Larry Ullman , he
is a very good PHP programming teacher and
uses very easy steps to get what you need to know
Edit: Magic Quotes Need to be off in order to work !
-------------------------------------------------------------------------------------
I have a MySQL and PHP Book , both
by Larry E. Ullman from Barns @ Noble. |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Fri Apr 02, 2004 11:54 pm Post subject: |
|
|
Thank you for the recommendation; I'll check it out when I get a chance. _________________ Bienvenidos! |
|
Back to top |
 |
 |
|