Displaying 12 results from an estimated 12 matches for "preg_match".
2005 Sep 06
4
PHP and ASterisk Manager
Guys, is anybody using PHP sockets to connect to the Manager and send
command like "show voicemail users" for example or any other?
My question is, how to parse the return info in a way that can be shown back
to the user via web (discard all the manager responses not needed)?
Thx in advance for any help you can provide.
2007 Aug 24
0
MYSQL problem and configuration
...N)){ $temp=trim(fgets(STDIN,4096)); if(($temp=="")||($temp=="\n")) { break; } $s=split(":",$temp); $name=str_replace("agi_","",$s[0]); $agi[$name]=trim($s[1]);}return $agi;}function checkresult($res){ trim($res); if(preg_match('/^200/',$res)) { if(!preg_match('/result=(-?\d+)/',$res,$matches)) { fwrite(STDERR,"FAIL ($res)\n"); fflush(STDERR); return0; } else { fwrite(STDERR,"PASS (".$matches[1].")\n");...
2004 Aug 06
3
Ogg response headers
> p.s. Please don't ever send HTML mail to this or any other mailing list.
roger that, outlook has its way of deciding for you sometimes :/
<p>> URL ends with ".ogg". If your script ends with ".php" (as it probably
does),
Since i got the mp3 part to work, myabe ill try adding .ogg to be parsed by
php in the
apache config, since it the winamp request ends up
2017 Feb 20
1
v2.2.28 release candidate released
...bmail? I know Roundcube has some
> workarounds when dovecot now responds with that "[UNKNOWNCTE]".
I suppose we'll have to fix the Roundcube code where we do:
// handle UNKNOWN-CTE response - RFC 3516, try again with standard BODY
request
if ($binary && !$found && preg_match('/^' . $key . ' NO
\[UNKNOWN-CTE\]/i', $line)) {
Create a ticket for this, please.
In RFC3501 [PARSE] is described as "The human-readable text represents
an error in parsing the [RFC-2822] header or [MIME-IMB] headers of a
message in the mailbox.". So, is this really an...
2004 Aug 06
0
Ogg response headers
...thanks for the tips, if and when i get it working ill post the results as
>well as links to the script download.
you might want to experiment with the Content-Disposition header as I use
this header to serve m3u files from a php script...
e.g.
header("Content-type: audio/m3u");
if (preg_match("/MSIE 5.5/", $HTTP_USER_AGENT)) {
header("Content-Disposition: filename=\"listen.m3u\"");
}
else {
#header("Content-Disposition: attachment; filename=\"listen.m3u\"");
header("Content-Disposition: inline; filename=\&...
2004 Dec 13
0
phpconfig - can't locate any of my sections
I downloaded phpconfig and set it up to read my config files, but it never
successfully recognizes any of my sections. The regular expression seems to
be included in the line:
if(preg_match("/^\s*\[([^\]]*)\].*[\r\n]\$/", $line))
and later, the same regex.
I'm not sure about the [\r\n] on the end of the line. My copy of "the regex
coach" does not let me match a typical section header against it.
Could somebody (one of the authors, perhaps?) comment on this...
2010 Jan 11
0
PHP-Script (AGI) doesn't finish after upgrading to 1.6.0.15
...921,4,Hangup()
/var/lib/asterisk/agi-bin/test.php
-----------------------------------
#! /usr/bin/php -q
<?php
ob_implicit_flush(true);
set_time_limit(6);
error_reporting(0);
$stdin=fopen("php://stdin","r");
while(!feof($stdin)){
$temp = fgets($stdin);
if (preg_match("/agi_/",$temp)){
$temp = str_replace("\n","",$temp);
$s = explode(":",$temp);
if ($s[0]=="agi_callerid"){
$caller=trim($s[1]);
}
i...
2006 Jan 05
5
command line bandwidth
Hey I was just curious if anyone knew of any scripts or command line programs that are out there
that could be used to check bandwidth on a network.
--
Andrew Rice Jr
2016 Feb 24
5
Anyone know whats up with wki?
On Tue, Feb 23, 2016 at 1:38 PM, Shao Miller via Syslinux
<syslinux at zytor.com> wrote:
> I don't think the MySQL daemon is running. I'm looking around for someone
> who can help. - Shao
>
> P. S. No, I don't like scrolling to read what's most recent. Top-posting
> forever. Just kidding.
Nicer clients can fold. I know GMail's web interface is but one
2005 Apr 04
0
io timeout after 180 seconds
...otate the current list of backups if we can
~ if ($tmp_handle = opendir($s_fullPath)) {
~ $a_dirList = array();
~ $a_dirListTypeBelow = array();
~ while (false !== ($tmp_file = readdir($tmp_handle))) {
~ if (is_dir($s_fullPath . $tmp_file)) {
~ if (preg_match(":$s_backupType\.\d+$:", $tmp_file)) {
~ $a_dirList[] = $tmp_file;
~ }
~ // for later we need the directories of the type below
~ if (preg_match(":$s_typeBelow\.\d+$:", $tmp_file)) {
~ $a_dirList...
2017 Feb 20
9
v2.2.28 release candidate released
http://dovecot.org/releases/2.2/rc/dovecot-2.2.28.rc1.tar.gz
http://dovecot.org/releases/2.2/rc/dovecot-2.2.28.rc1.tar.gz.sig
Pretty large release. Please test before the final v2.2.28, which should be out in a few days.
BTW. Our plan is to start making new releases approximately every month from now on.
* director: "doveadm director move" to same host now refreshes user's
2017 Feb 20
9
v2.2.28 release candidate released
http://dovecot.org/releases/2.2/rc/dovecot-2.2.28.rc1.tar.gz
http://dovecot.org/releases/2.2/rc/dovecot-2.2.28.rc1.tar.gz.sig
Pretty large release. Please test before the final v2.2.28, which should be out in a few days.
BTW. Our plan is to start making new releases approximately every month from now on.
* director: "doveadm director move" to same host now refreshes user's