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.com
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
to 755,
perhaps because /home is owned by root?
Something
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 House
35
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 House
35
Hi All,
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.
I have tried setting a variable then testing the value, which prints a
warning to the screen...
$sck_handle
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 simply been
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 have you tried?
--
Jason Wong
Hi All,
A script that has been running successfully for over 18 months has suddenly
stopped working due to ftp_connect() failing. I have been assured that
nothing has changed on the ftp server so now need to try and find out why
this is happening. ftp_connect seems to only return true or false,
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 wrote
Hi All,
I am trying to sort a multi-dimensional array using a value in the second
dimension. I have looked at the usort examples but don't fully understand
what usort is actually doing so am struggling. I have tried the following:
if (! getmxrr($this-_Domain, $as_hosts, $ai_weights))
{
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
Hi All,
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 then testing the return.
Example 1:
$sckHandle = fsockopen($server, 25, $errNo, $errString);
if ($sckHandle)
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 an error or a warning
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] fsockopen() errors.
Hi Miguel
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 then testing the return.
Here's an approach I have used to avoid any
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 ...
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...
/usr/bin/php myscript.php -args key=value
but this does not work, the script executes but key is not available as
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...
/usr/bin/php myscript.php -args key=value
You
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
command line? I know I need to use the -args option but how
exactly, I have tried
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:
Hi All,
Can anyone tell me how to pass arguments to a PHP script from the
command line? I know
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
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
needs to be
accessed from both the command line and from web browsers. I tested
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
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 using ini_set() I get... Call to
undefined function: mysql_connect().
I
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
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
Hi All,
I have been using a Windows platform for generating and sending bespoke
emails from .csv format lists but have had to swap to a Linux solution. We
are using Postfix instead of Visnetic as our mail server but need a
replacement for our email generation software (WorldMerge).
Does anyone
27 matches
Mail list logo