Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to create a simple PHP file ?
danytothetowers
New
¿How Can I create a simple php file on my forum? I tried to create it but when I try to access from web I got 404 error, I checked many times as I can and found that the location is 100% correct but accessing from web It throws me an error
That PHP file needs to have just and href tag
Somebody can help me??
0
Comments
You don't access a php file as you do an html file. Maybe you need to create an html file ?
A php file with access is called a view, however it is more complex than html because you are dealing with php code.
Your question should be : "How do I create a view I can access with a url ?"
In that case you need to look at plugins like Extra Page , or PrivacyNotice , Or VChat , Or any other plugin which renders a view other than your main discussions template.
Post the php file you created. We can't guess what you did…
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
You can create a fresh new page on your forum by a simple plugin;
Create a folder named e.g. spf (simple php file)
In that folder create a file named default.php in which you put this code:
Now create a new folder named: views ( in the spf directory)
In the views folder you create a file named spf.php in which this code:
Access your page by : http://yourforum.com/spf