NetTalk Central

Author Topic: PHP and NetTalk  (Read 6077 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
PHP and NetTalk
« on: January 31, 2012, 05:42:21 AM »
I learned from one of webinars that it is possible to run PHP scripts from nettalk server. It was pointed into StringTheory and CryptoNite as a must for this features but I do not know what am I need to install on server PC that make it possible.
Is there some instructions in a written form or maybe some tutorial?

Best regards,

Djordje Radovanovic

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: PHP and NetTalk
« Reply #1 on: January 31, 2012, 05:51:08 AM »
You need OddJob from Capesoft. Not sure if you also need string theory as it used to be part of oddjob. I don't think you need cryptonite. Just try to run the PHP example that ships with NTW.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PHP and NetTalk
« Reply #2 on: January 31, 2012, 11:07:53 PM »
You need OddJob and StringTheory in order to make the PHP stuff work. Not Cryptonite.

the PHP notes are in the doc here;
http://www.capesoft.com/docs/NetTalk5/NetTalkWebBasic.htm#PHP

(Originally OddJob included StringTheory, but that is no longer the case, so the current doc needs updating to refer to them both.)

Cheers
Bruce

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: PHP and NetTalk
« Reply #3 on: February 01, 2012, 02:19:42 AM »
I bought all products that I need, installed PHP for windows and tried an example PHP. Than I received security warning from PHP that is not allowed to access page directly. Google a bit and found solution. So far so good.
But when I tried my example now I receive "No input file specified. "

Can you point me in a right direction?

Best regards,

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PHP and NetTalk
« Reply #4 on: February 01, 2012, 03:47:26 AM »
Hi Djordje,
It sounds like you found the "php" folder that was a subdirectory of the PHP example?
It seems to have been missing from recent builds (Rene pointed that out to me). If you haven't got that then I guess that's something to fix - but it sounds like you do have it.

does the PHP example work?

cheers
Bruce

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: PHP and NetTalk
« Reply #5 on: February 01, 2012, 04:42:55 AM »
I am using PHP example from NetTalk Example directory. I copy example to higher level folder because I was not sure was it space character or bracket characters. I remove from folder name (58) and now it is straight PHP.
When I ran it for the first time server wrote that could not execute PHP-CGI.EXE and it was pointed into my folder and subfolder PHP so I copied PHP installation into my example folder. After that server did not complain about PHP-CGI.EXE

Then goes my story from previous post about PHP warning and after I fix that in PHP.INI I receive "No input file specified" from PHP example.

To be short  ;). Everything I wrote was about example PHP(58)

Best regards,

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PHP and NetTalk
« Reply #6 on: February 01, 2012, 05:47:03 AM »
Ok, I understand.

chances are your PHP install is pretty close to what we ship - but it might not be exactly the same. I've corrected the 6.18 install so the
PHP (58) folder, has a sub folder called PHP

(You're also right in removing the (58) from the name - so the folder becomes \php\php
Fortunately this isn't confusing....)

cheers
Bruce

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: PHP and NetTalk
« Reply #7 on: February 04, 2012, 02:04:03 PM »
Thank you Bruce.

Now example works.

Best regards,

Djordje Radovanovic