Trivia: The pic of Spidey on Harry's desk is very similar to the one seen on the cover of the first Spider-Man comic.
Trivia: Co-writers Alfred Gough and Miles Millar are reportedly responsible for much of the final script, though they only received a story credit due to the confusing rules and studio red-tape regarding how screenwriters are credited.
Trivia: The Blues Brothers director John Landis has a cameo as the doctor who is killed by Dr. Octopus.
Trivia: Director Sam Raimi and composer Danny Elfman had a major falling out during production, and Elfman vowed never to work with Raimi again. As a result Elfman didn't return to work on "Spider-Man 3." However, a few years later, Elfman and Raimi made up, became friends again and ended up working together on several more films, including 2013's "Oz the Great and Powerful" and the upcoming "Doctor Strange in the Multiverse of Madness."
Trivia: Michael Buble sings the Spider-Man theme in the credits.
Answer: Unless there is is a deleted scene to shed light on the issue, then it's not really addressed in the movie. It's possible that Doc Ock and Harry had a second meeting that took place off-screen in which Ock revealed to Harry where his hideout was, but as there's nothing really to go on, it's anyone's guess and it's reasonable to consider it a plot hole.
Phaneron ★