Mailinglisten-Archive |
From: "Rene Paschold" <rene_(at)_get-connected.de>
> Subject: [php] $PHP_SELF Problem unter WAMP
> Hallo Liste,
>
> ich habe ein kleines Problem mit der $PHP_SELF !!
> Wenn ich diese ausführen will zeigt er mir unter Windows
> denn Pfad zur exe. Das knallt dann natürlich.
bei diesem Problem kann dir evtl folgendes helfen:
<?php basename("$PHP_SELF"); ?>
Aus dem Manual
basename -- return filename component of path
Description
string basename(string path);
Given a string containing a path to a file, this function will return
the base name of the file. On Windows, both slash (/) and backslash (\)
are used as path separator character. In other environments, it is the
forward slash (/).
Gruss
Joerg Behrens
--
Key fingerprint = 92 7D E0 A6 CF AE EC 32 14 28 EF 0D 57 2A 88 5B
----------------------------------------------------------------------
Noell Dienstleistungs GmbH
D-97080 Wuerzburg Mobil: 0171/60 57 963
Alfred-Nobel-Straße 20 Tel: +49 931 903-2243
Abt: DV-C/tr Fax: +49 931 903-2051
php::bar PHP Wiki - Listenarchive