WebSite X5Help Center

 
Santhoshkumar G.
Santhoshkumar G.
User

How to add php script in 9 version  en

Author: Santhoshkumar G.
Visited 6540, Followers 2, Shared 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.

Posted on the
11 ANSWERS - 1 CORRECT
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

Read more
Posted on the from Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Author

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.

Read more
Posted on the from 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

Read more
Posted on the from Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Author

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.

Read more
Posted on the from 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

Read more
Posted on the from BmT 3000
Santhoshkumar G.
Santhoshkumar G.
User
Author

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.

Read more
Posted on the from Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Author

please let me know how to add iframe in x5 9

Read more
Posted on the from 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

Read more
Posted on the from Michele C.
Santhoshkumar G.
Santhoshkumar G.
User
Author

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

Read more
Posted on the from Santhoshkumar G.
Santhoshkumar G.
Santhoshkumar G.
User
Author

working now. thanks

Read more
Posted on the from Santhoshkumar G.