Config vraagje.

Gestart doorMarvinn12 reacties23 weergaven

13 berichten · pagina 1 van 1

Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ziet iemand in deze config een fout/idee hoe hij sneller kan worden?

[COLOR= #0000BB]<?php
$mysql_host[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// dit is meestal localhost[/COLOR]
[COLOR= #0000BB]$mysql_user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"-"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// voer hier je username van mysql in[/COLOR]
[COLOR= #0000BB]$mysql_password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"-"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// voer hier je mysql wachtwoord in[/COLOR]
[COLOR= #0000BB]$mysql_database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"-"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// hier vul je de naam van je database in[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql_host[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$mysql_user[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$mysql_password[/COLOR][COLOR= #007700]) ==[/COLOR] false [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql_database[/COLOR][COLOR= #007700]) ==[/COLOR] false[COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/include"]include[/URL]    [COLOR= #007700]([/COLOR]    [COLOR= #DD0000]"noconnection.php"[/COLOR]    [COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]();
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql_host[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$mysql_user[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$mysql_password[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql_database[/COLOR][COLOR= #007700]);
}[/COLOR]
[COLOR= #0000BB]$var[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"ja"[/COLOR][COLOR= #007700];[/COLOR]



[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
?>


Want soms is hij erg traag. Ik denk dat het een de config licht maar ik zie geen fout?
0
Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als hier een error/fout in was zou hij dat weergeven.
dus denk het niet.
correct me als ik het fout heb.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oke. Maar is er nog ene optie om hem sneller te maken?
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
op een snellere host zette?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb gewoon host bij one2xs maar soms is hij erg sloom.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
dan weet ik het niet
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
yummie
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Misschien moet je je querys na checken.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En hoe gaan we dat doen?

Van MYSQL snap ik niet erg veel.
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je query´s nalopen voor bijvoorbeeld SELECT *

dit maakt namelijk querys trager dan als je SELECT `kolom1`, `kolom2` etc doet.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nickjexx schreef:
En hoe gaan we dat doen?

Van MYSQL snap ik niet erg veel.
We? emo
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe weet je zo zeker dat het aan je config ligt?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Geen idee yummie Dat DENK ik
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren