Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

String fehler

Empfohlene Antworten

Veröffentlicht

moin moin,

vielleicht könnt ihr mir ja weiterhelfen?!

ich bin auf der suche nach dem fehler :)

Gruß

kills


<?php

function setoptions( $zipextension, $thumbquality, $slideshowquality) { // line 439
$andle = fopen("./settings.php","w+");
$content = "<?".
"$aSettings[\"thumbnailQuality\"] = " .$thumbquality. "; /* Qualität der Thumbnails (0 = schlechteste ;100 = beste) */". // line 442

"$aSettings[\"bigImageQuality\"] = " .$slideshowquality. "; /* Qualität der Vergrößerten Bilder (0 = schlechteste ;100 = beste) */".

"$aSettings[\"bZip\"] = " .$zipextension. "; /* Zip-erweiterungen aktivieren */".
"?>";
fwrite( $handle , $content);
fclose( $handle);

}

?>
[/PHP]

meldung:

PHP Parse error: parse error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wwwroot\~dpd\cgi-bin\picturepublisher\functions.php on line 442

ganz einfach:

vor den $aSettings fehlt jeweils ein \ (Backslash)

danke für die antwort.

hab sie leider zu spät gesehen

meine lösung:



function setoptions( $zipextension, $thumbquality, $slideshowquality) {
$handle = fopen("./settings.php","w+");
$content = '<?php'."\n".
'$aSettings["thumbnailQuality"] = ' .$thumbquality. '; /* Qualität der Thumbnails (0 = schlechteste ;100 = beste) */'."\n".
'$aSettings["bigImageQuality"] = ' .$slideshowquality. '; /* Qualität der Vergrößerten Bilder (0 = schlechteste ;100 = beste) */'."\n".
'$aSettings["bZip"] = ' .$zipextension. '; /* Zip-erweiterungen aktivieren */'."\n".
'?>';
fwrite( $handle , $content);
fclose( $handle);
}


[/PHP]

ich werds nochma umbasteln.

auf deine art siehts schöne raus :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.