Help needed - How to run project ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help needed - How to run project ?

Postby smolar22 » 24. June 2013 14:25

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
'; ?>
'?>
"
smolar22
 
Posts: 3
Joined: 24. June 2013 14:16
Operating System: Windows 7

Re: Help needed - How to run project ?

Postby smolar22 » 24. June 2013 14:38

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
'; ?>
'?>
smolar22
 
Posts: 3
Joined: 24. June 2013 14:16
Operating System: Windows 7

Re: Help needed - How to run project ?

Postby Altrea » 24. June 2013 15:55

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Help needed - How to run project ?

Postby smolar22 » 25. June 2013 08:11

thanks,
Smeone told me that there should be some changes in PHP.INI in XAMPP
Do you know where I can do that ?
smolar22
 
Posts: 3
Joined: 24. June 2013 14:16
Operating System: Windows 7

Re: Help needed - How to run project ?

Postby Altrea » 25. June 2013 09:52

You could reduce the error reporting level, but thats not what everybody would call clean programming.
So i wouldn't recommend that.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 80 guests