Read from .txt file anywhere?
Hello guys. Im tryingo todo to read .txt file in anywhere. My code:
PHP Code:
PHP Code:
|
Re: Read from .txt file anywhere?
Ok so i figgured out:
PHP Code:
PHP Code:
|
Re: Read from .txt file anywhere?
Quote:
Quote:
|
Re: Read from .txt file anywhere?
You should avoid using read_file() as it is not recommended. Also, you should generally never return a string from a function.
What exactly is this data from the file you're trying to read and what does the file look like? I don't think your code is working the way you think it is. Also, for reading the lines of a file correctly, you should do this: PHP Code:
|
| All times are GMT -4. The time now is 02:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.