Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
| Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 3rd, 2004, 10:37 AM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Include PHP file in HTML

I need to do a virtual include of a PHP file on one of my HTML pages. Is this possible, and if so, how do I go about it? What this PHP file does is searches a DB for ecommerce catalog entries and lists the entries that match pre-determined criteria. I can get it to work in Perl, but haven't been able to in PHP.
Here is the virtual include statement I use:

So in this case, the PHP script looks for entries that have "Food+Safety" in the title or description, a ProductType of "Product" and a Category of "Book".

Suggestions? Comments? Verbal Abuse?


Similar Threads
Thread Thread Starter Forum Replies Last Post
using a #include virtual="file" is slow loading jtrifts Classic ASP Basics 5 April 3rd, 2008 07:12 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
Executing asp Include file withing HTML content itHighway HTML Code Clinic 4 August 7th, 2005 01:03 PM
Include file in HTML content itHighway Classic ASP Basics 1 July 25th, 2005 05:44 PM
include php inside the asp file karib Classic ASP Databases 2 November 25th, 2003 03:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.