WebSite X5Help Center

 
Santhoshkumar G.
Santhoshkumar G.
User

How to add php script in 9 version  en

Autor: Santhoshkumar G.
Visitado 6558, Seguidores 2, Compartilhado 0  
Tags: script

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

Publicado em
11 RESPOSTAS - 1 CORRIGIR
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

Ler mais
Publicado em de Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autor

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.

Ler mais
Publicado em de 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

Ler mais
Publicado em de Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autor

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.

Ler mais
Publicado em de 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

Ler mais
Publicado em de BmT 3000
Santhoshkumar G.
Santhoshkumar G.
User
Autor

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.

Ler mais
Publicado em de Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Autor

please let me know how to add iframe in x5 9

Ler mais
Publicado em de 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

Ler mais
Publicado em de Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Autor

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

Ler mais
Publicado em de Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Autor

working now. thanks

Ler mais
Publicado em de Santhoshkumar G.