Search found 37 matches

by mstdmstd
Tue Mar 22, 2016 3:40 am
Forum: PHP coding => General
Topic: In twig show no data message
Replies: 4
Views: 1083

Re: In twig show no data message

I still search for decision. Here http://twig.sensiolabs.org/doc/advanced.html#functions how to add my function, I added function : $function = new Twig_SimpleFunction('make_return', function () { return '<?php return; ?>'; // I see this code on screen, but it is not rendered as php-code. }); $twig_...
by mstdmstd
Thu Mar 17, 2016 12:40 am
Forum: PHP coding => General
Topic: In twig show no data message
Replies: 4
Views: 1083

In twig show no data message

Hello, I twig doc there is example like : <ul> {% for user in users %} <li>{{ user.username|e }}</li> {% else %} <li><em>no user found</em></li> {% endfor %} </ul> But I show all data in <table tags with structure like : <table class="table-listing table table-bordered responsive dataTable"> <thead>...
by mstdmstd
Mon Nov 30, 2015 4:01 am
Forum: PHP General
Topic: js-methods with prefix specified
Replies: 0
Views: 789

js-methods with prefix specified

Hi all, I have wordpress plugin with js-file attached for js functions. I want to escape possible error of having js functions with the same name as js functions pf other developers so I use some prefix like "nsnpas_" in functions name and inputs name. This prefix I define as php constant define( 'n...
by mstdmstd
Tue May 26, 2015 10:32 pm
Forum: PHP General
Topic: remove special chars from error string
Replies: 0
Views: 552

remove special chars from error string

Hi, I want to write my db error to log without special chars, like: $runQueriesRes= htmlspecialchars( strip_tags( $this->runQueriesUnderTransaction( $sqlQueries )), ENT_QUOTES ); But as result I see : WordPress database error: [Unknown column 'artisWWWEt_id' in 'where clause'] DE...
by mstdmstd
Sat Jan 03, 2015 11:55 pm
Forum: PHP General
Topic: php libs for ringing to mobile phones?
Replies: 0
Views: 500

php libs for ringing to mobile phones?

Hi all,

if there is some php libs for ringing to mobile phones?
something like Nexmo, but for mobile phones.
In my case just ring without actual talks, maybe with some predefined/mechanic voice/text is enough...

Thanks!
by mstdmstd
Sun Aug 24, 2014 6:38 am
Forum: PHP coding => General
Topic: Code highlighting of different format
Replies: 2
Views: 761

Re: Code highlighting of different format

Strider64 wrote:Another good highlighting library is http://qbnz.com/highlighter/
Thanks, it is really good !
by mstdmstd
Sat Aug 16, 2014 10:54 pm
Forum: PHP coding => General
Topic: Code highlighting of different format
Replies: 2
Views: 761

Code highlighting of different format

Hello,
Function highlight_string is good for highlighting of php code, but seems that is the only format it supports.
Is there are some tool/library for highlighting of different format, with smarty too ?

Thanks!
by mstdmstd
Thu Jul 31, 2014 5:43 am
Forum: PHP coding => Images
Topic: Setting image using PHPExcel it width is changed
Replies: 0
Views: 1466

Setting image using PHPExcel it width is changed

Using PHPExcel library I show image in excel sheet with code like : $objDrawingPType = new PHPExcel_Worksheet_Drawing(); $objDrawingPType->setWorksheet( $this->ExcelActiveSheetObj ); $objDrawingPType->setName(basename($attach_file)); $objDrawingPType->setPath($attach_file); $cell_coords = $this->int...
by mstdmstd
Sun Jul 06, 2014 12:36 am
Forum: PHP coding => General
Topic: How how remove "no-debug-non-zts" error
Replies: 0
Views: 707

How how remove "no-debug-non-zts" error

Hi All, In error_log file of my remote server I found rows like: [01-Jul-2014 23:37:46 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/http.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/http.so: cannot...
by mstdmstd
Mon Jun 23, 2014 3:41 am
Forum: PHP coding => General
Topic: Save file on disk with name based on title of object
Replies: 0
Views: 573

Save file on disk with name based on title of object

Hi, If in php 5.3 and more there is some extension/function, to create valid file system(windows/linux) name from object title with unique name, like a slug, but with unique name in given directory ? I mean I want to save file on disk with name based on title of object, with rules like : 1) In title...
by mstdmstd
Sun Mar 30, 2014 9:03 pm
Forum: PHP coding => General
Topic: I need website ranking service/API.
Replies: 3
Views: 1652

Re: I need website ranking service/API.

I am looking for ranking of others sites. Please give some example of tools to see google(and maybe Bing and Yahoo) pagerank. If possible tools having output results in xml/json format. As I wrote before I found sites statscrop.com and shutkeys.com with interesting output data but I did not find how...
by mstdmstd
Sun Mar 30, 2014 5:04 am
Forum: PHP coding => General
Topic: I need website ranking service/API.
Replies: 3
Views: 1652

I need website ranking service/API.

Hi, I am interested in website ranking to create various analytics, capabilites and views and create these data in my local database. I searched in net and found several interesting sites, but not all was clear for me. Say : 1) Site http://www.statscrop.com : Alexa Rank( Check website ranking in the...