At 15:07 17-11-03, you wrote:
Hi,
I have a code that should fetch the information from another webpage. The
code find's the page, but I can't make it stop on /table sign.
preg_match(|tr class=\listRow2\td class=\listRow2\span
class=\listIndex\1.+\\/table\|is, $buffer, $regs );
It probably
On Tuesday 18 November 2003 00:03, Chris Hayes wrote:
At 15:07 17-11-03, you wrote:
I have a code that should fetch the information from another webpage. The
code find's the page, but I can't make it stop on /table sign.
preg_match(|tr class=\listRow2\td class=\listRow2\span
Chris Hayes wrote:
At 15:07 17-11-03, you wrote:
Hi,
I have a code that should fetch the information from another webpage.
The code find's the page, but I can't make it stop on /table sign.
preg_match(|tr class=\listRow2\td class=\listRow2\span
class=\listIndex\1.+\\/table\|is, $buffer, $regs
On Saturday 08 November 2003 08:21, John Hagstrand wrote:
Thanks for your snot.
They were surplus to requirements so you're welcome to them.
The code you wrote below,
echo fopen(http://www.google.com;, 'r');
echo fopen(http://news.google.com;, 'r');
I've implmented at this url.
Hello Jason,
Thanks for your snot. The code you wrote below,
echo fopen(http://www.google.com;, 'r');
echo fopen(http://news.google.com;, 'r');
I've implmented at this url.
http://www.globalscoop.com/gs/feeds/testUrl.php
You can see the error I'm getting. Would you take a look?
John
On Friday 07 November 2003 04:12, John Hagstrand wrote:
I'm trying to read a URL.
this works: fopen( http://www.google.com;)
this does not work: fopen( http://news.google.com;)
As it stands, neither of the above will work. fopen() requires at least 2
parameters. When you post code,
Chris,
Looks like all you need to do is insert a statement that writes an
\n to the file, although what you have should work. Kind of puzzling
now that I look at it. Try adding the \n to $header before using it
in the fwrite statement.
$header .= \n;
$write = (fwrite($fp, $header));
[snip]
was able to use an absolute reference on my local machine to execute
read
file contents; e.g. fopen('http://www.mysite.com/index.php', 'a'), but
on
the host webserver no such luck. Administrator said I can only use
relative
paths. Problem is, when I use a relative path, I just get plain
Hey Jay.
Yes, the file is php code.
Um, why not use include()? I'm ashamed, and very pleased, to admit that
I had no idea I could set a var = to an include file!
Well, one learns something new each day, often with much head banging ;--)
Thanks for clueing me in.
--Noah
Jay
Hm..
Looks like I was deluding myself. The only data returned by setting a var =
include $include_path, is 0 or 1. I'm looking for a few hundred lines of
evaluated text. Back to the drawing board. Christ, this is a pain in
the.
--Noah
Jay Blanchard [EMAIL PROTECTED] wrote in
On Fri, 19 Sep 2003 17:05:47 -0700
CF High [EMAIL PROTECTED] wrote:
Hm..
Looks like I was deluding myself. The only data returned by setting a var =
include $include_path, is 0 or 1. I'm looking for a few hundred lines of
evaluated text. Back to the drawing board. Christ, this
Because I need to write $include_path content to file; not display it in the
browser...
--Noah
Andu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, 19 Sep 2003 17:05:47 -0700
CF High [EMAIL PROTECTED] wrote:
Hm..
Looks like I was deluding myself. The only
Because I need to write $include_path content to file; not
display it in the
browser...
Then you're not INCLUDEing it inline to the source, are you?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could you explain what you mean by:
Then you're not INCLUDEing it inline to the source
--Noah
Roger B.A. Klorese [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Because I need to write $include_path content to file; not
display it in the
browser...
Then you're not
On Fri, 19 Sep 2003 18:20:01 -0700
CF High [EMAIL PROTECTED] wrote:
Because I need to write $include_path content to file; not display it in the
browser...
So you want to read from a file and write back to it? I don't understand what
you're trying to accomplish, execute a script and write
Re: So you want to read from a file and write back to it? I don't
understand what you're trying to accomplish, execute a script and write the
result to file?
Yes, the read file is a nested set of queries that populates a js pop up
menu, the site navigational structure. That's why I need the read
On Fri, 19 Sep 2003 21:29:50 -0700
CF High [EMAIL PROTECTED] wrote:
Re: So you want to read from a file and write back to it? I don't
understand what you're trying to accomplish, execute a script and write the
result to file?
Yes, the read file is a nested set of queries that populates a js
* Thus wrote CF High ([EMAIL PROTECTED]):
Re: So you want to read from a file and write back to it? I don't
understand what you're trying to accomplish, execute a script and write the
result to file?
Yes, the read file is a nested set of queries that populates a js pop up
menu, the site
i have this snippet of code, from what i can tell it works .. just
wondering
if i am doing it in a correct way, or if there is a better, or faster
way.
thanks for any input.
$fp = @fopen($_SERVER[DOCUMENT_ROOT]/images/$mapname.jpg,r);
if ( $fp )
{
$mappic = img border=\0\
not a bad idea, thanks, I will do just that.
cheers,
- Sebastian
+- Original Message -+
said by: John W. Holmes
| i have this snippet of code, from what i can tell it works .. just
| wondering
| if i am doing it in a correct way, or if there is a better, or faster
| way.
| thanks
This is the code around line 30.
$local_file = $feed;
$fp = fopen($local_file, r);
Anyone have any ideas? I have looked over the manual and the only thing I
could find similar to this is in the comments. Apache was restarted.
I get the same thing so I'm working through it. But here
At 09:42 PM 3/10/2003, Liam Gibbs wrote:
This is the code around line 30.
$local_file = $feed;
$fp = fopen($local_file, r);
Anyone have any ideas? I have looked over the manual and the only thing I
could find similar to this is in the comments. Apache was restarted.
I get the same
hi mark!
i import data all the dang time and this is what i use (more or less)
?
$file = file(sompath/somefile.csv);
for($a=1;$acount($file);$a++)
{
$d = csv_parse($file[$a],,);
$first_name = make_safe($d[0]);
$last_name = make_safe($d[1]);
I would use something like this (assuming you're just going to read the
entire file and bung it into the database).
Be careful reading large files in, it can fill up PHP's allocated memory
resource. I've used this with 4 meg files though, and its worked ok.
$fp = file(yourfile.txt);
//This
Please take another look at the manual page on fopen(). You're not using it
correctly. fopen() does not return the contents of the file, it retuns a
resource handel. You pass the handel as a parameter to fread() in order to
read the file.
http://www.php.net/manual/en/function.fread.php
If all
that example code is trying to print out data which refers to the
integer filehandle of the fopen. To get data out of the file that you
have opened, you will need to read() it in.
John Taylor-Johnston wrote:
#http://www.php.net/manual/en/function.fopen.php
$contents = fopen
Hi Chris,
The mode rw is contradictory. You say open the file in the read-only and
write-only modes. I think you the append mode(a) is the candidate to solve
your problem.
Ferhat Can
- Original Message -
From: Chris Blake [EMAIL PROTECTED]
To: PHP General [EMAIL
Gerald Timothy Quimpo wrote:
On Sunday 12 January 2003 07:08 am, Mat Harris wrote:
Patti\ Smith/Horses\ \[1975\]/01-Gloria.mp3
but fopen will still refuse saying file not found. I have tried escaped
and unescaped amnd yes, I am very sure the file is there.
How can I get fopen to accept a path
On Sunday 12 January 2003 07:08 am, Mat Harris wrote:
Patti\ Smith/Horses\ \[1975\]/01-Gloria.mp3
but fopen will still refuse saying file not found. I have tried escaped
and unescaped amnd yes, I am very sure the file is there.
How can I get fopen to accept a path like this?
$in=fopen(a
how about something like...
$start = time();
$timeout = 60; // number of seconds to try
while (!$file = fopen(...) time() $start + $timeout);
if ($file)
{ // do stuff with file
}
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From: Phil Powell [EMAIL
PROTECTED]
To: Phil Powell [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, December 08, 2002 3:10 PM
Subject: Re: [PHP] fopen have a setTimeout feature?
how about something like...
$start = time();
$timeout = 60; // number of seconds to try
while (!$file = fopen(...) time
Dara Dowd wrote:
Thanks for the advice lads but I realise I should have been clearer. I know about header(etc..) so displaying the download dialog isn't the problem, it's how to get to the file on the file server and then open it. The file server isn't a web server. This is probably ridiculously
On Wednesday 04 December 2002 16:21, Dara Dowd wrote:
Hello,
I'd like a user to be able download a file from a file server on my LAN.
Using a href=file://server/directory/filename works ok, but this simply
displays the file in the browser and I want to force the download dialog
box to
Link them to a page like this to download the file:
?php
header(Content-type: application/octet-stream);
//Code to display file
?
Dara Dowd wrote:
Hello,
I'd like a user to be able download a file from a file server on my LAN.
Using a href=file://server/directory/filename works ok, but this
Couldn't you set the Mime-Type on the server for the correct extenstion?
Leif K-Brooks wrote:
Link them to a page like this to download the file:
?php
header(Content-type: application/octet-stream);
//Code to display file
?
Dara Dowd wrote:
Hello,
I'd like a user to be able download a
Please reread the documentation found here:
http://www.php.net/header
It has a pdf file as an example, modify according
to your needs.
Regards,
Philip
On Wed, 4 Dec 2002, Elkan wrote:
Couldn't you set the Mime-Type on the server for the correct extenstion?
Leif K-Brooks wrote:
Olson [EMAIL PROTECTED]
Date: Wed, 4 Dec 2002 19:10:31 + (GMT)
To: Elkan [EMAIL PROTECTED]
Subject: Re: [PHP] fopen over a network
Please reread the documentation found here:
http://www.php.net/header
It has a pdf file as an example, modify according
to your needs.
Regards,
Philip
hi,
i suggest that you use CURL, check the PHP manual
if CURL did't help you can use the lower-level PHP sockets extension
also check the PHP manual
khalid
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You can't use fopen, but you can use fsockopen ( php.net/fsockopen ).
$fp = fsockopen ( www.domain.com, 2734);
fputs($fp, GET / HTTP/1.0\r\n\r\n);
while ( !feof($fp) )
echo fgets($fp, 256);
CURL is kinda overkill, sockets are overkill and
Hello,
Well, I'm able to make an empty file with
fopen(ftp://username:password;domain.com/folder/file.prefs, w)
However, I'm still nowhere because this file belongs to the user and her
group, not to Apache, so I still can't write to it.
Here's what I have to work with:
-- I have the
Charles, can you not create and write the file locally and then upload
it directly via ftp?
I'm not much of a PHPriest, but I love PHP because it's the first web
scripting language that I have encountered that actually make sense, is
coincise and very powerful. It's the old question--do we make
At 22:48 06.11.2002, Charles Wiltgen said:
[snip]
Well, I'm able to make an empty file with
fopen(ftp://username:password;domain.com/folder/file.prefs, w)
However, I'm still nowhere because this file belongs to the user and her
group, not to Apache, so
Marco Tabini wrote...
I'm not much of a PHPriest, but I love PHP because it's the first web
scripting language that I have encountered that actually make sense, is
coincise and very powerful.
Yes, I'm a big fan. I was going to do this in .NET, which I'm more familiar
with
Ernest E Vogelsinger wrote...
Why don't you do it this way:
$fp = fopen(ftp://username:password;domain.com/folder/file.prefs, w);
fwrite($fp, 'Some content', 12);
fclose($fp);
I don't see a reason why you shouldn't directly use the file handle
returned by fopen - that's why the PHP god
Ernest E Vogelsinger wrote...
$fp = ftp_connect($ftphost);
if ($fp) {
$login = ftp_login ($fp, $user, $pass);
ftp_delete ($fp, $ftpfile);
ftp_quit($fp);
}
else die('Cannot connect to FTP');
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone
At 00:08 07.11.2002, Charles Wiltgen said:
[snip]
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone recommend a great FTP class? (I'm not exciting about doing this via
sockets, but I will if I have to...)
Ernest E Vogelsinger wrote...
So, DreamHost doesn't appear to have compiled PHP with FTP support. Can
anyone recommend a great FTP class? (I'm not exciting about doing this via
sockets, but I will if I have to...)
Would curl be an option? Do they have this? You could, however, always
Charles Wiltgen wrote...
I'm using sockets, and everything working except I can't CD to a directory
with a period in it (which is, of course, what I need to do). Does I need to
escapte this somehow for fputs()?
Sorry, I'm an idiot...I went back to the FTP RFC and everything's working
fine.
If you're using Apache, have you considered suexec? You can write an
external script that takes care of that.
Marco
---
php|architect -- The Monthly Magazine For PHP Professionals
Visit us on the web at http://www.phparch.com!
On Tue, 5 Nov 2002, Charles
Wiltgen wrote:
Hello,
Marco Tabini wrote...
If you're using Apache, have you considered suexec? You can write an external
script that takes care of that.
My hosting provider (DreamHost) uses suexec. My understanding is that this
lets you run CGI scripts as another user, but I'm not sure how I could take
advantage
if allow_url_fopen is not on, you can still use fsockopen(), and no it
doesn't affect security, if you don't open files based on unchecked user
input.
Alfonso Ballesteros wrote:
Hello
I'm a newcomer to PHP and I wish to know how to get the contents of a file
located in an URL if the
READ from the opened file handle.
Please, be more specific in your error discussion.
Original Message -
From: Alfonso Ballesteros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 17, 2002 6:58 AM
Subject: Re: [PHP] fopen error
I'm still stuck with this...
Using fsockopen
I would say that is the best way, or if you have other information
there, write to abother directory that is owned by apache
-Brad
Donahue Ben wrote:
I have a php script that tries to write files in a
particular directory. When the script writes files
the ownership is apache. The problem
Is there a cacheing mechanism involving PHP scripts? I don't see how it's
possible to fopen() data from the browser's cache. If you are not getting
the latest version of the web page then perhaps the server you are trying to
scrape is cloaking your spider. Just a thought.
-Kevin
-
Is there a cacheing mechanism involving PHP scripts? I don't see how it's
possible to fopen() data from the browser's cache. If you are not getting
the latest version of the web page then perhaps the server you are trying
to
scrape is cloaking your spider. Just a thought.
I suspect it is
for
the most part. Hope this helps. Good luck.
-Kevin
- Original Message -
From: Syl [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Monday, August 19, 2002 4:27 PM
Subject: Re: [PHP] fopen(http:...) problems
Is there a cacheing mechanism involving PHP scripts? I don't
Op woensdag 14 augustus 2002 13:04, schreef electroteque:
hi there i was wondering how i could fopen a directory and then sort the
files by date modified is there a way ?
?php
// Note that !== did not exist until 4.0.0-RC2
$dir='/home';
if ($handle = opendir($dir))
{
echo Directory
sweet , damn filemtime this was hiding from me :)
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 8:48 PM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] fopen and sort by date modified
Op woensdag 14 augustus 2002 13:04, schreef
unfortunately this isnt sorting by date modified ?
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 8:48 PM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] fopen and sort by date modified
Op woensdag 14 augustus 2002 13:04, schreef
On Tue, Jul 16, 2002 at 11:08:19AM -0400, Conover, Ryan wrote:
I am trying to do a simple fopen(http://www.weather.com/index.html;, r);
For some reason I cannot Open any URL's after trying several.
Warning: stat failed for Resource id #1 (errno=2 - No such file or
directory)
If you're
[snip]
Didn't I read the article somewhere on PHP.net that said that? Using
fopen() to open a file, does it attempt to create a file if the file does
not exist? I use the fopen() and I get the error message. What is the
workaround to it?
[/snip]
fopen(filename, w+); open the filename or
Thanks a million!!!
Jay Blanchard [EMAIL PROTECTED] wrote in message
002401c22824$2b1e87b0$8102a8c0@niigziuo4ohhdt">news:002401c22824$2b1e87b0$8102a8c0@niigziuo4ohhdt...
[snip]
Didn't I read the article somewhere on PHP.net that said that? Using
fopen() to open a file, does it attempt to
That doesnt' work! Never mind! I'll manually create a blank file and put
it there!
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks a million!!!
Jay Blanchard [EMAIL PROTECTED] wrote in message
You need to have permission to write to the file. Might I also suggest that
you include the full path to the file.
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] fopen() ??
That doesnt
On Wed, 10 Jul 2002 11:33:52 -0400, you wrote:
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks a million!!!
Didn't I read the article somewhere on PHP.net that said that? Using
fopen() to open a file, does it attempt to create a file
I have the full file path already. It is the permission. Everytime I move
the website to a different machine, the permission is set back to the
default.
David Otton [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Wed, 10 Jul 2002 11:33:52 -0400, you wrote:
So, manually create a file took care of that.
David Otton [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Wed, 10 Jul 2002 11:33:52 -0400, you wrote:
Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks a
On Thu, Jul 04, 2002 at 08:04:59AM +0100, morka ++ wrote:
i try to open the external file using fopen() function.
I use the example from php.net:
$filename = http://www.aaa.com/index.html;
$fd = fopen ($filename, r);
$contents = fread ($fd, filesize ($filename));
This function will not work
The manual shows fopen(http://www.php.net/,r;) works. If you are
saying it is only today that it is not working then I wonder if the
server (or dns server for it) is down.
If on unix, does dig domain.com give an ANSWER section with ip
address? If on NT, does nslookup domain.com give an ip
On Tuesday 04 June 2002 21:17, Jose Jeria wrote:
What I want to do is to the save a file with its new content, but when i
save the file
and the new content is less than it was before i opened it, you can see the
old content
after the new shorter content. How can i avoid this?
Now using:
Jennifer, works just fine here..
-
$fp =
fopen(http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfe
ed,r);
if ($fp !== FALSE)
echo The file exists!;
else
echo The file does not exist;
-
This prints The file exists! so it may be something else in your
thanks for looking. my guess is that it could be a
server configuration issue. i am really not sure. the
actual script works just not on the server i need
it to work on. maybe it has something to do with the
.ini file or the installation. i am not very familiar
with that. does this sound
Sounds like maybe the fopen url wrapper is not installed. I've never taken
any particular steps to install it, so I'm not sure how that would come
about.
miguel
On Wed, 15 May 2002, jennifer jefferson wrote:
thanks for looking. my guess is that it could be a
server configuration issue. i am
i looked at the php.ini file and f wrapper is configured. thanks for the
suggestion. i am still looking for any suggestions anyone has. thanks.
-jennifer
Miguel Cruz wrote:
Sounds like maybe the fopen url wrapper is not installed. I've never taken
any particular steps to install it, so I'm
: [EMAIL PROTECTED]
Subject: Re: [PHP] fopen failing to connect
i looked at the php.ini file and f wrapper is configured. thanks for the
suggestion. i am still looking for any suggestions anyone has. thanks.
-jennifer
Miguel Cruz wrote:
Sounds like maybe the fopen url wrapper is not installed
On Friday 19 April 2002 08:04, David McInnis wrote:
I am having a problem reading a remote file using fopen and http://. I
suspect this is because the remote file is sending back a cookie. Can
anyone confirm and/or offer a solution?
If it is indeed sending back a cookie then you need
On Sat, 2 Mar 2002, Craig Westerman wrote:
How can I use fopen to retrieve just one html table out of a whole web page
I need to extract just this table (shown below) from this web page:
http://quotesnasdaqcom/quotedll?page=multimode=stocksymbol=drooy
fopen() will pull the page, yes But then
Craig,
AFAIK you can't: fopen opens the file and leaves it up to you to read it
a character or some other chunk at a time, keeping what you want, and
leaving the rest. There is no concept of opening a file at a particular
character position, other than to write-over or write-append. (see
Message-
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 3:54 PM
To: Craig Westerman; php-general-list
Subject: Re: [PHP] fopen
Craig,
AFAIK you can't: fopen opens the file and leaves it up to you to read it
a character or some other chunk at a time, keeping what you
:18 PM
To: John Smythe
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] fopen
On Thu, 2002-02-14 at 17:34, John Smythe wrote:
i wanna know if there is a way of opening a file in a certian mode so when
i write to a txt file it writes at the top of the file, and doesnt overwrite
whats at the start
On Friday, February 15, 2002, at 04:53 AM, Lars Torben Wilson wrote:
The problem with that is that you have a time lag (perhaps only
in microseconds, but it still is a problem) while you're writing
the new data to the file. If some other process--say, another
invocation of the same
On Thu, 2002-02-14 at 17:34, John Smythe wrote:
i wanna know if there is a way of opening a file in a certian mode so when i write
to a txt file it writes at the top of the file, and doesnt overwrite whats at the
start of the file
No, not with fopen(). What you can do is create a temporary
: [PHP] fopen
On Thu, 2002-02-14 at 17:34, John Smythe wrote:
i wanna know if there is a way of opening a file in a certian mode so when
i write to a txt file it writes at the top of the file, and doesnt overwrite
whats at the start of the file
No, not with fopen(). What you can do is create
I've tested given url..
If there is no image php script return file = '139'.
Check if file content is different from 139.
or try to get image size of file:
$size = GetImageSize
(http://waptopic.supereva.it/loghiesuonerie.it/LogoGen.php?id=1100;);
and check what happens if there is no image
]'
Subject: Re: [PHP] fopen and paths
On Tue, 13 Nov 2001 03:14, PACKER, Steffan wrote:
I am trying to log particular information in an access log and I need
it to be used on several pages all in different directories, I would
like the actual log to be stored in a directory called data in the root
, November 13, 2001 3:22 AM
To: PACKER, Steffan; '[EMAIL PROTECTED]'
Subject: Re: [PHP] fopen and paths
On Tue, 13 Nov 2001 03:14, PACKER, Steffan wrote:
I am trying to log particular information in an access log and I need
it to be used on several pages all in different directories, I would
like
On Tue, 13 Nov 2001 03:14, PACKER, Steffan wrote:
I am trying to log particular information in an access log and I need
it to be used on several pages all in different directories, I would
like the actual log to be stored in a directory called data in the root
directory of my web page. I
Perfect and just what I was looking for! I was able to finish my program
today using
it and the boss is wondering how I did it so fast! HINT: he thought I was
using perl.
At 01:59 PM 10/29/2001 -0400, Frewuill Rodriguez wrote:
what about using ftp functions from PHP?
what about using ftp functions from PHP?
http://www.php.net/manual/en/ref.ftp.php
- Original Message -
From: Scott [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 10:58 AM
Subject: [PHP] fopen for ftp transfers
Hi-
I am attempting to transfer files from
Short answer. http://www.php.net/manual/en/function.flock.php
-Original Message-
From: Kmarada [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] fopen
is it possible to use fopen to open 5000 files differents simultaneous
and
If you use preg_match (PERL style Regex) instead of ereg
you can use the s match modifier which tells it to treat the
entire file as a single line... so your Regex would be
if (preg_match(|title(.*)/title|is, $line, $out)) {
(The i is case insensitive... since you were using eregi)
Hope that
It does not work with the = right in the URL.. PHP gives me a warning
about the fopen statement or file statement if I do.. and then returns
nothing.
If I escape it, it loads the proper URL, but then the page it opens
does not recognize the defined variables because it loads
on 8/1/01 8:39 AM, Ibrahim Noor at [EMAIL PROTECTED] wrote:
I tried to create file by fopen(fd, w) function, but it didn't work.
Permission Denied, server said.
maybe you (the user your script is running as) don't have permission to
write the file?
-- mike cullerton
--
PHP General
30, 2001 1:52 PM
Subject: RE: [PHP] fopen not opening url
Hi jay,
I've done the exact thing you're trying, and it works...paste in some
code so we can see where its going wrong...
jack
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 2
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 2:01 AM
Subject: RE: [PHP] fopen not opening url
Are you still having problems?
Things to try:
1. Try and open the url directly in a browser.
eg http://p.moreover.com/cgi
hmmm.. i'm having the same sort of problem.. although fopen() won't even
open yahoo.com.. what kind of errors are you getting?
jay
- Original Message -
From: Greg Donald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 5:24 PM
Subject: [PHP] fopen() issue
Why
open!);
print fread($x , 4096);
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 1:40 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] fopen not opening url
yeah i've tried opening it directly in a browser and it works
[EMAIL PROTECTED]
To: 'Jay Paulson' [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 1:52 PM
Subject: RE: [PHP] fopen not opening url
Hi jay,
I've done the exact thing you're trying, and it works...paste in some
code so we can see where its going wrong...
jack
-Original Message
That works!
Thanks a lot :)
Cheers, Nessi
At 17:11 26/07/01 , you wrote:
try @fopen(categories.txt,r+);
- Original Message -
From: Vanessa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 12:05 PM
Subject: [PHP] fopen - warnings
Hello List,
this is probably a
...
if ($datei = @fopen($file[$i], r+))
...
On Thu, 26 Jul 2001, Vanessa wrote:
Hello List,
this is probably a very stupid question, but I dont know how to solve this
little problem:
I have a script with which text files (exported access db data sheets) can
be uploaded to the mysql
101 - 200 of 216 matches
Mail list logo