How Do You Set File Permissions (CHMOD)???

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
qwertz
-


Joined: 17 Oct 2003
Posts: 15

PostPosted: Thu Apr 01, 2004 11:40 am    Post subject: How Do You Set File Permissions (CHMOD)??? Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Apr 01, 2004 5:00 pm    Post subject: Reply with quote

Your setting should be the following

Register Globals = On

Display Errors = Off

-------------------------------------------------------------------------------------

Im not sure about magic quotes :?
Back to top View user's profile Send private message Visit poster's website
nquin321
-


Joined: 29 Jan 2004
Posts: 296
Location: Right Behind You

PostPosted: Thu Apr 01, 2004 7:48 pm    Post subject: Reply with quote

you can't chmod files on windows but it should not affect your script
_________________
How many forum members does it takes to change a light bulb?
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Fri Apr 02, 2004 2:17 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Apr 02, 2004 5:07 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Fri Apr 02, 2004 5:22 am    Post subject: Reply with quote

So this is when the actual page shows words like "don\'t?"
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Apr 02, 2004 6:48 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Fri Apr 02, 2004 11:54 pm    Post subject: Reply with quote

Thank you for the recommendation; I'll check it out when I get a chance.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group