[PHP] Managing files on the client

2005-11-01 Thread dcook
Hello all: Using opendir() references directories on the server. Is there a similar function for referencing directoies on the client (browser) side? -dc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Managing files on the client

2005-11-01 Thread Jay Blanchard
[snip] Using opendir() references directories on the server. Is there a similar function for referencing directoies on the client (browser) side? [/snip] JavaScript is client side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] hotmail don't accept this message function any more!!

2005-11-01 Thread Rasim �EN
Hi, This function was working until this morning, but now I couldn't send any email to hotmail. What is the problem, any idea? == function

Re: [PHP] hotmail don't accept this message function any more!!

2005-11-01 Thread xfedex
Hi, On 11/1/05, Rasim ÞEN [EMAIL PROTECTED] wrote: Hi, This function was working until this morning, but now I couldn't send any email to hotmail. What is the problem, any idea? == function

Re: [PHP] hotmail don't accept this message function any more!!

2005-11-01 Thread Gustavo Narea
Hello. xfedex wrote: The function works fine if you send it to a different domain? I think it's not a hotmail problem, instead, may be a configuration problem in your webserver. Saludos! Fede. I agree with Fede. On the other hand, Have you changed any setting in your Hotmail account? Have

[PHP] proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Max Belushkin
Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is larger, the rest is discarded. No errors appear anywhere - and

[PHP] Fsockopen error

2005-11-01 Thread Robert Prentice
I am attempting to connect to a remote server using fsockopen to post data to a php file. Here is the error i get: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known (is your IPV6 configuration correct? If this error happens all the time, try

[PHP] Re: Managing files on the client

2005-11-01 Thread James Benson
No, its not possible without asking the client to install some software! dcook wrote: Hello all: Using opendir() references directories on the server. Is there a similar function for referencing directoies on the client (browser) side? -dc -- PHP General Mailing List

[PHP] returning elements from array 1 not in array 2

2005-11-01 Thread blackwater dev
I have two different arrays. What is the function to remove all of the elements from array 1 that are not in array 2 and return them. Array_diff seems to give me that plus ones with different values, I simply want all of the ones from one array that are not in another array and want them removed

[PHP] Re: returning elements from array 1 not in array 2

2005-11-01 Thread Joseph Tura
What is the function to remove all of the elements from array 1 that are not in array 2 and return them. Try: array_diff($arr1, array_intersect($arr1, $arr2)); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] question regarding Reflection

2005-11-01 Thread Manish Marathe
Hello All, I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to use the Reflection API, I

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Jochem Maas
Max Belushkin wrote: Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is larger, the rest is discarded. No errors

[PHP] question regarding Reflection

2005-11-01 Thread Manish Marathe
I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to use the Reflection API, I need to

[PHP] str_ireplace problems.

2005-11-01 Thread Daniel Spain
Greetings! I'm writing a quick and dirty tool which converts directory paths into internet friendly paths.. So converting this: C:\PHP to this: file:\\server01\share\PHP Everything else works, except this line of code.. Is there some problem I'm overlooking? My PHP skills are limited to

[PHP] Re: str_ireplace problems.

2005-11-01 Thread Gustavo Narea
Hi, Daniel. Daniel Spain wrote: //Remove the drive letter and replace it with a single slash $step1 = str_ireplace(T:\\, \\, $_POST['path']); $step2 = file:server01\\staffpub.$step1; $html = a href=\.$step2staff.\Staff/abr /; $result = htmlspecialchars($html); Where is the definition of

[PHP] Re: str_ireplace problems.

2005-11-01 Thread Gustavo Narea
Daniel Spain wrote: //Remove the drive letter and replace it with a single slash $step1 = str_ireplace(T:\\, \\, $_POST['path']); I would use: $step1 = ereg_replace(trim(^[:alpha:]),,$_POST['path']); This will remove the first letter of the string. You should use this, unless this letter is

Re: [PHP] Re: Managing files on the client

2005-11-01 Thread Unknown Unknown
you could also use javascript and forms, and maybe open up an iframe with query strings probably

Re: [PHP] Re: str_ireplace problems. [Solved]

2005-11-01 Thread Daniel Spain
I've solved the problem. Turns out it wasn't my fault, but the other network admins... He said he installed PHP 5.. Turns out that in his mind 5 = 4. So I changed from str_ireplace to str_replace and it all works. Thanks for the website though! On 02/11/05, Gustavo Narea [EMAIL PROTECTED]

[PHP] PHP and MSSQL on Linux

2005-11-01 Thread Robbert van Andel
A few months back I wrote the list asking for help making a connection to a MS SQL database from our linux webserver. At that time I was able to make a successfull connection on Fedora Core 1 after installing php-mssql.rpm and a freetds rpm. When I upgradd to FC4, I was unable to continue my

[PHP] Help with new config

2005-11-01 Thread John Taylor-Johnston
New server, new config. PHP 4.3.9 and new mysql db. phpmyadmin works among other scripts, including: http://compcanlit.usherbrooke.ca/whovisits.php But this bugger won't: http://testesp.flsh.usherbrooke.ca/testdb.phps http://testesp.flsh.usherbrooke.ca/phpinfo.php I cannot even see the

RE: [PHP] Help with new config

2005-11-01 Thread Rob Agar
hi John You'll probably see whats up if you tell php to spit out error messages - set display_errors = 1 in php.ini hth Rob -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Tuesday, 1 November 2005 12:32 PM To: PHP-General Subject: [PHP] Help with

Re: [PHP] question regarding Reflection

2005-11-01 Thread Jochem Maas
Manish Marathe wrote: Hello All, I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to

[PHP] Re: question regarding Reflection

2005-11-01 Thread Curt Zirzow
On Tue, 01 Nov 2005 14:31:12 -0800, Manish Marathe wrote: ... My question is to use the Reflection API, I need to import the original class for which I am generating tests. For example to generate a tests for class Company which is in Company.php: include_once('company.php'); $c = new

[PHP] Re: Help with new config

2005-11-01 Thread Curt Zirzow
On Mon, 31 Oct 2005 21:31:51 -0500, John Taylor-Johnston wrote: New server, new config. PHP 4.3.9 and new mysql db. ... http://testesp.flsh.usherbrooke.ca/testdb.phps http://testesp.flsh.usherbrooke.ca/phpinfo.php I cannot even see the aa\naa?php ... All I get is htmlbody/body/html

[PHP] Re: Fsockopen error

2005-11-01 Thread Curt Zirzow
On Tue, 01 Nov 2005 14:06:04 -0500, Robert Prentice wrote: I am attempting to connect to a remote server using fsockopen to post data to a php file. Here is the error i get: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known (is your IPV6

[PHP] Re: hotmail don't accept this message function any more!!

2005-11-01 Thread Curt Zirzow
On Tue, 01 Nov 2005 17:54:26 +0200, Rasim ÞEN wrote: Hi, This function was working until this morning, but now I couldn't send any email to hotmail. What is the problem, any idea? Honestly, i would trust this function even if it proposed to mary me; see below. function

[PHP] Re: proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Curt Zirzow
On Tue, 01 Nov 2005 19:10:31 +0100, Max Belushkin wrote: Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is