[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: [PROGRAMMERING] php: array og seperator eller sådan noget



30. aug. 2010 13.29 skrev Mikkel Meinike <sslug@sslug>:

$open = fopen($filename, "w"); //w'et gør at filen bliver overskrevet hver
gang
fwrite($open, "$text_thing0\r");

Er du helt sikker på at der skal stå '\r'? Hvorfor ikke '\n'?

$file_c = file("majdb.txt");

$file_c er et array. Prøv fx. at: print($file_c[1]);

ellers prøv debugging: print("<pre>"); print_r($file_c); print("</pre>");

<textarea rows="1" cols="40" name="text_thing0" wrap="physical"><?php echo
$text1; ?></textarea><br />

I stedet for 'text_thing0', så prøv med 'text[]' eller 'text[nul]'.

og se hvad phpinfo(32) skriver. Eller print_r($_POST[text]);

/hans




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-09-01, 02:01 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] *