Hudzilla.org - the homepage of Paul Hudson
Contents > Writing PHP > Getting Help Wish List | Report Bug | About Me ]

19.13.4     IRC

This is NOT the latest copy of this book; click here for the latest version.

One of the fastest way to get answers about PHP is to use one of the two popular PHP IRC channels. They both regularly have 200-300 people on there who program in PHP, of which between ten and twenty are chatting away about something. Peak activity times are evening in US EST (five hours behind GMT), and you will generally find the most talk at this time.

If you have an IRC client installed, connect to Efnet or FreeNode and go to channel #php. Note that both channels have very strict rules: do not ask to ask (that is, do not say "can I ask a question about XYZ" - just ask), do not post more than two lines of code into the channel at one time, do not start evangelistic fights over Perl/Java/etc, and so on. Be sure to check the channel rules as you enter or you may find yourself kicked out for breaking them.

A word of warning: take advice from this channel with a pinch of salt if the person giving it is not a channel operator. Many people come and go, and they aren't necessarily experienced enough to give authoritative answers. Also, please note that it's incredibly easy to get into rather pointless arguments on IRC - I've wasted many hours because of timewasters there who really haven't the first clue what they are talking about but are willing to argue a point to death anyway.

Furthermore, be prepared to show people your code when on IRC. A popular site here is www.pastebin.com, which lets you paste your PHP code online and pass the URL out to other people on IRC so that they can look at it and discuss potential fixes with you directly.





<< 19.13.3 Websites   19.13.5 Conferences >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
mikem - 30 Aug 2008

I am a newbie at PHP. I am trying to pass data from a form to PHP. I get:

Parse error: syntax error, unexpected T_STRING in /home/eseed/public_html/insert.php on line 8

from this:
<?
$username="eseed_eseed";
$password="num8010son";
$database="eseed_ministries";
$Church=$_POST['Church'];
$Phone=$_POST['Phone'];
$Fax=$_POST['Fax'];
$Contact First=$_POST['Contact First'];
$Contact Last=$_POST['Contact Last'];
$Head Pastor=$_POST['Head Pastor'];
$email=$_POST['email'];
$Web=$_POST['Web'];
$add1=$_POST['add1'];
$add2=$_POST['add2'];
$City, ST=$_POST['City, ST'];
$Zip=$_POST['Zip'];
$Last Contact Date=$_POST['Last Contact Date'];
$Num Contacts=$_POST['Num Contacts'];
$Comments=$_POST['Comments'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database")
$query = "INSERT INTO contacts VALUES ('','Church','Phone','Fax','Contact First','Contact Last','Head Pastor','email','add1','add2','City, ST','Zip','Last Contact Date','Num Contacts','','Comments')";
mysql_query($query);


mysql_close();
?>



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is five plus four?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow