Toon posts:

[php]javascript als php-bestand

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

Verwijderd

Topicstarter
Ik heb op dit moment een javascript lopen op mijn website. Hierdoor komt nieuws voorbij scrollen. De inhoud hiervan moet eigenlijk uit een database komen, mbv php. Hoe is dit het makkelijkste op te lossen?

Of moet ik met php-file naar javascript schrijven? Dit laatste heeft nadeel dat er dan weer een cron aan te pas moet komen.

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

<script src="javascript.php" type="text/javascript"></script>
PHP:
1
2
3
4
<?php
Header ( "Content-type: text/javascript" );
echo 'alert("woei");';
?>


Kon je dat echt niet zelf bedenken?

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Dit topic is gesloten.