Bot Factoids

Search Database

50 Results:

guidelines

For details, /msg php-bot g#, where # is a guideline number, or http://hashphp.org: 0) Help us stay on topic; 1) Be polite; 2) Just ask, we're here to help; 3) http://goo.gl/NRUVQw; 4) Try rephrasing the question; 5) Use a pastebin; 6) Minimize noise; 7) We focus on PHP; 8) We want you to learn; 9) Please check the docs first; 10) Take governance debates to private chat.

g10

Guideline #10) Discussions of the guidelines or channel governance should be moved to private chat; please do not bog down the channel with these topics. You can email all chanops at phpops@googlegroups.com instead.

ask

If you have a question, please just *ask it*. And don't address specific people - ask the channel. If somebody knows, they'll answer. :) To get help more quickly, don't ask "can I ask a question," "can anyone help," or "does anybody use/know about foo". Be as specific as you can. Also, please don't /msg people without permission, and read the topic before you ask.

banmessage

You have just been %s from ##php. Duration: %s. Reason: %s

pdo

PDO is PHP Data Objects, a database API that has a unified interface for many databases. You can learn how to use PDO here: http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers

g8

Guideline #8) We want you to learn to write PHP for yourself; we may ask you to relocate conversations that conflict with that goal (e.g., systems that are too complex, obscure, or have their own support mechanism)

recommend

