Results 1 to 40 of 40

Thread: Php to vb

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121

    Php to vb

    If i had a php source, which had ways to generate code using 4digits, hw easy wud it b 2 convert 2 vb?

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    i found this but i dont know what its like as never got round to using it.

    http://www.vbforums.com/showthread.php?threadid=283388

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Originally posted by john tindell
    i found this but i dont know what its like as never got round to using it.

    http://www.vbforums.com/showthread.php?threadid=283388
    wud that change php to vb?

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    What are you actually trying to do? Is it just for one time use, or do you actually want to have a converter?


    What is it you want to convert anyway?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    its a one time thing, and its algo to create unlock codes for lgs

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    If it's just a one time thing, post the PHP code here, and if it's not too long, one of us could probably convert it for you.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    I did it myself, but now I need help convert c++ to php? is that possible

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Converting C++ to PHP is a lot easier than converting PHP to VB, since C++ and PHP are very similiar in syntax.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    If I posted what I wanted convereted, could it be done?

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Maybe...let us try.....

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by The Hobo
    Converting C++ to PHP is a lot easier than converting PHP to VB, since C++ and PHP are very similiar in syntax.

    Isn't it possible to call C++ functions with PHP? Or was that CGI or something....


    (I am so embarresed that I don't know this by now...exam is in 6 weeks..)

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Here it is, i would be so grateful if anyone can
    Attached Files Attached Files

  13. #13
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    It's way to much for me to be able to do right now. Maybe next week. But it doesn't look to hard. It's more or less to put an $ in front of all the variable names, then change the function callings and runctions a bit...

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    hmm....well if you can do it, whenever you have some spare time, i would be most grateful

  15. #15
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Do you know any PHP at all? If you do. Why don't you give it a try? Then we can help you when you encounters any trouble?

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    nope I dont no the first thing about php, i was hoping there was a converter or something, I wanted to make an online calc using this algo

  17. #17
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    So what are you going to use it for? There is probably plenty of those on the internett allready...

  18. #18

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    wel actually no, there are only like 2-3 of them on the net, im going to use so people can calculate there unlock codes on the net in real time

  19. #19
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    actually converting c++ to php would probly be a little difficult, depending on what the code was doing

  20. #20

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    it generates codes through a 15 digit number

  21. #21
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    What kind of code is it it generates? Did you make the cpp file?

  22. #22
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I'm sure you can find whatever you're looking for already as PHP on the net. And if you don't know PHP (and it seems you don't have any desire to know it), why do you want it in PHP?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  23. #23

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Ok, I dont know php, I want to learn, but I need this asap, basically I need to make an online calc, so people can generate there codes in real time, there and then

  24. #24
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    But you need more then just the calc. If you only have that page, people can generate their numbers as much as they want. And what would that help you?

  25. #25

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Yes thats what I want, if I gave you a link to one on a site, then would you be able 2 copy that?

  26. #26

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    http://www.uniquephones.com/unlock/index.php heres a link to once, would that be too hard to copy? Because the one does everything, thats like the best

  27. #27
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    It is probably compy protected....but if you don't care, why can't you just download it?

  28. #28

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    becuase when I try, i cant seem to get it 2 work!

  29. #29
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Have you uploaded the PHP file to a server with PHP?

  30. #30

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    I use a cuteftp for uploading, do you have to use a specific php ftp, becuase when I upload php files they normally work with cuteftp

  31. #31
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    It has nothing to say about what FTP manager you use. But you have to hava a server that supporst PHP. And BTW I havn't looked at the code in that file, but it might use a database to load information too. Not sure...and you don't have that database.

  32. #32

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    yes my server supports php, umm I dont know about the database, if you look at http://nokiafree.org/free-nokia-unlock-codes/ this will be the easiest to copy, it send tis data to remote.php, which has no algo in it to generate the codes

  33. #33
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629
    I'm pretty sure getting 'free unlock codes' for a phone is illegal.. and you can't just copy a website that has something because you're only looking at and reading the PHP file's output, not the source of the file.
    Like Archer? Check out some Sterling Archer quotes.

  34. #34

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Nope unlocking is legal, unblocking is ilegal which can only be done via cable and not code. So it cant be copied?

  35. #35
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629
    No, the websites you provided cannot be copied unless you get the actual PHP files that they are using.

    I don't know about the C++ code, but while overlooking it I noticed that it uses bytes, and I'm not sure if PHP even supports the use of bytes; I'm not even really sure what a byte to C++ is.
    Like Archer? Check out some Sterling Archer quotes.

  36. #36

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    damn ok, den I have to find out if it can be convertered

  37. #37

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Originally posted by NoteMe
    It's way to much for me to be able to do right now. Maybe next week. But it doesn't look to hard. It's more or less to put an $ in front of all the variable names, then change the function callings and runctions a bit...
    Reckon you will be able to conver that source in2 php?

  38. #38
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    It might happen that I could pull it off. But as I said, I have way to much to do at the moment, and I am not going to do all the work for you. And even if I wrote that to PHP, you would still need the rest of the page...and who is going to do that for you.

    I bet if you sat down a weekend and tried to do it, you would pull it off too. First time I touched PHP, I did it just to help a friend making a search engine for his site. And I only used 2,5 days to learn everything I needed and make the search engine. So why don't you try it for your self.

    And if you are to lazy for that, why not go to rentacoder or what that site was called again...

  39. #39

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    121
    Ok, if you were to do it, I could make the page, I have one made for someting esle so i could copy that. But I will try and give it ago, know any good tutorials?

  40. #40
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Try php.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width