Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmlrpc_set_type(3) [php man page]

XMLRPC_SET_TYPE(3)							 1							XMLRPC_SET_TYPE(3)

xmlrpc_set_type - Sets xmlrpc type, base64 or datetime, for a PHP string value

SYNOPSIS
bool xmlrpc_set_type (string &$value, string $type) DESCRIPTION
Sets xmlrpc type, base64 or datetime, for a PHP string value. Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. PARAMETERS
o $value - Value to set the type o $type - 'base64' or 'datetime' RETURN VALUES
Returns TRUE on success or FALSE on failure. If successful, $value is converted to an object. EXAMPLES
Example #1 A xmlrpc_set_type(3) example <?php $params = date("YmdTH:i:s", time()); xmlrpc_set_type($params, 'datetime'); echo xmlrpc_encode($params); ?> The above example will output something similar to: <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <dateTime.iso8601>20090322T23:43:03</dateTime.iso8601> </value> </param> </params> ERRORS
/EXCEPTIONS Issues E_WARNING with type unsupported by XMLRPC. PHP Documentation Group XMLRPC_SET_TYPE(3)

Check Out this Related Man Page

BCOMPILER_WRITE_FILE(3) 						 1						   BCOMPILER_WRITE_FILE(3)

bcompiler_write_file - Writes a php source file as bytecodes

SYNOPSIS
bool bcompiler_write_file (resource $filehandle, string $filename) DESCRIPTION
This function compiles specified source file into bytecodes, and writes them to the open file handle. PARAMETERS
o $filehandle - A file handle as returned by fopen(3). o $filename - The source file path, as a string. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 bcompiler_write_file(3) example <?php $fh = fopen("example.phb", "w"); bcompiler_write_header($fh); bcompiler_write_file($fh, "example.php"); bcompiler_write_footer($fh); fclose($fh); /* the following should be equivalent: include "example.php"; and include "example.phb"; */ ?> NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. SEE ALSO
bcompiler_write_header(3), bcompiler_write_footer(3). PHP Documentation Group BCOMPILER_WRITE_FILE(3)
Man Page

14 More Discussions You Might Find Interesting

1. HP-UX

unable to change kernel params?

i have hp-ux 11i on a rp2470 machine. i'd like to change some kernel params with SAM. i change the params, process new kernel and reboot the system. after reboot i found that params does not change. i have done the same things many times but i still have the pb. plz what to do? (1 Reply)
Discussion started by: nabil_boussetta
1 Replies

2. Shell Programming and Scripting

sed & awk--get section of file based 2 params

I need to get a section of a file based on 2 params. I want the part of the file between param 1 & 2. I have tried a bunch of ways and just can't seem to get it right. Can someone please help me out.....its much appreciated. Here is what I have found that looks like what I want....but doesn't... (12 Replies)
Discussion started by: Andy Cook
12 Replies

3. HP-UX

kernel param listings

Which shows the current kernel settings accurately? kmtune or sysdef. I ask because although some params show the same setting with both, some do not. Example >kmtune | grep nfile nfile 75008 - (15*NPROC+2048) >sysdef | grep nfile nfile 75018 ... (6 Replies)
Discussion started by: theninja
6 Replies

4. UNIX for Dummies Questions & Answers

Strip time from date in a file

I have a couple of datetime fields in a file with contents like below: ICPBR|6373056085|1|O||||JOHN|SMITH|||H200|706|445668|||123 SMITH ST|LAGRANGE|IL|66666 |||||||N|N|N|N|N|||345676|2009.02.20-13:09:04|257655957|2009.02.20-13:09:04||||N|||||F||||||||||| I want to strip the time off the... (4 Replies)
Discussion started by: ChicagoBlues
4 Replies

5. Programming

SQL datetime calculations

Suppose I have a table as follows: CREATE TABLE data ( `datetime` datetime DEFAULT NOT NULL, `temperature` float DEFAULT NO NULL ); populated with temperature samples of a couple times a second. Let's say I want to find the temperatures which are 1 second apart: SELECT D1.datetime,... (3 Replies)
Discussion started by: figaro
3 Replies

6. UNIX for Advanced & Expert Users

Check latest time where theres the word 'processed' in logfile

Hi, Im doing a project to check the latest time with the word 'processed' in a logfile. the time range is within 2 hours before the curent datetime to present. For example: Current datetime is 'October 6 2009 8:00AM' --- HKT So the time range that need to check is from 'October 6... (1 Reply)
Discussion started by: romanne
1 Replies

7. Shell Programming and Scripting

Script to change Timezone(Solaris)

india 22/11/2009 10:00:00 AM sweden 22/11/2009 01:30:00 PM As mentioned above i will get the datetime string from my customer and i need to change that String into diffrnt timezone as mentioned above. ---------- Post updated at 01:54 AM ---------- Previous update was at 01:01 AM ----------... (5 Replies)
Discussion started by: vikas482
5 Replies

8. Shell Programming and Scripting

datetime.pm

Hi, I'm trying to use datetime.pm function in Perl. I do not have in the library. Is there a way to get it and put it into library? Thanks, George. (1 Reply)
Discussion started by: gpaulose
1 Replies

9. UNIX for Advanced & Expert Users

Rename a file to a file_current datetime in a shell script

Hi all, Could anyone suggest me on Renaming a file to a file_current datetime in a shell script. (3 Replies)
Discussion started by: Nithin
3 Replies

10. Programming

DATE & TIme

Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ? please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies

11. Shell Programming and Scripting

How to generate datetime string?

Hi. I'm hoping there is a simple method where I'm able to generate a datetime string that looks like this (yyyymmddhhmm): 201106280830 The tricky part would be that I need this string to be today's datetime minus 1 year. Is there anyway to do this? (3 Replies)
Discussion started by: buechler66
3 Replies

12. Shell Programming and Scripting

SunOS compare datetime

Hi i need to compare the datetime between 2 columns. SunOS 5.1 is used. Notice that mktime seems like not supported. cat file2 P1,2012 12 4 21 36 48,2012 12 4 22 26 53 P2,2012 12 4 20 36 48,2012 12 4 21 21 23 P3,2012 12 4 18 36 48,2012 12 4 20 12 35 Below is the command used.... (1 Reply)
Discussion started by: chailee
1 Replies

13. Shell Programming and Scripting

Filename with datetime

Hello All, I need unix command to generate a file with datetime in it. For example : ABC_YYYYMMDDHH24MISS.txt Regards Biswajeet Ghosh (1 Reply)
Discussion started by: bghosh
1 Replies

14. UNIX for Beginners Questions & Answers

Extract content between strings

Hello i am stuck with this. i have input which is as follows /type/work /works/OL10627594W 3 2019-04-24T16:46:21.351549 {"created": {"type": "/type/datetime", "value": "2009-12-11T03:18:17.488715"}, "title": "Tog the dog", "covers": , "last_modified": {"type":... (3 Replies)
Discussion started by: ahfze
3 Replies