Actionscript 2

ActionScript 2.0 și o bază de date mică ca fișier text

Activitate: salvați datele de pe server ca fișiere text utilizând ActionScript 2.0 și php.

Faceți imediat o rezervă că, pentru corectitudinea tuturor celor enunțate mai jos, nu pot garanta acest lucru :-) Dar funcționează. Verificat.

Un alt punct important: nu încercați să salvați o cantitate mare de date pe server într-un fișier text. Cel puțin, un fișier text nu este destinat acestui lucru. Dar dacă nu aveți prea multe date și nu doriți să contactați baza de date, fișierul text poate fi o alternativă bună.

Firește, vom avea nevoie de găzduire cu suport pentru php. În prezent, suportul pentru php este disponibil chiar și pentru multe hosting gratuit. Deci nu ar trebui să existe probleme aici.

Mai întâi, vom crea o aplicație Flash în ActionScript 2.0. Pentru aceasta am folosit programul Macromedia Flash 8. "Vechi-bun". Creați un nou proiect în acest program și plasați următoarele obiecte pe scena viitorului aplicației noastre flash:

1.) câmpul de intrare id_send. în care vom introduce un nume de utilizator sau un cod de utilizator unic;

2.) scorul câmpului de intrare. în care vom introduce, de exemplu, numărul de puncte marcate de utilizator în joc;

3.) butonul send_btn cu "Trimite" pentru a trimite date către server;

4.) câmp de introducere id_load pentru a introduce identificatorul unic sau numele de utilizator, în care ne-o dorim pentru a obține date (de exemplu, numărul de puncte câștigate în joc);

5.) câmpul text dinamic load_txt. În care datele (de exemplu, numărul de puncte) vor fi afișate pentru utilizatorul solicitat;

6.) butonul load_btn cu cuvântul "Get" pentru a obține date de la server unui anumit utilizator.

Cu ajutorul primelor trei obiecte, vom trimite date către server și, cu ajutorul ultimelor trei, vom primi date de la server.

În plus, avem nevoie de un alt film animLoad. care ar trebui să fie situată deasupra tuturor celorlalte elemente ale scenei. Cu acest film vom acoperi întreaga noastră scenă într-un moment în care există un schimb de date între server și aplicația flash. Firește, animLoad ar trebui să se potrivească cu dimensiunea scenei filmului flash (în cazul meu - 550 X 400). Inițial, fă-o invizibilă. Și pentru frumusețe, vom adăuga o animație care va arăta utilizatorului că datele sunt schimbate cu serverul (puteți crea animația pentru tine sau poți să folosești deja animații sau animatoare deja terminate pentru Ajax).

Deci, interfața simplă este gata. Acum mergeți la cod. Du-te la panoul Acțiuni“» ( «acțiuni») film claxonul cronologie și scrie / lipiți următorul cod.

Codul ActionScript 2.0:

