Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Ilia A.
On September 7, 2002 10:37 am, Mats Lindh wrote: > - [EMAIL PROTECTED]% (Marcus Börger): > > But according to your example i think google prohibts accessing their > > search engine etc. through software... > > A bit off-topic; but google has its own "Web API" for developers > wanting to access goo

Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Mats Lindh
- [EMAIL PROTECTED]% (Marcus Börger): > But according to your example i think google prohibts accessing their > search engine etc. through software... A bit off-topic; but google has its own "Web API" for developers wanting to access google-results: http://www.google.com/apis/ -- mats -- PH

Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Markus Fischer
On Sat, Sep 07, 2002 at 12:00:35PM +0100, Wez Furlong wrote : > On 09/07/02, "Markus Fischer" <[EMAIL PROTECTED]> wrote: > > +1 > > Afaik this was already brought up. > > I'm +1 on the principle. > > > Maybe some ini entry like > > php.user_agent (or whatever fits best) > > +1

Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Wez Furlong
On 09/07/02, "Markus Fischer" <[EMAIL PROTECTED]> wrote: > +1 > Afaik this was already brought up. I'm +1 on the principle. > Maybe some ini entry like > php.user_agent (or whatever fits best) +1 on this, but also note that the not-yet-documented-enough stream context is intende

Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Marcus Börger
At 09:49 07.09.2002, Ilia A. wrote: >Current implementation of fopen() and any other built in functions that allow >opening of Urls, always sends a User-Agent: PHP/PHP_VERSION header when >sending the request, which cannot be disabled by the user. >Afaik this header is entirely optional and in som

Re: [PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Markus Fischer
+1 Afaik this was already brought up. Maybe someini entry like php.user_agent (or whatever fits best) which is of type string: ini_set("php.user_agent", "Tawnee Stone Virus"); and can be disabled with: ini_set("php.user_agent", ""); I.e. spec

[PHP-DEV] fopen() & User-Agent

2002-09-07 Thread Ilia A.
Current implementation of fopen() and any other built in functions that allow opening of Urls, always sends a User-Agent: PHP/PHP_VERSION header when sending the request, which cannot be disabled by the user. Afaik this header is entirely optional and in some cases even causes problems if the

[PHP-DEV] fopen zend wrapper and relative paths

2002-05-31 Thread Daniel BODEA
The bug #11326 was closed after Zeev added the current executing file's directory to the search path, which solved half of the problem. The original bug #9673 though is still open, and the last comment is pointing to the other half of the problem, relative paths. Right now, in main/streams.c/_ph

Re: [PHP-DEV] fopen(); question

2002-05-23 Thread Stig S. Bakken
On Thu, 2002-05-23 at 14:24, Jose Jeria wrote: > I am new to PHP and I have a simple question about fopen > > For example: > $tmp = fopen("testfile.txt", "r"); > > If the file is not found i get an error. ("No such file or directory") > So there is no point in checking for this like this: > > i

[PHP-DEV] fopen(); question

2002-05-23 Thread Jose Jeria
I am new to PHP and I have a simple question about fopen For example: $tmp = fopen("testfile.txt", "r"); If the file is not found i get an error. ("No such file or directory") So there is no point in checking for this like this: if($tmp) // statements Am I doing something wrong here? -- PH

Re: [PHP-DEV] fopen with https support ?

2002-03-12 Thread Wez Furlong
Andrey, I have a patch waiting to commit against the current CVS; I've been holding off while waiting for the branch for the next release and now I'm waiting for the new build system to settle down a little. Since the patch touches most corners of PHP, it will need a bit of "testing in"; I think

[PHP-DEV] fopen with https support ?

2002-03-08 Thread Andrey Hristov
According to a 2 message thread in Jun 2001 Wez Furlong said : On 22/06/01, [EMAIL PROTECTED] wrote: > We are not regular PHP developers, but one of our programmers developed a > patch to 4.0.5 that allows PHP to act as an SSL client. > > If you believe that it is useful, feel free to add to the

[PHP-DEV] fopen UNC filename

2002-02-20 Thread Johannes Müller
I tried to fopen("\\machine\shaer\file.txt","w") on w2k iis 5.0 PHP 4.1.0 and I got fopen invalid argument error. I know, that UNC filenames are supported since PHP 4.0.6. I tried variants with machine\\share\\file.txt, ... but the error was the same. TIA Jo -- PHP Development Mailing Li

[PHP-DEV] fopen / relative LINKS

2002-02-06 Thread Patricio Galeas
Hello : I tried to use : $fn=fopen("http://WEB-address";, "r"); But I have problems when the HTML document has relative LINKS or images with relativ path. This Links have my Server-Address as Path. !! How can I solve it Thank You for your Help Please response to : [EMAIL PROTECTED] -- PHP

[PHP-DEV] fopen

2001-10-26 Thread Waldemar Brand Neto
I tried fopen as folow: line 151 $abre = fopen(ftp://usr:[EMAIL PROTECTED]/csn.txt", "w"); 176 fwrite($abre,$linha.CHR(13).CHR(10)); 178 fclose($abre); And this erros ocuursWarning: fopen("ftp:[EMAIL PROTECTED]/csn.txt","w") - Success in /home/kompatscher/www/piloto/csn/CsnArquivo.php on li

Re: [PHP-DEV] fopen

2001-03-06 Thread Myke Corredera
In fopen is there a way to get the file info like Mod Date, Size of File I am trying to mimic the look of a Apache Index listing , if that helps -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP-DEV] fopen() changes, please review this patch

2001-01-12 Thread Boian Bonev
CTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 11, 2001 10:09 AM Subject: [PHP-DEV] fopen() changes, please review this patch > Hi > > I've changed http_fopen_wrapper.c (not in CVS yet) so that it follows > redirects, just like fopen() did before 4.0.3

[PHP-DEV] fopen() changes, please review this patch

2001-01-10 Thread Stig Venaas
Hi I've changed http_fopen_wrapper.c (not in CVS yet) so that it follows redirects, just like fopen() did before 4.0.3, which I think is good. I've also changed $http_response_header so that all headers will be present. For instance if I do fopen("http://yahoo.com/", "r") the contents will be: a