Jump to content


Photo

*SOLVED, I think* Code tags


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 18 March 2006 - 12:11 AM

The originator of this topic in the Newbie forum had a problem inserting code.

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88671\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88671[/a]

When I replied with sample code, I got an error.

A programming forum which doesn't allow code is as much use as a chocolate teapot. What's happening?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts

Posted 18 March 2006 - 12:24 AM

I can't get any posts to take or PM's either. Since the move to the new server, things have gone downhill... :-(

Ken

#3 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 18 March 2006 - 12:51 AM

"PHP Help" forum takes code tags. Is it just Newbies that's FUBAR?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#4 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 19 March 2006 - 08:46 PM

I've been having problems on both of the forums when file functions are put in the post. I have to put spaces inbetween, for example, f and open for it to post.

Very frustrating when your trying to post and have a few f write functions in the code.

I was noticing the other day, cause I thought my internet was being slow, that the code for the fourm's pages is very large. For example, if you do a save as, on the main display page for PHP Help, and check the size of the resulting .htm file and the directory containing additional files, it's almost 500k. If every page is 500k, that's a HUGE ammount of bandwidth every month. Even if you take into account cacheing on most people's browsers, that's a lot of bandwidth...probably still 200 - 250K for every page load.

I don't know if bandwidth is a cost issue, but it may be worth considering.

#5 Humpty

Humpty
  • Members
  • PipPipPip
  • Advanced Member
  • 132 posts

Posted 20 March 2006 - 12:59 AM

Yeah I have had the problem too, only when using code that included fwrite and fread and similar.

Other code was fine. (just adding my 2 cents)

Would love to know if/when it is fixed, (also will try using spaces to seperate them)
- Humpty
  #> Where does the light go when it goes out?

#6 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 21 March 2006 - 05:23 AM

Well, as of the time of this post, it's still not working... I have a post I've been trying to post to help someone for a day and a half... and it had freads/writes, etc.. in it...

#7 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts

Posted 21 March 2006 - 09:01 AM

[!--quoteo(post=356865:date=Mar 21 2006, 05:23 AM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Mar 21 2006, 05:23 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Well, as of the time of this post, it's still not working... I have a post I've been trying to post to help someone for a day and a half... and it had freads/writes, etc.. in it...
[/quote]

i've noticed a few things recently. yes it seems to be the fopen, fgets, etc that are causing the problems.

also i keep getting errors on firefox relating to the script having an error when loading the main phpfreaks forum page. a coding site with errors is also a little offputting, but seems like it's since alot of these ajax tooltips were introduced that things seem to have gone a bit pear shaped.

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!