Jump to content

Functions not showing up


mme

Recommended Posts

I am trying to use functions to insert code into other pages

 

I have a php file with multiple functions inside:

function md_chef_record() {
$md_chef_ip=$_SERVER['REMOTE_ADDR'];
$md_chef_time=date("D M j G:i:s T Y");
}

function md_chef_image() {
$output .= "<img src='$siteurl/wp-content/uploads/wpsc/product_images/no-image-uploaded.gif' title='".$special['name']."' alt='".$special['name']."' /><br />";
}

 

Then in multiple files I have this in the top of the php file

if (file_exists('wp-content/plugins/md-chef/md-chef-f.php')) {
require_once('wp-content/plugins/md-chef/md-chef-f.php');}
else {echo("ERROR");}

 

Then throughout the files different functions are placed to insert the pieces of code.

 

However it doesn't seem to work any suggestions?

 

Thanks

 

MME

Link to comment
https://forums.phpfreaks.com/topic/207796-functions-not-showing-up/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.