i have made some pages in windows and tested in easyphp1-8 ... which is running sucessfully in easyphp...
intregrated with mysql database .....
1) will these codes work on linux ....?
The main problem is
where do i put these files ..which is inside html folder now inside www
where do i put that students database which is inside data folder in mysqlfolder in easyphp folder..now
and those mysql_connect.php files which is in www now....
my all pages use require_once('../"mysql_connect.php")
it is one step above the code files (php files)....
i ran the code in linux (register.php) but it says undefined...function or something
escape.....
those escape function is not recognised....
it is said that mysql , php,apache are running when i see status...in linux....
what ammenment is to be made
i am all confused ....var/....and all...
i have posted it here as all mysql ...php ...linux are open source
any open source expert here....
the path the files has is in that require......mysql_connect.php....
so i can make the code work...
thanks for help
saha
i am confused about where to put files in linux folder so as it will work as it is doing in windows(easyphp1-
by the way i am using redhat 9 and the files are made in easyphp1-8 so will it be compatible...?
compatibility and file location from win to linux...
Moderator: General Moderators
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
i am using easy php 1-8 now under windows,all files are working finedude81 wrote:Easy-php files??
its not clear, can I know did u create the databaes in mysql for ur students, whether your directories are configured through apache i.e did u define your website your running in apache?? and few more details of how your running this application.
the files are under html folder which is inside www folder....in easy php
My database file are in mysql(inside data folder) folder inside easyphp folder....
i made database(tables) in mysqladmin
now,
i am planning to move to linux (redhat 9)
i have installed every thing apcahe is running so is mysql server
now my query is
will my files work in linux which were made in windows.
Especially database and tables ..it is said that it need to be exported and imported ....
how can i do it...
next important thing
what should be location of files in linux
a)which are inside www folder
b) which are inside html(inside) www folder..
and database files(inside mysql folder)
and if i remake all the database folder in linux
will it solve my problem.....
any help
rami
Rami, I have only switched to the Ubuntu distro and had about the same problem as you - but believe it or not, it's easily solved.
What I'd recommend you to do, is check out XAMPP, from ApacheFriends.
It's a complete pre-configured Apache server with MySQL and PHP5 installed.
Checkout ApacheFriends for further information.
What I'd recommend you to do, is check out XAMPP, from ApacheFriends.
It's a complete pre-configured Apache server with MySQL and PHP5 installed.
Checkout ApacheFriends for further information.
thanks for answerpilau wrote:Rami, I have only switched to the Ubuntu distro and had about the same problem as you - but believe it or not, it's easily solved.
What I'd recommend you to do, is check out XAMPP, from ApacheFriends.
It's a complete pre-configured Apache server with MySQL and PHP5 installed.
Checkout ApacheFriends for further information.
but any way i didnt get the thing how is going to solve the problem...
i have apcahe,mysql php already running in linux
as i can run pages ....
problem is just transferring files that are working in windows to linux
do you mean that i can download that software and i can just copy paste files as i have even ftp from windows to linux and
my php files connected to database will start working
please can you some what descriptive
thanks for answer
i visited the site seems like its LAMPP SOFTWARE ....Is it same like easyphp for windows..
thanks for answer
rami
i have heard that database made in win should be remade in linux or imported exported...
By the way the solution is veryeasy here.
All u need is to set up a phpmyadmin in one apahce root path i.e under yoursite documents
then just export through phpmyadmin all the folder of mysql through it, it will return with .sql file.
then just run this command on command prompt
mysql -u(user) -p<file.sql
it will prompt here for password
just enter the password
that is it all the tables and structures will be created in few seconds
and rest all php files put in the document root i.e www folder, everything should work fine
All u need is to set up a phpmyadmin in one apahce root path i.e under yoursite documents
then just export through phpmyadmin all the folder of mysql through it, it will return with .sql file.
then just run this command on command prompt
mysql -u(user) -p<file.sql
it will prompt here for password
just enter the password
that is it all the tables and structures will be created in few seconds
and rest all php files put in the document root i.e www folder, everything should work fine