Thanks for the response....I have checked the ini file and the variable is On, but still getting same error...
Here is the code in full:
<?
set_magic_quotes_runtime(0);
#
# This is a simple attempt to prevent the download of just
# any file on our server
#
if ( eregi("\.svg$", $_GET[file] )) {
#
# It's an SVG file so get the file's size
#
$size = filesize($_GET[file]);
if ( $_GET[start] == -1 ) {
#
# -1 is used to specify that the calling routing
# wants to know the size of the file that is
# being downloaded. Tell 'em how big it is.
#
print $size;
} elseif ( $_GET[start] < $size ) {
#
# Otherwise we are being asked for a chunk of the
# file
#
if ( ( $_GET[start] + $_GET[length] ) > $size ) {
#
# Oops. Asked for too many bytes from the
# current position. Re-adjust to how much we
# really need to read.
#
$size = $size - $_GET[start];
}
#
# Open the file for reading.
# Really should be error checking from here
# on down.
#
$fh = fopen($_GET[file], "r"

;
#
# Move to the position where we should begin
# reading
#
fseek($fh, $_GET[start]);
#
# Read the requested number of bytes and send
# those back to the calling routine
#
print fread($fh, $_GET[length]);
#
# All done. Close the file
#
fclose($fh);
} else {
#
# The start position in the file is passed the
# end of the file. That means we're all done.
#
print "done";
}
} else {
#
# Really should return some sort of violation error here
#
print "done: invalid doc type: $_GET[file], $_GET[start], $_GET[length]";
}
?>
What I am trying to achive is to load a text file bit by bit returning the text to a var in javascript and allowing me to then parsexml..Any ideas?
Thanks