This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:uphp_function_reference [2017/05/26 18:37] jeff |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======uPHP Reference====== | ||
- | |||
- | uPHP functions have an identical syntax to PHP functions in most cases. Below is a list of all the functions that have been implemented. | ||
- | |||
- | Click on the function name for further details: | ||
- | |||
- | ^FUNCTION NAME^PARAMETER(S)^RETURN^DESCRIPTION^ | ||
- | |[[adc_read]]|< | ||
- | |[[array]]|< | ||
- | |[[array_key]]|< | ||
- | |[[array_keys]]|< | ||
- | |[[base64_decode]]|< | ||
- | |[[base64_encode]]|< | ||
- | |[[call_user_func]]|< | ||
- | |[[charat]]|< | ||
- | |[[chdir]]|< | ||
- | |[[chr]]|< | ||
- | |[[cos]]|< | ||
- | |[[debug]]|< | ||
- | |[[debugout]]|< | ||
- | |[[die]]|||Kill the script| | ||
- | |[[disk_free_space]]||< | ||
- | |[[disk_total_space]]||< | ||
- | |[[error_reporting]]|< | ||
- | |[[exec]]|< | ||
- | |[[exec_action]]|< | ||
- | |[[explode]]|< | ||
- | |[[f485open]]|< | ||
- | |[[fclose]]|< | ||
- | |[[feof]]|< | ||
- | |[[fgets]]|< | ||
- | |[[file_exists]]|< | ||
- | |[[filesize]]|< | ||
- | |[[findfirst]]|< | ||
- | |[[findnext]]||< | ||
- | |[[firmwareupdate]]|||Initiate a firmware update sequence and reboot the device| | ||
- | |[[floatval]]|< | ||
- | |[[flush]]|||Flush current output to the browser| | ||
- | |[[fopen]]|< | ||
- | |[[fread]]|< | ||
- | |[[freemem]]||< | ||
- | |[[freestack]]||< | ||
- | |[[fseek]]|< | ||
- | |[[fseropen]]|< | ||
- | |[[fsockopen]]|< | ||
- | |[[ftell]]|< | ||
- | |[[function_exists]]|< | ||
- | |[[fwrite]]|< | ||
- | |[[get3gstat]]||< | ||
- | |[[getcwd]]||< | ||
- | |[[getethstat]]||< | ||
- | |[[getmac]]||< | ||
- | |[[getusbstat]]||< | ||
- | |[[header]]|< | ||
- | |[[htmlspecialchars]]|< | ||
- | |[[ieee754toint]]|< | ||
- | |[[implode]]|< | ||
- | |[[include]]|< | ||
- | |[[indexed_array]]|< | ||
- | |[[ini_get]]|< | ||
- | |[[ini_get_array]]|< | ||
- | |[[ini_put_array]]|< | ||
- | |[[ini_set]]|< | ||
- | |[[inttoieee754]]|< | ||
- | |[[intval]]|< | ||
- | |[[is_array]]|< | ||
- | |[[is_float]]|< | ||
- | |[[is_int]]|< | ||
- | |[[is_numeric]]|< | ||
- | |[[is_string]]|< | ||
- | |[[isset]]|< | ||
- | |[[json_encode]]|< | ||
- | |[[ln]]|< | ||
- | |[[log]]|< | ||
- | |[[log10]]|< | ||
- | |[[mail]]|< | ||
- | |[[max_execution_time]]|< | ||
- | |[[mb_add_dev]]|< | ||
- | |[[mb_delete_device]]|< | ||
- | |[[mb_get_dev_by_id]]|< | ||
- | |[[mb_get_dev_by_index]]|< | ||
- | |[[mb_get_dev_by_name]]|< | ||
- | |[[mb_get_dev_info]]|< | ||
- | |[[mb_get_role_array]]||< | ||
- | |[[mb_get_status_by_role]]|< | ||
- | |[[mb_get_val_by_role]]|< | ||
- | |[[mb_num_devices]]||< | ||
- | |[[mb_queue_command]]|< | ||
- | |[[mb_scan_complete]]||< | ||
- | |[[mb_scan_percent]]||< | ||
- | |[[mb_send_command]]|< | ||
- | |[[mb_set_dev_var]]|< | ||
- | |[[mb_set_val_by_role]]|< | ||
- | |[[mb_start_scan]]|< | ||
- | |[[md5]]|< | ||
- | |[[md5_file]]|< | ||
- | |[[mem_dump]]|||Write the current memory map to /dump.txt| | ||
- | |[[mem_usage]]|||Write memory usage to standard output| | ||
- | |[[microtime]]||< | ||
- | |[[mkdir]]|< | ||
- | |[[mktime]]|< | ||
- | |[[net_disable3g]]|||Disable 3G support for the dongle| | ||
- | |[[net_enable3g]]|||Enable 3G support for the dongle| | ||
- | |[[netstat]]||< | ||
- | |[[number_format]]|< | ||
- | |[[nvram_backup]]|< | ||
- | |[[nvram_defrag]]|||Defragment <tooltip title=" | ||
- | |[[nvram_dump]]|||Dump the contents of <tooltip title=" | ||
- | |[[nvram_free]]||< | ||
- | |[[nvram_get]]|< | ||
- | |[[nvram_restore]]|< | ||
- | |[[nvram_set]]|< | ||
- | |[[nvram_unset]]|< | ||
- | |[[ord]]|< | ||
- | |[[ow_first]]||< | ||
- | |[[ow_next]]||< | ||
- | |[[ow_read]]||< | ||
- | |[[ow_read_temp]]|< | ||
- | |[[ow_reset]]|||Reset the OneWire bus| | ||
- | |[[ow_write]]|< | ||
- | |[[phpinfo]]||< | ||
- | |[[pin_configure]]|< | ||
- | |[[pin_get]]|< | ||
- | |[[pin_set]]|< | ||
- | |[[ping]]|< | ||
- | |[[power]]|< | ||
- | |[[print]]|< | ||
- | |[[print_r]]|< | ||
- | |[[printf]]|< | ||
- | |[[process_kill]]|< | ||
- | |[[process_list]]||< | ||
- | |[[rand]]|< | ||
- | |[[reboot]]|||Reboot the processor| | ||
- | |[[rename]]|< | ||
- | |[[reset]]|||Reset the processor| | ||
- | |[[rmdir]]|< | ||
- | |[[session_destroy]]|||Clear the current session' | ||
- | |[[session_is_new]]||< | ||
- | |[[session_start]]|||Initiate a new session and send the cookie data for it| | ||
- | |[[set_search_path]]|< | ||
- | |[[setethpower]]|< | ||
- | |[[setpriority]]|< | ||
- | |[[settime]]|< | ||
- | |[[setusbpower]]|< | ||
- | |[[sha1]]|< | ||
- | |[[sin]]|< | ||
- | |[[sizeof]]|< | ||
- | |[[sleep]]|< | ||
- | |[[spi_clearcs]]|||Clear the CS output of the <tooltip title=" | ||
- | |[[spi_read]]||< | ||
- | |[[spi_setcs]]|||Set the CS output of the <tooltip title=" | ||
- | |[[spi_write]]|< | ||
- | |[[sprintf]]|< | ||
- | |[[sqr]]|< | ||
- | |[[sqrt]]|< | ||
- | |[[stats]]||< | ||
- | |[[strftime]]|< | ||
- | |[[strlen]]|< | ||
- | |[[strpos]]|< | ||
- | |[[strrpos]]|< | ||
- | |[[strtolower]]|< | ||
- | |[[strtoupper]]|< | ||
- | |[[strval]]|< | ||
- | |[[substr]]|< | ||
- | |[[tar_finish]]|number handle||Add the ending header to a TAR file| | ||
- | |[[tar_put]]|number handle, string filename|number (1=OK)|Add a file to an open file in TAR format| | ||
- | |[[time]]||< | ||
- | |[[timefromfat]]|< | ||
- | |[[ucfirst]]|< | ||
- | |[[unlink]]|string filename|Number (0=OK)|Remove a file (delete it)| | ||
- | |[[untar]]|string filename, number verbose||Expand a file into the current folder, optionally verbose| | ||
- | |[[uptime]]||< | ||
- | |[[usbinfo]]||array|Get information about the USB state| | ||