[PHP] is there socket.so file?

2007-02-03 Thread Yeni Setiawan

Hi there,
I'm currently writing an IRC bot using php (CLI) and get a little problem.

For windows version, I need to enable socket extension (socket.dll) and
my bot will be able to connect to an IRC server.

But in linux version, it's unable to connect. So I wonder if there's a "
socket.so" or something else
to activate socket extension.

And the question is, do I need socket extension in Linux?

--
regards,

Yeni Setiawan


[PHP] failed to upload files into directory named "bin"

2007-02-13 Thread Yeni Setiawan

Dear all, I was just creating two upload pages,both will upload files into
directory named "bin".

./bin/ <-- directory where the files uploaded
./admin/upload.php<-- I wrote path as "../bin/"
./userupload.php<-- I wrote path as "bin/"

I was confused because ./userupload.php failed to upload while
./admin/upload.php run as expected.
Was it because the directory name "bin"? This problem solved when I rename
the directory into another name.

FYI, I'm using AppServ with PHP 4.4.1 on Windows environtment.
Does anyone have any explanation?

--
thanks,

Yeni Setiawan


[PHP] question for "translating" fsockopen into CURL

2007-03-13 Thread Yeni Setiawan

dear all.

I'm currently writing a script that connect to specific IP (server) at a
specific port (1950).
then I need to send some parameters and the server will give me a reply.

too bad, my current webhost no longer accept fsockopen().
so I need to translate my script into CURL thingie.

here's my script using fsockopen(), and it run very well:



then, I tried following script using CURL:



but it like looping forever and none the result displayed.

actually I was confused which one to replace fputs() function.
any response will be great.

--
regards,

Yeni Setiawan


[PHP] OOT - Ajax definitiondear all,

2007-07-27 Thread Yeni Setiawan
Dear All,

We all knew that AJAX is an achronym of Asynchronous Javascript And XML.

When I use another data format like YAML or CSV, will it still be called as
AJAX?
Or just "yet another asynchronous method"?


-- 
regards,

Yeni Setiawan