PDA

View Full Version : implode php function not working ....


corsacrazy
08-24-2004, 02:20 PM
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:

corsacrazy
08-25-2004, 08:29 AM
really need help people its just not working

Natch
08-25-2004, 08:49 AM
What is the contents of the thumbincluder2.php ?

implode works on arrays - shouldn't you e using include() not file ()?

corsacrazy
08-25-2004, 09:54 AM
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()

Colin F
08-25-2004, 09:59 AM
Can you post the content of thumbincluder2.php?
Is the file even around?

corsacrazy
08-25-2004, 11:03 AM
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

Natch
08-25-2004, 12:46 PM
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 ...