* 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");
>
Hi Everyone.
I'm having problems creating code to read a file from another server.
1. Is this even possible? with a secure server aswell?
2. I have tried using fopen()but this always gives me an error:
Warning: stat failed for http://www.domain.com/test.txt (errno=2 - No such
file or
Hi all,
I am reading the content of a text file into a variable to be used in a
javascript. I am reworking some code that was originally done using
ColdFusion and the jsStringFormat(var) function. What is the PHP
equivalent string function? Is there one? I have searched the docs, but
can't fig
-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
Hey
I have a TEXT file that I want to make visual via the web using php
Hi,
I wonder if someone can help me solve this niggling problem:
I have a hyperlink
[javascript:openwindow('http:myserver/files.php?expid=67.iq')], which
passes the argument 'expid' to the PHP script, where 'expid' is the name
of a file.
I want to take the file data and put it into a string. Wh
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
I have been able to find out how to read a file and replace certain matches,
but I want to be able to take a web page stored in a string and change the
tags and add www.mysite.com?page= before the actual link value so
the new url would read www.mysite.com?page=original_url. Can I do this and
i
16 matches
Mail list logo