What is the best way to change the current ROOT folder of a core PHP application dynamically. The purpose is for changing the application version based on the user choice. This is similar to changing the current UI and basic HTML version UI in GMAIL. We have a new UI of the current application and we need to switch it from current to new using a switch button. The entire new application is in a separate folder. Any suggestion greatly appreciated.
Thanks.
Not tried anything yet.
Related
I'm a newbie to web development. I'm using the directory listing tool provided by http://www.directorylister.com/. However, I managed to make a few tweaks here and there, however, I'm stuck here.
I need to create the following 3 buttons that do the following:
Create directory: This will create a directory(I get an option to name it before creation) in the current path I'm in. Current path/directory is mentioned at top left.
Upload file: This will give me the option to upload files current directory I'm in.
Sync: This will basically just run a bash script I have made.
I managed to create buttons using Create Directory , however, I was facing issues making it work right.
Any kind of help would be really helpful.
Regards,
Rohan Dsouza
I am sorry for this such question as I am still a fresh beginner in Phonegap.
I have followed some tutorial both for the installation and the jquery.mobile usage.
There are some parts (the biggest part) that I am confused with this Phonegap. And it is about the directory structure.
I am working with Private PHP Framework from my department, that is why I used Lamp Stack for all of this.
However, with the Phonegap tutorials I have been following this far, it looks like it have a little bit different environment structure from usual. It have five default directory as follows:
Hook
platforms
Plugins
www
In where the working directory for this Phonegap must be in the www directory.
It makes me afraid because our Apache Environment require us to put the directory in costume folder (Not in var/www), and then also the PHP Framework require us to put the module in a specific folder.
Please, I just need an enlightment for this Phonegap, how do you access the files and where do you guys put it.
Many thanks in advance.
As requested:
Create another vhost that points to www. You don't need to worry about hook, platform and plugins which are cordova/phonegap folders. Let them all at the same level (don't change the structure, just point the vhost to www).
The structure of cordova/phonegap is simple. Inside the www folder will be all your programming logic to build yours mobile app.
But beware, the cordova/phonegap does not compile code in PHP, it just uses a webview (like a browser) to run your mobile application developed with HTML, CSS and Javascript, packaged in a apk with access to native features of the smartphone/tablet, basically.
To make your application to communicate to the server in php you have two alternatives:
1) Making your app to access a URL that points to the application
developed with PHP and render its application in webview.
2) Create all purely on HTML, CSS and Javascript and make
communication via ajax, or socket or something similar to the server.
Good day, I would like to know if there is a way to run a php application within the moodle LMS.
Prior to implementation in php, the information was in the form of static html documents, which were simply uploaded into folder and accessing the files gave the appearance of a site hosted within moodle.
Can such a functionality be replicated using PHP files that require service processing for desired features.
If not what are the best options for giving users a similar experience.
thanks
You can use plugins(Blocks or Module) to develop applications within Moodle. The pre-condition is that you need to follow Moodle programming guidelines to create a plugin.
More details here:
http://docs.moodle.org/dev/Modules
http://docs.moodle.org/dev/Blocks
However, you need to decide whether you need a Block or an Activity Module and it can be determined only after seeing the requirements.
I am new to PHP (have been a Java guy all my years :-) but understand the basics of it. For an existing application on which I need to fix some bugs, I need to import it into XAMPP.
I tried putting all the application folders (and files) into the htdocs folder of XAMPP. However, that does not work. The server does list the new project when I navigate to "http://localhost" but when I click on my project (that I copied), the index.php page fails to come up. It simply says page not found.
I would like to know a couple of things as listed below...
1) Is there something wrong I am doing for the project to be hosted on XAMPP?
2) One peculiar thing that I noticed was that when the application browses to http://localhost/MyProject/index.php , it gets redirected to http://www.localhost/index.php . Is there a URLRewriter (or kind) which is doing this? If yes, where I can find the same within my project?
3) How can I identify the framework that the existing code is using? I can see M-V-C named class.php files
Any pointers would be much helpful for me to start debugging and learning PHP.
Thanks!!
In drupal, it's possible to create a "build", also known as "install profile" or "distribution" that basically combines several modules and your settings for them. So the next time you setup the same exact site, you don't have to re-configure all the modules.
Does Joomla have a similar concept, and what is it called? Please reference documentation as well if possible.
The concept is very simple - you just need to get a clean installation, install all the extensions you want and configure them the way you need.
Then it is enough to copy the files and the database to a new location and change the settings in the configuration file (configuration.php). That is all.
It is a very simple process and can easily be automated with a simple php script. I once did an asp.net app which was deploying new installations of joomla within seconds.
You could try something like http://www.akeebabackup.com/
This allows you to take a snapshot of a site and export it anywhere.