Re: [PHP] preg_match_all question

2009-01-16 Thread Phil Ewington - iModel Ltd.
Robert Cummings wrote: On Fri, 2009-01-16 at 09:42 +, Phil Ewington - iModel Ltd. wrote: Hi All, Having an issue with regular expressions, never been my strong point! The following pattern only picks up one instance per line, if more than one instance exists all text from first {{ to

[PHP] preg_match_all question

2009-01-16 Thread Phil Ewington - iModel Ltd.
Hi All, Having an issue with regular expressions, never been my strong point! The following pattern only picks up one instance per line, if more than one instance exists all text from first {{ to last }} is included, can anyone point out where I am going wrong? preg_match_all("/\{\{lang:(.*)

Re: [PHP] PECL JSON package

2008-12-11 Thread Phil Ewington - iModel
Eric Butera wrote: On Thu, Dec 11, 2008 at 5:43 AM, Phil Ewington - iModel wrote: Phil Ewington - iModel wrote: Hi All, I have just installed the PECL JSON package, or at least think I have!! But how do I use it?? I was expecting /usr/share/pear/Services/JSON.php to be found on my

Re: [PHP] PECL JSON package

2008-12-11 Thread Phil Ewington - iModel
Phil Ewington - iModel wrote: Hi All, I have just installed the PECL JSON package, or at least think I have!! But how do I use it?? I was expecting /usr/share/pear/Services/JSON.php to be found on my system for include but not so. My system tells me I have 1.2.1 successfully installed but I

[PHP] PECL JSON package

2008-12-11 Thread Phil Ewington - iModel
Hi All, I have just installed the PECL JSON package, or at least think I have!! But how do I use it?? I was expecting /usr/share/pear/Services/JSON.php to be found on my system for include but not so. My system tells me I have 1.2.1 successfully installed but I cannot find any docs that tell

[PHP] FW: xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
iles all display correctly in browsers and it all works with CF, what can the problem be? I have read articles about a bug in the Sablotron libraries so the XSL file must not have any headers, this makes no difference. Can anyone help? Thanks in advance, --- Phil Ewington 43 Plc - Ashdale Hous

[PHP] xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
iles all display correctly in browsers and it all works with CF, what can the problem be? I have read articles about a bug in the Sablotron libraries so the XSL file must not have any headers, this makes no difference. Can anyone help? Thanks in advance, --- Phil Ewington 43 Plc - Ashdale Hous

RE: [PHP] reading/writing files outside of web root

2005-02-17 Thread Phil Ewington - 43 Plc
> Jason Wong wrote: > > On Wednesday 09 February 2005 02:31, Richard Lynch wrote: > >> Phil Ewington - 43 Plc wrote: > >> > For some reason user_prefs will not open > >> > for read/write even when I tested it under apache.apache and chmod'd > >

[PHP] reading/writing files outside of web root

2005-02-08 Thread Phil Ewington - 43 Plc
ily/safely edit files outside of the web root using PHP or is there a 3rd party command line tool to do this? TIA --- Phil Ewington 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.co

[PHP] Permissions

2004-11-19 Thread Phil Ewington - 43 Plc
running PHP 4.3.8 on Linux Redhat Fedora 1 installed as an Apache module. TIA --- Phil Ewington 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.com --- Outgoing mail is certified Virus

[PHP] WDDX functions not working!!

2004-10-08 Thread Phil Ewington - 43 Plc
Hi All, I have been running 4.3.4 on a Cobalt RaQ 4 for some months and have been using the WDDX functions with great effect. I have recently moved all our sites to a new server (Linux RedHat ES 3 running PHP 4.3.6) and found that the WDDX functions do not work! No errors just nothing happens. I c

[PHP] PHP Bespoke Email Solutions

2004-07-20 Thread Phil Ewington - 43 Plc
know of any PHP scripts that will generate emails from a database of email addresses and an HTML template with bespoke content I.E greetings, unsubscribe email address links, etc... and send to an SMTP server? TIA Phil Ewington. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

RE: [PHP] Scheduling a PHP script

2004-06-14 Thread Phil Ewington - 43 Plc
> On Mon, 14 Jun 2004 12:10:30 +0100 > "Phil Ewington - 43 Plc" <[EMAIL PROTECTED]> wrote: > > > PHP > > - > > /usr/bin/php /home/sites/home/web/schedules/index.php arg1 arg2 arg3 > > > > After resolving include path issues

[PHP] Scheduling a PHP script

2004-06-14 Thread Phil Ewington - 43 Plc
Hi All, I have a PHP script that I need to call from both web browsers & from a crontab but whichever route I choose I hit a problem. Here are the options I have tried along with problems encountered... PHP - /usr/bin/php /home/sites/home/web/schedules/index.php arg1 arg2 arg3 After res

RE: [PHP] Re: Changing the directory that PHP runs from (CLI)

2004-06-11 Thread Phil Ewington - 43 Plc
g the directory that PHP runs from (CLI) > > > Phil Ewington - 43 Plc wrote: > > > Hi All, > > > > I have read the manual page for 'Using PHP from the command > line' thoroughly > > and cannot find the answer to my problem. I have a script that &g

[PHP] Changing the directory that PHP runs from (CLI)

2004-06-11 Thread Phil Ewington - 43 Plc
Hi All, I have read the manual page for 'Using PHP from the command line' thoroughly and cannot find the answer to my problem. I have a script that needs to be accessed from both the command line and from web browsers. I tested the script from the command line and all worked well. As soon as I set

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Phil Ewington - 43 Plc
> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 15:11: > > >> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 14:27: > >> > >>>> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: > >>>> > >>>>> H

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Phil Ewington - 43 Plc
> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 14:27: > > >> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: > >> > >>> Hi All, > >>> > >>> Can anyone tell me how to pass arguments to a PHP script from the >

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Phil Ewington - 43 Plc
> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: > > > Hi All, > > > > Can anyone tell me how to pass arguments to a PHP script from the > > command line? I know I need to use the -args option but how exactly, > > I have tried the following... >

[PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Phil Ewington - 43 Plc
["key"] in my script. Any pointers will be much appreciated. TIA Phil. --- Phil Ewington - Technical Director 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.com --- Outgoi

[PHP] fsockopen() throwing errors

2004-05-28 Thread Phil Ewington - 43 Plc
Hi All, How can I stop fsockopen() throwing an error and killing my script when it cannot connect? I have tried the following: $this->_Socket = fsockopen($s_server, $this->_Port, $i_errno, $s_errstr, $this->_Timeout); if (!$this->_Socket) { ... code to handle connection failure } and ..

RE: [PHP] Re: fsockopen() errors.

2004-03-09 Thread Phil Ewington - 43 Plc
ckopen() errors. > > > On 8 Mar 2004 Phil Ewington - 43 Plc wrote: > > > Can anyone tell me the best way to avoid errors using > fsockopen(). I have > > tried wrapping the function call in a conditional statement, > and have also > > tried calling the function and the

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
Hmm, added @ to fsockopen() function, still happens, can anyone shed any light on this? TIA Phil. > -Original Message- > From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED] > Sent: 08 March 2004 12:57 > To: Miguel J. Jiménez > Cc: PHP > Subject: RE: [PHP]

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
Hi Miguel, I am giving it a test at the moment, thanks. -- Phil. > -Original Message- > From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED] > Sent: 08 March 2004 12:29 > To: Phil Ewington - 43 Plc > Cc: PHP > Subject: Re: [PHP] fsockopen() errors. > > > Is it a

[PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
trigger an error if fsockopen() failed. Any help will be greatly appreciated. Phil. --- Phil Ewington - Technical Director 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.com -- PHP

RE: [PHP] sorting multi-dimensional arrays

2003-12-22 Thread Phil Ewington - 43 Plc
Ooops, forgot to specify the compare function with usort(); all working now. Phil. -Original Message- From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED] Sent: 22 December 2003 14:08 To: [EMAIL PROTECTED] Subject: [PHP] sorting multi-dimensional arrays Hi All, I am trying to sort

[PHP] sorting multi-dimensional arrays

2003-12-22 Thread Phil Ewington - 43 Plc
ort($this->MXRecs); Can anyone point me in the right direction? TIA Phil. --- Phil Ewington - Technical Director 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.com -- PHP Genera

RE: [PHP] ftp_connect() issues

2003-10-13 Thread Phil Ewington - 43 Plc
were network issues that stopped the request reaching the target server. Phil. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 10 October 2003 17:51 To: [EMAIL PROTECTED] Subject: Re: [PHP] ftp_connect() issues On Saturday 11 October 2003 00:01, Phil Ewington - 43 Plc w

[PHP] ftp_connect() issues

2003-10-10 Thread Phil Ewington - 43 Plc
, no specific RFC error codes :o( Can anyone suggest where I can start looking for a resolution to this matter? Running PHP 4.2.3 on a Cobalt RAQ4. TIA Phil. Phil Ewington - Technical Director -- 43 Plc 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)118 978

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
kopen() On Tuesday 30 September 2003 20:39, Phil Ewington - 43 Plc wrote: > Positive, I am deliberately using invalid domains to test how to catch > errors when users misspell their domain. Did you read that article (or are you aware of what it is about)? And what "invalid domains&

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
18:46, Phil Ewington - 43 Plc wrote: > I am having problems with fsockopen() and wondered if anyone else has > encountered this behaviour. My problem is that when connecting to an > invalid domain I cannot trap the errors. Have you checked that it is really an invalid domain and not si

[PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
rrors rather than socket initialisation? I need to know why the socket could not be opened so I can give an appropriate error message. TIA Phil Ewington - Technical Director -- 43 Plc 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)118 978 9500 F: +44 (0)118 978 4994 E:

[PHP] Security

2003-01-20 Thread Phil Ewington
directories within their web root only? TIA Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)118 978 9500 F: +44 (0)118 978 4994 E: [EMAIL PROTECTED] W: http://www.43plc.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Register Globals

2002-10-14 Thread Phil Ewington
ttpd/php.ini, so why is register_globals still set to 'off'? TIA Phil ---- Phil Ewington Technical Director 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU Tel: +44 (0)118 978 9500 Fax: +44 (0)118

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
s of javascript color="maroon"> - not perfect, but a start. > > Danny. > > - Original Message - > From: "Phil Ewington" <[EMAIL PROTECTED]> > To: "Danny Shepherd" <[EMAIL PROTECTED]> > Sent: Saturday, August 03,

RE: [PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
What's strange is that doing an ord($string) returns 171, which is a '1/2' char. So why does PHP convert the pattern match?? > -Original Message- > From: Phil Ewington [mailto:[EMAIL PROTECTED]] > Sent: 03 August 2002 17:04 > To: PHP General > Subject:

[PHP] RegEx (back referencing)

2002-08-03 Thread Phil Ewington
)>", "«font color=maroon»\1«/font»", $string); This results in opening and closing tags being replaced with a square being wrapped in font tags. I have this working in Cold Fusion but cannot seem to convert my scripts to PHP. Can anyone help? TIA Phil Ewington. -- P

[PHP] imagecopyresized() problems

2002-06-24 Thread Phil Ewington
stImageName, 75); imagedestroy($destImage); All that happens is that I get an identical copy of the image, and not a resized one. TIA Phil Ewington. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql_fetch_array()

