Community discussions

MikroTik App

Search found 8 matches

by mktNewbie
Wed May 29, 2013 1:46 am
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

My apologies for the delay response, i had attempted to update my router's firmware and i messed it up so i had to reinstall the firmware back..anyways after doing i retested and it finally worked!!! I tried it both port 443 and 8728 and both worked, so i just returned to port 8728. One of the thing...
by mktNewbie
Wed May 15, 2013 11:56 pm
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

So i'm still unable to connect to this, i did what you suggested and while i am able to ping the router now i just can't access it via the API yet, still getting the same error and i've got the router directly connected to my modem. Could it b my ISP?
by mktNewbie
Tue May 14, 2013 5:59 pm
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

Okay..i think i might have found the issues. I changed the permissions on the file to 777 (not what i want to keep them at but for testing purposes this will do) and that seem to finally work. I do however have a few questions regarding the API so that would be great if you wouldn't mind helping me ...
by mktNewbie
Tue May 14, 2013 4:43 pm
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

I also got the following:

stream_socket_client() function is enabled, SHA-1 HASH (string)

It also gave me a few tips on troubleshooting so i'll look into those to make sure i can reach the router from winbox or ping

Could it be the web server?
by mktNewbie
Tue May 14, 2013 4:36 pm
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

Also, i did run phpinfo() from the web as well and the php version is 5.3.3
by mktNewbie
Tue May 14, 2013 4:35 pm
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

I executed the .phar file from the command line and got the following: PEAR2_Net_RouterOS-1.0.0b3.phar: line 1: ?php: No such file or directory PEAR2_Net_RouterOS-1.0.0b3.phar line 2: syntax error near unexpected token 'get_included_files' PEAR2_Net_RouterOS-1.0.0b3.phar line 2: 'if (count(get_inclu...
by mktNewbie
Tue May 14, 2013 2:28 am
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

Well i did check it via the shell command line on the server and it shows as php 5.3.3
by mktNewbie
Tue May 14, 2013 1:42 am
Forum: Scripting
Topic: Structure system for beginners in web API with PHP
Replies: 18
Views: 11214

Re: Structure system for beginners in web API with PHP

So i'm new to this ordeal here and i just happen to find this thread. My issues is probably the same..however i have done all the steps and tested the file but my php file keeps timing out.... I have enabled the API on the routerBoard and downloaded the .phar file which is in the same folder/directo...