Skip to content
← Back to Community
Is there anyway to actually use PHP?
Profile icon
codingjlu

PHP is practically useless if you can't edit php.ini. Can we do that pls??
@amasad
IDK who else to ping

Voters
Profile icon
codingjlu
Comments
hotnewtop
Profile icon
haroldsikkema

I was able to set up PHP 8 with extensions and php.ini capability using Nix. https://replit.com/@haroldsikkema/PHP-Development-Environment I hope it is useful to you. Let me know if it works out.

Profile icon
VulcanWM

Try making a php repl

Profile icon
codingjlu

@VulcanWM pfp?? You mean PHP right? I can't even find the php.ini in any directory...

Profile icon
VulcanWM

yeah literally click on the + button at the top right hand corner of your screen on repl.it, and then enter PHP for the language, and whatever name you want the repl to have, and then click create. Then you should be able to edit your PHP repl @codingjlu

Profile icon
codingjlu

@VulcanWM huh I've already done that. What I want is to edit the php.ini file. (Do you know what that is?)

Profile icon
VulcanWM

when i create a php repl the main file is only main.php or index.php depending on which type of the lang i'm making the repl @codingjlu

Profile icon
codingjlu

@VulcanWM ok. Do you know what php.ini is?

Profile icon
VulcanWM
Profile icon
codingjlu

@VulcanWM oh ok. php.ini basically controls what you can do and allows you to use libraries or upload files or write to files and almost everything that PHP can do (it's mostly disabled)... and yes PHP is practically useless if you can't edit it (AND HTACCESS TOOOO)

Profile icon
VulcanWM

oh
i used php in this repl: https://replit.com/@VulcanWM/Forum
and it worked properly @codingjlu

Profile icon
codingjlu

@VulcanWM to an extent. But when it comes to libraries, no. There are limitations.

Profile icon
VulcanWM

oh well i guess i cant help you, sorry for wasting your time @codingjlu

Profile icon
codingjlu

@VulcanWM no thanks for your effort.