2002-04-05 Thread Phil Ewington
Jason, This is for an events calendar, I want all the dates form the db but when I am generating the individual days for the calendar I need to know whether there is an event for that day, hence pulling out all the dates from the db. As I am looping through all the days in a month to dynamically

[PHP] mysql_fetch_array()

2002-04-05 Thread Phil Ewington
event_id & event_title from the row. I am using PHP 4.01. TIA Phil Ewington. --- P.S. If there are any ColdFusion developers on this list, what is the PHP equivalent of a structure? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] no-cache headers

2002-02-18 Thread Phil Ewington
a refresh of the browser is performed. Have I done something wrong or are headers not very reliable in PHP? TIA --- Phil Ewington - Technical Director --- 43 PLC 35 Broad Street, Wokingham Berkshire RG40 1AU

RE: [PHP] Installing PHP 4 on a RAQ3

2001-11-26 Thread Phil Ewington
/usr/lib/apache/ and all that is there is libperl.so, where is it, and how can I find it? Help!!, Please :o) - Phil Ewington Cold Fusion Developer - T: 01344 643138 E: mailto:[EMAIL PROTECTED] - > -Original Mess

[PHP] Installing PHP 4 on a RAQ3

2001-11-25 Thread Phil Ewington
.pkg install MySQL? Any idiot proof step by step instructions will be greatly appreciated, along with which is the best/most stable version of PHP 4?, and where is best to install it? Thanks in advance, Phil. ----- Phil Ewington Cold Fusion Developer ---

[PHP] File Permissions

2001-05-12 Thread Phil Ewington
ris 2.7/Apache 1.3.3 TIA Phil. BTW: I am completely new to PHP and Apache. ~~~~ Phil Ewington - Cold Fusion Developer T: 01344 643138 M: 07811 309116 E: mailto:[EMAIL PROTECTED] -- PHP General Mailing List (htt