Jump to content

Hyssar

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Hyssar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. just to find where is the error, try echoing the HTML part with an here_doc
  2. Just in case, you should also strip_tags it ( http://ca.php.net/manual/en/function.strip-tags.php ) $name = strip_tags($name); Also, for a maximum protection, use sha1() instead of md5() $pass = sha1($pass); Then, to authenticate, verify if it matches the one in the database : if (sha1($_POST[pass]) === $database_pass) {...} else {...}
  3. Today, an apache upgrade has been avaible on Adept, after installation, I tested the script and...... IT WORKS ! Lucky! And thanks everybody!
  4. About the access rights, I opened a root konqueror and right-clicked the directory www and changed the rights for every users, it is : can read and write But I will also try the chmod -R 777 ~ The apache server is started as hyssar, wich is the main user (and hyssar has writing rights in www and all sub directories and files) The code : (it worked perfectly on windows, so I REALLY don't think it could be the problem.....) simply, fopen flock fwrite flock fclose
  5. First of all .... no! the needed rights are allowed to the repository!!! Ok, I can start I got a forum/wiki application I made. During all those weeks, I developped and tested it on Windows XP SP2. When bringing it on my Linux server, I can't modify those .txt and .inc files. I can create a simple .txt file with touch(), it proves I got the writing rights, but the fwrite() and fputs() fonctions have no effect. About my server : it is a Linux Kubuntu system (yes, I know that for some of you a graphical server is heresy, but I don't care at all about the 0,5% lost in managing graphical environment, it only easier to remotly (freenx,ssh) maintain it when it's graphical). Kubuntu Edgy 6.10 Apache 2.0.55 PHP 5.1.6 Thanks !
  6. It seems that is_readable could party solve my problem. What do you think, dear helpers?
  7. Thanks for helping me. My question is : Is there any way for a process to know if a file is locked with flock by an other process? And : If a process requests a file that is locked, what's happening? It waits until the other one finished writing? or it ends and resolves to false? How can I verify that a file is "free" before using it in PHP? (I would appreciate an example of code that verifies this condition). Thanks, Hyssar
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.