Welcome, Guest
Username: Password: Remember me

TOPIC: PHP automatically commented out!

PHP automatically commented out! 2 years 7 months ago #73893

Hello,
I press the "Source" button, when creating a question, in order to add some php code. Then I press save and preview the page. The PHP code is ignored, and when I re-click "Source" the PHP code is commented out.

How can I prevent this from happening?

Thanks
The topic has been locked.

Re: PHP automatically commented out! 2 years 7 months ago #73894

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
You can't add PHP code at a question or any other text element. That would be a huge security risk!

What are you trying to implement in detail?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The topic has been locked.

Re: PHP automatically commented out! 2 years 7 months ago #73896

Oh I see.. The reason I am doing this, is because I want to use PHP to access a MySQL database. Is there another way that I can do that?
The topic has been locked.

Re: PHP automatically commented out! 2 years 7 months ago #73903

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
yannischris wrote:
Oh I see.. The reason I am doing this, is because I want to use PHP to access a MySQL database. Is there another way that I can do that?
See www.limesurvey.org/forum/development/730...art=20&lang=en#73488

<closed> to avoid further cross postings.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The topic has been locked.
Moderators: ITEd
Time to create page: 0.089 seconds
Donation Image