|
Wednesday, 17 June 2009 12:59 |
Here is a small line of code to retrieve the registry location of the folder "My Documents":
1 2
|
FOR /F "tokens=2*" %%A IN ('reg.exe QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal') DO SET MesDocs=%%B ECHO %MesDocs%
|
result:
1
|
C:\Documents and Settings\vlyan\Mes documents
|
We can easily reuse this code for other registry keys |
|
Saturday, 13 June 2009 10:24 |
|
Under debian, to correctly use the php function ftp_nlist() with a remote server behind a firewall, you must have activated the ip_conntrack_ftp module under penalty of having one of the following errors:
PHP Warning: ftp_nlist() [function.ftp-nlist]: php_connect_nonb() failed: Connection timed out (110) in /test_ftp.php on line 58 PHP Warning: ftp_nlist() [function.ftp-nlist]: php_connect_nonb() failed: No route to host (113) in /test_ftp.php on line 58
The installation of the module is done with modprobe:
modprobe ip_conntrack_ftp
|
|
Read more...
|