Jump to content

How do I make a loop for my simple PHP coding?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
project168

project168

    Newbie

  • Members
  • PipPip
  • 14 posts
Is there a program which provides this compiling method?

Edited by project168, 03 April 2011 - 07:27 AM.


#2
Smilex

Smilex

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
while(true) is the loop, are you sure that the loop does not work?

EDIT:
Ignore this post, the question was changed.

Edited by Smilex, 28 March 2011 - 09:37 AM.


#3
project168

project168

    Newbie

  • Members
  • PipPip
  • 14 posts
Nevermind

Edited by project168, 03 April 2011 - 07:27 AM.


#4
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
set $i=0 before the loop.

by the way, accessing the serial port com3 isn't that simple as you try it to be. At the moment, you will create a file named com3 instead.
As you use the name com3, I assume you're on Windows. I found some information on this here: PHP and Serial Ports « VT's Tech Blog
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
@Örjan, I believe com3 is a reserved name and will write to the appropriate port, try on your desktop renaming a file to AUX or COM3, it will silently revert back the the old name without changing it.

@project168, it will not convert the code to C++, in fact PHP is not even written in C++ so it would be a bit strange to. It is interpreted and generates compiled opcodes by default behaviour, you cannot use it as a PHP->C converter, although your code written in C++ is not that hard to write.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users