FRAMINGHAM - A Framingham man scheduled to be arraigned on an attempted murder charge fled Framingham District Court on Wednesday after finding out prosecutors were going to seek to have him held on bail, authorities said.

Joshua Porter, 32, came to court on his own when he learned there was a warrant for his arrest that charged him with attempted murder and three counts of assault and battery.

Probation officer David DiGiorgio told Judge Douglas Stoddart that Porter had come to court on his own, but when DiGiorgio told Porter that he would be seeking to have him held on a probation violation on an open attempted robbery charge and that prosecutors would seek bail, Porter left.

"I told him, and he looked like he was being cooperative," DiGiorgio said.

Stoddart issued two warrants for Porter's arrest, one each on the Framingham and Natick cases.

The Framingham case happened on Dec. 7. Porter's girlfriend arrived at the police station around 12:55 a.m. with blood dripping from her head. She told police that Porter had attacked her in the car, according to a police report filed in Framingham District Court.

She told police that earlier, around 6:50 p.m., she had picked up a drunk Porter on Beaver Street, and once in the car, he punched her twice as they drove.

Later, Porter accused her of stealing his phone and told her, "I'm going to (expletive deleted) you up unless you give me my phone," the report said.

The woman, fearing Porter, offered to buy him a new phone and they drove to an ATM to get money for the phone. Instead, she decided not to give him money. As they stopped at a red light, he grabbed her throat and choked her until the light turned green, the report said.

The woman said she then drove Porter to the home of the mother of his child. Once he saw that the woman had guests over, he told her to drive him somewhere else. When she refused, he punched her several times, even after she started driving, the report said.

As they drove, the woman lost control of the car and slammed into a curb on Concord Street. Porter yelled, "Oh my God, you're trying to kill me." When he saw that the woman was covered with blood, he said, "Oh my God, look at all that blood," and he jumped out of the car and ran, the report said.

Police searched for Porter but could not find him. They obtained a warrant for his arrest that week.

Norman Miller can be reached at 508-626-3823 or nmiller@wickedlocal.com. For up-to-date crime news, follow Norman Miller on Twitter @Norman_MillerMW.