Question

I'm still new with PHP and I was wondering if this issue is normal and if there's a work around for it.

I have a PHP page wherein there's a textarea and the user must open a server log txt file, copy everything in it, then paste it on the PHP page's text area. The problem is working with the textarea especially when it contains too many characters (and probably some hidden characters) runs too slow. Like cutting/deleting part of the text will freeze the page for minutes. Is there a way to prevent this from happening? Like a settings or something.

Was it helpful?

Solution

Since this is a problem with the web browser UI, there is no way to keep this from being slow. You need to come up with a way of getting around having the user paste a boatload of text into a textarea.

One way could be to replace the input field with a file upload so that the user could upload the txt file directly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top