Hello Amy,
                I thought I may be able to save you some time.

Your problem will relate to file ownership and execution usernames.

Files may be executed by "anyone", a "group" or only the "owner".

If you used FTP to replace the file then the file now has your login user
name as the owner.

Brief explanation -

A file can be set so that it only executes in the name of the owner or a
group or "anyone". This makes a difference when a script is accessing other
files such as files that contain passwords or MySQL connection details.

When you overwrite a file with FTP, that file is then OWNED by your login
username. If the script needs to run with the username "nobody" or "anybody"
then it may loose the ability to access other files that it needs.

You can test this theory by changing the permission's of the file that it
cannot access to 777. DO NOT LEAVE it this way as its an open invitation to
hackers.

If it then runs OK, you will need to set the permission's of that file back
and change the ownership of the calling file.

To change the ownership of the calling file - create a short script that
loads file into a string and then saves it back with a different file name.
Then delete the original file and rename the new file to the original name.
PS this script must be executed by the proposed owner. That is - if you want
the default owner "nobody" "anybody" or "apache" then execute it from a
browser window. If you want your username as the owner then it is easier to
do it via FTP. I am not sure what owner results from cPanel but I do know
that editing a file does now changer ownership only deletion and recreation.
If you want "group" ownership then it is easier to use a shell on the
server.

I hope this helps. I have some scripts I have written here some where for
browsing and changing ownership if you  need them.








----- Original Message ----- 
From: "Amy Sollers" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, August 19, 2006 10:51 AM
Subject: [php-list] In desperate need of help with user authentication -
login


> Ok, I have been working on my site http://www.djfoxsfloatingisland.com
> for some time now. I did not make the original coding, someone else
> did. I had paid him to do the project but he bailed leaving everything
> unfinished. I have done my best to continue work on it myself because
> I cannot afford another programmer & no one was willing to do it for
> me otherwise.
>
> Well today I thought I`d move the login stuff into a log file to be
> called up on the pages via php require so that when I want to
> change/add to how the logging in looks, I could just edit the one file
> instead of all the pages. Well that screwed things up where you can`t
> log in at all. So I put the coding back in the page exactly as it was
> originally, & STILL there is no logging in possible.
>
> I tried copying the logging in code from my PHP book & that failed. I
> don`t know why. I copied it as how the book had it.
>
> So, can anyone help with this? I need my members to be able to log in
> to the site.
>
>
>
>
>
>
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>






Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to