Skip to main content
added 9 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7

PHP, 60 30 17 16 1615 bytes

Updated yet again as per @manatwork suggested:

while(!`dir>1``cd>1`); 

Also now tested.


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().Just can't get smaller than the file_put_contents().

PHP, 60 30 17 16 bytes

Updated yet again as per @manatwork suggested:

while(!`dir>1`); 

Also now tested.


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

PHP, 60 30 17 16 15 bytes

Updated yet again as per @manatwork suggested:

while(!`cd>1`); 

Also now tested.


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

deleted 129 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7

PHP, 60 30 17 1716 bytes

Updated yet again as per @manatwork suggested:

while(!`>1 dir``dir>1`); 

I haven'tAlso now tested this as I don't have the php installed on this computer but manatwork - you ought to take the credit for pushing this down to 17 bytes!.


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

PHP, 60 30 17 bytes

Updated again as per @manatwork suggested:

while(!`>1 dir`); 

I haven't tested this as I don't have the php installed on this computer but manatwork - you ought to take the credit for pushing this down to 17 bytes!


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

PHP, 60 30 17 16 bytes

Updated yet again as per @manatwork suggested:

while(!`dir>1`); 

Also now tested.


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

added 239 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7

PHP, 60 30 3017 bytes

Updated again as per @manatwork suggested:

while(file_put_contents(1,1)!`>1 dir`); 

I haven't tested this as I don't have the php installed on this computer but manatwork - you ought to take the credit for pushing this down to 17 bytes!


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

PHP, 60 30 bytes

Updated as per @manatwork suggested:

while(file_put_contents(1,1)); 

A bit of cheating 22 bytes:

while(exec('>1 dir'));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

PHP, 60 30 17 bytes

Updated again as per @manatwork suggested:

while(!`>1 dir`); 

I haven't tested this as I don't have the php installed on this computer but manatwork - you ought to take the credit for pushing this down to 17 bytes!


A bit of cheating 22 bytes:

while(exec('>1 dir'));

Earlier suggestion by @manatwork 30 bytes:

while(file_put_contents(1,1));

NOT TESTED (no php available on this computer) 43 bytes:

for($a=fopen(1,'w');fputs($a,1);fclose($a))

A golfed original 45 bytes:

$a=fopen(1,'w');while(fputs($a,1))rewind($a);

My first post here, joined because I just had to try this out: as long as file write succeeds, rewind file pointer to start.


Just can't get smaller than the file_put_contents().

deleted 2 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7
Loading
added 62 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7
Loading
added 303 characters in body
Source Link
diynevala
  • 191
  • 1
  • 7
Loading
Source Link
diynevala
  • 191
  • 1
  • 7
Loading