Hey guys,
I need some help.
1. Can you download XAMPP on usb stick?
2. Howlong is download time?
3. How to prevent losing your databases. Can i copy it to hard disk (And information in the database, so ill need to update it when people register)
1. Look up the size of the XAMPP download file for your OS ( http://www.apachefriends.org/en/xampp.html ). Then see if you have enough space on the USB stick to put it there. I suppose you don't mean to install it on the USB stick.
2. That depends on your connection speed. I have a very fast cable connection, so it will d/l fast. Surely it's slower on a ADSL.
3. Using PhpMyAdmin ( http://www.phpmyadmin.net/home_page/index.php ), you can export the databases for back-up.
1. I will install it on an usb will it work on other pc's
2. i got fast internet, like if i surf to a website it loads instantly what is max time cause its not like a hour or something?
3. if my host ban me or something i dont want to lose my databases
Someone is hosting your USB stick?
I don't know if you can get all of that to run off an USB stick, but probably someone has managed to do so... I'm curious about why you want to do it though.
Apparently, it *is* possible. Search for "run xampp from usb".
Already installed it and it works, but know i got a new problem:
Notice: Undefined variable: username in I:\xampp\htdocs\index.php on line 11
Notice: Undefined variable: password in I:\xampp\htdocs\index.php on line 11
There is something wrong in this code:
<?php
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("members") or die(mysql_error());
if (!$username && !$password) {
echo "<p style= 'text-align: right'><strong> Welcome Guest! - <a href='login.php'> Login </a>| <a href='register.php'>Register </a></p></strong>";
}
else {
echo "<p>Welcome $username!</p> <a href='logout.php'> Logout </a>";
}
?>
What i want is to display his/her username and logout if that person is logged in or else welcome guest login or register, if u got a better code without problems please post it
The problem is NOT in selecting database/connecting to host
I think you should use the IP address of the computer. I had to do that too on the localhost server on my Mac.
please read my post before replieing? i dont have problems with connecting to that fking database
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)