PHP andHTML

  • 2
  • Question
  • Updated 4 years ago
  • Answered
i know i can use html in my site but can i also use php?
Photo of annoyer707

annoyer707

  • 294 Posts
  • 7 Reply Likes
  • happy

Posted 10 years ago

  • 2
Photo of Adrienne

Adrienne

  • 106 Posts
  • 5 Reply Likes
Hi annoyer707,

That is a very good question. Unfortunately, I must tell you that you cannot upload a .php file to the File Manager of your SynthaSite website.

Also, currently we do not support inserting php code (to an HTML widget) as it might break the system during design time.

(The only way around this is if you decided to host the website yourself, downloading the files and deploying them on your own web server.) Something that I don't necessarily recommend doing, see below. **

** For the benefit of others who may be reading this post: Please note that if you elect to host your site elsewhere, we can only support you with the process of creating your site, and downloading it. Thereafter all support relating to the hosting of your site will become the sole responsibility of your service provider.

Thanks for asking the question, as I'm sure many other more advanced SynthaSite website creators have wondered the same thing....

~ Adrienne
Photo of annoyer707

annoyer707

  • 294 Posts
  • 7 Reply Likes
ok then thanks
Photo of Adrienne

Adrienne

  • 106 Posts
  • 5 Reply Likes
keep on asking the great questions... !
Photo of marc

marc

  • 6 Posts
  • 0 Reply Likes
PHP can be read by search engine spiders, and give you way advantage for promotions.
You should support this.
Photo of mironenko.sp

mironenko.sp

  • 5 Posts
  • 0 Reply Likes
PHP is a widely-used general-purpose scripting language that can be embedded into HTML. It generally runs on a web server and creates web pages taking PHP code. It is also used for command-line scripting and client-side GUI applications. It works on most web servers, operating systems and platforms free of charge. PHP can be used with many relational database management systems. Now it functions on more than 20 million websites and 1 million web servers.
PHP can be compared to a filter as it takes input from a file or stream containing text and/or PHP instructions and outputs another data; HTML is the most common output. It can automatically identify the language of the user.
One who has ever created any HTML page or started dynamic web programming, has already met with forms. Forms are special components which allow the site visitors to add information on the HTML page.
A php form on a web page allows a user to enter data that is sent to a server for processing. For instance, almost each company web site contains a contact form, so that visitors can send a message to the site owner. Such a contact form usually contains several fields - for the visitor’s name, for the email address and one for the main message. PHP forms resemble paper forms because internet users fill out the forms using checkboxes, radio buttons, or text fields. For example, the forms can be used to enter shipping or credit card data to order a product or can be used to retrieve data.
When dealing with HTML forms and PHP it is necessary to remember that any form element in HTML page will automatically be available to the PHP scripts.
Look to php tutorials
Photo of Razor27

Razor27

  • 3 Posts
  • 0 Reply Likes
Of course you can. If you are interested in php I can suggest you a great free tutorial which is php tutorials.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Razor27

Thanks for the PHP tutorials links. However, please note that with Yola, PHP scripts is not possible.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Why are the pages .php? Like index.php? I rather have it index.html or al of the pages with a .html extension.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hi Nathan

We build our Sitebuilder with PHP so the pages need to end with .php.

I hope that answers your question.
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
I just need to know why in the world would php harm or break the system during design time. Why don't you make it so php scripts only work on the site and not it the sitebuilder?
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
You can answer technically, i will understand what you are saying.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi Kevin, I just set up an upload file thing with php on another site and it works! So you can upload any file and it will upload to the uploads/ directory on the site! Just, I can't use it on my yola site because it wont upload to the resources folder without php. Here is a page with the upload file thing: http://pauljohnsonphotos.com/upload_f...
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
I like your idea though.
Photo of Kevin

Kevin

  • 475 Posts
  • 29 Reply Likes
I know, but you made that from scratch and you are hosting it with godaddy.
I mean can we do that with yola.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi, we can't do that with yola. That is what I want to do. But there isn't php in Yola. But, you can make the files upload to another free hosting account some where and have the upload form on a page on your site
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Kevin

I will ask one of our engineers to answer why this is php is not possible. Thanks for your patience.
Photo of Nicholas Finch

Nicholas Finch

  • 1 Post
  • 0 Reply Likes
PHP isn't possible because PHP is already the basis in which the pages on YOLA are created, if you create another php file it may interfere with existing source code or variables that are in the main php file.
Photo of Trey Jenkins

Trey Jenkins

  • 1 Post
  • 1 Reply Like
You Are Able To Use PHP BUT You Need To Put Your PHP File On Another Website That Supports PHP And Then Use A Iframe On Your Yolasite
Iframe Example