No, we cannot recommend <whatever you asked about>. We're here to help you write PHP code, not spend hours arguing the relative merits of A versus B. We won't recommend packages, libraries, scripts, sites, languages, version control systems, or sports teams; our only recommendation is that you please take your recommendations questions elsewhere (e.g., https://softwarerecs.stackexchange.com/)

xy

The X-Y problem is when you want to do X, but you don't know how. You think you can hack X if you can just do Y, but you don't know how to do Y either. You ask (us) for help with Y. We think Y is a strange problem to want to solve... So just ask us about X. [See: http://xyproblem.info/ ]

wsod

White Screen Of Death: If you're seeing a blank page (and view-source is empty), make sure your php.ini contains error_reporting = -1 and display_errors = On (only recommended for development). Putting: <?php error_reporting(-1); ini_set('display_errors', 1); ?> at the top of your script might have no effect if your script fails to compile such as in the case of PARSE errors.

g1

Guideline #1) Whether helping, seeking help, or somewhere in between, please be polite and patient.

g7

Guideline #7) If it's not PHP, we probably aren't the best place to assist you. Try: #sql, #mysql, #postgresql; #httpd, #nginx; #linuxhelp / #linpeople / distro channels (e.g. #ubuntu); #html/#css/##javascript, #web. It *is* OK (within reason) to ask if anyone here would be willing to join another channel to discuss a non-PHP question you need help with.

g3

Guideline #3) Read http://www.catb.org/~esr/faqs/smart-questions.html if you haven't read it before. We firmly believe adhering to the ideas there will help you get quality assistance here.

cyth template engine

Looking to use or make a template engine? Check out cyth's example here: http://codeangel.org/articles/simple-php-template-engine.html

smart-q

Read http://www.catb.org/~esr/faqs/smart-questions.html before asking another question, that is, if you want a smart answer.

g2

Guideline #2) Don't ask to ask; "I have a question," "Is anyone around?" or "Can anyone help?" are noise. Just state your question; see http://sscce.org/ for help formulating your question.

g9

Guideline #9) ##php is a manual *supplement*. Please try finding your answer in the manual at php.net FIRST. It is frustrating to repeatedly answer the same questions, that's why we created the documentation.

g4

Guideline #4) Don't spam your question. If nobody answers your question, don't just repeat it verbatim. Try different ways of rewriting the question, make sure that you are providing as much information as possible.

error reporting

Set 'error_reporting' to -1 and 'display_errors' to 1 in your php.ini and be sure to restart your webserver/fastcgi-listeners. This is more reliable than using ini_set() and error_reporting() in the script, which will fail if there are parse errors. See http://php.net/errorfunc.configuration for more.

g6

Guideline #6) Maximize signal, minimize noise; spam/ads/advocacy, trolling people, job postings, and auto-away/back messages are considered noise here. '/msg php-bot jobs' for more info on job postings.

go

[GO] Gross Overgeneralization. Everything that we tell you in ##PHP is what we consider "best practices". Of course, only YOU know your own requirements, so you may feel you need to do something we told you not to. Just don't say we didn't warn you.

g5

Guideline #5) Don't flood or paste code. Use a pastebin such as http://viper-7.com/ or https://3v4l.org/

tias

[TIAS] Try It And See. If you want to know if or how something works, try it first. "Testing Is Absolutely Simple"

jobs

No job posting or asking for jobs on ##php, please (see /msg php-bot g6). You may want to check out: ##php-lance, http://www.freelancer.com/ or http://www.getacoder.com (##PHP does not affiliate with any of these channels/sites).

g0

Guideline #0) The base for all other guidelines: try to keep ##PHP focused on technical help for PHP problems. We strive for a minimum of noise here.

hi

Hi there!

enter

Don't use the enter key as punctuation. Think in complete thoughts, then type.

mysql is old

ext/mysql was deprecated in PHP 5.5.0 and is removed in PHP 7.0. For new projects use mysqli (php.net/mysqli) or PDO (php.net/PDO). The MySQL developers developed guidelines and a script for migrating your code https://wikis.oracle.com/display/mysql/Converting+to+MySQLi Most people here recommend PDO: http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers

ides

Questions about specific IDEs and IDE discussion in general usually degrades rapidly due to personal preference. It is not a valid topic for ##php.

next please

another satisfied customer, NEXT!

headers

If you are getting error like "Warning: Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of <?php and ?>) and any (X)HTML. You can also use output buffering

pastebin

Submit your code to http://codepad.viper-7.com/, http://codepad.org/, http://3v4l.org/ (particularly for version-specific issues) or http://gist.github.com/ (or any of the other hundred similar Pastebins) and post the URL and a summary of your issue to the channel. Please don't flood by pasting code directly into ##php.

help

I have no help file

using crypt

http://php.ss23.geek.nz/2011/01/12/Using-crypt.html

survey

If you have to ask "Does anyone here use foo" or "Are there any baz experts around" you're just taking a survey. You'll likely get an answer quicker if you just ask specifically what you need help with.

off topic

Prefixing a question with "I know this is off-topic, but..." doesn't magically make it on-topic. (Nor does postfixing a question with that.) If it's not on-topic here, please don't ask -- we get plenty of noise in the channel already and there are thousands of other channels on Freenode alone to chat in.

w3schools

Don't use w3schools http://w3fools.com/

error_reporting

int error_reporting(int new_error_level=null) - Return the current error_reporting level, and if an argument was passed - change to the new level - http://php.net/error_reporting

pear

[PEAR] PHP Extension and Application Repository, a library and distribution system for reusable PHP components. ##PHP does not support PEAR, please see #pear, efnet/#pear, or http://pear.php.net/support.php.

hashing

http://hashphp.org/hashing.html

ugly

< rasmus> PHP is ugly. It was meant to be ugly. If you don't like ugly, don't use PHP.

third party

##php does NOT support third party applications. However, there are limited solutions: 1) Ask in the corresponding channel of the application, 2) Contact the authors/vendors, etc

php first

your PHP code can be sorted into two categories: code which _performs work_ (processing input, controller logic, database access, error handling, etc.), and code which _produces output_ (header(), echo, <?= $var ?>, plain ol' <html>, etc.). work goes FIRST. output goes LAST. https://gist.github.com/adrian-enspired/9ed2542a695e2ebe30aa

usort closure

function buildSorter($key) { return function ($a, $b) use ($key) { return strnatcmp($a[$key], $b[$key]); }; }

doesn't work

"doesn't work" or "not working" is not a useful metric to debug or solve your problem. More information is needed to address the issue you are experiencing. For example, start by: providing the code in question; describing what you expect the code to do; what it's doing that you didn't expect; and include all error information relevant to your issue (see error reporting) in a pastebin.

u

Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. There are people in ##PHP for whom English is not their native language, and idioms like this can create confusion. Please show respect for others by refraining from this type of slang.

str_replace

mixed str_replace(mixed search, mixed replace, mixed subject [, int &replace_count]) - Replaces all occurrences of search in haystack with replace - http://php.net/str_replace

php

[PHP] PHP Hypertext Preprocessor (a recursive acronym) - a nice tutorial available at http://www.php.net/manual/

sscce

Please provide a "Short, Self Contained, Correct (Compilable), Example" - see http://sscce.org/

zend 101

Modernized Zend 101 - http://ss23.github.com/php-tutorial/ (original can still be found at http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/)

frameworks

Arguments about frameworks are not a valid topic for ##php; if your question is re:a specific framework, you may want to try them in their own support channel: Zend Framework: #zftalk; Drupal: #drupal-support; Symfony: #symfony; SilverStripe: #silverstripe; CodeIgniter: #codeigniter; Laravel: #laravel; and so on.