Displaying 20 results from an estimated 20 matches for "var_dump".
Did you mean:
ora_dump
2016 Feb 15
1
[PATCH] Start adding return values tests for bindings
...90_retvalues.phpt b/php/extension/tests/guestfs_090_retvalues.phpt
new file mode 100644
index 0000000..0be5755
--- /dev/null
+++ b/php/extension/tests/guestfs_090_retvalues.phpt
@@ -0,0 +1,294 @@
+--TEST--
+Check all the kind of return values.
+--FILE--
+<?php
+$g = guestfs_create ();
+
+# rint
+var_dump (guestfs_internal_test_rint ($g, "10"));
+var_dump (guestfs_internal_test_rinterr ($g));
+
+# rint64
+var_dump (guestfs_internal_test_rint64 ($g, "10"));
+var_dump (guestfs_internal_test_rint64err ($g));
+
+# rbool
+var_dump (guestfs_internal_test_rbool ($g, "true"));...
2006 Feb 01
4
Viewing all Properties and Methods?
Hello,
How can I see all the properties (member variables) and methods (functions) that are available for an object? Is there a function similar to PHP''s var_dump in MySQL?
Many thanks for your assistance.
Frank
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/2...
2009 Jul 08
1
php error parse_query
I'm having trouble getting a search via php working, I get the following
error:
*Fatal error*: No matching function for overloaded
'QueryParser_parse_query' in */usr/local/share/php5/xapian.php* on line
*1409
*The error occurs at this code
$query = $qp->parse_query( $query_string ,
XapianQueryParser::FLAG_PHRASE
|
2009 Sep 19
0
memcached-1.4.1 and C4
...e specifier while parsing
parameters in /var/www/d.php on line 6
NULL
string(7) "SUCCESS"
array(1) {
["lhost:11211"]=>
string(5) "1.4.1"
}
The code is:
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);
$m->set('foo', 100);
var_dump($m->get('foo'));
var_dump($m->getResultMessage());
var_dump($m->getVersion());
?>
Memcat returns:
[root at rakosnicek eshop]# memcat --servers=localhost foo
100
Package version are:
[root at rakosnicek eshop]# rpm -q httpd memcached php-pecl-memcached php |
sort
httpd-2.0.52-4...
2023 Nov 22
1
mediaplayer for icecast streams?
...but it was very simple. My only problem now is to find a way
> to update the text on the webpage. I was hoping sleep(5) could do the
> trick, but it does not work.
>
> <?php
> if (1) {
> $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl");
> //var_dump($jsonobj);
> $arr1[]=json_decode($jsonobj[0], true);
> echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>';
> sleep(5);
> }
> ?>
>
> Can anyone help?
>
>
> Thanks
>
>
2005 Dec 24
2
Variable dumper
Hi there,
I am newbie both in Ruby and in Rails. My experience is mostly PHP.
In PHP, there is a var_dump($mixed) function that dumps the object
$mixed to std_out. This is helpful to see the curent value of a
variable, of if it is an object, everything that is in the object.
Is there an equivalent methods in RoR?
Thanks,
Ezra
--
Posted via http://www.ruby-forum.com/.
2005 Jul 01
1
astmanproxy
...\r\n");
fputs($socket, "Secret: xxx\r\n\r\n");
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: Show Channels\r\n\r\n");
fputs($socket, "Action: Logoff\r\n\r\n");
while (!feof($socket)) {
$wrets[] = fread($socket, 8192);
}
fclose($socket);
var_dump($wrets);
?>
</pre>
Output in debugmode at the console is correct, but I cannot read the
output in php.
If I use port 5038 I get the output, but I want to connect with multiple
clients, so I should't use a direct connection to manager api, right ?
Why can't I read the output fro...
2007 Jul 17
1
Prototype: 2 questions (elements' attributes, dumping methods)
...now is it possible to get element''s attributes in
hash or array?
for example something like this:
<span style="color:red;" id="myEl" onclick="alert(1)">
..
$(''myEl'').attibutes().length // == 3
2) is there any analogues of php functions var_dump() and print_r()
for Objects/Hashes and Arrays?
thank you and sorry for bad english)
Alx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email...
2023 Nov 22
1
mediaplayer for icecast streams?
...d to get the information
extracted, but it was very simple. My only problem now is to find a way
to update the text on the webpage. I was hoping sleep(5) could do the
trick, but it does not work.
<?php
if (1) {
$jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl");
//var_dump($jsonobj);
$arr1[]=json_decode($jsonobj[0], true);
echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>';
sleep(5);
}
?>
Can anyone help?
Thanks
--
Thomas Jensen, Denmark
ons, 22 11 2023 kl. 15:23 +0000, skrev Weddl...
2016 Feb 12
0
[PATCH] php: restructure and expand tests
...1024);
+guestfs_launch ($g);
+
+guestfs_pvcreate ($g, "/dev/sda");
+guestfs_vgcreate ($g, "VG", array ("/dev/sda"));
+guestfs_lvcreate ($g, "LV1", "VG", 200);
+guestfs_lvcreate ($g, "LV2", "VG", 200);
+
+$lvs = guestfs_lvs ($g);
+var_dump ($lvs);
+
+guestfs_mkfs ($g, "ext2", "/dev/VG/LV1");
+guestfs_mount ($g, "/dev/VG/LV1", "/");
+guestfs_mkdir ($g, "/p");
+guestfs_touch ($g, "/q");
+
+function dir_cmp ($a, $b)
+{
+ return strcmp ($a["name"], $b["name"...
2023 Nov 23
1
mediaplayer for icecast streams?
...t it was very simple. My only problem now is to find a
> way to update the text on the webpage. I was hoping sleep(5) could do
> the trick, but it does not work.
>
> <?php
> if (1) {
> $jsonobj=file("http://radio.protestbandet.dk:8000/status-json.xsl");
> //var_dump($jsonobj);
> $arr1[]=json_decode($jsonobj[0], true);
> echo '<strong>'.$arr1[0]['icestats']['source']['title'].'</strong>';
> sleep(5);
> }
> ?>
>
> Can anyone help?
>
>
> Thanks
>
>
________________...
2009 Mar 02
0
Xapian, PHP bindings and
...$matches = $enquire->get_mset(0, 100);
//correction spelling
echo '<hr />';
$i = $database->spellings_begin();
while( ! $i->equals( $database->spellings_end())) {
var_dump( $i );
}
echo '<hr />';
// Display the results.
print $matches->get_matches_estimated() .' results found:<br
/>'."\n";
$i = $matches->begin();...
2005 Jul 09
0
About the using of astmanproxy
...Name: xxx\r\n");fputs($socket, "Secret: xxx\r\n\r\n");fputs($socket, "Action: Command\r\n");fputs($socket, "Command: Show Channels\r\n\r\n");fputs($socket, "Action: Logoff\r\n\r\n");while (!feof($socket)) {$wrets[] = fread($socket, 8192);}fclose($socket);var_dump($wrets);?></pre>
Output in debugmode at the console is correct, but I cannot read the output in php. If I use port 5038 I get the output, but I want to connect with multiple clients, so I should't use a direct connection to manager api, right ?
Why can't I read the output from a...
2008 Nov 07
0
CEntOS-5.2 & php-mssql
...#39;;
$conn = mssql_connect($server, $user, $pass)
or die('Connection error');
$dbselect= mssql_select_db($db, $conn)
or die('DB select error.');
$sql = 'select * from tbtest';
$result = mssql_query($sql);
while ($row = mssql_fetch_row($result)) {
var_dump($row);
}
mssql_close($conn);
?>
-----------------------------------------------------------------------------------
This test code run very well on "Debian server", but not on CEntOS-5.2 (final).
What's wrong on my CEntOS-5 environment? Help me please.
Thanks in advance.
Rega...
2006 Jan 07
3
script.aculo.us: autocomplete does not work
I copied an exact copy of "http://demo.script.aculo.us/ajax/autocompleter"
to my harddisc inclusive all .js and .css.
Then I changed "new Ajax.Autocompleter(''contact_name'',
''contact_name_auto_complete'', ''/ajax/auto_complete_for_contact_name'', {})"
to
"new Ajax.Autocompleter(''contact_name'',
2023 Nov 22
1
mediaplayer for icecast streams?
Icecast provides an endpoint (/status-json.xsl) which returns JSON with various data, including "Now Playing". Here is a link to the documentation: https://www.icecast.org/docs/icecast-trunk/server_stats/
In your case it looks like it would be http://radio.protestbandet.dk:8000/status-json.xsl
Ben Weddle
-----Original Message-----
From: Icecast <icecast-bounces at xiph.org> On
2009 May 27
1
PHP AGI Problems
...itchboard");
while ($error_count < 5 && !$msg_result) {
$result = $AGI->send_cmd("GET DATA /bswitch/menu/enter-msg-id 3000 4");
$msg_id = $result[result];
if ($msg_id < 1000){
echo "\ndebug: msgid < 1000, invalid ($msg_id)!\n";
//var_dump($msg_id);
$error_count += 1;
$AGI->send_cmd("EXEC PLAYBACK /bswitch/menu/invalid-msg-id");
}
else{
echo "\ndebug: ($msg_id) okay valid msgid, lets check sql\n";
$msg_result=check_msg($msg_id);
if(!$msg_result){
$error_count...
2006 Mar 09
13
[prototype] how i send Dynamic form field values??
I want to know how can i send the values of form fields build dynamic
with prototype.
i have the form as follow:
<form id="id" method="post" action="url">
<div id="dynamicFields"></div>
</form>
with prototype i fill the dynamicFields DIV with <input> and <select>
tags, but when i submit the form the values of
2004 Aug 06
2
XML statistics on remote server
what i did in this situation was dump the stats/status file to the local
server through a lynx --dump call from php .. and then i also update a
sql table to reflect the changes so i can poll that instead ..
a.
<p>On Thu, 26 Feb 2004, MacSym wrote:
>
> Hi everybody,
>
> I am wondering if it is possible to generate the XML/XSL files on a remote
> server (status.xsl,
2006 Jun 11
47
Ruby on Rails and CakePHP Comparison
>From a development standpoint, what are the features that make Ruby on
Rails a better choice compared to CakePHP?
--
Posted via http://www.ruby-forum.com/.