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.

PHP.INI-Einstellungen ändern ohne Zugriff auf die Datei zu haben?

Empfohlene Antworten

Veröffentlicht

Hallo, ganz simples problem:

Ich möchte in der PHP.INI die options --enable_trans_sid abschalten (also auf 0 setzen), habe allerdings keinen Zugriff auf die PHP.INI meines Webhostingproviders und kann sie somit nicht editieren und wieder speichern.

Gibt es eine Möglichkeit die PHP-Einstellungen via PHP-Code abzuändern (es genügt eine temporäre Abänderung, es muss ja nicht zwingend in der PHP.INI gespeichert werden) ?

Beispiel:

TEST.PHP

---------

<?

$enable_trans_sid=0;

?>

blablabla HTML blablabla

---------

...oder irgendwie sowas in der Art ?

Vielen Dank im vorraus!!

Einige der Einstellungen, so u.a. die trans-sids, kannst ueber ini_set() fuer das aktuelle script veraendern:

ini_set("session.use_trans_sid", 1); // 1 fuer an, 0 fuer aus

Michael

Jo hi! Klasse! funktioniert!

Ich hab die ganze Zeit gesucht, beispielsweise via google

-- php trans-sid disable --, -- php phpsessid url remove --, --php.ini edit change code---

und und und...

nur genau das was ich suchte kam nie dabei heraus.

cool, also mit dem ini_set funktioniert das jetzt,

VIELEN DANK! ;) *yippieh* *g*

PS: habe daraufhin auch ein super-faq dazu gefunden:

http://www.php.net/manual/de/function.ini-set.php

man muss halt nur erstma wissen, dasses so ein ini_set gibt, dann kann mans auch finden ;)

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.