Closed Thread
Results 1 to 6 of 6




  

Thread: php install script for callbacks

      
  1. #1
    Jedi Master Paramiliar is on a distinguished road Paramiliar's Avatar
    Join Date
    July 24, 2007
    Location
    West Midlands
    Posts
    105
    Rep Power
    5
    Feedback Score
    0

    Default php install script for callbacks

    Hey guys,
    having some "fun" with this one, basicly I need to be able to execute a file on a seperate server that will give a response, this response is actually a license key for use of the software.

    I've tried using AJAX but of course you cant run scripts over multiple domains, even tried a window.open command and even tho it opens the file the JS wont run for the same reason.

    php FOPEN isn't an option as it returns a blank data

    so anyone got any ideas?
    Matthew Bagley
    Paramiliar Design Studios
    IT Consultant | Website Design | Website Development

  2. #2
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default

    Interesting idea. Hopefully someone else will know. :2072:

  3. #3
    The Force is Strong! jumpenjuhosaphat is a jewel in the roughjumpenjuhosaphat is a jewel in the roughjumpenjuhosaphat is a jewel in the roughjumpenjuhosaphat is a jewel in the roughjumpenjuhosaphat is a jewel in the roughjumpenjuhosaphat is a jewel in the rough
    Join Date
    January 5, 2008
    Location
    Denver, Colorado
    Posts
    121
    Rep Power
    5
    Feedback Score
    0

    Default

    Try changing the permissions (CHMOD) of the file you are trying to access...You should secure it a little by having the script verify that any request will only be responded to if the request is coming from a particular IP and URL...All other requests will be ignored.

  4. #4
    Jedi Master Thor Erik is on a distinguished road Thor Erik's Avatar
    Join Date
    January 8, 2008
    Location
    <.< not in oslo soon
    Posts
    33
    Rep Power
    5
    Feedback Score
    0

    Default

    What about using Curl?
    But i can't see why fopen in read mode should return blank :/
    $resource = fopen("url", "r");
    $lic = fread($resource,"1024");
    fclose($resource)

  5. #5
    Jedi Master Paramiliar is on a distinguished road Paramiliar's Avatar
    Join Date
    July 24, 2007
    Location
    West Midlands
    Posts
    105
    Rep Power
    5
    Feedback Score
    0

    Default

    yeah I couldn't understand why fopen wasn't working, even with a text file i'm guessing the options for opening URL's in fopen in the php.ini file is disabled. I thought about CURL but didnt have time to implement it. for now it just opens up a file which shows the license keys then you have to do the old cut and paste system but hopefully I can try curl later on in the week.

    Paramiliar added 1316 Minutes and 32 Seconds later...

    Well the curl kind of worked, there was a problem with our .htaccess file rewriting the php link to html and not sending on the post vars but disabled the rewrite for that folder and it works a treat, now to sort out the ajax call to fill in the fields and its all done thanks guys
    Last edited by Paramiliar; Jan 23rd, 2008 at 1:26 am. Reason: Automerged Doublepost
    Matthew Bagley
    Paramiliar Design Studios
    IT Consultant | Website Design | Website Development

  6. #6
    Jedi Master Thor Erik is on a distinguished road Thor Erik's Avatar
    Join Date
    January 8, 2008
    Location
    <.< not in oslo soon
    Posts
    33
    Rep Power
    5
    Feedback Score
    0

    Default

    Glad it works then :slaugh:
    Any time mate

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. MY BB Install Errors
    By grim in forum Forum Management
    Replies: 0
    Last Post: Feb 22nd, 2008, 8:13 am
  2. vB install question
    By Kaos in forum Forum Management
    Replies: 16
    Last Post: Jan 17th, 2007, 8:14 am
  3. IE7 Install Issue....
    By Colleen in forum Computers and Electronics
    Replies: 41
    Last Post: Dec 10th, 2006, 1:33 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads