Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Aug 2004, 15:20
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Real name: wayne
implode php function not working ....

suddenly my imploder isnt imploding

here is code

$postthumbnail2 = implode("", file(http://www.url.com/forums/thumbincluder2.php));


then i output $postthumbnail2 into a template

its worked for years but now just doesnt work :ermm:
Reply With Quote
  #2  
Old 25 Aug 2004, 09:29
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Real name: wayne
really need help people its just not working
Reply With Quote
  #3  
Old 25 Aug 2004, 09:49
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
What is the contents of the thumbincluder2.php ?

implode works on arrays - shouldn't you e using include() not file ()?
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
  #4  
Old 25 Aug 2004, 10:54
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Real name: wayne
Originally Posted by Natch
What is the contents of the thumbincluder2.php ?

implode works on arrays - shouldn't you e using include() not file ()?
the thing is its been working for over a year then just doesnt work now and i havnt changed anything unless host change server configuration to not be able to call file()
Reply With Quote
  #5  
Old 25 Aug 2004, 10:59
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Can you post the content of thumbincluder2.php?
Is the file even around?
__________________
Reply With Quote
  #6  
Old 25 Aug 2004, 12:03
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Real name: wayne
Originally Posted by Colin F
Can you post the content of thumbincluder2.php?
Is the file even around?
file is there and working fine mate because when igoto the url it works and generates fine that file hasnt been edited in ages ! its just the implode :S cheers
Reply With Quote
  #7  
Old 25 Aug 2004, 13:46
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Suggest you restructure the way the file works to have it return the array at teh end of the file - that way you can rely on include(filename) rather than file(filename)... include won't stop working cos of a server config change ...
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
Reply



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

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 On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:51.

Layout Options | Width: Wide Color: