|
-
Aug 19th, 2009, 05:25 PM
#1
Thread Starter
Junior Member
VB Convert
if(2 ^ $ControlBitPos = (Asc(Mid($DecompData, $ControlPos, 1)) And 2 ^ $ControlBitPos))
Can someone convert that to PHP for me? Its visual basic and I started it but if you notice it still has the And part in it. I don't know how to convert that.
-
Aug 19th, 2009, 05:46 PM
#2
Re: VB Convert
Hi there,
Literally translated it would be this.
Code:
if(pow(2, $ControlBitPos) == (ord(substr($DecompData, $ControlPos, 1)) && pow(2, $ControlBitPos))
See if it works.
By the way, you posted in the PHP CodeBank section which is actually only to post code.
Questions can be asked in the PHP Section.
I'll flag a moderator to move this thread, next time please post in the other sections
Delete it. They just clutter threads anyway.
-
Aug 19th, 2009, 06:15 PM
#3
Thread Starter
Junior Member
Re: VB Convert
I already made custom php functions for all the functions in that line but thanks. And thanks for writing that for me I'll see if it works.
-
Aug 20th, 2009, 05:37 AM
#4
-
Aug 20th, 2009, 07:24 AM
#5
Re: VB Convert
 Originally Posted by pudge1
if(2 ^ $ControlBitPos = (Asc(Mid($DecompData, $ControlPos, 1)) And 2 ^ $ControlBitPos))
Can someone convert that to PHP for me? Its visual basic and I started it but if you notice it still has the And part in it. I don't know how to convert that.
Please stop asking the same question multiple times.
-
Aug 20th, 2009, 09:08 AM
#6
Thread Starter
Junior Member
Re: VB Convert
I have never asked that question before.
-
Aug 20th, 2009, 02:48 PM
#7
Re: VB Convert
if you want to get technical, you did in this thread.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|