You should be able to fairly quickly fopen/fread/fseek/fread and compare the
opening/ending XML tags.
If it's well-formed XML, it should be trivial to detect an incomplete file
versus a complete one.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Daniel Brown wrote:
On Sun, Dec 28, 2008 at 13:02, John Allsopp j...@johnallsopp.co.uk wrote:
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh = fopen($myFileLast, 'r');
$theDataLast = fread($fh, 200);
Nathan Nobbe wrote:
On Sun, Dec 28, 2008 at 11:02 AM, John Allsopp j...@johnallsopp.co.ukwrote:
Hi
I'm sure this is simple for yous all but I'm not sure I know the answer.
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh =
John Allsopp wrote:
Nathan Nobbe wrote:
On Sun, Dec 28, 2008 at 11:02 AM, John Allsopp
j...@johnallsopp.co.ukwrote:
Hi
I'm sure this is simple for yous all but I'm not sure I know the answer.
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
John Allsopp wrote:
Daniel Brown wrote:
On Sun, Dec 28, 2008 at 13:02, John Allsopp j...@johnallsopp.co.uk
wrote:
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh = fopen($myFileLast, 'r');
$theDataLast = fread($fh,
On Sun, Jan 11, 2009 at 13:07, John Allsopp j...@johnallsopp.co.uk wrote:
Thanks, that worked a treat except I was getting warnings on 404. I looked
around for solutions to that and it appears curl might handle that better,
so I'm currently working on that. Many thanks tho .. let me know if
On Sun, Jan 11, 2009 at 13:10, John Allsopp j...@johnallsopp.co.uk wrote:
So far I'm getting a lot of *Warning*: curl_setopt(): supplied argument is
not a valid cURL handle resource in */home/myAcc/public_html/test.php* on
line *58
*
I searched phpinfo for 'curl' and it came up nothing, so
Daniel Brown wrote:
On Sun, Jan 11, 2009 at 13:07, John Allsopp j...@johnallsopp.co.uk wrote:
Thanks, that worked a treat except I was getting warnings on 404. I looked
around for solutions to that and it appears curl might handle that better,
so I'm currently working on that. Many thanks tho
On Sun, Jan 11, 2009 at 13:42, Nathan Rixham nrix...@gmail.com wrote:
pedantic: really you'd want to check the http status header returned and
take the appropriate action depending on what header was returned.
I'm sure there's a way to get the headers from a file_get_contents using one
of
Nathan Rixham wrote:
John Allsopp wrote:
Nathan Nobbe wrote:
On Sun, Dec 28, 2008 at 11:02 AM, John Allsopp
j...@johnallsopp.co.ukwrote:
Hi
I'm sure this is simple for yous all but I'm not sure I know the
answer.
$myFileLast = http://www.myDomain.com/text.txt;;
if
Hi there,
I am importing data out of xml files on a linux server. Now I am running
into problems if the file is currently beeing uploaded and the upload
has not finished to the server.
Is there a function which returns true if the file is complete and not
in upload status? I tried
On Sat, 2009-01-10 at 19:22 +0100, Merlin Morgenstern wrote:
Hi there,
I am importing data out of xml files on a linux server. Now I am running
into problems if the file is currently beeing uploaded and the upload
has not finished to the server.
Is there a function which returns true if
Merlin Morgenstern wrote:
Hi there,
I am importing data out of xml files on a linux server. Now I am running
into problems if the file is currently beeing uploaded and the upload
has not finished to the server.
Is there a function which returns true if the file is complete and not
in upload
Hi
I'm sure this is simple for yous all but I'm not sure I know the answer.
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh = fopen($myFileLast, 'r');
$theDataLast = fread($fh, 200);
fclose($fh);
On Sun, Dec 28, 2008 at 11:02 AM, John Allsopp j...@johnallsopp.co.ukwrote:
Hi
I'm sure this is simple for yous all but I'm not sure I know the answer.
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh = fopen($myFileLast,
On Sun, Dec 28, 2008 at 13:02, John Allsopp j...@johnallsopp.co.uk wrote:
$myFileLast = http://www.myDomain.com/text.txt;;
if (is_readable($myFileLast))
{
$fh = fopen($myFileLast, 'r');
$theDataLast = fread($fh, 200);
fclose($fh);
Check that whole path leading up to the file is accessible (+x) and
readable
(+r) by the webserver.
No. I'm positive. I did the whole chmod 777 * -R at the public_html
directory, and did the proper grouping and ownership in the same way (with
the appropriate commands).
--
PHP General Mailing
On Tuesday 01 April 2003 23:46, Liam Gibbs wrote:
Check that whole path leading up to the file is accessible (+x) and
readable
(+r) by the webserver.
No. I'm positive. I did the whole chmod 777 * -R at the public_html
directory, and did the proper grouping and ownership in the same way
Is there anything I should know about is_readable? It seems to find a file unreadable
whether the permissions are 000 or 777.
On Tuesday 01 April 2003 12:28, Liam Gibbs wrote:
Is there anything I should know about is_readable? It seems to find a file
unreadable whether the permissions are 000 or 777.
Check that whole path leading up to the file is accessible (+x) and readable
(+r) by the webserver.
--
Jason Wong -
20 matches
Mail list logo