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
+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. special
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 intended to
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 on this, but also
- [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
--
PHP
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
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, dot relative paths.
Right now, in
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?
--
PHP
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
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
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 List
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
I triedfopen 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
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 http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
14 matches
Mail list logo