WebSite X5Help Center

 
Santhoshkumar G.
Santhoshkumar G.
User

How to add php script in 9 version  en

Autore: Santhoshkumar G.
Visite 6870, Followers 2, Condiviso 0  
Parole Chiave: script

how to add php script. I wanted to add php scrit in a page but unable to do it. please guide me.

Postato il
11 RISPOSTE - 1 CORRETTO
Incomedia
Michele C.
Incomedia

Hello,

In order to make use of custom PHP code inside a page you need to:

  • change the extension of that page to .php in step 2 -> page properties -> expert tab 
  • paste your PHP code inside the HTML & Widgets object

Hope this helps

Leggi di più
Postato il da Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autore

tried but not working. please do something. atleast give an option to include php. Please think seriously on this as most of users will benefited with this.

Leggi di più
Postato il da Santhoshkumar G.
Incomedia
Michele C.
Incomedia

Hello Santhoshkumar,

It should work, what error do you get? Could you please expain the steps you take in order to reach the result? thank you

Leggi di più
Postato il da Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autore

The script calculates horoscope. we ned to give input like date, time etc... after submitting it shows birth chart. I have pasted total sctipt in html widget. it dispayed form, but after submitting, nothing coming.

Leggi di più
Postato il da Santhoshkumar G.
BmT 3000
BmT 3000
User

You have to change the extension of the page where the HTML widget is installed.

As Michele told you above: 

Go in step 2, select the page that holds your HTML widget, click on the Page Properties icon, click in the Expert tab, and change the File name format from the default Html to php.

Save and export.

It should work.

Php code will run in php pages...

B

Leggi di più
Postato il da BmT 3000
Santhoshkumar G.
Santhoshkumar G.
User
Autore

I have did that one also, no use. Main problem is websitex5 not changing the code in to php if we change extension, only extension changing, not the html source code, 2nd thing is if we use html widget, its becoming like frame, which is not fitting in site properly and looking ugly. why dont you work on this. this is a major problem with x5. coming to php issue, i am attching the file, you check it yourself, and then give me the solution. you need to run this on localhost or online to see result. it contains 2 files, 1 php and other exe to run the php file. plz put these 2 in same folder. I need to fit that php file with my new x5 site.

Leggi di più
Postato il da Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Autore

please let me know how to add iframe in x5 9

Leggi di più
Postato il da Santhoshkumar G.
Incomedia
Michele C.
Incomedia

Hello Santhoshkumar,

you can use the Html & Widgets object in order to use your custom code, hence you can use it for adding iframe also.

Hope this helps

Leggi di più
Postato il da Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autore

no use, tried with iframes also, not working. Please try with files i have sent to you, then you can understand the problem.

Leggi di più
Postato il da Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Autore

working now. thanks

Leggi di più
Postato il da Santhoshkumar G.