Embeded PHP/MySQL Implementation - php

I'm writing a voting app for my school using PHP/MySQL. I've currently tested it on a WAMP server and everything is working.
The central PC to be used is already running WAMP. This will make my app vulnerable since the root admin can just enter the database and change values.
I found out that I can package it as an app that has its own embedded PHP/MySQL. I found one solution called Klone, but that is only for linux. I'd want to be able to do this in windows
Any ideas?
Thanks

I've found a solution that implements a new php/mysql stack as a standalone app independent of the existing stack. http://www.server2go-web.de/

Related

Yii2 on Windows Server 2012r2 VM

for a client who has got windows server2012R2.
He want some project to be done regarding doctor and patient appointment etc., which I can do in Yii2, but am not sure, whether the same can be installed on windows server2012R2.
So anyone knows that it will work smoothly then I can accept the project else will deny it.
First, install a WAMP environment in this platform, and then check the Yii requirements check tool with php requirements.php from the root directory of the project. By reading in the Yii forum (https://forum.yiiframework.com) you will find a lot of people running Yii2 apps on Windows. I'm 99% sure it should work as everything Yii depends on is multi platform.

How to setup web application created in PHP (with Xampp)?

I have created an administrative system for libraries which basically lets you register books, users, borrowings and all kind of stuff that happens in a library. To code and test it, I used XAMPP, in my own PC, using Apache PHP and MySQL to structure and develop the application.
It works, and has a very complete and efficient set of functions and utilities, that is why I plan to implement it in my school's library, that for years has been using Microsoft Excel as a tool to organize all the books and students.
The thing is: I don't understand how to setup this app as a local web application. The idea is to install the folders and files in the library computer so it can control the system locally and through a browser (using localhost to access the PHP application).
I know it is possible to simply install XAMPP manually and copy the folder to htdocs and then use it normally, but I want to eliminate the manual part, and have some sort of setup that lets any person install the app without having to understand how Apache or MySQL works.
Does anybody know what could I do? I have though of creating a series of batch files (the library PC uses Windows) and move folders, create shortcuts, etc. using normal cmd commands. It would be a better alternative, but still the user would need to go through XAMPP (or some other service) setup prompts.
Thanks very much
you can create a bash file to automate this process.

Upload my php project files to use with google cloud AppEngine

I've spent 10+ hours yesterday reading up about / testing tutorials with google cloud and how I can use them as a host for my dynamic website.
With all of the new information in my head, I'm scrambled on what to do.
I already have my Virtual Machine Instance built with an IP that links to my domain, this works fine. However, I cannot for the life of me figure out how to put my project files on there. I figured it would have been something like "upload project files", "link with appengine", "link with cloud sql", but it seems like I was wrong?
In the tutorials, I uploaded googles sample projects (tutorials) by cloning a github link in the shell.
git clone https://github.com/GoogleCloudPlatform/getting-started-php.git
They also said a zip file could be extracted as an alternative.
Are those the only way of doing this? Should I create my own github and cone it in the shell?
Is it possible to link an AppEngine with a bucket that has my project files on there? (just throwing the question out there)
bonus question: once the files are uploaded, am I able to edit/develop through google cloud or do I need to edit changes in my files, then re-upload it to the cloud as an update?
This is my first time trying to have google (or any company) host my website, and this is completely foreign territory for me so any direction is much appreciated.
there are couple things mixed up in your question. Let me try to untangle them.
You don't need to create virtual machine if you want to run your PHP powered website on App Engine. There's a great overview in this article https://cloud.google.com/appengine/docs/standard/php/an-overview-of-app-engine
The way you run your PHP website on App Engine is by deploying your code to the version, you can do it using gcloud app deploy tool from your sources on your local machine. I recommend you to start by going through tutorial on here: https://cloud.google.com/appengine/docs/standard/php/quickstart
There's currently no way to link Google Cloud Storage bucket with App Engine version, you have to deploy your code yourself using either gloud app deploy or using App Engine Admin API that gcloud is using internally.
There's no way to edit your App Engine application code in the cloud.

wordpress website server configuration local system

I would like develop and test my wordpress website on windows xp system.I'm unable to set Wordpress in my system, please help me to find a suitable phpmysql server which supports wordpress on windows xp. I've already used uniserver, phpmyadmin, and esy php but they are not worked well.I am new to this and any help will be appreciated
Thanks
You can try Xamp, Wamp for windows, and if you already have prebuild wordpress then you have to make sure that the migration is done properly.
For migration there lots of plugin available to that use one of them.
Or just change the host file with same domain name, so that you can test your wordpress site without any migration burden.
Bitnami wordpress is a very easy way to get set up on windows. It comes with the whole stack to get you set up and is installed in just a few minutes without any command line usage. https://bitnami.com/stack/wordpress

How multiple developers can work on a single Moodle project?

I am new to software development, working on creating a Moodle LMS project. I have already installed XAMPP and working on Moodle. But I have another 5 team members working on the same Moodle project.
As XAMPP is installed on everyone's computer, we are working separately. But I want to know how all we 6 developers can work in a team to develop a project. How can I go for making the network configurations? Do I need to share the XAMPP folder to all other team members in to work as a team?
As Moodle already uses git for core development, that would certainly be your best bet for coordinating the code between multiple developers. See https://docs.moodle.org/dev/Git_for_developers for more details (although that is a bit more focussed on contributing back patches to Moodle core).
Sharing the data is more difficult, but in my experience it usually works OK for each developer to work with their own Moodle install, with a central install for testing (and make sure each developer uses the xmldb editor to define install.xml + upgrade.php steps, so that the other developers can pull the latest code from them and the database definitions will be upgraded properly).
Use any flavor of source distributed version control system, like git or subversion.

Categories