[PHP] reading/writing files outside of web root

2005-02-08 Thread Phil Ewington - 43 Plc
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

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 to 755, perhaps because /home is owned by root? Something

[PHP] xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
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

[PHP] FW: xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
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

[PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
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

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 simply been

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
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

[PHP] ftp_connect() issues

2003-10-10 Thread Phil Ewington - 43 Plc
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,

RE: [PHP] ftp_connect() issues

2003-10-13 Thread Phil Ewington - 43 Plc
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

[PHP] sorting multi-dimensional arrays

2003-12-22 Thread Phil Ewington - 43 Plc
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)) {

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] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
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)

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 an error or a warning

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] fsockopen() errors. Hi Miguel

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

2004-03-09 Thread Phil Ewington - 43 Plc
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

[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 ...

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

2004-06-10 Thread Phil Ewington - 43 Plc
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

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... /usr/bin/php myscript.php -args key=value You

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 command line? I know I need to use the -args option but how exactly, I have tried

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: Hi All, Can anyone tell me how to pass arguments to a PHP script from the command line? I know

[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

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

2004-06-11 Thread Phil Ewington - 43 Plc
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

[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

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 using ini_set() I get... Call to undefined function: mysql_connect(). I

[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

[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] PHP Bespoke Email Solutions

2004-07-20 Thread Phil Ewington - 43 Plc
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