Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ Some Questions

Posted by: The-Shadow Sep 20 2013, 05:50 AM

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)


Posted by: Frederiek Sep 20 2013, 10:59 AM

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.

Posted by: The-Shadow Sep 20 2013, 11:11 AM

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

Posted by: pandy Sep 20 2013, 03:38 PM

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.

Posted by: Frederiek Sep 21 2013, 03:40 AM

Apparently, it *is* possible. Search for "run xampp from usb".

Posted by: The-Shadow Sep 22 2013, 08:54 AM


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

Posted by: Christian J Sep 22 2013, 11:20 AM

CODE
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:

CODE

$username='foo';
$password='bar';
mysql_connect("localhost", $username, $password);



CODE
if (!$username && !$password)

If these variables are not defined I think you get a notice about the above.

Posted by: Frederiek Sep 22 2013, 12:33 PM

I think you should use the IP address of the computer. I had to do that too on the localhost server on my Mac.

Posted by: The-Shadow Sep 26 2013, 09:02 AM

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)