Post cut off

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Hammer65
Forum Newbie
Posts: 3
Joined: Thu Nov 18, 2004 2:07 am
Location: Nebraska

Post cut off

Post by Hammer65 »

I'm trying to post a question about some code but my post keeps getting truncated. Sorry I'm a newbee so I'm sure it's something simple.

Thanks to anyone who can help.
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
Hi,
did you use BBCode around your code?

Code: Select all

їPHP]CODEї/PHP]
djot
-
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Well put it in a text file, upload it, and send us a link then. :)
User avatar
Hammer65
Forum Newbie
Posts: 3
Joined: Thu Nov 18, 2004 2:07 am
Location: Nebraska

cut off

Post by Hammer65 »

I did use the BBCode but it still cut it off. I didn't use the buttons just hand coded it in. I was trying to find out why I couldn't get fwrite to work with a string as below.

Code: Select all

<?php$f_lookup = $art_num.":".$tfile."\n";
fwrite($f_ptr,$f_lookup);?>
This which should be the same thing works.

Code: Select all

<?php fwrite($f_ptr,"$art_num:$tfile\n");?>
No big deal I guess but I'm not used to putting variables inside strings so I usually code by joining strings and variables instead as you do in Javascript.

My post appears to be working now. Thanks for any help you can give.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Sorry to hear that Hammer65. Could you post browser, browser version, operating system and operating system version, please?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Hammer65, you should have the space after the <?php tag to make your code working.
User avatar
Hammer65
Forum Newbie
Posts: 3
Joined: Thu Nov 18, 2004 2:07 am
Location: Nebraska

cut off

Post by Hammer65 »

Yes, certainly

Mac OSX 10.3.5
Safari 1.2.3 (v125.9)
Post Reply