Scratch

Here you will find older scratches, musings and other detritus that once were located on the front pages, but have now faded.

Filed away here to collect dust and cobwwwebs in perpetuity, links may break, facts may change and data may corrupt.

On occasion I may come down here to tidy, but for the most, I prefer to leave the past where it lies.

 

PHP Include

Mental note to self: PHP trickier than I thought. I can't wait to start combining it with XML...

Note to self (and only self as I am not a php guru):


<?php include('absolute local path') >

<? php
include('absolute local path');
?>

are both viable options. Allegedly :

<?
include('absolute local path');
?>

<script language="php">
include('absolute local path');
</script>

..are both viable..

I also found out it does matter whether you use ' or ", certainly in this instance. Also ; is required to signify line end if not enclosed in php tags. php include seems to only use an absolute local path. If you wanna use URLs, they require the fopen command followed by illegible random syntax.

9 Jun 2004 10:31 | (0) comments | site


Post a comment

Please try and keep your comments on-topic, informative and polite. Differing viewpoints are welcome as long as they're pertinent. New commenters to skitz.org will have their comments pre-moderated to help prevent undesirable comment spam being posted on the site.





Related Entries

By Date

Monthly Archive for June 2004

Previous entry: « In Pain. Blinking Lots.

Next entry: » PHP/XML


By Category

Category Index: site

Previous entry: « The Currently Section (2)

Next entry: » Happy Days


By MySQL

Please bear in mind these are deemed related by an automatic script. That doesn't mean they always are.