[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] lagersegmentfejl coredumped ??



   ---------------------------
"Robert Larsen"  skrev
> Når web serveren eksekverer cgi scripts opretter den QUERY_STRING
> variablen, så den kun kan tilgåes fra programmet. Dvs. at det ikke er en
> variable, som findes, hvis du eksekverer programmet fra prompten, og
> derfor vil 'getenv("QUERY_STRING")' returnere NULL.
> Det pæneste vil være at tjekke på, hvad du får tilbage:
>
> jann = getenv("QUERY_STRING");
> if(jann != NULL)
> {
>     /* resten af koden */
> }
Hvis jeg har forstået alle svarne rigtigt, så er det alså fordi at
QUERY_STRING er tom når jeg kører lokalt og fuld når jeg kører fra web.

Alså er der faktisk ikke nogen problemer i det.....

Jan




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *