Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
04/10/12 08:03 PM (13 years ago)

Using programming languages

Hello everyone, Just some quick questions to those who build the site: 1° Is it possible to use PHP with Buzztouch apps ? I know HTML, CSS, and JS are possible, but what about MySQL, PHP ? 2° Is it possible to add custom code to pages that like Menus (add some JS to show a pop-up .onclick() Thank you
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/10/12 10:25 PM (13 years ago)
Hi, The answer to both is yes, but it depends on how you are using it! PHP is a client-server language, so you would have to make PHP calls to a server running it (like a web server) in order for it to work. But, I have an app I'm working on that loads a web page which is built using a PHP script against a mySQL database. mySQL is basically the same deal...you can access it like you would from an HTML page, but from within your app. mySQL does not run on the device. You can do, I believe, a JS popup in an HTML or Custom HTML/URL screen. Good idea to test to be sure. Ultimately, all the code for you app is completely open and available to be modified in any way you wish. So, if there is something you want to do, Google it, and I bet somebody has done it! Mark
 
Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
like
04/11/12 01:12 AM (13 years ago)
Thank you for your response. For the JS, I meant any other screen than the HTML Screens. For PHP, I looked briefly into it, and it seems you add php into an HTML file, but need to configure Apache, and MySQL for it to work well, is that correct? I know this is asking much, but would it be possible to write a tutorial on PHP and MySQL applied to Buzztouch? I am writing the HTML, CSS, and JS tutorial for Buzztouch already.
 
Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
like
04/11/12 01:13 AM (13 years ago)
For your information, the PHP that I would need to add is for In-app Purchase. A friend has volunteered to write the code, but I need to find how to add PHP to a Screen. Thanks again for the complete answer
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/11/12 09:24 AM (13 years ago)
Hi, I'm not sure how you could add JS to any other screen but the HTML Screens. It doesn't seem to really fit elsewhere, and the code that is used to create the screen itself is either Objective-C (iOS) or Java (Android). So, I don't think you could pepper in some JS and have it still work. The same holds true for PHP. You can create an HTML screen, and use PHP within it, but it would require calls to a server that's actually running PHP. Remember that PHP is client-server, so you need PHP installed somewhere in order to run the commands. But I don't think you can put PHP in the Objective-C or Java. One thing you might check out is something called PhoneGap. That might hold a solution for you. Mark
 
Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
like
04/11/12 05:33 PM (13 years ago)
I will surely look into it. Thank you fir your concern ! Anthony
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.