# Php include not working

**URL:** <https://forum.kirupa.com/t/php-include-not-working/112653>\
**Category:** Uncategorized\
**Created:** [June 10, 2004, 2:16am UTC](https://forum.kirupa.com/t/php-include-not-working/112653 "2004-06-10T02:16:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [June 10, 2004, 2:16am UTC](https://forum.kirupa.com/t/php-include-not-working/112653/1 "2004-06-10T02:16:49Z")

</div>

All I am trying to do is get this working.  
I opened my text editor and added this:

```php

<?
$text= "blah blah blah blah blah blah blah blah";
?>

```

I saved this text file with the extension php. (named it news.php)

Then in DW I created a new page (its XHTML by the way, I’m not sure if that matters) and in the tags I put the following:

```php

<?
include ("news.php");
?>

```

I uploaded both files to a php supporting server and when viewing the page I put the include code on, I get nothing, just a blank page.  
Not sure where I’m going wrong.  
Thanks
