Can PHP script behave like a desktop application?

Discussion in 'PHP' started by coolcow, May 25, 2011.

  1. #1
    I am going to develop a simple php script that will query google keyword adword tool. However I want google adword keyword tool sees client ip addresses and not my server ip address.

    If I use my ip address , google adword keyword tool will ban my server ip for sure because it has only 1 ip address and I don't want to use proxies.

    I want google adword keyword tool to see only client ip addresses.

    Is this possible?

    Thanks:)
     
    coolcow, May 25, 2011 IP
  2. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Is it wise to poke the bear? I doubt it is worth it.

    Code it to use CurlSSL and mask the user agent and such. A proxy, better yet, rotation through a list of proxies, WILL be needed unless you are going to install it on your desktop/laptop to run and then Google will ban your home/work ip address.
     
    DomainerHelper, May 26, 2011 IP
  3. adkarfaserv

    adkarfaserv Active Member

    Messages:
    208
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    I am really interested to know about this. Is it possible to make .exe application from PHP?
     
    adkarfaserv, May 26, 2011 IP
  4. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #4
    No, totally different coding language. However you can install apache and php on your PC and run script on your pc.
     
    DomainerHelper, May 26, 2011 IP
  5. Litonice09

    Litonice09 Well-Known Member

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    111
    Digital Goods:
    1
    #5
    It's possible to make a desktop application with php. Try google you'll get your answers.
     
    Litonice09, May 26, 2011 IP
  6. coolcow

    coolcow Peon

    Messages:
    177
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks,

    However it's not what I am looking for . What I want is to build a web application and I want google to see my client ip address instead of my server ip addy.

    How about javascript or even java applet?

     
    coolcow, May 27, 2011 IP
  7. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #7
    What I just told you will do that, you can mask an ip easily. If you mean an executable, impossible without using VB or something.
     
    DomainerHelper, May 27, 2011 IP
  8. coolcow

    coolcow Peon

    Messages:
    177
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks :) but I am not sure if i were clear enough.

    What I want is to build server side application, a lot of people will use this web app from different locations , they have to type the url of the application in order to use it . The app will query Google for searches ... I don't want google to block my server ip address . Instead, ip addresses of my visitors will be used to query Google.

    Is there solution for this?I don't want to use proxies on my server
     
    coolcow, May 27, 2011 IP
  9. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #9
    You will need something using java or similar. PHP won't be good for this.
     
    DomainerHelper, May 28, 2011 IP
  10. thejimy

    thejimy Greenhorn

    Messages:
    9
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #10
    There is no real problem with using PHP here. Though not necessarily the best solution, but it doesn't mean it's not possible!

    If I understand right, you want a PHP script on a website to be usable by many different people and still the access this script does, is originating by the user's desktop? If so, one method to achieve exactly that is having those users install a proxy application (without proxy forwarding headers!) on their computers and the script would contact that proxy, which would forward any requests to any location on the internet. The script would have then the IP of the user, exactly like any desktop application on the user's pc.This doesn't involve to install any proxies on your server.
     
    thejimy, May 29, 2011 IP
  11. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #11
    thejimmy: That is extremely dangerous to the point of "WTF were you thinking?" You CAN use PHP, but it is no advisable in this case.

    Not to mention that every user would have to install Apache and PHP on their home PCs, that isn't gonna happen.
     
    DomainerHelper, May 29, 2011 IP
  12. sautaja

    sautaja Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yes, it is possible:
    gtk.php.net
     
    sautaja, May 31, 2011 IP
  13. DomainerHelper

    DomainerHelper Well-Known Member

    Messages:
    445
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    100
    #13
    You cannot make a .exe program with php or gtk.php.net.

    What is up with people with like 6 posts always giving answers that are wrong?
     
    DomainerHelper, May 31, 2011 IP
  14. littlejohn199

    littlejohn199 Peon

    Messages:
    42
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #14
    It is impossible to make desktop app with PHP. PHP is a scripting language. You can create desktop application using C#, Java or C++ though.
    I would use C# to create desktop app.
     
    littlejohn199, Jun 1, 2011 IP
  15. andreisaioc

    andreisaioc Active Member

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #15
    it will not work, they will ban your ip straight away
     
    andreisaioc, Jun 2, 2011 IP