How to transfer the project to the server [closed] - php

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am new to programming field. The company which I work with has assigned me a task to develop a sample project which contains login of members and a forum. I have developed it using mysql, php and apache server. So my question is "how to transfer it onto the LMS server. Should I transfer the project from the server system itself or can I do it through my pc via internet?" My question may look very simple to ask but I am still in the learning stage. Please help me. Thank you..

You need Internet connection in order to connect target server by FTP.
Also you will need to connect MySQL to push your database dump to server.
You can find more information about deployment strategy here.

To transfer all the files you will need an ftp program and the login information for the ftp server on the LMS server.
And for the mysql it depends, the easiest way is if you have a phpMyAdmin interface for it, mot of the time you can find this # http://thesite.com/phpMyAdmin or trough an admin panel.
Then you copy (or export) you mysql database and import it on the new server.
How you go about this exactly depends greatly from platform to platform.
Hope this helps.
To export mysql without phpMyAdmin: http://www.mydigitallife.info/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial/

Related

Connecting iOS app to a mysql database connected to a website that is currently online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have already created a website with a mysql database. Now, I am attempting to create an IOS app that will connect to the same database that my website "talks to". All of the tutorials I have seen have relied exclusively upon PHP and have walked through the process of creating the database. My website was not written with PHP, so I am completely lost on how I get PHP to help me in this case. I'm new to all this, so I am not sure what information is helpful, but so you know:
The website templates were written in HTML and CSS,
views page (functionality) written in python,
Flask is the microframework, and
pymysql is the ORM
Any pointers in the right direction would be much appreciated.
If you are using Flask then this is how you need to go through - there are other ways, but I would go for this -
Install Flask REST API to expose rest api from your site. You can get the documentation here - http://www.flaskapi.org/
Expose required API's from your website using flash rest api
Consume those API's with your mobile application.
NOTE: Don't ever expose your database directly to client side. BAD IDEA. Always use a middleware, could be php, python, .net - does not matter what it is.

Accessing a PHP Website Source Code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm a PHP beginner. I usually use ASP.NET C# using Visual Studio just developing my own practice unpublished websites.
I have recently be asked to assist with a website using PHP and MySQL.
I have been given the following details to access the code:
host: www.hostname.xx
username: xxxx
password: xxxx
I visited the host site, there is no Log In feature. I downloaded a Platform called WampDeveloper to check if there is a feature to allow you to log in to a server host, but was unsuccessful. It seems to just allow me to create a new website (this may not be the case).
I'm embarrassed to ask, but can anyone offer any suggestions as to how I can use these log in details to view the site source code.
Also, if there is a better Platform for PHP can you let me know, I've downloaded WordPress too.
There are multiple ways you can access the source code - either by directly logging into the server or via FTP client such as FileZilla - you can NOT directly access php code as its executed on the server and not on client side.
You can download FileZilla (an FTP Client) and navigate to the place where all php code is located and download it to your local machine to inspect/modify.
If you are familiar with Linux and Vim you can download SSH Client such as Putty or Cygwin(more complex) and log in to server and edit the files directly on the server.
There is usually no way to directly access the code from web (as there shouldn't be). Instead the usual way is through a FTP connection to the target server.
Uh, this is a newb mistake but, don't be ashamed. If you are just new at this its fine. You need a platform such as FileZilla to connect.
Here is how it should look:
Host: www.hostname.xx User: user2424234 Pass: urpasswordhere Port: 21 [CONNECT]
then you can upload files

Hosting a website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have created a website using xampp(localhost) as one of the project in my college.Now our professor said we have to host it. So i searched for the free hosting websites. I got 000webhost.com as one of the website.I created an account; downloaded FileZilla using which I uploaded all my project folders.
Now I created database on 000webhost.com changing my code accordingly from localhost to server name , root to username; and password.
My Problem is that now how should i create a table for storing data.Because in my actual website ( on my pc using localhost) i created directly using phpmyadmin.
I want to create a single table once and use it again and again for example if a user inputs some details then I need to store their details.
So can anyone please tell me how should i create table directly on 000webhost.com??
Although this question is really off-topic, I am going to answer it anyways.
Your webhost, should -if it supports SQL- provide you with the details for your mysql. So for example, if I had the host host.com, I would connect using their provided data, which could be db.host.com with port 3306. Just put those details instead of localhost to connect.
Then they should have a utility like PHPMyAdmin to manage the database, or you have to get one yourself (there is plenty of SQL managers out there!)
Update: 000webhost apparently has CPanel, on CPanel there should be a MySQL link which takes you to the utility.

connect Android app to MySQL database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I've designed an android app connected to remote MySQL database using PHP for the purpose of inserting data from the app to the database.
Currently I put PHP file in a local server XAMPP but in this case the server has to be always available so the application could work correctly.
Is there any other places to put or upload the PHP file to be online so anyone can test the application without the need for my local Server to be available.
Note that I can not upload it on the same MySQL database server because it already designed before.
Better solution for this is to implement REST interface on the server side. On the Android side it would be just an implementation of HTTP requests (POST,GET,PUT) and data interpretation. There is no need to use any database connector on the client side.
For the implementation of REST client I would strongly suggest using Volley library(by Google).
Well, I believe what you need is a server that supports PHP. There are many out there. If you are after a free solution, that you can test and people can use at the same time, suggest you , 000webhost.com. I cant say they are amazing etc, but they have what you need. You can send your requests there and allow php to CRUD to mysql DB.
You can use WAMP sever on your system(PC or laptop) and put it online as shown. Just you have to do is to replace the IP from 'localhost' to 'xxx.xx.xx.xx' in your database connection file.
However, if you want your server available for 24 * 7, you can use some free web hosting services like 000webhost.com (and many others. search on google). They give some free space for hosting sites and apps with back end having PHP.

My first vps! Where to start? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I just got my first vps which i will use for an online game. However, I have only worked with normal webhost so far (with control panel, mysql, php, phpmyadmin already installed), and I have no idea what to do now. The only thing I have is the ip adress, username and password to the vps.
I would like to have some kind of control panel to login to see some stats, phpmyadmin to control the mysql database, and the ability to upload and store the .php files thats talks with the mysql db. I read a little about LAMP (apache), is that good?
Where do I start?
Many thanks
VPS os is debian 6.
Im using a mac
Linode library and Slicehost articles are good places to start.
perhaps check out webmin (http://www.webmin.com/) for a control panel, and howtoforge (http://www.howtoforge.com/ubuntu_debian_lamp_server) - there are tons of tutorials out there to get you started (google is your friend), and no one simple answer. NARKOZ suggestions are very good too.

Categories