[PHP-WIN] configuring sessions

2003-12-23 Thread Henrik Niehaus
win 2000 pro apache 1.3.29 php 4.3.4 (register_globals off) i want to use sessions. i haven't change anything in the configuration expect the session.save_path. when i try to create a session, the session file appears in the specified directory, but if i try to continue this session in another p

[PHP-WIN] open directory and read the file

2003-12-23 Thread Idur
Hi there, I want read a directory and open a file inside the directory, for example directory data contains of file: Computername.txt IPaddress.txt status.txt and i want search a file on the directory and open it, for example i want search file IPaddress.txt and when file IPaddress.txt found,

php-windows Digest 23 Dec 2003 17:42:28 -0000 Issue 2054

2003-12-23 Thread php-windows-digest-help
php-windows Digest 23 Dec 2003 17:42:28 - Issue 2054 Topics (messages 22419 through 22420): configuring sessions 22419 by: Henrik Niehaus open directory and read the file 22420 by: Idur Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubs

[PHP-WIN] Regular Expressions

2003-12-23 Thread Gerardo Rojas
How do I use preg_replace to replace a space (" ") with a comma (",")? i am using: preg_replace('/ /', ',', $string). this isn't working. -- Gerardo S. Rojas mailto: [EMAIL PROTECTED]

Re: [PHP-WIN] Regular Expressions

2003-12-23 Thread Frank M. Kromann
Hi, The replaced string is returned by the function. This works. $str = "test test2"; $str2 = preg_replace('/ /', ',', $str); If your are doing simple replacements like this you should use str_replace() it's much faster! $str = "test test2"; $str2 = str_replace(' ', ',', $str); - Frank > How d

AW: [PHP-WIN] open directory and read the file

2003-12-23 Thread Sven Schnitzke
Simply do a >while ($file = readdir($handle)){ and make your directory current inserting chdir('c:\apache\htdocs'); just before the line where you finally check success of the fopen using > if ($handle_file = fopen ($find_file, "r")) { > ... > } >