Current location: Hot Scripts Forums » Programming Languages » PHP » Problems with function


Problems with function

Reply
  #1 (permalink)  
Old 08-14-04, 11:52 PM
Taishinsei Taishinsei is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Problems with function

I'm having problems with a function. When I tell it to return I get partial information. If I tell it to echo, I get all the information just in the wrong location. I have the things set to loop and I need the info returned to be added together. Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 08-15-04, 01:37 AM
MrOrange MrOrange is offline
Newbie Coder
 
Join Date: Jul 2004
Location: Oklahoma City
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Could you post the function?
Reply With Quote
  #3 (permalink)  
Old 08-15-04, 04:54 PM
Taishinsei Taishinsei is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Code:

function createBlocks($blocks$theme){

foreach(
$blocks as $block){
include 
"blocks/$block.inc";
$menu1implode(" "file("./$theme/blocks.html"));
$menu2str_replace("{menuTitle}"$menuTitle$menu1);
$menu2str_replace("{menuContent}"$menuContent$menu2);
echo 
$menu2;}} 
If you go to http://www.endurofusion.net/test/main.php , it is an example of what I am talking about.

Last edited by Taishinsei; 08-15-04 at 04:59 PM.
Reply With Quote
  #4 (permalink)  
Old 08-15-04, 05:58 PM
mikaelf mikaelf is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: php[dot]net
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
i ever saw very similar function with yours. (where did you get it?)
there shouldn't be problem with the code. it's all about your main page.
__________________
Useful PHP links:
bugs.php.net - for reporting PHP bugs
pear.php.net - PHP extension and application repository
pecl.php.net - get non standard PHP modules, submit yours
www.phpclasses.org - PHP classes repository
Reply With Quote
  #5 (permalink)  
Old 08-15-04, 07:53 PM
Taishinsei Taishinsei is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
The coding idea for the implode was from fusionPHP, the rest is me.
Reply With Quote
  #6 (permalink)  
Old 08-22-04, 03:07 PM
Taishinsei Taishinsei is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Help Again

I have a .Zip of all my work. Extract it and go from there. If you think of anything that could helo let me know.

http://www.endurofusion.net/test/EFN...te%20Setup.zip

thank you
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Error Fairnie PHP 8 06-26-04 07:15 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
Mid function problems jakesomething ASP 2 03-19-04 10:39 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM


All times are GMT -5. The time now is 04:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.