an IP as a variable

  • .exe
  • Born
  • Born
  • No Avatar
  • Joined: Dec 29, 2003
  • Posts: 2
  • Status: Offline

Post December 29th, 2003, 1:18 pm

whenever i try $ip = 23.124.12.1; (made up ip) it comes with an "parse error"
how would i make an ip a variable?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 29th, 2003, 1:18 pm

  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post December 29th, 2003, 1:58 pm

Put the ip inside quotes, so it will be treated as a string of characters.
Free Programming Resources
  • .exe
  • Born
  • Born
  • No Avatar
  • Joined: Dec 29, 2003
  • Posts: 2
  • Status: Offline

Post December 29th, 2003, 2:17 pm

ofcourse, how dumb of me
thanks man

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 160 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.