php5->php4
php5->php4
- Started
- Last post
- 4 Responses
- jpea
i'm not totally up on my php skills here, so would anyone be able to tell me how to write this in php4?
http://pastebin.coconut.se/?id=4…
the prob is the foreach
- UndoUndo0
its just missing a couple of { }
- jpea0
hmm.. it worked as-is for me in mamp/wamp using php5, but when i popped it on the php4 server it comes up with :
Warning: Invalid argument supplied for foreach()
- UndoUndo0
im not php5 yet so you could be right, should work in php 4 now - or not?
- jpea0
sorta odd, but i commented out the foreach with the brackets and all and just left in the if statement, and it still works. sorta hobbled together the code from a few places, and i'm only using 1 instance so i didn't even need a foreach. doh. thanks for the guidance undoundo