0

I've been coding in PHP for a few years and feel that ill be able to provide a more secure login and registration with that rather then in Reactjs.

I followed the answer from this post to switch my index.html to index.php.

Hosting the file works fine, but whenever I try to use PHP tags it gets commented out or printed directly as text. Any solution to this?

3
  • 1
    It sounds like your host isn't executing php files but is treating them as text - so the solution is dependant on which webserver you're using - apache, nginx, etc Commented Nov 16, 2018 at 22:02
  • @AdamHopkinson Ofc had to be somethign Ive overseen. Was so busy trying to make them work together I forgot that PHP still require the php libraries from apache. Tried starting only the reactapp. Thanks! Commented Nov 16, 2018 at 22:08
  • You're welcome @Martin! Commented Nov 16, 2018 at 22:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.