Hi guys, just need a little help.
my host has there php set up wierd.
if you have php anywhere that is inbetween this:
<? stuff here ?>
it wont work and it just prints out whats between.
if you do it like this:
<?php stuff here ?>
it works perfectly, but ive got a problem, ive got a script to list files in a directory and be able to delete them, but for the script to list them it needs to be like this:
<?=$filelist?>
if i do it like this:
<?php=$filelist?>
it just dosent work, is there a way around this? thanks.
Damn im stuck, php tags
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
http://www.php.net/manual/en/ini.core.p ... t-open-tag
You can replace the <?= $something?> with <?php echo $something?>
Or you can ask if your host supports php.ini in your web directory.
You can replace the <?= $something?> with <?php echo $something?>
Or you can ask if your host supports php.ini in your web directory.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
