Help - Search - Members - Calendar
Full Version: Some Questions
HTMLHelp Forums > Programming > Web Server Configuration
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 ( ). 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 ( ), 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? wacko.gif

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:

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
Christian J
mysql_connect("localhost", "username", "password")

The above tries to connect to localhost using the username "username" and password "password". Probably you want to use PHP variables instead:


mysql_connect("localhost", $username, $password);

if (!$username && !$password)

If these variables are not defined I think you get a notice about the above.
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.