Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
If you have a Mac you can create a network from your Mac.. assuming it has the ability in network preferences, which it should.

Under what circumstance are you needing this? I am curious.
 
The object is to take the wireless connection that your computer has, create a connection (as if the computer was a router) and then allow the iPhone to connect to it.

The iPhone should see the computer, not the other way around.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.