-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* and then Steven declared....
> # Is that enough?
> <?php include("$auth.txt"); ?>
> # I then assume this would result in it trying to include 'name.txt',
> # but instead there is always a nasty error about the .txt part.
> # I should probably ask, is passing variables inside an include allowed?
> 
> If I'm wrong, or I'm just missing something that needs to be added, please
> let me know. I'm sooo new at this that I know I'm doing something wrong and
> it is probably very simple. Any help would be greatly appreciated!


Can you show an example of name.txt and the error you get?

I'm guessing but I reckon name.txt should be re written as name.php and
work like this:

<?
// name.php

$text=<<<EOF

<p> some nice aritcles text marked up here</p>

EOF;
?>

and then in articles.php you should just print $text to where you want
it.

- -- 
Nick Wilson     //  www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE9Ah/3HpvrrTa6L5oRAk+iAKCx1lmVO6ZTuzyvyKDYxROcwzK9IgCfaTPS
qtvhmbP4oWg85jueAtfMOIM=
=Bdlq
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to