* Thus wrote Thomas ([EMAIL PROTECTED]):
> I know the url is good, cause I can go on to this domain and look at all my
> files.
>
> I guess I should explain a little further...
>
> This server is a game server for Counter-Strike. I'm trying to read a file
> on there called "mapcycle.txt".
> Thi
Have you tried downloading the file to your server and then read it from
there? I do this at least 15 times a day with several different sites and
I rarely have any problems.
CDitty
At 11:28 AM 7/26/2003, Thomas wrote:
I know the url is good, cause I can go on to this domain and look at all my
I know the url is good, cause I can go on to this domain and look at all my
files.
I guess I should explain a little further...
This server is a game server for Counter-Strike. I'm trying to read a file
on there called "mapcycle.txt".
This server is a secure server, so I would need to use a use
--- Thomas <[EMAIL PROTECTED]> wrote:
> readfile("ftp://username:[EMAIL PROTECTED]/test.txt");
>
> It doesn't have any errors and comes up blank.
>
> If I put:
>
> $result =
> readfile("ftp://username:[EMAIL PROTECTED]/test.txt");
> print ($result);
>
> it ends up showing a '0' by iteself.
T
if I use:
readfile("ftp://username:[EMAIL PROTECTED]/test.txt");
It doesn't have any errors and comes up blank.
If I put:
$result =
readfile("ftp://username:[EMAIL PROTECTED]/test.txt");
print ($result);
it ends up showing a '0' by iteself. that's it. and I knwo the txt file
is full of inf
--- Thomas <[EMAIL PROTECTED]> wrote:
> I'm having problems creating code to read a file from another
> server.
>
> 1. Is this even possible? with a secure server aswell?
Yes.
> this is my code:
> $filename = "http://www.domain.com/test.txt";;
> $handle = fopen ($filename, "r");
>
-pre01:index index was never started
-Original Message-
From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]]
Sent: mercredi 6 mars 2002 15:13
To: Sven Jacobs; [EMAIL PROTECTED]
Subject: Re: [PHP] Reading A file
> Hey
>
> I have a TEXT file that I want to make visual vi
-pre01:index index was never started
-Original Message-
From: Ing. Fernando Proll Segura [mailto:[EMAIL PROTECTED]]
Sent: mercredi 6 mars 2002 15:13
To: Sven Jacobs; [EMAIL PROTECTED]
Subject: Re: [PHP] Reading A file
> Hey
>
> I have a TEXT file that I want to make visual vi
> Hey
>
> I have a TEXT file that I want to make visual via the web using php
>
>
>
Maybe this isn't the best way but to do this I use the following code:
";
}
$lines=file("yourfile.txt");
array_walk($lines,'do_print');
?>
As you can see I use the file() function to get each line of text in
> I have a TEXT file that I want to make visual
> via the web using php
HTH
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
All you need is a regular expression, provided by ereg function or preg
functions.
You'd have the regex look for
Then just adjust the result as you want it to appear.
You'll need to either search around for code that already does this, or be
willing to learn regular expressions (which you sho
11 matches
Mail list logo