Autor Beitrag
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Mo 01.12.03 19:52 
Da mir auf php.de niemand helfen kann weiß vielleicht einer von euch Rat.
Ich öffne schon immer Daten mit

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
function openpage($dateiname) {
$fp=fopen($dateiname,"r");
$content = fread($fp, filesize($dateiname)); 
fclose($fp);
echo($content);
}


Nur zeigt er bei meinem neuesten Projekt immer am Anfang in der ersten Zeile am anfang 3 zusätzliche Leerzeichen. Die nerven. Ich kann sie zwar rausfiltern nur ist das sicher nicht die Beste Lösung.
Hab allerdings keine Ahnung wo der Fehler liegt.

Könnt ihr mir helfen? Ich probiere da schon seit 2 Stunden rum :cry:

_________________
Klein, schwarz und ärgert Techniker? Jumper!
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Mo 01.12.03 21:17 
Vielleicht liegt es ja an deiner Datei die du öffnest?

Schon mal da rein geschaut ob da vielleicht 3 Leerzeichen am Anfang sind? ;)

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)
Bela Urlaub
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 453

WinXP Prof/Home, Win98SE (nur auf Server)
D6 Pers
BeitragVerfasst: Mo 01.12.03 22:16 
maze2k hat folgendes geschrieben:
Vielleicht liegt es ja an deiner Datei die du öffnest?

Schon mal da rein geschaut ob da vielleicht 3 Leerzeichen am Anfang sind? ;)


kann eigentlich net sein.
Windows entfernt am anfang und am ende einer datei überflüssige Leerzeichen

_________________
mensch, menschen können auch probleme haben...
blackbirdXXX Threadstarter

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Mo 01.12.03 22:27 
:D Habe den Fehler gefunden. Ich habe vorne eine Leere Zeile gehabt welche von dieser Serverversion als 3 Leerzeichen interpretiert wird.

_________________
Klein, schwarz und ärgert Techniker? Jumper!
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mo 01.12.03 22:36 
@Bela: Was hast du denn für ne Windows-Version? Mein Windows entfernt keine Leerzeichen. :? :mrgreen:

_________________
Viele Grüße
Jakob
Bela Urlaub
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 453

WinXP Prof/Home, Win98SE (nur auf Server)
D6 Pers
BeitragVerfasst: Mo 01.12.03 23:49 
WinXP Prof. SP2

und du?

_________________
mensch, menschen können auch probleme haben...
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Di 02.12.03 00:27 
Windows hat gar net das Recht Leerzeilen zu entfernen, wenn ich jetzt z.B. ein Programm schreib, das mit Leerzeilen am Anfang einer Datei arbeitet, dann wär ich bei deinem Windows wohl aufgeschmissen ;)

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 02.12.03 09:37 
ich weiss zwar nich was du machen willst, aber warum nutzt du nicht include("filename");

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
blackbirdXXX Threadstarter

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Mi 03.12.03 16:34 
Schon mal bemerkt das include("") PHP Code ausführt? Unbrauchbar für einen Editor.

_________________
Klein, schwarz und ärgert Techniker? Jumper!
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 03.12.03 16:39 
sicherlich weiss ich das include php ausführt...
(wo steht das er einen editor programmiert)

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce