Re: [PHP-WIN] Problems accessing the net units through PHP

2006-10-10 Thread German Piqué
Well people. regarthing about this question... Could I identify somehow as another user through php? By that way, it will offer the services only to people who really has access to the shared directories. 2006/9/25, Alex Turner <[EMAIL PROTECTED]>: German Piqué wrote: > 2006/9

Re: [PHP-WIN] RE: TPN POSSIBLE SPAM:Re: [PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc

2006-09-29 Thread German Piqué
nerds-central.blogspot.com"; www.nerds-central.blogspot.com HYPERLINK "http://www.project-network.com"www.project-network.com _ From: German Piqué [mailto:[EMAIL PROTECTED] Sent: 29 September 2006 11:35 To: Alex Turner Cc: php-windows@lists.php.net; Stanislav Malyshev Su

Re: [PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc

2006-09-29 Thread German Piqué
ng and retrieving variable $argo $argo = fgets($fileID,sizeof($file)); Echo "$argo"; And Echo "{fgets($fileID,sizeof($file))}"; Luis -Original Message- From: German Piqué [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 29 de Setembro de 2006 11:35 To: Alex Turner Cc:

Re: [PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc

2006-09-29 Thread German Piqué
t;[EMAIL PROTECTED]>: Stanislav Malyshev wrote: > German Piqué wrote: >> Well, I managed to work with the spaces but using fgetc instead of >> fscanf. >> > > Just as a note I think it would be much more efficient to use fgets or > fread and then parse resulting strin

[PHP-WIN] Problems with fscanf

2006-09-26 Thread German Piqué
All of it :P I only want to delete the initial and final tags in order to unify various archives with the sames patterns. To work with this archives I need to put it one by one, so I thought that I can unify all in only one archive. I'm doing it in php for my partners, because i'm not the only on

[PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc

2006-09-26 Thread German Piqué
Well, I managed to work with the spaces but using fgetc instead of fscanf. Scanning char by char, i haven't need to worry about the spaces or new lines. 2006/9/26, German Piqué <[EMAIL PROTECTED]>: Hello. I'm trying to parse some XML files to get all in only one file, deleti

[PHP-WIN] Problems with fscanf

2006-09-25 Thread German Piqué
Hello. I'm trying to parse some XML files to get all in only one file, deleting the first and last tag when needed. But when i try to read a line like this: The Communards with the code line: fscanf($fr,"%s") the output is the following: The And i want to retrieve all the line without doin

Re: [PHP-WIN] Problems accessing the net units through PHP

2006-09-21 Thread German Piqué
Well, i'm trying the UNC paths, but without success. Now I'm trying with this piece of code: $myfile = " Esm2-region2\Depts_REG2\Region_Catalunya\A_TECNOLOGIA\AT_OyM\ACCESO_SSA\Drop3G\Control_total_alarmas\\logs_hfb"; if($error=file_exists($myfile)) echo "El fichero existe"; else echo $erro

Re: [PHP-WIN] Problems accessing the net units through PHP

2006-09-21 Thread German Piqué
Well... i answer myself... in the name of the mapped unit appears the server... i'm a lammer X 2006/9/21, German Piqué <[EMAIL PROTECTED]>: I don't know the servername... i have directly the mapped unit. I'll will try the other solutions 'cause the server i

Re: [PHP-WIN] Problems accessing the net units through PHP

2006-09-21 Thread German Piqué
2006/9/13, Alex Turner <[EMAIL PROTECTED]>: Dale Attree wrote: > PHP on windows does not support mapped network drives, you would need to use > sockets and connect to the IP of the machine you wish to write to. With this solution... I readed that i need php version 5 or above to work with COM

Re: [PHP-WIN] A problem writting to a file

2006-09-20 Thread German Piqué
Well, I tried and all of you were right... but I tried it a days ago and it didn't worked!! :( That's fustrating... I don't understant why works now... Well... Thank you all :D 2006/9/20, Mikael Krogius (Winwap Technologies) <[EMAIL PROTECTED]>: > I don't know if its a windows php version pro

[PHP-WIN] SOLVED: Fwd: [PHP-WIN] Date problem

2006-09-20 Thread German Piqué
Thank you all. Sorry Mikael, i answered you instead to the mailing list. :/ -- Forwarded message -- From: German Piqué <[EMAIL PROTECTED]> Date: 20-sep-2006 11:14 Subject: Re: [PHP-WIN] Date problem To: [EMAIL PROTECTED] It works! Thnks... BTW, why the other solution d

[PHP-WIN] Date problem

2006-09-20 Thread German Piqué
Like in the other mail, I have another problem with my logging class... I'm trying to get the current date to write it in each line it's writed but the process is stopped when I try to access the hours, the minutes or the seconds. $now = getdate(); $stringNow = $now["year"] . $now["month"]

[PHP-WIN] A problem writting to a file

2006-09-20 Thread German Piqué
Well... I am making a class that realizes the efects of a logging system, in order to be able to debug my scripts that works with cookies, but I foun a problem. I don't know if its a windows php version problem, but when I try to insert the newline caracter: '\' like this: fputs($this->fileID,'\

Re: [PHP-WIN] cookies time? - now it doesn't write [SOLVED]

2006-09-19 Thread German Piqué
ut buffering for all files by ; setting this directive to On. If you wish to limit the size of the buffer ; to a certain size - you can use a maximum number of bytes instead of 'On', as ; a value for this directive (e.g., output_buffering=4096). Thank you all :) 2006/9/19, German Piqué &

Re: [PHP-WIN] cookies time? - now it doesn't write

2006-09-19 Thread German Piqué
to limit in the class the cookies' size. Thanks to all :) 2006/9/19, German Piqué <[EMAIL PROTECTED]>: -- Forwarded message -- From: German Piqué <[EMAIL PROTECTED]> Date: 19-sep-2006 10:38 Subject: Re: [PHP-WIN] cookies time? - now it doesn't write To: &qu

Fwd: [PHP-WIN] cookies time? - now it doesn't write

2006-09-19 Thread German Piqué
-- Forwarded message -- From: German Piqué <[EMAIL PROTECTED]> Date: 19-sep-2006 10:38 Subject: Re: [PHP-WIN] cookies time? - now it doesn't write To: "Frank M. Kromann" <[EMAIL PROTECTED]> Now works... Oo But i have another problem. My script must c

[PHP-WIN] cookies time?

2006-09-18 Thread German Piqué
Well, reading the documentation about cookies i saw that the function time() works using UNIX epochs. If I try to use this function (or mktime) in windows, the php shows a white page, like there's an error somewhere. It's a problem with windows machine's or there's another solution to this? Mean

[PHP-WIN] Problems accessing the net units through PHP

2006-09-12 Thread German Piqué
Well, first of all i want to apologise for my poor english. My problem is that I have problems accessing net mounts on windows. For example, if R: is a unit attatched from the internal net and I try to access it, I get error. The following code is what I'm trying to do to test the access: -