[php] Parse error

Pagina: 1
Acties:
  • 50 views sinds 30-01-2008

  • TutanRamon
  • Registratie: Februari 2001
  • Laatst online: 09-09 15:05
Ik ben met een script bezig waarmee je postcards kan verzenden, zonder dat je er mysql voor nodig hebt, maar nu kom ik telkens bij een parse error op de volgende regel:
PHP:
1
<?fp = fopen("$file","a");?>

Wat doe ik verkeerd?

We see things as we are, not as they are


  • thomaske
  • Registratie: Juni 2000
  • Laatst online: 09-09 14:51

thomaske

» » » » » »

haal die quotes eens weg om $file (DAT IS TOCH NIET NODIG! ;) )

Brusselmans: "Continuïteit bestaat niet, tenzij in zinloze vorm. Iets wat continu is, is obsessief, dus ziekelijk, dus oninteressant, dus zinloos."


  • pjonk
  • Registratie: November 2000
  • Laatst online: 29-12-2025
Voor fp een $ zetten wil ook wel helpen ;)

It’s nice to be important but it’s more important to be nice


  • razor-x
  • Registratie: Februari 2001
  • Laatst online: 05-06 07:37
$ vergeten .. ?

  • TutanRamon
  • Registratie: Februari 2001
  • Laatst online: 09-09 15:05
Op dinsdag 19 maart 2002 10:11 schreef thomaske het volgende:
haal die quotes eens weg om $file (DAT IS TOCH NIET NODIG! ;) )
Heb ik al gedaan, was nog steeds fout.

We see things as we are, not as they are


  • maartenvdv737
  • Registratie: Augustus 2000
  • Laatst online: 17-08 15:34
$fp

Ik blijf er iig vrij nuchter onder....


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

kom op hoor
daar gaan we niet aan beginnen

Doet iets met Cloud (MS/IBM)


  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 09-09 20:58

Janoz

Moderator Devschuur®

!litemod

Parse error's zijn meestale zelf wel redelijk te vinden. Houdt er rekening mee dat de error vaak op de aangegeven regel zit, maar nog veel vaker op de regels ervoor!! (let op ; } enz)

ps:De regel die je hier post is syntactisch correct

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

afblijven Janoz ;)

Doet iets met Cloud (MS/IBM)

Pagina: 1

Dit topic is gesloten.