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.

Empfohlene Antworten

Veröffentlicht

Hi

Kann man mit php irgendwie prüfen ob eine Datei existiert?

Also mit JavaScript hab ich schon was dazu gefunden, aber mit php find ich einfach nichts... find wenn ich danach google immer nur Überprüfungen ob Datenbanken existieren.

Müsste aber schauen ob eine Datei existiert, und das halt unter php und ohne JavaScript...

Also wer weiss wie das geht, bitte posten.

das machst du in php mit:


if(file_exists(meine_datei.txt))
print "Datei vorhanden";
[/PHP]

in der klammer gibst du deine datei an.wenn nötig auch den pfad.

mfg korea1

Auf dem Server, ja.

------------------

file_exists

http://www.php.net/manual/en/function.file-exists.php

(PHP 3, PHP 4 )

file_exists -- Checks whether a file exists

Description

bool file_exists ( string filename)

Returns TRUE if the file specified by filename exists; FALSE otherwise.

------------------

Auf dem Client geht das nicht und das ist auch gut so.

Gruß Jaraz

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.