Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd February 2004, 07:03 AM   #1

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default Only include so many lines?

I'm including a file on a page but I only want it to include some many lines, how do I do this?
metguitarist is offline   Reply With Quote
Old 9th February 2004, 06:08 PM   #2

Username: andrews_john
Rank: WF101 Newbie
Join Date: Jan 2004
Posts: 5
Points: 0.00
Default

Could you please explain what do you want exactly?
__________________
andrews_john
www.softwareforhosting.com
andrews_john is offline   Reply With Quote
Old 10th February 2004, 08:38 AM   #3
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Try this:

Code:
<?php $file = file('http://www.webmaster-resources101.com'); $start = "0"; // Start showing code from this line $end = "10"; // End showing code from this line for($x=$start;$x<$end;$x++) { echo $file[$x]; } ?>

Choose what line you, want to start on and where you want to end. Simple as that
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 11th February 2004, 01:16 AM   #4

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

Oh thanks so much! Everyone else is like, just read the php function reference, and I go try and there's like millions of pages and I go crazy.
metguitarist is offline   Reply With Quote
Old 11th February 2004, 08:45 AM   #5
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Yup, that's how I used to feel when I asked... The gave me the function but I had no idea what to dow ith it :lol:
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 11th February 2004, 11:06 PM   #6

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

Oh jeez, I've encountered the biggest problem yet ops:

When they press enter on the keyboard trying to post

like this

It screws up when it writes, it makes the post more than one line. Is there a way I can set it so that it changes it

from this <br> to this?
metguitarist is offline   Reply With Quote
Old 12th February 2004, 06:18 PM   #7
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Where does this happen? Could you send some code?
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 12th February 2004, 10:56 PM   #8

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

Yeah sure, when I get home from school
metguitarist is offline   Reply With Quote
Old 13th February 2004, 01:19 PM   #9

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

From posting2.php

Code:
$write = fopen("./posts.php", "w+"); fwrite($write, "<tr><td width=20% class='td3'><p><b>Posted by: </b> $email $fname $lname </a><br><b>Date: </b>$date $agemessage $sexmessage $sitemessage $aimmessage </td><td width=80% class='td4'> &nbsp $comments</p></td></tr> \r\n $existing"); fclose($write);
metguitarist is offline   Reply With Quote
Old 13th February 2004, 01:19 PM   #10

Username: metguitarist
Rank: WF101 Addict
Join Date: Jan 2003
Posts: 374
Points: 0.00
Send a message via AIM to metguitarist Send a message via MSN to metguitarist
Default

I suppose I could just make comments a regular text box to quickly evade the problem...
metguitarist is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 08:58 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore