[PHP] Re: Splice problem

2003-09-18 Thread Daniel Souza
$input = array(red, green, blue, yellow); array_splice($input, 2); echo implode(',', $input); []'s Daniel Souza Stevie D Peele [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] My problem is that I am splicing an array and then echoing the array [code] ?php $input = array(red

Re: [PHP] How to use file() function with an HTTPS:\\www.example.com

2003-09-18 Thread Daniel Souza
Recompile php with built-in openssl support (--with-openssl) will do that. []'s Daniel Souza Jay Blanchard [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] [snip] How to use file() function with an HTTPS:\\www.example.com [/snip] Use cURL http://www.php.net/curl because you

[PHP] Re: How to use file() function with an HTTPS:\\www.example.com

2003-09-18 Thread Daniel Souza
Recompile php with built-in openssl support (--with-openssl) will do that. []'s Daniel Souza Rodrigo Nakahodo [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] How to use file() function with an HTTPS:\\www.example.com ?php $lines = file ('https://www.example.com

Re: [PHP] template problems

2003-09-18 Thread Daniel Souza
? $pages = array ( 'screenshots' = 'news.txt', 'codestuffs' = cstuffs.txt', 'tits' = 'porn.txt', ); $page = $_REQUEST['PAGE']; include(((!isset($pages[$page])) ? $pages[$page] : error.txt)); ? =) Daniel Souza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: sdfs

2003-09-18 Thread Daniel Souza
Got it ! =) Simon [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] sdfsdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using system

2003-09-18 Thread Daniel Souza
open with proc_open() and reads STDOUT Uros [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen.

[PHP] pcntl_fork() under linux with phpcli

2003-09-18 Thread Daniel Souza
:D ignoring SIGCHLD in perl works finely... is there anything about the phped-layer to syscalls access ? duh.. comments are welcome =) []'s Daniel Souza ? declare (ticks = 1); //original sighangler, not used anymore... i know :) function sig_handler($signo) { out([+] SIG: $signo

[PHP] Re: php sockets was Re: [PHP] socket_write eats data - solved

2003-09-15 Thread Daniel Souza
.. flush then may resolve it. Daniel Souza Raditha Dissanayake [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi thomas, Thomas Weber wrote: IMAP? We were talking about IRC, Used imap as an example. the Internet Relay Chat. In detail, my problems doesn't even refer

Re: [PHP] Re: Calling functions from Button actions

2003-09-14 Thread Daniel Souza
I dont use it. Its just an example. Thanks anyway. Daniel Marek Kilimajer [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] I hope you don't use this method. It is VERY unsafe. You execute ANY function that the user tells you. Daniel Souza wrote: ? function func1

[PHP] Re: Calling functions from Button actions

2003-09-13 Thread Daniel Souza
? function func1() { } function func2() { } function func3() { } function func4() { } function func5() { } if (isset($_REQUEST['funcs'])) foreach ($_REQUEST['funcs'] as $key=$val) if (function_exists($key)) $key(); ? hr

[PHP] posix pcntl_fork() and zombie/defunct issues

2003-09-12 Thread Daniel Souza
well... playing with fork() in a phpcli script, i got some troubles with childs... anybody knows how to dont get zombies/defuncts with SIGCHLD and SIGCLD ignoring ? dont worked for me =/ the script is large, so the main pieces of it.. i dont want to know how many childs are running, or if they