Re: [PHP-DB] fopen

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 16:36, Yemi Obembe wrote: > How can I get the file name of the home page of a url I opened with fopen() > this way: > > $handle = fopen("http://www.example.com/";, "r"); > > ? You can't. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

[PHP-DB] fopen

2004-12-23 Thread Yemi Obembe
Hi list, How can I get the file name of the home page of a url I opened with fopen() this way: $handle = fopen("http://www.example.com/";, "r"); ? - A passion till tomorrow, Opeyemi Obembe | ng.clawz.com ___

Re: [PHP-DB] fopen : Supplied argument is not a valid File-Handle resource

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 18:35, Ferdian wrote: > > How about putting in some error checking code as per example in manual? > The error was on : $ns = fsockopen($com_server,43); > fputs($ns,"$domname\r\n"); That is *where* the error occurred. But *what* is the error? Again, refer to examples

Re: [PHP-DB] fopen : Supplied argument is not a valid File-Handle resource

2003-09-30 Thread Ferdian
> How about putting in some error checking code as per example in manual? > Hi Jason, The error was on : $ns = fsockopen($com_server,43); fputs($ns,"$domname\r\n"); Any solutions ? Kind Regards, Ferdian -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP-DB] fopen : Supplied argument is not a valid File-Handle resource

2003-09-29 Thread Jason Wong
On Monday 29 September 2003 15:30, Ferdian wrote: Please post to the correct list, this has nothing to do with databases. Please do not post multiple times. Wait patiently for a response! > I use this script [snip] > $ns = fsockopen($com_server,43); fputs($ns,"$domname\r\n"); > $resul

[PHP-DB] fopen : Supplied argument is not a valid File-Handle resource

2003-09-29 Thread Ferdian
Dear All, I use this script if ( ($type == "all" or $type == "com") and $com_include ) { $com_array = array($ddomain.".com",$ddomain.".net"); $com_count = count($com_array); $i=0; for ($i=0;$i<$com_count;$i++) { $domname = $com_array[$i]; $ns = fsockopen($com_server,4

[PHP-DB] fopen() question and auto update question

2003-06-08 Thread Tony S . Wu
has any of you have any problem with fopen() that it can't open some web page? i am trying to use it to gather information from other web pages, but i am having problem with one particular website, macmall.com. might anyone know what the problem is? also, if there is no solution to this, i am goi

[PHP-DB] fopen() alternative

2002-10-24 Thread Michel Bakkenes - bakkenes.net
Hey, I need to check the existence of a webaddress on a foreign webserver. I could use fsocketopen to check the domain only, _but_ the important thing is to check one or multiple directories like http://webservername.com/subdir/dir. I found out that the common way is to use fopen() for similair

Re: [PHP-DB] fopen() question

2002-06-06 Thread Bogdan Stancescu
Also, if you check many URL's from the same script, make sure neither PHP nor the browser times out. For PHP, set_time_limit() and for the browser echo a space and flush() after each test. Bogdan Bogdan Stancescu wrote: > Try $fp=@fopen( etc > > Bogdan > > Tony wrote: > >> I have a database a

Re: [PHP-DB] fopen() question

2002-06-06 Thread Bogdan Stancescu
Try $fp=@fopen( etc Bogdan Tony wrote: >I have a database and I am writing a script to auto-update some information >in the database. >That requires me to read data from database, find the URL, read the URL, >find the information I want, then update it in the database. >My problem is, for examp

[PHP-DB] fopen() question

2002-06-06 Thread Tony
I have a database and I am writing a script to auto-update some information in the database. That requires me to read data from database, find the URL, read the URL, find the information I want, then update it in the database. My problem is, for example I read one record from database who's URL is

[PHP-DB] fopen ; fstat

2001-11-19 Thread Mister16
Hi everybody!! Does anybody know how to use fopen and fstat! I used it on local files and refered files on the own server, but it doesn't show (e.g. the filesize) of my server with the downloadfiles, which is not the same server the php files are on! I've also added the source code, so please hel

RE: [PHP-DB] fopen function

2001-08-10 Thread Michael Rudel
gt; Sent: Thursday, August 09, 2001 10:12 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] fopen function > > > > I made a simple submissions form that writes to a backup file > using the > fopen function. I use the variable a+ or a, for the backup. > it goes to the > end of

[PHP-DB] fopen function

2001-08-09 Thread Nathan Cavicchi
I made a simple submissions form that writes to a backup file using the fopen function. I use the variable a+ or a, for the backup. it goes to the end of the file and adds the new info. I need it to add the new data at the beginning of the file, but leave the file in tact. Does anyone have an

[PHP-DB] FOPEN () communication

2001-07-16 Thread Ken Sommers
PHP manual says: fopen fopen -- Opens file or URL Description int fopen (string filename, string mode [, int use_include_path]) If filename begins with "http://"; (not case sensitive), an HTTP 1.0 connection is opened to the specified server, the page is requested using the HTTP GET method, and a