Rețineți că funcția MD5 () este conectată la proiect (în acest exemplu este conectată prin instrucțiunea #include "MD5.as", dar puteți plasa această funcție împreună cu restul codului sau utilizați implementarea acestei funcții OOP). De ce MD5? Această funcție hash este necesară pentru a asigura integritatea datelor dvs. atunci când le transferați pe server. Pentru ca funcția MD5 să funcționeze, introduceți o cheie secretă, care trebuie să fie aceeași atât pe server cât și pe aplicația dvs. flash. Firește, nu lăsați cheia secretă, care este dată în acest exemplu. Trebuie să introduceți cheia secretă atât în ​​proiectul flash, cât și în scriptul php. Și, din nou, această cheie secretă trebuie să fie absolut identică pentru un proiect Flash și un script php. În plus, proiectul Flash trebuie protejat de decompilare. Altfel, orice program decompilator va deschide codul sursă al proiectului dvs., iar cheia secretă nu va mai fi secretă. MD5 nu vă oferă 100% protecție, dar este mai bine decât nimic.

Dacă totul se face corect, obținem ceva de genul:

Această aplicație flash este împărțită condiționat în două părți. Partea superioară este responsabilă pentru transmiterea datelor. Jos - pentru primirea datelor. Verificați activitatea unității flash. Introduceți cele două câmpuri superioare (id_send și scor) datele și apăsați pe "Trimitere". Un film animLoad apare cu pseudo-indicatorul de descărcare. Când serverul trimite un răspuns, animLoad devine din nou invizibil. Acum, reîncărcați pagina și verificați dacă serverul a salvat efectiv datele noastre. În acest scop, este mai mic câmpul de introducere (id_load) introduce ceea ce a fost introdus anterior în câmpul id_send și apăsați butonul „Get“. Acum, în câmpul load_txt, serverul ar trebui să trimită mai devreme datele trimise de noi. sau un mesaj de eroare. Cred că principiul este clar. Firește, aceasta este doar o demonstrație a muncii pe care o puteți remodela nevoilor și nevoilor dvs.

Trecem la partea de server a aplicației noastre.

PHP 8.3.1 - phpinfo()

PHP logo

PHP Version 8.3.1

System Linux vps15366.ua-hosting.company 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
Build Date Jun 29 2020 09:25:38
Build System Linux runner-9xkfyqkt-project-29-concurrent-2 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 x86_64 x86_64 GNU/Linux
Configure Command '../configure' '--cache-file=./config.cache' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--with-libdir=lib/x86_64-linux-gnu' '--prefix=/opt/php83' '--with-config-file-path=/opt/php83/etc' '--with-config-file-scan-dir=/opt/php83/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-db4' '--with-openssl' '--disable-gcc-global-regs' '--with-freetype' '--with-png' '--with-xpm' '--with-webp' '--without-gdbm' '--enable-xml' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg' '--with-zlib' '--with-zlib-dir=/usr' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--enable-calendar' '--with-libxml' '--with-system-tzdata' '--enable-pcntl' '--enable-mbregex' '--without-readline' '--with-libedit' '--with-sodium=shared' '--disable-dom' '--disable-pdo' '--disable-mysqli' '--enable-timezonedb=shared' '--disable-xmlreader' '--disable-xmlwriter' '--enable-dba=shared' '--disable-posix' '--with-apxs2=/usr/bin/apxs2' '--disable-cli' '--disable-cgi' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /opt/php83/etc
Loaded Configuration File /opt/php83/etc/php.ini
Scan this dir for additional .ini files /opt/php83/etc/php.d
Additional .ini files parsed /opt/php83/etc/php.d/10-mysqlnd.ini, /opt/php83/etc/php.d/10-pdo.ini, /opt/php83/etc/php.d/20-curl.ini, /opt/php83/etc/php.d/20-dom.ini, /opt/php83/etc/php.d/20-gd.ini, /opt/php83/etc/php.d/20-intl.ini, /opt/php83/etc/php.d/20-mbstring.ini, /opt/php83/etc/php.d/20-mysqli.ini, /opt/php83/etc/php.d/20-pdo_mysql.ini, /opt/php83/etc/php.d/20-soap.ini, /opt/php83/etc/php.d/20-xmlreader.ini, /opt/php83/etc/php.d/20-xmlrpc.ini, /opt/php83/etc/php.d/20-xmlwriter.ini, /opt/php83/etc/php.d/20-zendopcache.ini, /opt/php83/etc/php.d/20-zip.ini
PHP API 20230831
PHP Extension 20230831
Zend Extension 420230831
Zend Extension Build API420230831,NTS
PHP Extension Build API20230831,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling enabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
Zend Max Execution Timers disabled
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streamshttps, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filterszlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.3.1, Copyright (c) Zend Technologies with Zend OPcache v8.3.1, Copyright (c), by Zend Technologies

Configuration

apache2handler

Apache Version Apache/2.4.52 (Ubuntu)
Apache API Version 20120211
Server Administrator [email protected]
Hostname:Port cons.pvgazeta.info:0
User/Group www-data(33)/33
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root /etc/apache2-isp-php83
Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_actions mod_alias mod_auth_basic mod_auth_digest mod_authn_core mod_authn_file mod_authnz_external mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dav mod_dav_fs mod_deflate mod_dir mod_env mod_filter mod_headers mod_include mod_mime mpm_itk prefork mod_negotiation mod_php mod_remoteip mod_reqtimeout mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status mod_suexec mod_vhost_alias
DirectiveLocal ValueMaster Value
engineOnOn
last_modifiedOffOff
xbithackOffOff

Apache Environment

VariableValue
HTTP_HOST cons.pvgazeta.info
HTTP_X_FORWARDED_FOR 18.227.49.73
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_PORT 80
HTTP_CONNECTION close
HTTP_CF_RAY 8e82cf582bc7e81d-ORD
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_IPCOUNTRY US
HTTP_ACCEPT_ENCODING gzip, br
HTTP_ACCEPT */*
HTTP_CF_CONNECTING_IP 18.227.49.73
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CDN_LOOP cloudflare; loops=1
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
SERVER_SIGNATURE <address>Apache/2.4.52 (Ubuntu) Server at cons.pvgazeta.info Port 80</address>
SERVER_SOFTWARE Apache/2.4.52 (Ubuntu)
SERVER_NAME cons.pvgazeta.info
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 172.71.255.45
DOCUMENT_ROOT /var/www/job/data/www/cons.pvgazeta.info
REQUEST_SCHEME http
CONTEXT_PREFIX no value
CONTEXT_DOCUMENT_ROOT /var/www/job/data/www/cons.pvgazeta.info
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /var/www/job/data/www/cons.pvgazeta.info/utilizator-201/actionscript-2.html
REMOTE_PORT 45494
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /utilizator-201/actionscript-2.html
SCRIPT_NAME /utilizator-201/actionscript-2.html

HTTP Headers Information

HTTP Request Headers
HTTP Request GET /utilizator-201/actionscript-2.html HTTP/1.0
Host cons.pvgazeta.info
X-Forwarded-For 18.227.49.73
X-Forwarded-Proto http
X-Forwarded-Port 80
Connection close
cf-ray 8e82cf582bc7e81d-ORD
user-agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
CF-IPCountry US
accept-encoding gzip, br
accept */*
CF-Connecting-IP 18.227.49.73
CF-Visitor {"scheme":"https"}
cdn-loop cloudflare; loops=1
HTTP Response Headers

bz2

BZip2 Support Enabled
Stream Wrapper support compress.bzip2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.8, 13-Jul-2019

calendar

Calendar support enabled

Core

PHP Version 8.3.1
DirectiveLocal ValueMaster Value
allow_url_fopenOnOn
allow_url_includeOffOff
arg_separator.input&&
arg_separator.output&&
auto_append_fileno valueno value
auto_globals_jitOnOn
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetUTF-8UTF-8
default_mimetypetext/htmltext/html
disable_classesno valueno value
disable_functionspcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
display_errorsOffOff
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOffOff
enable_post_data_readingOnOn
error_append_stringno valueno value
error_logno valueno value
error_log_mode06440644
error_prepend_stringno valueno value
error_reporting2252722527
expose_phpOffOff
extension_dir/opt/php83/lib/php/modules/opt/php83/lib/php/modules
fiber.stack_sizeno valueno value
file_uploadsOnOn
hard_timeout22
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:.:
input_encodingno valueno value
internal_encodingno valueno value
log_errorsOnOn
mail.add_x_headerOnOn
mail.force_extra_parametersno valueno value
mail.logno valueno value
mail.mixed_lf_and_crlfOffOff
max_execution_time3030
max_file_uploads2020
max_input_nesting_level6464
max_input_time6060
max_input_vars10001000
max_multipart_body_parts-1-1
memory_limit128M128M
open_basedir/var/www/job/data:.no value
output_buffering40964096
output_encodingno valueno value
output_handlerno valueno value
post_max_size8M8M
precision1414
realpath_cache_size4096K4096K
realpath_cache_ttl120120
register_argc_argvOffOff
report_memleaksOnOn
report_zend_debugOffOff
request_orderGPGP
sendmail_fromno valueno value
sendmail_path/usr/sbin/sendmail -t -i -f [email protected]/usr/sbin/sendmail -t -i
serialize_precision1717
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sys_temp_dirno valueno value
syslog.facilityLOG_USERLOG_USER
syslog.filterno-ctrlno-ctrl
syslog.identphpphp
unserialize_callback_funcno valueno value
upload_max_filesize2M2M
upload_tmp_dir/var/www/job/data/mod-tmpno value
user_dirno valueno value
user_ini.cache_ttl300300
user_ini.filename.user.ini.user.ini
variables_orderGPCSGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
zend.assertions11
zend.detect_unicodeOnOn
zend.enable_gcOnOn
zend.exception_ignore_argsOffOff
zend.exception_string_param_max_len1515
zend.max_allowed_stack_size00
zend.multibyteOffOff
zend.reserved_stack_size00
zend.script_encodingno valueno value
zend.signal_checkOffOff

ctype

ctype functions enabled

curl

cURL support enabled
cURL Information 7.81.0
Age 9
Features
AsynchDNS Yes
CharConv No
Debug No
GSS-Negotiate No
IDN Yes
IPv6 Yes
krb4 No
Largefile Yes
libz Yes
NTLM Yes
NTLMWB Yes
SPNEGO Yes
SSL Yes
SSPI No
TLS-SRP Yes
HTTP2 Yes
GSSAPI Yes
KERBEROS5 Yes
UNIX_SOCKETS Yes
PSL Yes
HTTPS_PROXY Yes
MULTI_SSL No
BROTLI Yes
ALTSVC Yes
HTTP3 No
UNICODE No
ZSTD Yes
HSTS Yes
GSASL No
Protocols dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host x86_64-pc-linux-gnu
SSL Version OpenSSL/3.0.2
ZLib Version 1.2.11
libSSH Version libssh/0.9.6/openssl/zlib
DirectiveLocal ValueMaster Value
curl.cainfono valueno value

date

date/time support enabled
timelib version 2022.10
"Olson" Timezone Database Version 2023.3
Timezone Database internal
Default timezone Etc/UTC
DirectiveLocal ValueMaster Value
date.default_latitude31.766731.7667
date.default_longitude35.233335.2333
date.sunrise_zenith90.83333390.833333
date.sunset_zenith90.83333390.833333
date.timezoneEtc/UTCEtc/UTC

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.9.13
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

exif

EXIF Support enabled
Supported EXIF Version 0220
Supported filetypes JPEG, TIFF
Multibyte decoding support using mbstring enabled
Extended EXIF tag formats Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson
DirectiveLocal ValueMaster Value
exif.decode_jis_intelJISJIS
exif.decode_jis_motorolaJISJIS
exif.decode_unicode_intelUCS-2LEUCS-2LE
exif.decode_unicode_motorolaUCS-2BEUCS-2BE
exif.encode_jisno valueno value
exif.encode_unicodeISO-8859-15ISO-8859-15

fileinfo

fileinfo support enabled
libmagic 543

filter

Input Validation and Filtering enabled
DirectiveLocal ValueMaster Value
filter.defaultunsafe_rawunsafe_raw
filter.default_flagsno valueno value

ftp

FTP support enabled
FTPS support enabled

gd

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.11.1
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 8
PNG Support enabled
libPNG Version 1.6.37
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled
WebP Support enabled
BMP Support enabled
TGA Read Support enabled
DirectiveLocal ValueMaster Value
gd.jpeg_ignore_warningOnOn

gettext

GetText Support enabled

gmp

gmp support enabled
GMP version 6.2.1

hash

hash support enabled
Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b crc32c fnv132 fnv1a32 fnv164 fnv1a64 joaat murmur3a murmur3c murmur3f xxh32 xxh64 xxh3 xxh128 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support enabled
iconv implementation glibc
iconv library version 2.35
DirectiveLocal ValueMaster Value
iconv.input_encodingno valueno value
iconv.internal_encodingno valueno value
iconv.output_encodingno valueno value

intl

Internationalization support enabled
ICU version 70.1
ICU Data version 70.1
ICU TZData version 2022a
ICU Unicode version 14.0
DirectiveLocal ValueMaster Value
intl.default_localeno valueno value
intl.error_level00
intl.use_exceptionsOffOff

json

json support enabled

libxml

libXML support active
libXML Compiled Version 2.9.13
libXML Loaded Version 20913
libXML streams enabled

mbstring

Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled
libmbfl version 1.3.2
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 6.9.7
DirectiveLocal ValueMaster Value
mbstring.detect_orderno valueno value
mbstring.encoding_translationOffOff
mbstring.http_inputno valueno value
mbstring.http_outputno valueno value
mbstring.http_output_conv_mimetypes^(text/|application/xhtml\+xml)^(text/|application/xhtml\+xml)
mbstring.internal_encodingno valueno value
mbstring.languageneutralneutral
mbstring.regex_retry_limit10000001000000
mbstring.regex_stack_limit100000100000
mbstring.strict_detectionOffOff
mbstring.substitute_characterno valueno value

mysqli

MysqlI Support enabled
Client API library version mysqlnd 8.3.1
Active Persistent Links 0
Inactive Persistent Links 0
Active Links 0
DirectiveLocal ValueMaster Value
mysqli.allow_local_infileOffOff
mysqli.allow_persistentOnOn
mysqli.default_hostno valueno value
mysqli.default_port33063306
mysqli.default_pwno valueno value
mysqli.default_socket/var/run/mysqld/mysqld.sock/var/run/mysqld/mysqld.sock
mysqli.default_userno valueno value
mysqli.local_infile_directoryno valueno value
mysqli.max_linksUnlimitedUnlimited
mysqli.max_persistentUnlimitedUnlimited
mysqli.rollback_on_cached_plinkOffOff

mysqlnd

mysqlnd enabled
Version mysqlnd 8.3.1
Compression supported
core SSL supported
extended SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 86400
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_caching_sha2_password,auth_plugin_sha256_password
API Extensions mysqli,pdo_mysql

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 3.0.2 15 Mar 2022
OpenSSL Header Version OpenSSL 3.0.2 15 Mar 2022
Openssl default config /usr/lib/ssl/openssl.cnf
DirectiveLocal ValueMaster Value
openssl.cafileno valueno value
openssl.capathno valueno value

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 10.42 2022-12-12
PCRE Unicode Version 14.0.0
PCRE JIT Support enabled
PCRE JIT Target x86 64bit (little endian + unaligned)
DirectiveLocal ValueMaster Value
pcre.backtrack_limit10000001000000
pcre.jitOnOn
pcre.recursion_limit100000100000

PDO

PDO support enabled
PDO drivers mysql

pdo_mysql

PDO Driver for MySQL enabled
Client API version mysqlnd 8.3.1
DirectiveLocal ValueMaster Value
pdo_mysql.default_socket/var/run/mysqld/mysqld.sock/var/run/mysqld/mysqld.sock

Phar

Phar: PHP Archive support enabled
Phar API version 1.1.1
Phar-based phar archives enabled
Tar-based phar archives enabled
ZIP-based phar archives enabled
gzip compression enabled
bzip2 compression enabled
Native OpenSSL support enabled
Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
DirectiveLocal ValueMaster Value
phar.cache_listno valueno value
phar.readonlyOnOn
phar.require_hashOnOn

random

Version 8.3.1

Reflection

Reflection enabled

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php_serialize php php_binary
DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_httponlyOffOff
session.cookie_lifetime00
session.cookie_path//
session.cookie_samesiteno valueno value
session.cookie_secureOffOff
session.gc_divisor10001000
session.gc_maxlifetime14401440
session.gc_probability00
session.lazy_writeOnOn
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_path/var/www/job/data/mod-tmpno value
session.serialize_handlerphpphp
session.sid_bits_per_character44
session.sid_length3232
session.upload_progress.cleanupOnOn
session.upload_progress.enabledOnOn
session.upload_progress.freq1%1%
session.upload_progress.min_freq11
session.upload_progress.namePHP_SESSION_UPLOAD_PROGRESSPHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefixupload_progress_upload_progress_
session.use_cookiesOnOn
session.use_only_cookiesOnOn
session.use_strict_modeOffOff
session.use_trans_sidOffOff

shmop

shmop support enabled

SimpleXML

SimpleXML support enabled
Schema support enabled

soap

Soap Client enabled
Soap Server enabled
DirectiveLocal ValueMaster Value
soap.wsdl_cache11
soap.wsdl_cache_dir/tmp/tmp
soap.wsdl_cache_enabledOnOn
soap.wsdl_cache_limit55
soap.wsdl_cache_ttl8640086400

sockets

Sockets Support enabled

SPL

SPL support enabled
Interfaces OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support enabled
SQLite Library 3.37.2
DirectiveLocal ValueMaster Value
sqlite3.defensiveOnOn
sqlite3.extension_dirno valueno value

standard

Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i -f [email protected]
DirectiveLocal ValueMaster Value
assert.activeOnOn
assert.bailOffOff
assert.callbackno valueno value
assert.exceptionOnOn
assert.warningOnOn
auto_detect_line_endingsOffOff
default_socket_timeout6060
fromno valueno value
session.trans_sid_hostsno valueno value
session.trans_sid_tagsa=href,area=href,frame=src,form=a=href,area=href,frame=src,form=
unserialize_max_depth40964096
url_rewriter.hostsno valueno value
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=fakeentrya=href,area=href,frame=src,input=src,form=fakeentry
user_agentno valueno value

tokenizer

Tokenizer Support enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.9.13

xmlreader

XMLReader enabled

xmlrpc

XMLRPC extension version 1.0.0RC3
core library version xmlrpc-epi v. 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com

xmlwriter

XMLWriter enabled

Zend OPcache

Opcode Caching Up and Running
Optimization Enabled
SHM Cache Enabled
File Cache Disabled
JIT Disabled
Startup OK
Shared memory model mmap
Cache hits 1973519392
Cache misses 241505284
Used memory 134211216
Free memory 4536
Wasted memory 1976
Interned Strings Used memory 8388608
Interned Strings Free memory 0
Cached scripts 10332
Cached keys 10332
Max keys 16229
OOM restarts 0
Hash keys restarts 0
Manual restarts 0
Start time 2024-06-06T09:45:22+0000
Last restart time none
Last force restart time none
DirectiveLocal ValueMaster Value
opcache.blacklist_filenameno valueno value
opcache.dups_fixOffOff
opcache.enableOnOn
opcache.enable_cliOffOff
opcache.enable_file_overrideOffOff
opcache.error_logno valueno value
opcache.file_cacheno valueno value
opcache.file_cache_consistency_checksOnOn
opcache.file_cache_onlyOffOff
opcache.file_update_protection22
opcache.force_restart_timeout180180
opcache.huge_code_pagesOffOff
opcache.interned_strings_buffer88
opcache.jittracingtracing
opcache.jit_bisect_limit00
opcache.jit_blacklist_root_trace1616
opcache.jit_blacklist_side_trace88
opcache.jit_buffer_size00
opcache.jit_debug00
opcache.jit_hot_func127127
opcache.jit_hot_loop6464
opcache.jit_hot_return88
opcache.jit_hot_side_exit88
opcache.jit_max_exit_counters81928192
opcache.jit_max_loop_unrolls88
opcache.jit_max_polymorphic_calls22
opcache.jit_max_recursive_calls22
opcache.jit_max_recursive_returns22
opcache.jit_max_root_traces10241024
opcache.jit_max_side_traces128128
opcache.jit_max_trace_length10241024
opcache.jit_prof_threshold0.0050.005
opcache.lockfile_path/tmp/tmp
opcache.log_verbosity_level11
opcache.max_accelerated_files1000010000
opcache.max_file_size00
opcache.max_wasted_percentage55
opcache.memory_consumption128128
opcache.opt_debug_level00
opcache.optimization_level0x7FFEBFFF0x7FFEBFFF
opcache.preferred_memory_modelno valueno value
opcache.preloadno valueno value
opcache.preload_userno valueno value
opcache.protect_memoryOffOff
opcache.record_warningsOffOff
opcache.restrict_apino valueno value
opcache.revalidate_freq22
opcache.revalidate_pathOffOff
opcache.save_commentsOnOn
opcache.use_cwdOnOn
opcache.validate_permissionOffOff
opcache.validate_rootOffOff
opcache.validate_timestampsOnOn

zip

Zip enabled
Zip version 1.22.3
Libzip version 1.7.3
BZIP2 compression Yes
XZ compression No
ZSTD compression No
AES-128 encryption Yes
AES-192 encryption Yes
AES-256 encryption Yes

zlib

ZLib Support enabled
Stream Wrapper compress.zlib://
Stream Filter zlib.inflate, zlib.deflate
Compiled Version 1.2.11
Linked Version 1.2.11
DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value

Additional Modules

Module Name

Environment

VariableValue
APACHE_CONFDIR /etc/apache2-isp-php83
APACHE_RUN_DIR /var/run/apache2-isp-php83
SYSTEMD_EXEC_PID 977
APACHE_PID_FILE /var/run/apache2-isp-php83/apache2.pid
JOURNAL_STREAM 8:26881
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
INVOCATION_ID 8dd5bef0d86540d59a50e8936c3733e6
APACHE_LOCK_DIR /var/lock/apache2-isp-php83
LANG C
APACHE_RUN_USER www-data
APACHE_RUN_GROUP www-data
APACHE_LOG_DIR /var/log/apache2-isp-php83
PWD /
RUNTIME_DIRECTORY /run/apache2-isp-php83

PHP Variables

VariableValue
$_SERVER['HTTP_HOST']cons.pvgazeta.info
$_SERVER['HTTP_X_FORWARDED_FOR']18.227.49.73
$_SERVER['HTTP_X_FORWARDED_PROTO']http
$_SERVER['HTTP_X_FORWARDED_PORT']80
$_SERVER['HTTP_CONNECTION']close
$_SERVER['HTTP_CF_RAY']8e82cf582bc7e81d-ORD
$_SERVER['HTTP_USER_AGENT']Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
$_SERVER['HTTP_CF_IPCOUNTRY']US
$_SERVER['HTTP_ACCEPT_ENCODING']gzip, br
$_SERVER['HTTP_ACCEPT']*/*
$_SERVER['HTTP_CF_CONNECTING_IP']18.227.49.73
$_SERVER['HTTP_CF_VISITOR']{"scheme":"https"}
$_SERVER['HTTP_CDN_LOOP']cloudflare; loops=1
$_SERVER['PATH']/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
$_SERVER['SERVER_SIGNATURE']<address>Apache/2.4.52 (Ubuntu) Server at cons.pvgazeta.info Port 80</address>
$_SERVER['SERVER_SOFTWARE']Apache/2.4.52 (Ubuntu)
$_SERVER['SERVER_NAME']cons.pvgazeta.info
$_SERVER['SERVER_ADDR']127.0.0.1
$_SERVER['SERVER_PORT']80
$_SERVER['REMOTE_ADDR']172.71.255.45
$_SERVER['DOCUMENT_ROOT']/var/www/job/data/www/cons.pvgazeta.info
$_SERVER['REQUEST_SCHEME']http
$_SERVER['CONTEXT_PREFIX']no value
$_SERVER['CONTEXT_DOCUMENT_ROOT']/var/www/job/data/www/cons.pvgazeta.info
$_SERVER['SERVER_ADMIN'][email protected]
$_SERVER['SCRIPT_FILENAME']/var/www/job/data/www/cons.pvgazeta.info/utilizator-201/actionscript-2.html
$_SERVER['REMOTE_PORT']45494
$_SERVER['GATEWAY_INTERFACE']CGI/1.1
$_SERVER['SERVER_PROTOCOL']HTTP/1.0
$_SERVER['REQUEST_METHOD']GET
$_SERVER['QUERY_STRING']no value
$_SERVER['REQUEST_URI']/utilizator-201/actionscript-2.html
$_SERVER['SCRIPT_NAME']/utilizator-201/actionscript-2.html
$_SERVER['PHP_SELF']/utilizator-201/actionscript-2.html
$_SERVER['REQUEST_TIME_FLOAT']1732549989.3039
$_SERVER['REQUEST_TIME']1732549989

PHP Credits

PHP Group
Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski
Language Design & Concept
Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger
PHP Authors
ContributionAuthors
Zend Scripting Language Engine Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov
Extension Module API Andi Gutmans, Zeev Suraski, Andrei Zmievski
UNIX Build and Modularization Stig Bakken, Sascha Schumann, Jani Taskinen, Peter Kokot
Windows Support Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen
Server API (SAPI) Abstraction Layer Andi Gutmans, Shane Caraveo, Zeev Suraski
Streams Abstraction Layer Wez Furlong, Sara Golemon
PHP Data Objects Layer Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
Output Handler Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner
Consistent 64 bit support Anthony Ferrara, Anatol Belski
SAPI Modules
ContributionAuthors
Apache 2.0 Handler Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code)
CGI / FastCGI Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov
CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui
Embed Edin Kadribasic
FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet
litespeed George Wang
phpdbg Felipe Pena, Joe Watkins, Bob Weinand
Module Authors
ModuleAuthors
BC Math Andi Gutmans
Bzip2 Sterling Hughes
Calendar Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong
COM and .Net Wez Furlong
ctype Hartmut Holzgraefe
cURL Sterling Hughes
Date/Time Support Derick Rethans
DB-LIB (MS SQL, Sybase) Wez Furlong, Frank M. Kromann, Adam Baratz
DBA Sascha Schumann, Marcus Boerger
DOM Christian Stocker, Rob Richards, Marcus Boerger
enchant Pierre-Alain Joye, Ilia Alshanetsky
EXIF Rasmus Lerdorf, Marcus Boerger
FFI Dmitry Stogov
fileinfo Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans, Anatol Belski
Firebird driver for PDO Ard Biesheuvel
FTP Stefan Esser, Andrew Skalski
GD imaging Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger, Mark Randall
GetText Alex Plotnick
GNU GMP support Stanislav Malyshev
Iconv Rui Hirokawa, Stig Bakken, Moriyoshi Koizumi
IMAP Rex Logan, Mark Musone, Brian Wang, Kaj-Michael Lang, Antoni Pamies Olive, Rasmus Lerdorf, Andrew Skalski, Chuck Hagenbuch, Daniel R Kalowsky
Input Filter Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky
Internationalization Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar
JSON Jakub Zelenka, Omar Kilani, Scott MacVicar
LDAP Amitay Isaacs, Eric Warnke, Rasmus Lerdorf, Gerrit Thomson, Stig Venaas
LIBXML Christian Stocker, Rob Richards, Marcus Boerger, Wez Furlong, Shane Caraveo
Multibyte String Functions Tsukada Takuya, Rui Hirokawa
MySQL driver for PDO George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter
MySQLi Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel
MySQLnd Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter
OCI8 Stig Bakken, Thies C. Arntzen, Andy Sautins, David Benson, Maxim Maletsky, Harald Radi, Antony Dovgal, Andi Gutmans, Wez Furlong, Christopher Jones, Oracle Corporation
ODBC driver for PDO Wez Furlong
ODBC Stig Bakken, Andreas Karajannis, Frank M. Kromann, Daniel R. Kalowsky
Opcache Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
OpenSSL Stig Venaas, Wez Furlong, Sascha Kettler, Scott MacVicar, Eliot Lear
Oracle (OCI) driver for PDO Wez Furlong
pcntl Jason Greene, Arnaud Le Blanc
Perl Compatible Regexps Andrei Zmievski
PHP Archive Gregory Beaver, Marcus Boerger
PHP Data Objects Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
PHP hash Sara Golemon, Rasmus Lerdorf, Stefan Esser, Michael Wallner, Scott MacVicar
Posix Kristian Koehntopp
PostgreSQL driver for PDO Edin Kadribasic, Ilia Alshanetsky
PostgreSQL Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne
Pspell Vlad Krupin
random Go Kudo, Tim Düsterhus, Guilliam Xavier, Christoph M. Becker, Jakub Zelenka, Bob Weinand, Máté Kocsis, and Original RNG implementators
Readline Thies C. Arntzen
Reflection Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter
Sessions Sascha Schumann, Andrei Zmievski
Shared Memory Operations Slava Poliakov, Ilia Alshanetsky
SimpleXML Sterling Hughes, Marcus Boerger, Rob Richards
SNMP Rasmus Lerdorf, Harrie Hazewinkel, Mike Jackson, Steven Lawrance, Johann Hanne, Boris Lytochkin
SOAP Brad Lafountain, Shane Caraveo, Dmitry Stogov
Sockets Chris Vandomelen, Sterling Hughes, Daniel Beulshausen, Jason Greene
Sodium Frank Denis
SPL Marcus Boerger, Etienne Kneuss
SQLite 3.x driver for PDO Wez Furlong
SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar
System V Message based IPC Wez Furlong
System V Semaphores Tom May
System V Shared Memory Christian Cartus
tidy John Coggeshall, Ilia Alshanetsky
tokenizer Andrei Zmievski, Johannes Schlueter
XML Stig Bakken, Thies C. Arntzen, Sterling Hughes
XMLReader Rob Richards
XMLWriter Rob Richards, Pierre-Alain Joye
XSL Christian Stocker, Rob Richards
Zip Pierre-Alain Joye, Remi Collet
Zlib Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti, Michael Wallner
PHP Documentation
Authors Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey
Editor Peter Cowburn
User Note Maintainers Daniel P. Brown, Thiago Henrique Pojda
Other Contributors Previously active authors, editors and other contributors are listed in the manual.
PHP Quality Assurance Team
Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs
Websites and Infrastructure team
PHP Websites Team Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison
Event Maintainers Damien Seguy, Daniel P. Brown
Network Infrastructure Daniel P. Brown
Windows Infrastructure Alex Schoenmaker

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected].

Acum plasați fișierul test.php pe site-ul dvs., iar în proiectul Flash specificăm o nouă cale către fișierul test.php.

Sursa pentru Macromedia Flash 8 și toate php-script-urile pot fi descărcate aici.

[!] În acest exemplu, se presupune că 0 sau un întreg pozitiv este trimis prin câmpul de intrare a scorului (de regulă, acestea sunt valorile folosite în jocuri și aplicații). Puteți, desigur, trimite o valoare text, dar nu este recomandată. Textul, mai ales dacă este vorba de fragmente mai mult sau mai puțin voluminoase de text, depășiți rapid baza noastră de date improvizată.