Is there any way to code with multiple files on here or does all of my code have to be inline and in a single file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is there any way to code with multiple files on here or does all of my code have to be inline and in a single file?

2nd May 2018, 1:54 AM
Byron Thurman
Byron Thurman - avatar
6 Answers
+ 4
You should get about 5s server time, if PHP matches the other runtimes, then output is effectively only "limited" by the destination webview (your mobile/browser). There's also a server memory ceiling. Rather than an obstacle, I try to think of this as an incentive to focus (reuse, recycle), like it's preparation for embedded systems, hardware-limited mobiles (lots of them out there) and tiny Internet of things devices.
2nd May 2018, 6:05 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
Sadly, you only get one file per language.
2nd May 2018, 2:14 AM
CHMD
CHMD - avatar
+ 1
Don't put too much efforts in vain though for there is an execution time limitation. If your code is heavy, the compiler will throw an error.
2nd May 2018, 2:24 AM
CHMD
CHMD - avatar
0
Yeah I figured out I can put a PHP based website under PHP hopefully all the code such as CSS and js works as this progresses. I can always put it on my webserver but I kind of like doing it in the code builder here for some reason even though it is painfully slower on my phone than my laptop. Although a single file will be a new weird challenge for me. I know it can be done. I used to work at a large website hosting company and interestingly their custom billing system (now deprecated) was completely coded in a single file.
2nd May 2018, 2:19 AM
Byron Thurman
Byron Thurman - avatar
0
Yeah I noticed that when I tried to run a simple PHP info just for my own curiosity... and it came out all kinds of messed up formatting wise and still timed out.
2nd May 2018, 2:29 AM
Byron Thurman
Byron Thurman - avatar
0
The first time it timed out the second time it output a partial page without proper formatting.
2nd May 2018, 2:29 AM
Byron Thurman
Byron Thurman - avatar