PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I can not get the file to show. Please help....
<?php include('www.undergroundtournaments.com/utts/order.php') ?> is the string im working on and order.php is the file i want to show in the file below. Globals are on.
<?
$indexloaded=1;
include("config/config.php");
include("$dir[func]/global.php");
include("$dir[func]/loginforms.php");
switch($action){
case "utts":
utts();
break;
default:
utts();
break;
}
function utts(){
global $url, $file, $dir, $out, $site, $admn;
$tablehead=table_head("show","400","","left");
$tablefoot=table_foot("show");
$out[body]=$out[body]."
<table width='450' border='0' cellspacing='0' cellpadding='1'>
<tr>
<td width='100%' align=center valign=top>
<table cellspacing=0 cellpadding=0 border=0 width='90%'>
<tr><td>
<center>
$tablehead
<strong><font color='#000000'>"Teamspeak is a quality, scalable application which enables people to speak with one another over the Internet. The Teamspeak server acts as a host to multiple client connections, capable of handling literally thousands of simultaneous users. This results in an Internet based teleconferencing solution that works in a variety of applications such as team mates speaking with one another while playing their favorite online game, small businesses cutting costs on long distance charges, or for personal communication with friends and family." <a href='http://www.goteamspeak.com' target='new'>http://www.goteamspeak.com</a></font></strong><br>
<hr color='#000000' size='1' align='center'>
<div align='center'><img src='https://www.paypal.com/en_US/i/bnr/horizontal_solution_PP.gif' alt='Solution Graphics' />
<a href='https://www.paypal.com/us/verified/pal=ugtpaypal%40undergroundtournaments.com' target='_blank'><img src='http://www.paypal.com/en_US/i/icon/verification_seal.gif' alt='Verified' border='0' /></a>
</div>
<u><center><strong>Account Features</strong></center></u></a>
<br>
<table width='60%' align='center' cellspacing='0' cellpadding='0'><tr><td align='left'>
<ul>
<li>No setup fee</li>
<li>99% Uptime Guarantee</li>
<li>All codecs allowed, <strong>NO</strong> restrictions!</li>
<li>Get your server in 5 minutes!</li>
<li>Online Control Panel</li>
<li>Easily configure your server with our online Control Panel</li>
<li>You choose: Private or Public</li>
<li>No bandwidth limit! Talk all you want!</li>
</ul>
</td></tr></table>
<br>
<b>Our Public Demo TeamSpeak Server is available at <i><a href='teamspeak://207.44.140.85:9800'>207.44.140.85:9800</a></i>
<br>
<center>
<?php include('www.undergroundtournaments.com/utts/order.php') ?>
</p>
$tablefoot
</form>
</table></table>";
include("$dir[curtheme]");
}
?>
Step 3: Post whatever that code outputs into a reply here so we can learn more about your development environment. An example of the output is commented in the above snippet.
I've never worked with including remote files before, but try include("http://... with the http:// in there.
If it is a local file, don't use the url
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.