First  |  Prev |  Next  |  Last
Pages: 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
Howto send command over ssh using sockets
Hello, I am trying send command to remote host over ssh with sockets. But I need to set up username/password. I am trying to modify this script (from - function fsockopen), but I dont know, where set username/password because I got this message: Bad protocol version identification 'password' from ip ... 5 Apr 2010 09:24
$_SERVER['PHP_AUTH_USER'] has gone
Hi, I'm running a system with Fedora 12 and Apache/PHP default installation. That means PHP is used as module in Apache, it is NOT running as CGI. Nevertheless for the latest PHP version installed there $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] and $_SERVER['REMOTE_USER'] do no longer work, they are e... 4 Apr 2010 15:58
Collections / Static typing - was "array or list of objects ofdifferent types"
On 04/03/10 23:00, Nathan Rixham wrote: Peter Pei wrote: var_dump( array( true , 12 , "php already does this" ) ); array(3) { [0]=> bool(true) [1]=> int(12) [2]=> string(21) "php already does this" } :) Yeah. But this f... 3 Apr 2010 22:33
Collections / Static typing - was "array or list of objectsof different types"
On Sat, 03 Apr 2010 11:30:36 -0600, Nathan Rixham <nrixham(a)> wrote: them in a google code project or suchlike. They'll obviously never be as fast as Java/C but they do allow for static typing of collections using primitive types That will be wonderful. -- Using Opera's revolutionary e-mai... 3 Apr 2010 15:57
Hi gang: Here's the problem. I have 184 HTML pages in a directory and each page contain a question. The question is noted in the HTML DOM like so: <p class="question"> Who is Roger Rabbit? </p> My question is -- how can I extract the string "Who is Roger Rabbit?" from each page using php? You see, ... 3 Apr 2010 13:44
array or list of objects of different types
Hi all, I want to be able to have an array of elements of different types. As an example: the first element is a boolean, the second is an integer, and the thirs is a string. In php there is no typing, i'm just wondering if there is a way to have that, it would be a lot better than having an array of strings and have... 3 Apr 2010 12:37
SimpleXMLElement and gb2312 or big5
I use the following code to get rss and parse it, but the code occasionally have issues with gb2312 or big-5 encoded feeds, and fails to parse them. However other times may appear just okay. Any thoughts? Maybe SimpleXMLElement is simply not meant for other language encodings... $page = file_get_contents(... 2 Apr 2010 14:52
str_replace help
Hi folks, In ASP, I would commonly replace string line feeds for HTML output like this: Var = replace(value,vbcrlf,"<br>") In PHP, the following doesn't seem to work: $var = str_replace(chr(13),"\n",$value) Neither does: $var = str_replace(chr(10),"\n",$value) What am I doing wrong? Thanks! ... 2 Apr 2010 11:31
Apache rule/directive to stop serving PHP pages from /var/www/includes/ [SOLVED]
> -----Original Message----- From: Robert Cummings [mailto:robert(a)] Sent: Thursday, April 01, 2010 7:23 PM To: Daevid Vincent Cc: php-general(a) Subject: Re: [PHP] Apache rule/directive to stop serving PHP pages from /var/www/includes/ Daevid Vincent wrote: (Sorry... 1 Apr 2010 23:34
Apache rule/directive to stop serving PHP pages from /var/www/includes/
(Sorry if this is a duplicate. I sent one earlier with "OT:" prefixing the subject line and I think this list software kills the message despite being proper netiquette. *sigh*) I have your basic web tree setup. developer(a)mypse:/var/www/dart2$ tree -d -I 'CVS' |-- UPDATES |-- ajax |-- images | |-- gui |... 1 Apr 2010 22:28
First  |  Prev |  Next  |  Last
Pages: 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73