Page 1 of 1

Help needed - How to run project ?

PostPosted: 24. June 2013 14:25
by smolar22
Hi,
I got project done in XAMPP but I am the beginner in that and neet to finish it later.
I have one folder with files php and one .sql file
I put all to htdocs but it is not running ok . A lot of problems as below?
How can I create ? import db to run it correctly ?
Also I can see different font ( I have local in PL ) but I cannot see it correctly on www.
Can you help ?

"
Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\milion3\global.php on line 8

Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\milion3\global.php on line 8

Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\milion3\global.php on line 9

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\milion3\global.php on line 31

Notice: Undefined index: x in C:\xampp\htdocs\milion3\index.php on line 36

Notice: Undefined index: y in C:\xampp\htdocs\milion3\index.php on line 37

Notice: Undefined index: c in C:\xampp\htdocs\milion3\index.php on line 43

Notice: Undefined index: takenx in C:\xampp\htdocs\milion3\index.php on line 43
'; ?>
'?>
"

Re: Help needed - How to run project ?

PostPosted: 24. June 2013 14:38
by smolar22
Hi ,
Npow I did it , but I have errors like that:
Notice: Undefined index: x in C:\xampp\htdocs\milion3\index.php on line 36

Notice: Undefined index: y in C:\xampp\htdocs\milion3\index.php on line 37

Notice: Undefined index: c in C:\xampp\htdocs\milion3\index.php on line 43
'; ?>
'?>

Re: Help needed - How to run project ?

PostPosted: 24. June 2013 15:55
by Altrea
Hi,

To get rid of the undefined key messages, check if the array key exist before you use it.
Relating php functions are isset() and empty()

Best wishes,
Altrea

Re: Help needed - How to run project ?

PostPosted: 25. June 2013 08:11
by smolar22
thanks,
Smeone told me that there should be some changes in PHP.INI in XAMPP
Do you know where I can do that ?

Re: Help needed - How to run project ?

PostPosted: 25. June 2013 09:52
by Altrea
You could reduce the error reporting level, but thats not what everybody would call clean programming.
So i wouldn't recommend that.