Make public another folder than public_html

Hello ! I have question?
Can I make public folder another than public_html ?

I have got PHP scripts for my android apps.
To this day, I using XAMPP and when I write localhost/scripts/connect.php in my web browser, I have acces to my script.
Can I do this in 000webhost ( example: https://adrianlachowicz36.000webhostapp.com/skryptyPHP/connect.php ) ?
I am beginner in 000website.
Please, help me !

Yeah why not but explain again please

I have got scripts in PHP.
I make new folder on server for this.
I must get script using URL. To this day, I write in URL bar this: localhost/scripts/connect.php
What I must write to get this script from server.
When I write this: https://adrianlachowicz36.000webhostapp.com/skryptyPHP/connect.php this isn’t working.

Screenshot your public folder

I must make public folder marked 1

So rename public_html to something else
Then rename the PHP folder to public_html?

Or am I still misunderstanding

Hello @Adrian27

You should add all the public folders inside the public_html folder.

As an example,
https://adrianlachowicz36.000webhostapp.com => public_html
https://adrianlachowicz36.000webhostapp.com/skrypty => public_html/skrypty

Hope you got it. If you have any doubt please reply back. :wink:

1 Like

Ok, thanks for help :slight_smile: