[PHP-WIN] fopen or such with UTF-8 filepath

2013-03-08 Thread Kenji Uno
Hi. Anyone trying to realize UTF-8 filepath support on Windows's php5? I'm developing php-wfio: Unicode(UTF-8 only) filename support for PHP 5.4 on Windows. About file access: --- $file = wfio_fopen8("多国語.txt", "rb"); // in UTF-8 fclose($file); --- It uses _wfopen instead of fopen inter

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-28 Thread Niel Archer
> I have this error when ever i try to save an xml file over a windows shared > folder > > *Warning*: > fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ > function.fopen]: failed to open stream: Invalid argument in * > E:\\businesscard\create.php* on line *663* > > my c

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-25 Thread Niel Archer
Hi Louie I've tried using both a mapped network drive and the UNC path syntax. Both work perfectly for me, although I only tried reading, not writing. Which version of PHP are you using. I'm not sure if versions before 5.0 handle shares at all. I checked the bug entry you cited, did you read the

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Mazzu
Have you try to test whether the file is available or not ? Maybe you should try somehting like this : $xml_file = '192.168.10.2\\businesscard\\XML\\'.$xml_uniq_session.'.xml'; if (!file_exists($xml_file)) { exit('File '.$xml_file.' does not exists or is unavailable'); } elseif (!is

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Louie Miranda
After seeing this: http://bugs.php.net/bug.php?id=25805 I think i know what the problem is. Louie On 10/25/07, Louie Miranda <[EMAIL PROTECTED]> wrote: > > Tried both.. > > Use forward slashes for paths inside double quotes, > fopen("192.168.10.2/businesscard/XML/" . $xml_uniq_session . ".

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Louie Miranda
Tried both.. Use forward slashes for paths inside double quotes, fopen("192.168.10.2/businesscard/XML/" . $xml_uniq_session . ".xml", "w"); escape the backslashes themselves fopen("192.168.10.2\\businesscard\\XML\\".$xml_uniq_session.".xml", "w"); or single quotes fopen('192.1

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Niel Archer
> I have this error when ever i try to save an xml file over a windows shared > folder > > *Warning*: > fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ > function.fopen]: failed to open stream: Invalid argument in * > E:\\businesscard\create.php* on line *663* > > my c

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-23 Thread Louie Miranda
Hi John, Tried your suggestion. But, it still has the same error. [function.fopen]: failed to open stream: Invalid argument in On 10/23/07, John Mertic <[EMAIL PROTECTED]> wrote: > > Make sure that the folder you are saving to is available for saving > for user which the webserver is running as

[PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-22 Thread Louie Miranda
I have this error when ever i try to save an xml file over a windows shared folder *Warning*: fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ function.fopen]: failed to open stream: Invalid argument in * E:\\businesscard\create.php* on line *663* my code: $createXML =

[PHP-WIN] fopen + wmv

2005-02-13 Thread Rudi Starcevic
Hi, I'm using fopen() and fpassthru()/feof() to read Windows Media Video, .wmv, files of a Win2003 server with Apache and PHP. The file is opened and downloaded OK but is somehow corrupted. The Windows Media Player says the file is not the correct format. Can you see something I am missing in my

[PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Iker Landajuela
Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thanks. if(!($filehandle=fopen("ftp://user:[EMAIL PROTECTED]/html/BIOCAB/".$CFG['Fi leLogTrac

Re: [PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Luis Moreira
Do you close the file after using it ? If not, it may get stuck. Luis Iker Landajuela wrote: Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thank

Re: [PHP-WIN] fopen permission denied

2003-04-03 Thread Nick H. -- Level II Technical Support
CTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 11:46 AM Subject: [PHP-WIN] fopen permission denied > Hi All > > I have update to PHP 4.3.1 W2000, apache 2.0.14 MYSQL 4.0.12 . > > In a php script > > $fp = fopen("i:\\data\\import.txt", &quo

[PHP-WIN] fopen permission denied

2003-04-03 Thread Walter Gyr
Hi All I have update to PHP 4.3.1 W2000, apache 2.0.14 MYSQL 4.0.12 . In a php script $fp = fopen("i:\\data\\import.txt", "r"); " Cannot open permission denied." i: is mapped network drive When i call the script from command line it works. Can anybody help ? Walter -- PHP Windows M

[PHP-WIN] fopen("http://...") shows error when there is none

2003-03-15 Thread Lukas
Hi! I've installed 4.3.1 under Windows 2002 and whenever I try to call my SMS gateway with a php function (which was no problem with the provider I had before) the script gives me the following output: Warning: fopen() [function.fopen]: HTTP request failed! HTTP/1.1 404 Object Not Found in E:\Webs

[PHP-WIN] fopen - windows - FTP

2003-03-10 Thread Jonathan Almarez
I receive this warning when I try to fopen using FTP: warning: fopen(ftp://user:[EMAIL PROTECTED]/and/to/the/file.txt): failed to create stream: FTP server reports 125 Data connection already open; Transfer starting. The code that it is refering to is: $handle = fopen ("ftp://user:[EMAIL PROTECT

[PHP-WIN] fopen - windows - FTP - failed to create stream

2003-03-09 Thread Jonathan Almarez
I receive this warning when I try to fopen using FTP: warning: fopen(ftp://user:[EMAIL PROTECTED]/and/to/the/file.txt): failed to create stream: FTP server reports 125 Data connection already open; Transfer starting. The code that it is refering to is: $handle = fopen ("ftp://user:[EMAIL PROTECT

RE: [PHP-WIN] fopen

2003-02-16 Thread Kyle Williamson
:[EMAIL PROTECTED]] Sent: 16 February 2003 16:07 To: [EMAIL PROTECTED] Subject: [PHP-WIN] fopen Hi... This fopen-command is working on my local machine from my local server, but the same code at my web hosts server produces this: --- Warning: fopen("http://www.somepla

[PHP-WIN] fopen

2003-02-16 Thread Bobo Wieland
Hi... This fopen-command is working on my local machine from my local server, but the same code at my web hosts server produces this: --- Warning: fopen("http://www.someplace.xx/showvers.jsp?visaverser=2+Mack+1%3A2";, "r") - No such file or directory... ---

Re: [PHP-WIN] fopen, fputs, fwrite, fclose, fdammit

2002-11-01 Thread toby z
hay max writin to a file is terrable . anyway 1st >$pctarget = "/blogbits/".substr >($target,0,6)."/_".$target."_bc.txt"; if this is a path ur tryin to specify change / to \ 2nd try fwrite fwrite($getcomments, "$title "); or fwrite($getcomments, "$addrecord"); hope this helps .

[PHP-WIN] fopen, fputs, fwrite, fclose, fdammit

2002-10-31 Thread Max Graham
I'm trying to put a comment page on my weblog. I have the link displayed in the format of date first, then a link to bookmark the entry, and then a link to post a comment. I want to write the comments to a text file. My comment page accepts a default value of "target", which is set to the date to b

[PHP-WIN] fopen(http:...) problems

2002-08-19 Thread Syl
When I use fopen(http:...) I do not get the latest version of the web page want to extract some content from. This page is updated at the source once an hour. How can I issue the equivalent of a Ctrl-F5 to refresh the cache? Syl -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe,

[PHP-WIN] Fopen on ascii files

2002-07-17 Thread Mathias B
Hello Quick question: what happens if i try to open a ascii-file/text-file with fopen($file, 'wb'); on a windows system? does the file get scrambled because of the 'b' or is the 'b' just ignored? /Mathias -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP-WIN] Fopen errors out when opening a URL

2002-07-12 Thread Conover, Ryan
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. I get the following error Warning: stat failed for Resource id #1 (errno=2 - No such file or directory) I checked my php.ini to make sure I set the fopen w

[PHP-WIN] fopen() - returns null when error occurs...

2002-02-25 Thread Svensson, B.A.T. (HKG)
I would like to put in some additiona comments to this: >-Original Message- >From: Svensson, B.A.T. (HKG) >Sent: Thursday, February 21, 2002 2:51 PM >To: [EMAIL PROTECTED] >Cc: 'Olga Tonkonog' >Subject: RE: [PHP-WIN] fopen() > > >>I have pro

RE: [PHP-WIN] fopen()

2002-02-21 Thread Svensson, B.A.T. (HKG)
>I have problem with function fopen() - if file not exists, fopen() don't >return false, it returnnothing. It is impossible for a function in a typed language to return different data types dependent on the evaluation of the function. According to the manual pages of php's fiopen() it should retu

[PHP-WIN] fopen()

2002-02-21 Thread Olga Tonkonog
Hello, I have problem with function fopen() - if file not exists, fopen() don't return false, it return nothing. Is it only Windows problem or help is false? Who can help? Olga -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] fopen / relativ 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

RE: [PHP-WIN] fopen

2002-01-23 Thread Philipp Traeder
t: Wednesday, January 23, 2002 11:54 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] fopen > > > I am having trouble getting php to be able to write to text > files using > fopen under windows. does anyone know how to get php for > windows to do this? -- PHP Windows Mail

[PHP-WIN] fopen

2002-01-23 Thread Robert Abbate
I am having trouble getting php to be able to write to text files using fopen under windows. does anyone know how to get php for windows to do this? I'm using: $fp2 = fopen($filezz, "w+"); flock($fp2, 1); fputs($fp2, "my text"); fclose($fp2); THanks, Robert -- PHP Windows Ma

[PHP-WIN] fopen ; fstat PHP ver.4.0.6

2001-11-18 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-WIN] fopen question

2001-10-22 Thread Ross Fleming
Yeah just assign different variables for each filename. ie $in = fopen("whatever/input.txt"); $out = fopen("whatever/output.txt"); fopen simply returns the pointer to the file you've opened. So you assign it to a variable. Ross Brad Harriger wrote: > Is it possible to have more than one fi

[PHP-WIN] fopen question

2001-10-22 Thread Brad Harriger
Is it possible to have more than one file open at a time using fopen? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-WIN] fopen using a share

2001-09-11 Thread Hans Breitenfellner
is there a way to use fopen() on a share? $fp = fopen( '\\10.1.0.1\c$\folder') results a error. If i try the same from the explorer, it works well. Hans -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP-WIN] fopen, popen, fputs????

2001-03-18 Thread Josh Seward
Is anyone able to open the command.exe from a php script then issuse it commands via the php script. I have tried using popen and fopen to open cmd.exe and that works, but I cannot seem to issue comamnds to an outside program HELP PLEASE!!! Thank you, Josh Seward [EMAIL PROTECTED]