Jump to content

Uploading changed files of my website?


eduard

Recommended Posts

Do you actually have a MySQL database installed on your local machine?If you do not have any idea what I mean, create a simple php script such as;
<?php   phpinfo();?>

and save it as phpinfo.php, then open it in your browser. There you can see how your local host is setup. If you don't understand what it displays, post a screenshot.

This is the result! (I don´t understand much of it)PHP Version 5.3.2System Darwin computer-van-eduard.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386Build Date Oct 13 2010 13:04:42Configure Command './configure' '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/Applications/MAMP/Library' '--with-zlib' '--with-freetype-dir=/Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php5.3' '--exec-prefix=/Applications/MAMP/bin/php5.3' '--sysconfdir=/Applications/MAMP/conf/php5.3' '--with-soap' '--with-config-file-path=/Applications/MAMP/conf/php5.3' '--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-sqlite' '--with-ttf' '--with-t1lib=/Applications/MAMP/Library' '--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2007e' '--enable-soap' '--with-kerberos' '--enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl' '--enable-zip'Server API Apache 2.0 HandlerVirtual Directory Support disabledConfiguration File (php.ini) Path /Applications/MAMP/conf/php5.3Loaded Configuration File /Applications/MAMP/conf/php5.3/php.iniScan this dir for additional .ini files (none)Additional .ini files parsed (none)PHP API 20090626PHP Extension 20090626Zend Extension 220090626Zend Extension Build API220090626,NTSPHP Extension Build API20090626,NTSDebug Build noThread Safety disabledZend Memory Manager enabledZend Multibyte Support disabledIPv6 Support enabledRegistered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zipRegistered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tlsRegistered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunkThis program makes use of the Zend Scripting Language Engine:Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies with XCache v1.3.0, Copyright © 2005-2009, by mOoPHP CreditsConfigurationapache2handlerApache Version Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2Apache API Version 20020903Server Administrator you@example.comHostname:Port localhost:80User/Group eduard(501)/-1Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100Timeouts Connection: 300 - Keep-Alive: 15Virtual Server NoServer Root /Applications/MAMP/LibraryLoaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_file_cache mod_echo mod_charset_lite mod_cache mod_disk_cache mod_mem_cache mod_example mod_case_filter mod_case_filter_in mod_ext_filter mod_include mod_deflate mod_log_config mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_usertrack mod_setenvif mod_proxy proxy_connect proxy_ftp proxy_http mod_bucketeer mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_cgid mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5Directive Local Value Master Valueengine 1 1last_modified 0 0xbithack 0 0Apache EnvironmentVariable ValueHTTP_ACCEPT_LANGUAGE esHTTP_ACCEPT_ENCODING gzip, deflateHTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4HTTP_ACCEPT application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5HTTP_CONNECTION keep-aliveHTTP_HOST localhost:80PATH /usr/bin:/bin:/usr/sbin:/sbinSERVER_SIGNATURE <address>Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 80</address>SERVER_SOFTWARE Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2SERVER_NAME localhostSERVER_ADDR ::1SERVER_PORT 80REMOTE_ADDR ::1DOCUMENT_ROOT /Applications/MAMP/htdocs/SERVER_ADMIN you@example.comSCRIPT_FILENAME /Applications/MAMP/htdocs/website/phpinfo.phpREMOTE_PORT 49393GATEWAY_INTERFACE CGI/1.1SERVER_PROTOCOL HTTP/1.1REQUEST_METHOD GETQUERY_STRING no valueREQUEST_URI /website/phpinfo.phpSCRIPT_NAME /website/phpinfo.phpHTTP Headers InformationHTTP Request HeadersHTTP Request GET /website/phpinfo.php HTTP/1.1Accept-Language esAccept-Encoding gzip, deflateUser-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4Accept application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5Connection keep-aliveHost localhost:80HTTP Response HeadersX-Powered-By PHP/5.3.2Keep-Alive timeout=15, max=100Connection Keep-AliveTransfer-Encoding chunkedContent-Type text/htmlbcmathBCMath support enabledDirective Local Value Master Valuebcmath.scale 0 0bz2BZip2 Support EnabledStream Wrapper support compress.bz2://Stream Filter support bzip2.decompress, bzip2.compressBZip2 Version 1.0.5, 10-Dec-2007calendarCalendar support enabledCorePHP Version 5.3.2Directive Local Value Master Valueallow_call_time_pass_reference On Onallow_url_fopen On Onallow_url_include Off Offalways_populate_raw_post_data Off Offarg_separator.input & &arg_separator.output & &asp_tags Off Offauto_append_file no value no valueauto_globals_jit On Onauto_prepend_file no value no valuebrowscap no value no valuedefault_charset no value no valuedefault_mimetype text/html text/htmldefine_syslog_variables Off Offdisable_classes no value no valuedisable_functions no value no valuedisplay_errors On Ondisplay_startup_errors Off Offdoc_root no value no valuedocref_ext no value no valuedocref_root no value no valueenable_dl On Onerror_append_string no value no valueerror_log /Applications/MAMP/logs/php_error.log /Applications/MAMP/logs/php_error.logerror_prepend_string no value no valueerror_reporting 30719 ⎮ 2048 30719 ⎮ 2048exit_on_timeout Off Offexpose_php On Onextension_dir /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/ /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/file_uploads On Onhighlight.bg #FFFFFF #FFFFFFhighlight.comment #FF8000 #FF8000highlight.default #0000BB #0000BBhighlight.html #000000 #000000highlight.keyword #007700 #007700highlight.string #DD0000 #DD0000html_errors On Onignore_repeated_errors Off Offignore_repeated_source Off Offignore_user_abort Off Offimplicit_flush Off Offinclude_path .:/Applications/MAMP/bin/php5.3/lib/php .:/Applications/MAMP/bin/php5.3/lib/phplog_errors On Onlog_errors_max_len 1024 1024magic_quotes_gpc On Onmagic_quotes_runtime Off Offmagic_quotes_sybase Off Offmail.add_x_header Off Offmail.force_extra_parameters no value no valuemail.log no value no valuemax_execution_time 30 30max_file_uploads 20 20max_input_nesting_level 64 64max_input_time 60 60memory_limit 32M 32Mopen_basedir no value no valueoutput_buffering no value no valueoutput_handler no value no valuepost_max_size 32M 32Mprecision 12 12realpath_cache_size 16K 16Krealpath_cache_ttl 120 120register_argc_argv On Onregister_globals Off Offregister_long_arrays On Onreport_memleaks On Onreport_zend_debug On Onrequest_order no value no valuesafe_mode Off Offsafe_mode_exec_dir no value no valuesafe_mode_gid Off Offsafe_mode_include_dir no value no valuesendmail_from no value no valuesendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100short_open_tag On OnSMTP localhost localhostsmtp_port 25 25sql.safe_mode Off Offtrack_errors Off Offunserialize_callback_func no value no valueupload_max_filesize 32M 32Mupload_tmp_dir /Applications/MAMP/tmp/php /Applications/MAMP/tmp/phpuser_dir no value no valueuser_ini.cache_ttl 300 300user_ini.filename .user.ini .user.inivariables_order EGPCS EGPCSxmlrpc_error_number 0 0xmlrpc_errors Off Offy2k_compliance On Onzend.enable_gc On Onctypectype functions enabledcurlcURL support enabledcURL Information 7.20.0Age 3FeaturesAsynchDNS NoDebug NoGSS-Negotiate NoIDN YesIPv6 YesLargefile YesNTLM YesSPNEGO NoSSL YesSSPI Nokrb4 Nolibz YesCharConv NoProtocols dict, file, ftp, ftps, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, smtp, smtps, telnet, tftpHost i386-apple-darwin8.11.1SSL Version OpenSSL/0.9.7lZLib Version 1.2.3datedate/time support enabled"Olson" Timezone Database Version 2010.3Timezone Database internalDefault timezone America/SantiagoDirective Local Value Master Valuedate.default_latitude 31.7667 31.7667date.default_longitude 35.2333 35.2333date.sunrise_zenith 90.583333 90.583333date.sunset_zenith 90.583333 90.583333date.timezone America/Santiago America/SantiagodomDOM/XML enabledDOM/XML API Version 20031129libxml Version 2.7.6HTML Support enabledXPath Support enabledXPointer Support enabledSchema Support enabledRelaxNG Support enablederegRegex Library Bundled library enabledexifEXIF Support enabledEXIF Version 1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $Supported EXIF Version 0220Supported filetypes JPEG,TIFFDirective Local Value Master Valueexif.decode_jis_intel JIS JISexif.decode_jis_motorola JIS JISexif.decode_unicode_intel UCS-2LE UCS-2LEexif.decode_unicode_motorola UCS-2BE UCS-2BEexif.encode_jis no value no valueexif.encode_unicode ISO-8859-15 ISO-8859-15fileinfofileinfo support enabledversion 1.0.5-devfilterInput Validation and Filtering enabledRevision $Revision: 294106 $Directive Local Value Master Valuefilter.default unsafe_raw unsafe_rawfilter.default_flags no value no valueftpFTP support enabledgdGD Support enabledGD Version bundled (2.0.34 compatible)FreeType Support enabledFreeType Linkage with freetypeFreeType Version 2.3.9T1Lib Support enabledGIF Read Support enabledGIF Create Support enabledJPEG Support enabledlibJPEG Version unknownPNG Support enabledlibPNG Version 1.2.42WBMP Support enabledXBM Support enabledDirective Local Value Master Valuegd.jpeg_ignore_warning 0 0gettextGetText Support enabledhashhash support enabledHashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 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,5iconviconv support enablediconv implementation libiconviconv library version 1.13Directive Local Value Master Valueiconv.input_encoding ISO-8859-1 ISO-8859-1iconv.internal_encoding ISO-8859-1 ISO-8859-1iconv.output_encoding ISO-8859-1 ISO-8859-1imapIMAP c-Client Version 2007eKerberos Support enabledjsonjson support enabledjson version 1.2.1ldapLDAP Support enabledRCS Version $Id: ldap.c 293036 2010-01-03 09:23:27Z sebastian $Total Links 0/unlimitedAPI Version 3001Vendor Name OpenLDAPVendor Version 20219Directive Local Value Master Valueldap.max_links Unlimited UnlimitedlibxmllibXML support activelibXML Compiled Version 2.7.6libXML Loaded Version 20706libXML streams enabledmbstringMultibyte Support enabledMultibyte string engine libmbflHTTP input encoding translation disabledmbstring 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 enabledMultibyte regex (oniguruma) backtrack check OnMultibyte regex (oniguruma) version 4.7.1Directive Local Value Master Valuembstring.detect_order no value no valuembstring.encoding_translation Off Offmbstring.func_overload 0 0mbstring.http_input pass passmbstring.http_output pass passmbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)mbstring.internal_encoding no value no valuembstring.language neutral neutralmbstring.strict_detection Off Offmbstring.substitute_character no value no valuemcryptmcrypt support enabledVersion 2.5.8Api No 20021217Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledesSupported modes cbc cfb ctr ecb ncfb nofb ofb streamDirective Local Value Master Valuemcrypt.algorithms_dir no value no valuemcrypt.modes_dir no value no valuemysqlMySQL Support enabledActive Persistent Links 0Active Links 0Client API version 5.1.44MYSQL_MODULE_TYPE externalMYSQL_SOCKET /Applications/MAMP/tmp/mysql/mysql.sockMYSQL_INCLUDE -I/Applications/MAMP/Library/include/mysqlMYSQL_LIBS -L/Applications/MAMP/Library/lib/mysql -lmysqlclientDirective Local Value Master Valuemysql.allow_local_infile On Onmysql.allow_persistent On Onmysql.connect_timeout 60 60mysql.default_host no value no valuemysql.default_password no value no valuemysql.default_port no value no valuemysql.default_socket /Applications/MAMP/tmp/mysql/mysql.sock /Applications/MAMP/tmp/mysql/mysql.sockmysql.default_user no value no valuemysql.max_links Unlimited Unlimitedmysql.max_persistent Unlimited Unlimitedmysql.trace_mode Off OffmysqliMysqlI Support enabledClient API library version 5.1.44Active Persistent Links 0Inactive Persistent Links 0Active Links 0Client API header version 5.1.44MYSQLI_SOCKET /Applications/MAMP/tmp/mysql/mysql.sockDirective Local Value Master Valuemysqli.allow_local_infile On Onmysqli.allow_persistent On Onmysqli.default_host no value no valuemysqli.default_port 3306 3306mysqli.default_pw no value no valuemysqli.default_socket no value no valuemysqli.default_user no value no valuemysqli.max_links Unlimited Unlimitedmysqli.max_persistent Unlimited Unlimitedmysqli.reconnect Off OffopensslOpenSSL support enabledOpenSSL Library Version OpenSSL 0.9.7l 28 Sep 2006OpenSSL Header Version OpenSSL 0.9.7i 14 Oct 2005pcrePCRE (Perl Compatible Regular Expressions) Support enabledPCRE Library Version 8.00 2009-10-19Directive Local Value Master Valuepcre.backtrack_limit 100000 100000pcre.recursion_limit 100000 100000PDOPDO support enabledPDO drivers sqlite, sqlite2, pgsql, mysqlpdo_mysqlPDO Driver for MySQL enabledClient API version 5.1.44pdo_pgsqlPDO Driver for PostgreSQL enabledPostgreSQL(libpq) Version 8.4.2Module version 1.0.2Revision $Id: pdo_pgsql.c 293036 2010-01-03 09:23:27Z sebastian $pdo_sqlitePDO Driver for SQLite 3.x enabledSQLite Library 3.6.22pgsqlPostgreSQL Support enabledPostgreSQL(libpq) Version 8.4.2Multibyte character support enabledSSL support enabledActive Persistent Links 0Active Links 0Directive Local Value Master Valuepgsql.allow_persistent On Onpgsql.auto_reset_persistent Off Offpgsql.ignore_notice Off Offpgsql.log_notice Off Offpgsql.max_links Unlimited Unlimitedpgsql.max_persistent Unlimited UnlimitedPharPhar: PHP Archive support enabledPhar EXT version 2.0.1Phar API version 1.1.1SVN revision $Revision: 290435 $Phar-based phar archives enabledTar-based phar archives enabledZIP-based phar archives enabledgzip compression enabledbzip2 compression enabledNative OpenSSL support enabledPhar based on pear/PHP_Archive, original concept by Davey Shafik.Phar fully realized by Gregory Beaver and Marcus Boerger.Portions of tar implementation Copyright © 2003-2009 Tim Kientzle.Directive Local Value Master Valuephar.cache_list no value no valuephar.readonly On Onphar.require_hash On OnposixRevision $Revision: 293036 $ReflectionReflection enabledVersion $Revision: 293036 $sessionSession Support enabledRegistered save handlers files user sqliteRegistered serializer handlers php php_binaryDirective Local Value Master Valuesession.auto_start Off Offsession.bug_compat_42 On Onsession.bug_compat_warn On Onsession.cache_expire 180 180session.cache_limiter nocache nocachesession.cookie_domain no value no valuesession.cookie_httponly Off Offsession.cookie_lifetime 0 0session.cookie_path / /session.cookie_secure Off Offsession.entropy_file no value no valuesession.entropy_length 0 0session.gc_divisor 100 100session.gc_maxlifetime 1440 1440session.gc_probability 1 1session.hash_bits_per_character 4 4session.hash_function 0 0session.name PHPSESSID PHPSESSIDsession.referer_check no value no valuesession.save_handler files filessession.save_path /Applications/MAMP/tmp/php /Applications/MAMP/tmp/phpsession.serialize_handler php phpsession.use_cookies On Onsession.use_only_cookies On Onsession.use_trans_sid 0 0SimpleXMLSimplexml support enabledRevision $Revision: 293036 $Schema support enabledsoapSoap Client enabledSoap Server enabledDirective Local Value Master Valuesoap.wsdl_cache 1 1soap.wsdl_cache_dir /tmp /tmpsoap.wsdl_cache_enabled 1 1soap.wsdl_cache_limit 5 5soap.wsdl_cache_ttl 86400 86400socketsSockets Support enabledSPLSPL support enabledInterfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubjectClasses AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueExceptionSQLiteSQLite support enabledPECL Module version 2.0-dev $Id: sqlite.c 293036 2010-01-03 09:23:27Z sebastian $SQLite Library 2.8.17SQLite Encoding iso8859Directive Local Value Master Valuesqlite.assoc_case 0 0sqlite3SQLite3 support enabledSQLite3 module version 0.7-devSQLite Library 3.6.22Directive Local Value Master Valuesqlite3.extension_dir no value no valuestandardDynamic Library Support enabledPath to sendmail /usr/sbin/sendmail -t -iDirective Local Value Master Valueassert.active 1 1assert.bail 0 0assert.callback no value no valueassert.quiet_eval 0 0assert.warning 1 1auto_detect_line_endings 0 0default_socket_timeout 60 60safe_mode_allowed_env_vars PHP_ PHP_safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATHurl_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=user_agent no value no valuetokenizerTokenizer Support enabledXCacheXCache Support enabledVersion 1.3.0Modules Built cacher optimizer coverager assembler encoder decoderReadonly Protection N/ACache Init Time 2011-04-08 18:28:49Cache Instance Id 430Opcode Cache enabled, 67,108,864 bytes, 1 split(s), with 8192 slots eachVariable Cache enabled, 67,108,864 bytes, 1 split(s), with 8192 slots eachShared Memory Schemes mmapCoverage Auto Dumper disabledDirective Local Value Master Valuexcache.admin.enable_auth On Onxcache.cacher On Onxcache.coredump_directory /Applications/MAMP/tmp/phpcore/ /Applications/MAMP/tmp/phpcore/xcache.count 1 1xcache.coveragedump_directory no value no valuexcache.coverager Off Offxcache.gc_interval 0 0xcache.mmap_path /Applications/MAMP/tmp/xcache /Applications/MAMP/tmp/xcachexcache.optimizer On Onxcache.readonly_protection no value no valuexcache.shm_scheme mmap mmapxcache.size 64M 64Mxcache.slots 8K 8Kxcache.stat On Onxcache.test no value no valuexcache.ttl 0 0xcache.var_count 1 1xcache.var_gc_interval 300 300xcache.var_maxttl 0 0xcache.var_size 64M 64Mxcache.var_slots 8K 8Kxcache.var_ttl 0 0xmlXML Support activeXML Namespace Support activelibxml2 Version 2.7.6xmlreaderXMLReader enabledxmlwriterXMLWriter enabledxslXSL enabledlibxslt Version 1.1.26libxslt compiled against libxml Version 2.7.6EXSLT enabledlibexslt Version 1.1.26yazYAZ Support enabledPHP/YAZ Version 1.0.14YAZ Version 4.0.1Compiled with YAZ version 4.0.1zipZip enabledExtension Version $Id: php_zip.c 294817 2010-02-09 17:51:39Z pajoye $Zip version 1.9.1Libzip version 0.9.0zlibZLib Support enabledStream Wrapper support compress.zlib://Stream Filter support zlib.inflate, zlib.deflateCompiled Version 1.2.3Linked Version 1.2.3Directive Local Value Master Valuezlib.output_compression Off Offzlib.output_compression_level -1 -1zlib.output_handler no value no valueAdditional ModulesModule NameEnvironmentVariable ValueSHELL /bin/bash__AUTHORIZATION auth 7USER eduard__CF_USER_TEXT_ENCODING 0x1F5:0:8PATH /usr/bin:/bin:/usr/sbin:/sbinPWD /HOME /Users/eduardSHLVL 2DYLD_LIBRARY_PATH /Applications/MAMP/Library/lib:SECURITYSESSIONID aa70e0_ /Applications/MAMP/Library/bin/httpdPHP VariablesVariable Value_SERVER["HTTP_ACCEPT_LANGUAGE"] es_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4_SERVER["HTTP_ACCEPT"] application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5_SERVER["HTTP_CONNECTION"] keep-alive_SERVER["HTTP_HOST"] localhost:80_SERVER["PATH"] /usr/bin:/bin:/usr/sbin:/sbin_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 80</address>_SERVER["SERVER_SOFTWARE"] Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2_SERVER["SERVER_NAME"] localhost_SERVER["SERVER_ADDR"] ::1_SERVER["SERVER_PORT"] 80_SERVER["REMOTE_ADDR"] ::1_SERVER["DOCUMENT_ROOT"] /Applications/MAMP/htdocs/_SERVER["SERVER_ADMIN"] you@example.com_SERVER["SCRIPT_FILENAME"] /Applications/MAMP/htdocs/website/phpinfo.php_SERVER["REMOTE_PORT"] 49393_SERVER["GATEWAY_INTERFACE"] CGI/1.1_SERVER["SERVER_PROTOCOL"] HTTP/1.1_SERVER["REQUEST_METHOD"] GET_SERVER["QUERY_STRING"] no value_SERVER["REQUEST_URI"] /website/phpinfo.php_SERVER["SCRIPT_NAME"] /website/phpinfo.php_SERVER["PHP_SELF"] /website/phpinfo.php_SERVER["REQUEST_TIME"] 1302304781_SERVER["argv"] Array()_SERVER["argc"] 0_ENV["SHELL"] /bin/bash_ENV["__AUTHORIZATION"] auth 7_ENV["USER"] eduard_ENV["__CF_USER_TEXT_ENCODING"] 0x1F5:0:8_ENV["PATH"] /usr/bin:/bin:/usr/sbin:/sbin_ENV["PWD"] /_ENV["HOME"] /Users/eduard_ENV["SHLVL"] 2_ENV["DYLD_LIBRARY_PATH"] /Applications/MAMP/Library/lib:_ENV["SECURITYSESSIONID"] aa70e0_ENV["_"] /Applications/MAMP/Library/bin/httpdPHP LicenseThis 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: LICENSEThis 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 license@php.net.
Link to comment
Share on other sites

  • Replies 128
  • Created
  • Last Reply

Also this:You're having 1 application* at 2 places.It currently works at 1 place (your computer), correct? On that 1 place, you have 1 DB server** and your application is accessing 1 database from the DB server. Your application works at this 1 place with that 1 DB server with that 1 database.You have the "holy trinity" in that 1 place - "the DB server, the database and the holy application" (amen! ).Here's the thing, on that other place, you have another DB server. You need to adjust your application for it to work with that other DB server. And BTW, you also have another (copy of) the database there.If everything was OK, the only thing you'd need to alter in your application is the connection with the DB server. In your case, you'll likely need to alter a few things after that, but we don't want to make you jump ahead, because apparatly you're failing even with the most basic stuff.The username and password in mysql_connect are the first thing you need to change in accordance with the username and password for that other DB server. What username/password combo does that other server require? THAT is what you need to ask your host if you can't find that information yourself.* Application = DB client = MySQL client = PHP = phpMyAdmin** "DB server = MySQL server". I'm using the term "DB server" because it would've been the same story even if you used another kind of database.Shouldn´t that be one of the first lessons regarding MySQL?

Link to comment
Share on other sites

I can create a database without using phpMyAdmin, because I get an error message now:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /Applications/MAMP/htdocs/website/create.php on line 5Could not connect: Access denied for user 'root'@'localhost' (using password: YES)Do I have to use a totally NEW code?
I'm not sure if you'll end up seeing this.It seems people forgot to tell you that you need a different username and password for your webhost. Your current code says:
mysql_connect("localhost","eduard","root");

But it should be using the server, name and password that your web host requires. For example:

mysql_connect("sqlserver.mywebhost.com","myusername","mypassword");

Your webhost should supply the name of the server to connect to. Usually, the username and password are the same as the username and password that you used to log into your hosting administration.

Link to comment
Share on other sites

personally, I think it's just easier to have the same profiles locally and on the host. No swapping/switching of code. My suggestion was to add the hosted DB login profile to the local database, (so that connecting will essentially be the same in both locations) and that doesn't force you to have to make any changes to the hosted database.Seems simple enough in theory but we know how these threads go...

Link to comment
Share on other sites

I'm not sure if you'll end up seeing this.It seems people forgot to tell you that you need a different username and password for your webhost. Your current code says:
mysql_connect("localhost","eduard","root");

But it should be using the server, name and password that your web host requires. For example:

mysql_connect("sqlserver.mywebhost.com","myusername","mypassword");

Your webhost should supply the name of the server to connect to. Usually, the username and password are the same as the username and password that you used to log into your hosting administration.

Forgot? I´ve been trying to get the password of phpMyAdmin for 2 days (which I still haven´t), but which WASN´T necessary at all!
Link to comment
Share on other sites

Forgot? I´ve been trying to get the password of phpMyAdmin for 2 days (which I still haven´t), but which WASN´T necessary at all!
yes, you are going to want it. How do you plan on administering/interacting with your hosted database without being able to login/connect to it?
Link to comment
Share on other sites

It's not the phpMyAdmin password, it's your hosting password. phpMyAdmin plays no part in this. Try the same password that you used to log into your web host.

Link to comment
Share on other sites

It's not the phpMyAdmin password, it's your hosting password. phpMyAdmin plays no part in this. Try the same password that you used to log into your web host.
yes, you are correct. These (simultaneous) threads get confusing easily. :)
Link to comment
Share on other sites

Although I don´t agree with you, I would like to come back! I´ll explain why!In 2004 I decided to move to Chile, because I hadn´t had a good life in The Netherlands. After having been 4 times on holidays in Chile, I left The Netherlands definitively in december 2008. I thought to make a living I can teach english (or German). What I didn´t know-although the chilean people speak (very) bad english, almost the mayority doesn´t want to change this. Another problem which I didn´t know beforehand is, that there´s very much discrimination here against disabled persons (I was in a wheelchair, now I´m using a walker!) I applied for jobs more than 300 times without a positive result. That´s why I decided to study this, so the people can´t see that I´m disabled! Also life is now very hard, because I don´t have any adaptations in my house which I need as a disabled person! I received until now money from my family but that contact isn´t good (so I ended this a week ago, because I was fed up of the many bad e-mails I received from them). So now, I MUST earn my own money. So I want to promote myself by a website (with an english and spanish version!) as a developer of databases. However, I want to do this very soon, because I need money for my living! I hope you´ll help me to realize that!

Link to comment
Share on other sites

I wrotr BEFORE that I don´t have money for a book and Chile isn´t like the States (or Europe)! People DON´T lend you money!
Link to comment
Share on other sites

the database isn't in anything. I don't know what's so hard to get. You have a database. To access it, you use 1) a server side language like PHP to write SQL commands to make things happen to it (INSERT/SELECT/etc) via your webpages2) phpMyAdmin (which, for example, when you have it create a table, handles the SQL for you. If you notice, when you do something in phpMyAdmin, it will show you the SQL it executed)3) the command lineThe common insight to gain from all of these is they only do one thing; they execute SQL on your database.
If I knew this much earlier (e. g. at the beginning of the tutorials of MySQL), it would have saved me a lot of time, stress and posts!
Link to comment
Share on other sites

No. For the (5th? 6th?) time, you just need to make sure that your username and your password match. Whatever you have for a username and password set up in the database is what you have to use for mysql_connect.
Also I did this, but it doesn´t work neither!I always get a MySQL error, also when I start MAMP!
Link to comment
Share on other sites

I missed that piece of code! You wrote me to contact my host, but he won´t help me (Chilean people? or is this also a prejudice?) Everything was ok, but I did changes in the privileges of phpMyAdmin (because my INSERT FORM wasn´t/isn´t ok!If you posted that code already, I must have it and will certainly use it!
This I inmediately did after receiving this post!
Link to comment
Share on other sites

I wrotr BEFORE that I don´t have money for a book and Chile isn´t like the States (or Europe)! People DON´T lend you money!
I understand you may have your reasons for not buying the books, I'm just telling you that the quickest and easiest way for you to learn this stuff (i.e., start making money as soon as possible) is to use books like those. It's not a big investment, and it will help you gain the skills necessary to make money as fast as you're able to read through and understand them. I frankly think that, at the pace you've been going, you've got another year or more before you have the skills you need to start if all you do is stick around here and ask people questions. You can do whatever you want to do, I'm just telling you that if I needed a source of income in a short time, I would be looking at learning the skills I need as quickly as possible, and making sacrifices if necessary to do so. Free is great, but it's not fast.
Link to comment
Share on other sites

I understand you may have your reasons for not buying the books, I'm just telling you that the quickest and easiest way for you to learn this stuff (i.e., start making money as soon as possible) is to use books like those. It's not a big investment, and it will help you gain the skills necessary to make money as fast as you're able to read through and understand them. I frankly think that, at the pace you've been going, you've got another year or more before you have the skills you need to start if all you do is stick around here and ask people questions. You can do whatever you want to do, I'm just telling you that if I needed a source of income in a short time, I would be looking at learning the skills I need as quickly as possible, and making sacrifices if necessary to do so. Free is great, but it's not fast.
ISN´T THE MESSAGE CLEAR? I wrote that I have to earn money very soon (then I can buy a book!). Now my website-functioning perfectly has the highest priority!
Link to comment
Share on other sites

OK. Your website isn't going to do you any good if you can't make what you need, but if you want to list the problems you're having, as detailed as possible, we'll try to figure it out. This thread has become a little confusing for me to know exactly what the problems are, so a quick recap might help.

Link to comment
Share on other sites

Do you actually have a MySQL database installed on your local machine?If you do not have any idea what I mean, create a simple php script such as;
<?php   phpinfo();?>

and save it as phpinfo.php, then open it in your browser. There you can see how your local host is setup. If you don't understand what it displays, post a screenshot.

How do I open this file correct in my browser?
Link to comment
Share on other sites

How do I open this file correct in my browser?
how do you think? What are the steps we tell you every other time you want run a php file?1) put the file it in the webroot2) run MAMP3) open the file in the browsersee, you still ask the same questions you've been given the answers too already. the same stuff we've been telling you for months you don't retain. This I believe is the cause of your poor learning habits on this board; not us, not the tutorials, and not the people of Chile (who are not involved in some massive conspiracy to keep you from working). In order to progress in anything, you need to be able to retain what you've learned and then build upon it. If you don't learn/retain the basics, you'll be constantly stuck here asking people why your script is wrong, even when an error message plainly tells you the problem. to be honest, JSG is being very optimistic when he says he gives you a year. I say at least two.prejudices don't mean anything if you don't even have the skills to offer the people who would even be prejudiced against hiring you.
Link to comment
Share on other sites

If I knew this much earlier (e. g. at the beginning of the tutorials of MySQL), it would have saved me a lot of time, stress and posts!
we've told you before. stop blaming everybody but yourself for once.
Link to comment
Share on other sites

how do you think? What are the steps we tell you every other time you want run a php file?1) put the file it in the webroot2) run MAMP3) open the file in the browsersee, you still ask the same questions you've been given the answers too already. the same stuff we've been telling you for months you don't retain. This I believe is the cause of your poor learning habits on this board; not us, not the tutorials, and not the people of Chile (who are not involved in some massive conspiracy to keep you from working). In order to progress in anything, you need to be able to retain what you've learned and then build upon it. If you don't learn/retain the basics, you'll be constantly stuck here asking people why your script is wrong, even when an error message plainly tells you the problem. to be honest, JSG is being very optimistic when he says he gives you a year. I say at least two.prejudices don't mean anything if you don't even have the skills to offer the people who would even be prejudiced against hiring you.
I wrote several times before: THE TUTORIALS AREN´T CLEAR, THEREFORE I´VE MANY QUESTIONS, GET MORE (DIFFERENT) REPLIES, GET CONFUSED > A LOT OF STRESSIS IT STRANGE THAT I CAN´T REMEMBER EVERYTHING? (sorry, I´m not a computer!)P. s. 1 no one else causes the problems which I have with these theory!P. s. 2 tell me please where the basics are, because I´ven´t found much of it in W3Schools?P. s. 3 if the theory is explained good, I´l learn it within 1 year!P. s. 3 All your questions are in topic: Explain nr. 3? (which is closed!)Thanks for your explanation of opening a file in a browser!
Link to comment
Share on other sites

What does this message say?(Open phpinfo.php file if MySQL is running?)PHP Version 5.3.2System Darwin computer-van-eduard.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386Build Date Oct 13 2010 13:04:42Configure Command './configure' '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/Applications/MAMP/Library' '--with-zlib' '--with-freetype-dir=/Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php5.3' '--exec-prefix=/Applications/MAMP/bin/php5.3' '--sysconfdir=/Applications/MAMP/conf/php5.3' '--with-soap' '--with-config-file-path=/Applications/MAMP/conf/php5.3' '--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-sqlite' '--with-ttf' '--with-t1lib=/Applications/MAMP/Library' '--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2007e' '--enable-soap' '--with-kerberos' '--enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl' '--enable-zip'Server API Apache 2.0 HandlerVirtual Directory Support disabledConfiguration File (php.ini) Path /Applications/MAMP/conf/php5.3Loaded Configuration File /Applications/MAMP/conf/php5.3/php.iniScan this dir for additional .ini files (none)Additional .ini files parsed (none)PHP API 20090626PHP Extension 20090626Zend Extension 220090626Zend Extension Build API220090626,NTSPHP Extension Build API20090626,NTSDebug Build noThread Safety disabledZend Memory Manager enabledZend Multibyte Support disabledIPv6 Support enabledRegistered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zipRegistered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tlsRegistered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunkThis program makes use of the Zend Scripting Language Engine:Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies with XCache v1.3.0, Copyright © 2005-2009, by mOoPHP CreditsConfigurationapache2handlerApache Version Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2Apache API Version 20020903Server Administrator you@example.comHostname:Port localhost:80User/Group eduard(501)/-1Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100Timeouts Connection: 300 - Keep-Alive: 15Virtual Server NoServer Root /Applications/MAMP/LibraryLoaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_file_cache mod_echo mod_charset_lite mod_cache mod_disk_cache mod_mem_cache mod_example mod_case_filter mod_case_filter_in mod_ext_filter mod_include mod_deflate mod_log_config mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_usertrack mod_setenvif mod_proxy proxy_connect proxy_ftp proxy_http mod_bucketeer mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_cgid mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5Directive Local Value Master Valueengine 1 1last_modified 0 0xbithack 0 0Apache EnvironmentVariable ValueHTTP_ACCEPT_LANGUAGE esHTTP_ACCEPT_ENCODING gzip, deflateHTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4HTTP_ACCEPT application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5HTTP_CONNECTION keep-aliveHTTP_HOST localhostPATH /usr/bin:/bin:/usr/sbin:/sbinSERVER_SIGNATURE <address>Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 80</address>SERVER_SOFTWARE Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2SERVER_NAME localhostSERVER_ADDR ::1SERVER_PORT 80REMOTE_ADDR ::1DOCUMENT_ROOT /Applications/MAMP/htdocs/SERVER_ADMIN you@example.comSCRIPT_FILENAME /Applications/MAMP/htdocs/website/phpinfo.phpREMOTE_PORT 49365GATEWAY_INTERFACE CGI/1.1SERVER_PROTOCOL HTTP/1.1REQUEST_METHOD GETQUERY_STRING no valueREQUEST_URI /website/phpinfo.phpSCRIPT_NAME /website/phpinfo.phpHTTP Headers InformationHTTP Request HeadersHTTP Request GET /website/phpinfo.php HTTP/1.1Accept-Language esAccept-Encoding gzip, deflateUser-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4Accept application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5Connection keep-aliveHost localhostHTTP Response HeadersX-Powered-By PHP/5.3.2Keep-Alive timeout=15, max=100Connection Keep-AliveTransfer-Encoding chunkedContent-Type text/htmlbcmathBCMath support enabledDirective Local Value Master Valuebcmath.scale 0 0bz2BZip2 Support EnabledStream Wrapper support compress.bz2://Stream Filter support bzip2.decompress, bzip2.compressBZip2 Version 1.0.5, 10-Dec-2007calendarCalendar support enabledCorePHP Version 5.3.2Directive Local Value Master Valueallow_call_time_pass_reference On Onallow_url_fopen On Onallow_url_include Off Offalways_populate_raw_post_data Off Offarg_separator.input & &arg_separator.output & &asp_tags Off Offauto_append_file no value no valueauto_globals_jit On Onauto_prepend_file no value no valuebrowscap no value no valuedefault_charset no value no valuedefault_mimetype text/html text/htmldefine_syslog_variables Off Offdisable_classes no value no valuedisable_functions no value no valuedisplay_errors On Ondisplay_startup_errors Off Offdoc_root no value no valuedocref_ext no value no valuedocref_root no value no valueenable_dl On Onerror_append_string no value no valueerror_log /Applications/MAMP/logs/php_error.log /Applications/MAMP/logs/php_error.logerror_prepend_string no value no valueerror_reporting 30719 ⎮ 2048 30719 ⎮ 2048exit_on_timeout Off Offexpose_php On Onextension_dir /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/ /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/file_uploads On Onhighlight.bg #FFFFFF #FFFFFFhighlight.comment #FF8000 #FF8000highlight.default #0000BB #0000BBhighlight.html #000000 #000000highlight.keyword #007700 #007700highlight.string #DD0000 #DD0000html_errors On Onignore_repeated_errors Off Offignore_repeated_source Off Offignore_user_abort Off Offimplicit_flush Off Offinclude_path .:/Applications/MAMP/bin/php5.3/lib/php .:/Applications/MAMP/bin/php5.3/lib/phplog_errors On Onlog_errors_max_len 1024 1024magic_quotes_gpc On Onmagic_quotes_runtime Off Offmagic_quotes_sybase Off Offmail.add_x_header Off Offmail.force_extra_parameters no value no valuemail.log no value no valuemax_execution_time 30 30max_file_uploads 20 20max_input_nesting_level 64 64max_input_time 60 60memory_limit 32M 32Mopen_basedir no value no valueoutput_buffering no value no valueoutput_handler no value no valuepost_max_size 32M 32Mprecision 12 12realpath_cache_size 16K 16Krealpath_cache_ttl 120 120register_argc_argv On Onregister_globals Off Offregister_long_arrays On Onreport_memleaks On Onreport_zend_debug On Onrequest_order no value no valuesafe_mode Off Offsafe_mode_exec_dir no value no valuesafe_mode_gid Off Offsafe_mode_include_dir no value no valuesendmail_from no value no valuesendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100short_open_tag On OnSMTP localhost localhostsmtp_port 25 25sql.safe_mode Off Offtrack_errors Off Offunserialize_callback_func no value no valueupload_max_filesize 32M 32Mupload_tmp_dir /Applications/MAMP/tmp/php /Applications/MAMP/tmp/phpuser_dir no value no valueuser_ini.cache_ttl 300 300user_ini.filename .user.ini .user.inivariables_order EGPCS EGPCSxmlrpc_error_number 0 0xmlrpc_errors Off Offy2k_compliance On Onzend.enable_gc On Onctypectype functions enabledcurlcURL support enabledcURL Information 7.20.0Age 3FeaturesAsynchDNS NoDebug NoGSS-Negotiate NoIDN YesIPv6 YesLargefile YesNTLM YesSPNEGO NoSSL YesSSPI Nokrb4 Nolibz YesCharConv NoProtocols dict, file, ftp, ftps, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, smtp, smtps, telnet, tftpHost i386-apple-darwin8.11.1SSL Version OpenSSL/0.9.7lZLib Version 1.2.3datedate/time support enabled"Olson" Timezone Database Version 2010.3Timezone Database internalDefault timezone America/SantiagoDirective Local Value Master Valuedate.default_latitude 31.7667 31.7667date.default_longitude 35.2333 35.2333date.sunrise_zenith 90.583333 90.583333date.sunset_zenith 90.583333 90.583333date.timezone America/Santiago America/SantiagodomDOM/XML enabledDOM/XML API Version 20031129libxml Version 2.7.6HTML Support enabledXPath Support enabledXPointer Support enabledSchema Support enabledRelaxNG Support enablederegRegex Library Bundled library enabledexifEXIF Support enabledEXIF Version 1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $Supported EXIF Version 0220Supported filetypes JPEG,TIFFDirective Local Value Master Valueexif.decode_jis_intel JIS JISexif.decode_jis_motorola JIS JISexif.decode_unicode_intel UCS-2LE UCS-2LEexif.decode_unicode_motorola UCS-2BE UCS-2BEexif.encode_jis no value no valueexif.encode_unicode ISO-8859-15 ISO-8859-15fileinfofileinfo support enabledversion 1.0.5-devfilterInput Validation and Filtering enabledRevision $Revision: 294106 $Directive Local Value Master Valuefilter.default unsafe_raw unsafe_rawfilter.default_flags no value no valueftpFTP support enabledgdGD Support enabledGD Version bundled (2.0.34 compatible)FreeType Support enabledFreeType Linkage with freetypeFreeType Version 2.3.9T1Lib Support enabledGIF Read Support enabledGIF Create Support enabledJPEG Support enabledlibJPEG Version unknownPNG Support enabledlibPNG Version 1.2.42WBMP Support enabledXBM Support enabledDirective Local Value Master Valuegd.jpeg_ignore_warning 0 0gettextGetText Support enabledhashhash support enabledHashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 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,5iconviconv support enablediconv implementation libiconviconv library version 1.13Directive Local Value Master Valueiconv.input_encoding ISO-8859-1 ISO-8859-1iconv.internal_encoding ISO-8859-1 ISO-8859-1iconv.output_encoding ISO-8859-1 ISO-8859-1imapIMAP c-Client Version 2007eKerberos Support enabledjsonjson support enabledjson version 1.2.1ldapLDAP Support enabledRCS Version $Id: ldap.c 293036 2010-01-03 09:23:27Z sebastian $Total Links 0/unlimitedAPI Version 3001Vendor Name OpenLDAPVendor Version 20219Directive Local Value Master Valueldap.max_links Unlimited UnlimitedlibxmllibXML support activelibXML Compiled Version 2.7.6libXML Loaded Version 20706libXML streams enabledmbstringMultibyte Support enabledMultibyte string engine libmbflHTTP input encoding translation disabledmbstring 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 enabledMultibyte regex (oniguruma) backtrack check OnMultibyte regex (oniguruma) version 4.7.1Directive Local Value Master Valuembstring.detect_order no value no valuembstring.encoding_translation Off Offmbstring.func_overload 0 0mbstring.http_input pass passmbstring.http_output pass passmbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)mbstring.internal_encoding no value no valuembstring.language neutral neutralmbstring.strict_detection Off Offmbstring.substitute_character no value no valuemcryptmcrypt support enabledVersion 2.5.8Api No 20021217Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledesSupported modes cbc cfb ctr ecb ncfb nofb ofb streamDirective Local Value Master Valuemcrypt.algorithms_dir no value no valuemcrypt.modes_dir no value no valuemysqlMySQL Support enabledActive Persistent Links 0Active Links 0Client API version 5.1.44MYSQL_MODULE_TYPE externalMYSQL_SOCKET /Applications/MAMP/tmp/mysql/mysql.sockMYSQL_INCLUDE -I/Applications/MAMP/Library/include/mysqlMYSQL_LIBS -L/Applications/MAMP/Library/lib/mysql -lmysqlclientDirective Local Value Master Valuemysql.allow_local_infile On Onmysql.allow_persistent On Onmysql.connect_timeout 60 60mysql.default_host no value no valuemysql.default_password no value no valuemysql.default_port no value no valuemysql.default_socket /Applications/MAMP/tmp/mysql/mysql.sock /Applications/MAMP/tmp/mysql/mysql.sockmysql.default_user no value no valuemysql.max_links Unlimited Unlimitedmysql.max_persistent Unlimited Unlimitedmysql.trace_mode Off OffmysqliMysqlI Support enabledClient API library version 5.1.44Active Persistent Links 0Inactive Persistent Links 0Active Links 0Client API header version 5.1.44MYSQLI_SOCKET /Applications/MAMP/tmp/mysql/mysql.sockDirective Local Value Master Valuemysqli.allow_local_infile On Onmysqli.allow_persistent On Onmysqli.default_host no value no valuemysqli.default_port 3306 3306mysqli.default_pw no value no valuemysqli.default_socket no value no valuemysqli.default_user no value no valuemysqli.max_links Unlimited Unlimitedmysqli.max_persistent Unlimited Unlimitedmysqli.reconnect Off OffopensslOpenSSL support enabledOpenSSL Library Version OpenSSL 0.9.7l 28 Sep 2006OpenSSL Header Version OpenSSL 0.9.7i 14 Oct 2005pcrePCRE (Perl Compatible Regular Expressions) Support enabledPCRE Library Version 8.00 2009-10-19Directive Local Value Master Valuepcre.backtrack_limit 100000 100000pcre.recursion_limit 100000 100000PDOPDO support enabledPDO drivers sqlite, sqlite2, pgsql, mysqlpdo_mysqlPDO Driver for MySQL enabledClient API version 5.1.44pdo_pgsqlPDO Driver for PostgreSQL enabledPostgreSQL(libpq) Version 8.4.2Module version 1.0.2Revision $Id: pdo_pgsql.c 293036 2010-01-03 09:23:27Z sebastian $pdo_sqlitePDO Driver for SQLite 3.x enabledSQLite Library 3.6.22pgsqlPostgreSQL Support enabledPostgreSQL(libpq) Version 8.4.2Multibyte character support enabledSSL support enabledActive Persistent Links 0Active Links 0Directive Local Value Master Valuepgsql.allow_persistent On Onpgsql.auto_reset_persistent Off Offpgsql.ignore_notice Off Offpgsql.log_notice Off Offpgsql.max_links Unlimited Unlimitedpgsql.max_persistent Unlimited UnlimitedPharPhar: PHP Archive support enabledPhar EXT version 2.0.1Phar API version 1.1.1SVN revision $Revision: 290435 $Phar-based phar archives enabledTar-based phar archives enabledZIP-based phar archives enabledgzip compression enabledbzip2 compression enabledNative OpenSSL support enabledPhar based on pear/PHP_Archive, original concept by Davey Shafik.Phar fully realized by Gregory Beaver and Marcus Boerger.Portions of tar implementation Copyright © 2003-2009 Tim Kientzle.Directive Local Value Master Valuephar.cache_list no value no valuephar.readonly On Onphar.require_hash On OnposixRevision $Revision: 293036 $ReflectionReflection enabledVersion $Revision: 293036 $sessionSession Support enabledRegistered save handlers files user sqliteRegistered serializer handlers php php_binaryDirective Local Value Master Valuesession.auto_start Off Offsession.bug_compat_42 On Onsession.bug_compat_warn On Onsession.cache_expire 180 180session.cache_limiter nocache nocachesession.cookie_domain no value no valuesession.cookie_httponly Off Offsession.cookie_lifetime 0 0session.cookie_path / /session.cookie_secure Off Offsession.entropy_file no value no valuesession.entropy_length 0 0session.gc_divisor 100 100session.gc_maxlifetime 1440 1440session.gc_probability 1 1session.hash_bits_per_character 4 4session.hash_function 0 0session.name PHPSESSID PHPSESSIDsession.referer_check no value no valuesession.save_handler files filessession.save_path /Applications/MAMP/tmp/php /Applications/MAMP/tmp/phpsession.serialize_handler php phpsession.use_cookies On Onsession.use_only_cookies On Onsession.use_trans_sid 0 0SimpleXMLSimplexml support enabledRevision $Revision: 293036 $Schema support enabledsoapSoap Client enabledSoap Server enabledDirective Local Value Master Valuesoap.wsdl_cache 1 1soap.wsdl_cache_dir /tmp /tmpsoap.wsdl_cache_enabled 1 1soap.wsdl_cache_limit 5 5soap.wsdl_cache_ttl 86400 86400socketsSockets Support enabledSPLSPL support enabledInterfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubjectClasses AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueExceptionSQLiteSQLite support enabledPECL Module version 2.0-dev $Id: sqlite.c 293036 2010-01-03 09:23:27Z sebastian $SQLite Library 2.8.17SQLite Encoding iso8859Directive Local Value Master Valuesqlite.assoc_case 0 0sqlite3SQLite3 support enabledSQLite3 module version 0.7-devSQLite Library 3.6.22Directive Local Value Master Valuesqlite3.extension_dir no value no valuestandardDynamic Library Support enabledPath to sendmail /usr/sbin/sendmail -t -iDirective Local Value Master Valueassert.active 1 1assert.bail 0 0assert.callback no value no valueassert.quiet_eval 0 0assert.warning 1 1auto_detect_line_endings 0 0default_socket_timeout 60 60safe_mode_allowed_env_vars PHP_ PHP_safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATHurl_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=user_agent no value no valuetokenizerTokenizer Support enabledXCacheXCache Support enabledVersion 1.3.0Modules Built cacher optimizer coverager assembler encoder decoderReadonly Protection N/ACache Init Time 2011-04-10 17:56:28Cache Instance Id 494Opcode Cache enabled, 67,108,864 bytes, 1 split(s), with 8192 slots eachVariable Cache enabled, 67,108,864 bytes, 1 split(s), with 8192 slots eachShared Memory Schemes mmapCoverage Auto Dumper disabledDirective Local Value Master Valuexcache.admin.enable_auth On Onxcache.cacher On Onxcache.coredump_directory /Applications/MAMP/tmp/phpcore/ /Applications/MAMP/tmp/phpcore/xcache.count 1 1xcache.coveragedump_directory no value no valuexcache.coverager Off Offxcache.gc_interval 0 0xcache.mmap_path /Applications/MAMP/tmp/xcache /Applications/MAMP/tmp/xcachexcache.optimizer On Onxcache.readonly_protection no value no valuexcache.shm_scheme mmap mmapxcache.size 64M 64Mxcache.slots 8K 8Kxcache.stat On Onxcache.test no value no valuexcache.ttl 0 0xcache.var_count 1 1xcache.var_gc_interval 300 300xcache.var_maxttl 0 0xcache.var_size 64M 64Mxcache.var_slots 8K 8Kxcache.var_ttl 0 0xmlXML Support activeXML Namespace Support activelibxml2 Version 2.7.6xmlreaderXMLReader enabledxmlwriterXMLWriter enabledxslXSL enabledlibxslt Version 1.1.26libxslt compiled against libxml Version 2.7.6EXSLT enabledlibexslt Version 1.1.26yazYAZ Support enabledPHP/YAZ Version 1.0.14YAZ Version 4.0.1Compiled with YAZ version 4.0.1zipZip enabledExtension Version $Id: php_zip.c 294817 2010-02-09 17:51:39Z pajoye $Zip version 1.9.1Libzip version 0.9.0zlibZLib Support enabledStream Wrapper support compress.zlib://Stream Filter support zlib.inflate, zlib.deflateCompiled Version 1.2.3Linked Version 1.2.3Directive Local Value Master Valuezlib.output_compression Off Offzlib.output_compression_level -1 -1zlib.output_handler no value no valueAdditional ModulesModule NameEnvironmentVariable ValueSHELL /bin/bash__AUTHORIZATION auth 7USER eduard__CF_USER_TEXT_ENCODING 0x1F5:0:8PATH /usr/bin:/bin:/usr/sbin:/sbinPWD /HOME /Users/eduardSHLVL 2DYLD_LIBRARY_PATH /Applications/MAMP/Library/lib:SECURITYSESSIONID 927100_ /Applications/MAMP/Library/bin/httpdPHP VariablesVariable Value_SERVER["HTTP_ACCEPT_LANGUAGE"] es_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; es) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4_SERVER["HTTP_ACCEPT"] application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5_SERVER["HTTP_CONNECTION"] keep-alive_SERVER["HTTP_HOST"] localhost_SERVER["PATH"] /usr/bin:/bin:/usr/sbin:/sbin_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 80</address>_SERVER["SERVER_SOFTWARE"] Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2_SERVER["SERVER_NAME"] localhost_SERVER["SERVER_ADDR"] ::1_SERVER["SERVER_PORT"] 80_SERVER["REMOTE_ADDR"] ::1_SERVER["DOCUMENT_ROOT"] /Applications/MAMP/htdocs/_SERVER["SERVER_ADMIN"] you@example.com_SERVER["SCRIPT_FILENAME"] /Applications/MAMP/htdocs/website/phpinfo.php_SERVER["REMOTE_PORT"] 49365_SERVER["GATEWAY_INTERFACE"] CGI/1.1_SERVER["SERVER_PROTOCOL"] HTTP/1.1_SERVER["REQUEST_METHOD"] GET_SERVER["QUERY_STRING"] no value_SERVER["REQUEST_URI"] /website/phpinfo.php_SERVER["SCRIPT_NAME"] /website/phpinfo.php_SERVER["PHP_SELF"] /website/phpinfo.php_SERVER["REQUEST_TIME"] 1302472711_SERVER["argv"] Array()_SERVER["argc"] 0_ENV["SHELL"] /bin/bash_ENV["__AUTHORIZATION"] auth 7_ENV["USER"] eduard_ENV["__CF_USER_TEXT_ENCODING"] 0x1F5:0:8_ENV["PATH"] /usr/bin:/bin:/usr/sbin:/sbin_ENV["PWD"] /_ENV["HOME"] /Users/eduard_ENV["SHLVL"] 2_ENV["DYLD_LIBRARY_PATH"] /Applications/MAMP/Library/lib:_ENV["SECURITYSESSIONID"] 927100_ENV["_"] /Applications/MAMP/Library/bin/httpdPHP LicenseThis 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: LICENSEThis 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 license@php.net.

Link to comment
Share on other sites

IS IT STRANGE THAT I CAN´T REMEMBER EVERYTHING?
No one remembers everything, Eduard. You're not expected to remember everything. Every day I'll look up things I've used before because I don't remember specifically how they're used, that's normal.But in this case, you're asking how to run a PHP file. You shouldn't be expected to remember everything, but you should be expected to remember that. In fact, you should have learned that in the first week and used it so often that you don't forget that you need to save a file on your server and open it in a browser. But it's been three months and you're still asking how to run a file. The problem may be that the tutorials aren't clear, maybe so. But you know what is clear? A book, written by a professional. This is why I say you need a book, the tutorials and our help obviously aren't working if you're three months in and still don't know how to even run a file in the first place. I don't understand how you're able to do anything else with PHP if you don't know how to run a file.
tell me please where the basics are, because I´ven´t found much of it in W3Schools?
"Programming PHP" covers the basics quite well. You can also look for other resources online:http://www.google.com/search?client=opera&...channel=suggest
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...