The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Some Questions, I need help!
Rating  3
The-Shadow
post Sep 20 2013, 05:50 AM
Post #1


Novice
**

Group: Members
Posts: 21
Joined: 20-September 13
Member No.: 19,759



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)



This post has been edited by The-Shadow: Sep 20 2013, 06:20 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 20 2013, 10:59 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
The-Shadow
post Sep 20 2013, 11:11 AM
Post #3


Novice
**

Group: Members
Posts: 21
Joined: 20-September 13
Member No.: 19,759



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 20 2013, 03:38 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 21 2013, 03:40 AM
Post #5


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Apparently, it *is* possible. Search for "run xampp from usb".
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
The-Shadow
post Sep 22 2013, 08:54 AM
Post #6


Novice
**

Group: Members
Posts: 21
Joined: 20-September 13
Member No.: 19,759




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


This post has been edited by The-Shadow: Sep 22 2013, 08:57 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 22 2013, 11:20 AM
Post #7


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 22 2013, 12:33 PM
Post #8


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I think you should use the IP address of the computer. I had to do that too on the localhost server on my Mac.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
The-Shadow
post Sep 26 2013, 09:02 AM
Post #9


Novice
**

Group: Members
Posts: 21
Joined: 20-September 13
Member No.: 19,759



please read my post before replieing? i dont have problems with connecting to that fking database
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 08:05 PM