Jump to content


Photo

Forums updated

info phpfreaks

37 replies to this topic

#21 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 12,353 posts
  • LocationCheshire, UK

Posted 28 February 2013 - 08:25 AM

There seems to a problem attaching files to a PM

 

Browse to a file and add as attachment.  - No file name appears in list of attached files and you don't get option to add another file


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

#22 Christian F.

Christian F.

    Advanced Member

  • Gurus
  • 3,055 posts
  • LocationNorway

Posted 28 February 2013 - 08:31 AM

Hmm... I just tested, and it seemed to work for me. File showed up in the list as attached, and the option was there for me..?

Can you confirm receipt, Barand?
Keeping it simple.

#23 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 12,353 posts
  • LocationCheshire, UK

Posted 28 February 2013 - 08:37 AM

Yours arrived OK.

 

The one I tried (twice) was a 17MB zip file


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

#24 DavidAM

DavidAM

    Advanced Member

  • Gurus
  • 1,730 posts
  • LocationSpring, TX USA

Posted 28 February 2013 - 08:38 AM

Code tags ([code=php:0] ... [/code]) are double-spacing the code. (The nobbc tags are not working in that line. I am using the PHP (not CODE) tags below)

If I flip the switch so I'm using the Rich Editor it post's fine (in the Preview). If I flip the switch OFF, it posts double spaced:

http://forums.phpfre...-row/?p=1415595

require('members/connect.php');

// Get a count of the banners available
$query = "SELECT COUNT(*) AS RowCount FROM banners WHERE banner_size=7";
$result = mysqli_query($dbc, $query);
$banner = mysqli_fetch_array($result);
$num_rows = $banner['RowCount'];
mysqli_free_result($result);

// Pick a random number and subtract 1 (we want the OFFSET)
$randomOffset = rand(1, $num_rows) - 1;

// Select the banner
$query = "SELECT * FROM banners WHERE banner_size = 7 LIMIT $randomOffset, 1";
$result = mysqli_query($dbc, $query);
$banner = mysqli_fetch_array($result);
mysqli_free_resullt($result);

There is also an extra line at the beginning and end of the code block

Now it is doing the exact opposite (the PLAIN editor posts fine, the RICH editor posts double-spaced). This makes me feel crazy. Is anyone else seeing this?
-- I haven't lost my mind, it's backed up on tape ... somewhere!

#25 Christian F.

Christian F.

    Advanced Member

  • Gurus
  • 3,055 posts
  • LocationNorway

Posted 28 February 2013 - 08:40 AM

I had the plain text double my newlines in a PHP block once, but only once. So yeah, it's a confirmed intermittent bug. How fun! :\

Edited by Christian F., 28 February 2013 - 08:40 AM.

Keeping it simple.

#26 Christian F.

Christian F.

    Advanced Member

  • Gurus
  • 3,055 posts
  • LocationNorway

Posted 28 February 2013 - 08:48 AM

Barand: Tried to upload a 20 MB zip file, and I got this message. It was mostly hidden, due to the small size of the input area, and the HUGE size of the text.

413 Request Entity Too Large


Keeping it simple.

#27 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 12,353 posts
  • LocationCheshire, UK

Posted 28 February 2013 - 08:53 AM

David - I've had the double-spaced code problem a couple of times

 

Christian - I got no error message (at least I didn't notice one). However, the stated limit is 50MB


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

#28 Philip

Philip

    Phailip

  • Administrators
  • 4,516 posts

Posted 28 February 2013 - 10:19 AM

I'd suggest not using the [ php ][ /php ] tags anymore. We should be migrating to [ code ][ /code ] only. 
 
Barand, I'll take a look at server config tonight for file sizes.

#29 Philip

Philip

    Phailip

  • Administrators
  • 4,516 posts

Posted 28 February 2013 - 12:00 PM

The nobbc tags are not working in that line. I am using the PHP (not CODE) tags below

I've filed a bug report for this.

If I flip the switch so I'm using the Rich Editor it post's fine (in the Preview). If I flip the switch OFF, it posts double spaced

I can't seem to replicate this, at least consistently. If anybody figures out a good way to replicate it, I'll happily submit a report.

#30 DavidAM

DavidAM

    Advanced Member

  • Gurus
  • 1,730 posts
  • LocationSpring, TX USA

Posted 28 February 2013 - 01:26 PM

I can't seem to replicate this, at least consistently. If anybody figures out a good way to replicate it, I'll happily submit a report.

See Double Spacing in Code Tags on the Test Board
-- I haven't lost my mind, it's backed up on tape ... somewhere!

#31 Philip

Philip

    Phailip

  • Administrators
  • 4,516 posts

Posted 01 March 2013 - 01:52 AM

Should be fixed now. Although I'm tempted to lower the limit down to like 20MB. I can't think of a use case really for more than that.

 

 

I'm sure my ISP enjoyed me testing this... :P

Attached Files



#32 salathe

salathe

    Badger

  • Staff Alumni
  • 1,852 posts
  • LocationEdinburgh, Scotland

Posted 01 March 2013 - 03:49 PM

The [ic] CSS could do with a little tweaking. It's especially ugly at the moment when used often throughout a post.

zMDf0r7.png
PHP Documentation Team

#33 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 12,353 posts
  • LocationCheshire, UK

Posted 01 March 2013 - 04:14 PM

Should be fixed now. Although I'm tempted to lower the limit down to like 20MB.

 

If necessary, we could keep zipping the zip file until it's less than the limit. :)


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

#34 Crocuss

Crocuss

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 01 March 2013 - 04:17 PM

I can't longer "like" a post on mobile because at the every time it will be updates.

Thanks



#35 Philip

Philip

    Phailip

  • Administrators
  • 4,516 posts

Posted 01 March 2013 - 04:26 PM

I can't longer "like" a post on mobile because at the every time it will be updates.
Thanks

Huh?  :confused:



#36 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 531 posts
  • LocationMN

Posted 06 May 2013 - 01:49 AM

A nice addition would be a code runner that asks for the values of any unassigned variables.


if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}

 

I am a Grand Dungon Master.


#37 Jessica

Jessica

    The Web Mason

  • Gurus
  • 8,767 posts
  • LocationDallas, TX
  • Age:26

Posted 06 May 2013 - 06:35 AM

A nice addition would be a code runner that asks for the values of any unassigned variables.

... This is a forum, not an IDE
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.

How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq

Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!

#38 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 531 posts
  • LocationMN

Posted 07 May 2013 - 10:55 PM

But the forum could do a link to code example like JSfiddle built in to it for showing the code, and what you're trying to do instead.


if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}

 

I am a Grand Dungon Master.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com