Jump to content

Thurrock

New Members
  • Posts

    6
  • Joined

  • Last visited

Thurrock's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Thank you That resolved the problem, for anyone who has this problem you need to edit the file in: /etc/apache2/mods-available/fcgid.conf then reboot Apache Works perfect. Thanks Again
  2. Hi I think I have found the error: [Mon Mar 31 14:08:39 2014] [warn] [client xx.xx.xxx.x] mod_fcgid: HTTP request length 131400 (so far) exceeds MaxRequestLen (131072), ... This looks like a Fast CGI issue, not sure how is best to resolve this Thanks
  3. Hi Everyone I am banging my head against the wall with a problem where I am trying to upload an array of file types but keep getting Internal Server Errors when uploading PDF files I can upload images and word docs and spreadsheets but PDF is not working for me, have tried various different files and file sizes but still the same. I have a form: <form action="modules/docman/upload.php" enctype="multipart/form-data" method="post"> <input type="file" name="pic" id="pic"> <input type="submit" name="submit" value="Upload File"> <input type="hidden" name="MAX_FILE_SIZE" value="20000000"> </form> I have simply tried to dump the file array in an effort to eliminate server side script causeing the problem and still get the Internal Server Error var_dump($_FILES["pic"]); exit; The server environment is in my control, could be this but not too sure how, where and why. Any help would be very much appreciated.
  4. Hi Everyone, I have a question and it may have been asked before but I would like your view on this, I am making an application that needs to store documents, it needs to be scale-able in that it could reach over a million documents very quickly. the documents consist of pdf files for the best part but will include word documents and excel documents. I need to make the documents searchable and easily accessible, the question is: file system or database storage? There may be the need to enable document editing later and this leads me to think database as I can easily insert revisions ect but then again I think file system as it would be easier to backup. concerns are security as each doc may need permissions so folders could be tricky to secure as directory structure can be exposed, I guess i am torn between the two ways of doing things and would like other peoples views. Thanks in advance
  5. Resolved: There was html tags near the keyword I was searching for, resolved with strip_tags(); Thank you.
  6. Hi, I am banging my head against the wall here trying to get this to work, I need to read each line of a txt file and then match lines containing one or two word keywords, this script matches letters but I seem to be running into a wall here trying to get it to work, my guess it is a simple solution? $lines = file('uploads/file.txt'); foreach ($lines as $line_num => $line) { $line = strtolower($line); if(preg_match("/version/i", "$line")){ echo "<span style=\"color:#cccccc;\">Line #<strong>{$line_num}</strong> : " . $line . "</span><br />\n"; } else { echo "Line #<strong>{$line_num}</strong> : " . $line . "<br />\n"; } } Any help would be greatly appreciated.
  7. Hi I am new to the forum so I thought I would say hello, I have self taught myself PHP and have been creating website's on and off for around 5 to 6 years now, I am no expert by any means but have browsed the forums and found some useful information on here so I became a member. Hope that I can help some people and also learn something from PHP Freaks forums as I still do bang my head against the wall at least once a week with problems Dan
×
×
  • 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.