Jump to content

jay3ld

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by jay3ld

  1. http://php.net/Enchant This seems interesting to me. But for the life of me, I can't figure out what I am doing wrong. I have ispell installed and I can run it via command line to have it suggest words. But I can't get it to work through PHP. I have compiled 5.3 from source with enchant enabled. I can use the enchant functions. But the issue is that enchant doesn't seem to be able to find the dictionaries. I tried a test script I found on php.net, modified it to output more details. This is what it gave me: Could the myspell provider be screwing things up? I have tried to compile enchant without myspell and then recompiled php. But no luck still. Any one else play with Enchant yet? Any ideas here? I know I could easily build pspell into PHP, but I wanted to play with this. As it seems this is being removed in 5.3. So I want to get a handle on how this works for my few applications that are using spell checking.
  2. ok , so you are listing files from inside an FTP session? PHP has almost any kind of libraries you need to make life easy for you. check out the FTP module. you can use ftp_nlist() function to list files from remote server, then get the results and manipulate them as you wish. Correct, but it doesn't provide you with any other information that is useful such as permissions, ownership, modified time, etc. That is why I am doing it this way. This script isn't something I intend to release. It is being used on remote servers I have. The script has to be via FTP, as apache on that server doesn't run with enough permissions to the files/folders to to chmod.
  3. nrg_alpha, No the string itself isn't in question. The output should always be similar to that. ghostdog74, The reason why I can't use those is that this information comes from a FTP connection (via a socket). I didn't see any information in FTP functions on getting the file permissions. Daniel0, Would those work with a remote socket connection to a FTP server? I have done a fsockopen to a FTP server, been able to authenticate, list files, change their permissions, etc. But I haven't found an easy way to just obtain the information I want (Their permissions)
  4. Hello, I am creating a regular expression to match the output from the command "ls -go". I only really want the permissions and the file name. I came up with this that works: ~([-d][-r][-w][-x][-r][-w][-x][-r][-w][-x])+\s+\d+\s+\d+\s+\d+\s+\d+\s+[A-Za-z]+\s+\d+\s+[\d:\d]+\s([A-Za-z0-9_\-]+.[A-Za-z]{3})+~mis I optimized it down to this: ~([-drwx]{10})+[\s\d]+[A-Za-z]+[\s\d:]+([A-Za-z0-9_\-.]+.[A-Za-z]{3})+~mis Any ideas on how i can optimize it any more than this? Did I miss something that my testing didn't see that could cause this to miss a true result?
×
×
  • 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.