Title: Using a php file as a &quot;page&quot;
Last modified: August 20, 2016

---

# Using a php file as a "page"

 *  [daviddoria](https://wordpress.org/support/users/daviddoria/)
 * (@daviddoria)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/using-a-php-file-as-a-page/)
 * I currently have a non-wordpress site that I am attempting to convert to wordpress.
   Some pages, like this one:
 * [http://ewh.ieee.org/r1/schenectady/UpcomingEvents.php](http://ewh.ieee.org/r1/schenectady/UpcomingEvents.php)
 * are php files that generate the page (using sqlite and php). Is there a way to
   use this type of file directly in wordpress (as a wordpress “page”)? Or is there
   some more built-in mechanism to store and query databases to create tables of
   data like this?
 * Thanks!
 * David

Viewing 1 replies (of 1 total)

 *  [questions4wp](https://wordpress.org/support/users/questions4wordpress/)
 * (@questions4wordpress)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/using-a-php-file-as-a-page/#post-2765033)
 * Your post has a number of questions, I’ll try to answer them as best I can!
 * -If you want to use prewritten PHP in a wordpress page, you can install the [Exec-PHP](http://wordpress.org/extend/plugins/exec-php/)
   and basically just copy and paste the PHP and work from there. This will allow
   you to use basically any PHP inside of a page.
    – There does exist some mechanism
   for querying databases, if it’s the same as the database where WordPress is stored,
   using the wpdb class – [http://codex.wordpress.org/Class_Reference/wpdb](http://codex.wordpress.org/Class_Reference/wpdb).
   I am not experienced with using WordPress to access other databases in any way
   other than straight PHP, but such a function may indeed exist

Viewing 1 replies (of 1 total)

The topic ‘Using a php file as a "page"’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [questions4wp](https://wordpress.org/support/users/questions4wordpress/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/using-a-php-file-as-a-page/#post-2765033)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
