AlteredSanity
07-18-2005, 05:22 PM
How do I include a path to a php file (that ?I want to be displayed) within a html table?
<?php include ("https://orders.xx***********/step_one.php?gid=1");
?>
That hasn't worked for me above, is it wrong?
the_pm
07-18-2005, 05:28 PM
I believe the path you use within the include must be relative, or if you start at the root, you must specify the path on the server hard drive. IIRC, full URLs are not allowed.
seraphi
07-18-2005, 07:35 PM
indeed,
try:
<?php
include("orders/step_one.php?gid=1");
?>
i am assuming your "orders" subdomain points to a folder called "orders" ;]
kailash
07-20-2005, 02:26 AM
If you are including a file that is already within your site, then use this code
<?php
include("orders/step_one.php?gid=1");
?>
if you are including from a remote url, use this
<?php
require("http://x***********/orders/step_one.php?gid=1");
?>