Computing.Net > Forums > Web Development > PHP file insert

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP file insert

Reply to Message Icon

Name: rhawkes241
Date: August 15, 2006 at 02:18:28 Pacific
OS: Windows xp
CPU/Ram: Athlon XP 1700, 512SD
Comment:

Hi,

Just wanted to say thanks for all the responses to posts I've made so far, your helping me learn PHP with some useful tips - thanks.

I want to include an include statement, however I only want to call a certain line from a plain text file.

To clarify - I want to be able to say:
include line 2 from descriptions.txt

Is this possible?

Thanks,
RHawkes241



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: August 15, 2006 at 02:53:48 Pacific
Reply:

Hi, yes:

$filename = 'thefile.txt';

$handle = file ($filename);

//Line 2
echo $handle[1];


http://www.php.net/file


---
Fubar


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP file insert

php files...what do i do?!?! www.computing.net/answers/webdevel/php-fileswhat-do-i-do/210.html

PHP File Downloader? www.computing.net/answers/webdevel/php-file-downloader/1934.html

PHP file insert www.computing.net/answers/webdevel/php-file-insert/1069.html