Avatar billede thefff Nybegynder
26. november 2004 - 20:33 Der er 9 kommentarer

hvordan slår man Notice fra

je hvordan gør man

med Notice mener jeg fx

Notice: Undefined index: QUERY_STRING in c:\inetpub\wwwroot\mainfile.php on line 23

Notice: Undefined index: QUERY_STRING in c:\inetpub\wwwroot\mainfile.php on line 26

Notice: Undefined variable: HTTP_USER_AGENT in c:\inetpub\wwwroot\mainfile.php on line 28

Notice: import_request_variables(): No prefix specified - possible security hazard in c:\inetpub\wwwroot\mainfile.php on line 51

Notice: Undefined variable: forum_admin in c:\inetpub\wwwroot\mainfile.php on line 99

Notice: Undefined variable: inside_mod in c:\inetpub\wwwroot\mainfile.php on line 102

Notice: Undefined variable: inside_mod in c:\inetpub\wwwroot\db\db.php on line 44

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\mainfile.php:23) in c:\inetpub\wwwroot\mainfile.php on line 182

Notice: Constant _YOUHAVE already defined in c:\inetpub\wwwroot\language\lang-english.php on line 159

Notice: Undefined variable: gfx in c:\inetpub\wwwroot\mainfile.php on line 1165

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Undefined index: HTTP_REFERER in c:\inetpub\wwwroot\index.php on line 26

Notice: Use of undefined constant nohtml - assumed 'nohtml' in c:\inetpub\wwwroot\index.php on line 27

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Undefined variable: file in c:\inetpub\wwwroot\index.php on line 40

Notice: Undefined index: 2 in c:\inetpub\wwwroot\mainfile.php on line 236

Notice: Undefined variable: modpath in c:\inetpub\wwwroot\index.php on line 56

Notice: Use of undefined constant admin - assumed 'admin' in c:\inetpub\wwwroot\mainfile.php on line 191

Notice: Constant _HELLO already defined in c:\inetpub\wwwroot\modules\News\language\lang-english.php on line 73

Notice: Constant _ADD already defined in c:\inetpub\wwwroot\modules\News\language\lang-english.php on line 91

Notice: Undefined variable: op in c:\inetpub\wwwroot\modules\News\index.php on line 192

Notice: Undefined variable: new_topic in c:\inetpub\wwwroot\modules\News\index.php on line 195

Notice: Undefined index: 1 in c:\inetpub\wwwroot\mainfile.php on line 619

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Undefined offset: 2 in c:\inetpub\wwwroot\mainfile.php on line 622

Notice: Undefined offset: 1 in c:\inetpub\wwwroot\mainfile.php on line 506

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Undefined index: 2 in c:\inetpub\wwwroot\mainfile.php on line 236

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133


Notice: Undefined variable: cid in c:\inetpub\wwwroot\banners.php on line 17

Notice: Undefined variable: login in c:\inetpub\wwwroot\banners.php on line 18

Notice: Undefined variable: op in c:\inetpub\wwwroot\banners.php on line 391

Notice: Undefined index: 2 in c:\inetpub\wwwroot\mainfile.php on line 236

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Use of undefined constant bid - assumed 'bid' in c:\inetpub\wwwroot\banners.php on line 44

Notice: Use of undefined constant imageurl - assumed 'imageurl' in c:\inetpub\wwwroot\banners.php on line 45

Notice: Use of undefined constant clickurl - assumed 'clickurl' in c:\inetpub\wwwroot\banners.php on line 46

Notice: Use of undefined constant alttext - assumed 'alttext' in c:\inetpub\wwwroot\banners.php on line 47

Notice: Undefined index: 1 in c:\inetpub\wwwroot\mainfile.php on line 212

Notice: Use of undefined constant BEGIN_TRANSACTION - assumed 'BEGIN_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 108

Notice: Use of undefined constant END_TRANSACTION - assumed 'END_TRANSACTION' in c:\inetpub\wwwroot\db\mysql4.php on line 133

Notice: Undefined index: 2 in c:\inetpub\wwwroot\mainfile.php on line 236
Avatar billede sukos Juniormester
26. november 2004 - 20:50 #1
hehe, enten koder du med $_GET["var"] $_SESSION["var"] $_POST["var"] og brug gerne isset() til at tjekke om en var er sat

eller bruger:

<?php
ini_set('error_reporting', "E_ALL & ~E_NOTICE");

resten af script ...........................

?>

eller

ændrer den i php.ini
Avatar billede sukos Juniormester
26. november 2004 - 20:51 #2
$QUERY_STRING virker ikke, men $_SERVER["QUERY_STRING"] m.fl. ..............
Avatar billede thefff Nybegynder
26. november 2004 - 20:54 #3
kan man ikke gøre det i php.ini
Avatar billede mcgoat Nybegynder
26. november 2004 - 20:55 #4
ville nok også foretrække at f.eks tjekke om variablerne overhoved eksisterer før man begynder at bruge dem... Det ligner lidt en nybegynder kode når det ser sådan ud.. :( .. men Nej.. ved ikke hvordan man slår Notice fra
Avatar billede cronaldo Nybegynder
26. november 2004 - 20:59 #5
Jeg vil nok mene du har været hæftig med de fejl :-)
Avatar billede mcgoat Nybegynder
26. november 2004 - 21:00 #6
at slå Notice fra er lidt ligesom at bruge ON ERROR RESUME NEXT i VB... Så hvis der kommer en fejl skal man bare være ligeglad og gå videre... hehe... Istedet for ikke at have nogle fejl
Avatar billede mcgoat Nybegynder
26. november 2004 - 21:06 #7
Avatar billede coderdk Praktikant
27. november 2004 - 02:52 #8
Jo, ret eller tilføje hvis den ikke er der, denne linie i php.ini:

error_reporting = E_ALL & ~E_NOTICE
Avatar billede coderdk Praktikant
18. december 2004 - 13:58 #9
Tid til at lukke?
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester