php Programming Glossary: port
PDO MySQL: Use PDO::ATTR_EMULATE_PREPARES or not? http://stackoverflow.com/questions/10113562/pdo-mysql-use-pdoattr-emulate-prepares-or-not Injection . MySQL's native prepare is better for error reporting . I don't know how true any of these statements are anymore... and mysql versions. @param array settings with keys host port unix_socket dbname charset user pass. Some may be omitted or.. '5.1.17' dsndefaults array_fill_keys array 'host' 'port' 'unix_socket' 'dbname' 'charset' null dsnarr array_intersect_key..
cURL equivalent in JAVA http://stackoverflow.com/questions/116650/curl-equivalent-in-java the transfer. My question is whether or not there is a port of cURL to JAVA or better yet what base package will get me..
Replace URLs in text with HTML links http://stackoverflow.com/questions/1188129/replace-urls-in-text-with-html-links be correctly escaped as amp . You probably don't need support for IPv6 addresses. Edit As noted in the comments support for.. for IPv6 addresses. Edit As noted in the comments support for email adresses is definitely a plus. Edit Only plain text.. definitely a plus. Edit Only plain text input is to be supported HTML tags in the input should not be honoured. The Bitbucket..
PHP: Truncate HTML, ignoring tags http://stackoverflow.com/questions/1193500/php-truncate-html-ignoring-tags in C#... either should be OK as I think I would be able to port the method over unless it is a built in method . Also note that.. single byte encodings such as Latin 1 are also supported just pass false as the third argument. Other multibyte encodings.. the third argument. Other multibyte encodings are not supported though you may hack in support by using mb_convert_encoding..
Getting the screen resolution using PHP http://stackoverflow.com/questions/1504459/getting-the-screen-resolution-using-php more interested in the size of the actual browser's view port since that is actually where the page is rendered... share..
Setting up a deployment / build / CI cycle for PHP projects http://stackoverflow.com/questions/2180460/setting-up-a-deployment-build-ci-cycle-for-php-projects via FTP Including some directory renaming chmodding importing databases and the likes. This is something I already like.. ant for building and phpUnderControl or Hudson for the reporting part. I like them all as far as I can see but I have of course.. 8080 if you don't have anything else running on that port in advance you can specify another port by passing the httpPort..
HTTP_HOST vs. SERVER_NAME http://stackoverflow.com/questions/2297403/http-host-vs-server-name by performing a reverse lookup on the IP address. If no port is specified in the ServerName then the server will use the.. specified in the ServerName then the server will use the port from the incoming request. For optimal reliability and predictability.. predictability you should specify an explicit hostname and port using the ServerName directive. Update after checking the answer..
How do I make a simple crawler in PHP? http://stackoverflow.com/questions/2313107/how-do-i-make-a-simple-crawler-in-php parts 'pass' . '@' href . parts 'host' if isset parts 'port' href . ' ' . parts 'port' href . path crawl_page href.. . parts 'host' if isset parts 'port' href . ' ' . parts 'port' href . path crawl_page href depth 1 echo URL url PHP_EOL.. answer doesn't account for any of https user pass or port. If you have the http PECL extension loaded this is quite simply..
Failed to connect to mailserver at “localhost” port 25 http://stackoverflow.com/questions/4532486/failed-to-connect-to-mailserver-at-localhost-port-25 to connect to mailserver at &ldquo localhost&rdquo port 25 I keep getting this error when I try to send an e mail in.. function.mail Failed to connect to mailserver at localhost port 25 verify your SMTP and smtp_port setting in php.ini or use.. mailserver at localhost port 25 verify your SMTP and smtp_port setting in php.ini or use ini_set in C wamp www dressoholic..
Pulling Track Info From an Audio Stream Using PHP http://stackoverflow.com/questions/4911062/pulling-track-info-from-an-audio-stream-using-php and the closest function I can find is stream_get_transports but my host doesn't support http transports via fsockopen so.. I can find is stream_get_transports but my host doesn't support http transports via fsockopen so I'll have to do some more tinkering.. but my host doesn't support http transports via fsockopen so I'll have to do some more tinkering to see..
Using comet with PHP? http://stackoverflow.com/questions/603201/using-comet-with-php
How to calculate the difference between two dates using PHP? http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php below it should work in PHP 4 as well . This is a direct port of the code that PHP uses internally to calculate ranges with..
replace multiple placeholders with php? http://stackoverflow.com/questions/10106052/replace-multiple-placeholders-with-php server mail Host SMTP_HOST port of the smtp server mail Port SMTP_PORT smtp user name mail Username SMTP_USER smtp user password..
Replace URLs in text with HTML links http://stackoverflow.com/questions/1188129/replace-urls-in-text-with-html-links domain should be accepted e.g. .aero and .xn jxalpdlp. Port numbers should be allowed. URLs must be allowed in normal sentence.. maybe http news.bbc.co.uk 1 hi england surrey 8168892.stm Ports 192.168.0.1 8080 https example.net 1234 . Beware of Greeks.. ' a zA Z0 9 1 63 . a zA Z0 9 2 63 0 9 1 3 . 3 0 9 1 3 ' rexPort ' 0 9 1 5 ' rexPath ' 0 9 @_ ' a zA Z x7f xff ' rexQuery ' 0..
Having trouble with PHPMailer http://stackoverflow.com/questions/13344239/having-trouble-with-phpmailer authentication Mail SMTPSecure tls Secure conection Mail Port 587 set the SMTP port Mail Username EMAIL SMTP account username.. authentication Mail SMTPSecure tls Secure conection Mail Port 587 set the SMTP port Mail Username 'MyGmail@gmail.com' SMTP..
file_get_contents behind a proxy? http://stackoverflow.com/questions/1336262/file-get-contents-behind-a-proxy False cxContext echo sFile Of course remplacing the IP and Port of my proxy by those which are OK for yours If you're getting.. False cxContext echo sFile Same thing about IP and Port and this time also LOGIN and PASSWORD Now you are passing an..
Sending email with PHP from SMTP server http://stackoverflow.com/questions/14456673/sending-email-with-php-from-smtp-server mail SMTPAuth true enable SMTP authentication mail Port 25 set the SMTP port for the GMAIL server mail Username username..
Failed requests by length in my ApacheBench load test result http://stackoverflow.com/questions/1512304/failed-requests-by-length-in-my-apachebench-load-test-result Software lighttpd 1.4.20 Server Hostname domain.com Server Port 80 Document Path test index.php Document Length 15673 bytes..
send email using Gmail SMTP server through PHP Mailer http://stackoverflow.com/questions/16048347/send-email-using-gmail-smtp-server-through-php-mailer 8 mail SMTPSecure 'tls' mail Host 'smtp.gmail.com' mail Port 587 mail Username 'MyUsername@gmail.com' mail Password 'valid.. enabled REQUIRED for GMail mail Host smtp.gmail.com mail Port 465 or 587 mail IsHTML true mail Username email@gmail.com mail..
How to embed images in html email http://stackoverflow.com/questions/1851728/how-to-embed-images-in-html-email SMTP try mail Host mail.yourdomain.com SMTP server mail Port 25 set the SMTP port mail SetFrom 'name@yourdomain.com' 'First..
Pre-installed Linux for Web Developers? http://stackoverflow.com/questions/2154457/pre-installed-linux-for-web-developers Firewall configured for functioning as a web server Port 80 open not much else Python and Trac installed and integrated..
Test if port open and forwarded using PHP http://stackoverflow.com/questions/2226374/test-if-port-open-and-forwarded-using-php with a given port An Example of this is in the 'Custom Port Test' section of WhatsMyIP.org ports . php portforwarding ..
PHPMailer: SMTP Error: Could not connect to SMTP host http://stackoverflow.com/questions/3477766/phpmailer-smtp-error-could-not-connect-to-smtp-host from Thunderbird Server name mail.exampleserver.com Port 587 Username user@exampleserver.com Secure Authentication No.. and they were Server name mail.exampleserver2.com Port 465 Username user@exampleserver2.com Secure Authentication No.. IsSMTP send via SMTP mail Host SMTP_HOST SMTP servers mail Port SMTP_PORT SMTP servers mail SMTPAuth true turn on SMTP authentication..
PHP mail using Gmail http://stackoverflow.com/questions/36079/php-mail-using-gmail Yes Use STARTTLS Yes some clients call this SSL Port 465 or 587 Account Name your full email address including @gmail.com..
PHP Timezone List http://stackoverflow.com/questions/4755704/php-timezone-list Hobart 'Australia Melbourne' GMT 10 00 Melbourne 'Pacific Port_Moresby' GMT 10 00 Port Moresby 'Australia Sydney' GMT 10 00.. GMT 10 00 Melbourne 'Pacific Port_Moresby' GMT 10 00 Port Moresby 'Australia Sydney' GMT 10 00 Sydney 'Asia Vladivostok'..
Install PECL on Mac OS X 10.6 http://stackoverflow.com/questions/5536195/install-pecl-on-mac-os-x-10-6 from php.net instead of using something like Homebrew or Port then you can simply follow the following link to install Pear..
Regular expression pattern to match url with or without http://www http://stackoverflow.com/questions/6427530/regular-expression-pattern-to-match-url-with-or-without-http-www Pass regex . a z0 9 . . a z 2 4 Host or IP regex . 0 9 2 5 Port regex . a z0 9 _ . Path regex . a z _. a z0 9 @ _. GET Query..
Prevent PHP script from being flooded http://stackoverflow.com/questions/10155339/prevent-php-script-from-being-flooded Class class FloodDetection const HOST localhost const PORT 11211 private memcache private ipAddress private timeLimitUser.. memcache new Memcache this memcache connect self HOST self PORT function addUserlimit key time this timeLimitUser key time function..
MySQL/PHP Error:[2002] Only one usage of each socket address (protocol/network address/port) is normally permitted http://stackoverflow.com/questions/10317974/mysql-php-error2002-only-one-usage-of-each-socket-address-protocol-network-a protocol is fixed TCP The local IP remote IP and remote PORT are also typically fixed. So the variable is the local port...
sending email with gmail smtp with codeigniter email library http://stackoverflow.com/questions/1555145/sending-email-with-gmail-smtp-with-codeigniter-email-library out Filename libraries Email.php Line Number 1641 Using PORT 25 587 I got this error A PHP Error was encountered Severity..
Change Password in Active Directory using LDAP/PHP/IIS/SSL http://stackoverflow.com/questions/5719082/change-password-in-active-directory-using-ldap-php-iis-ssl ip 389 or die Could not connect to LDAP server IP ip PORT 389 Secure DOESN'T WORK ldap_conn ldap_connect ldaps_url or.. ip 636 or die Could not connect to LDAP server IP ip PORT 636 ldap_set_option ds LDAP_OPT_PROTOCOL_VERSION 3 ldap_set_option..
How to grab IP:PORT with regex? http://stackoverflow.com/questions/8378960/how-to-grab-ipport-with-regex to grab IP PORT with regex Okay so I'm creating a small IP PORT scraper in.. grab IP PORT with regex Okay so I'm creating a small IP PORT scraper in PHP. Problem is that I'm pretty unfamiliar with RegEx... Also it seems to return two matches this way. The IP PORT and the PORT. I just need it to grab the full IP PORT not one..
|