AustNet AustNet Archive Project — IRC Logs
« All channels | Contribute a log »

// #php — 2008-09-16

1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
06:55:05 Join: smythe ([email protected]) to #php
06:55:12 Mode: (by ChanOP) +o smythe
08:29:25 Quit: ChanOP ([email protected]) *.net *.split
08:40:03 Quit: neutralisation ([email protected]) Ping timeout: 151 seconds
08:41:32 Join: neutralisation ([email protected]) to #php
08:45:47 Quit: keenly ([email protected]) Ping timeout: 151 seconds
08:46:20 Join: keenly ([email protected]) to #php
09:24:23 Join: ChanOP ([email protected]) to #php
09:24:23 Mode: (by restored.il.us.austnet.org) +o ChanOP
09:24:39 Part: smythe ([email protected]) from #php
09:24:48 Join: smythe ([email protected]) to #php
09:24:52 Mode: (by ChanOP) +o smythe
11:08:09 Join: Slixxor ([email protected]) to #php
11:08:11 <Slixxor> morning
11:08:47 <Slixxor> i'm a .NET developer forced to PHP it up due to hosting restrictions. one simple Q!
11:08:58 <Slixxor> PHP doesnt support multi lines for strings does it?
11:09:02 <Slixxor> i.e
11:12:46 <teranoid> i.e.?
11:13:14 <Slixxor> <?php
11:13:15 <Slixxor> $emailbody =
11:13:15 <Slixxor> "Name: " + $_POST('client')\n
11:13:15 <Slixxor> "Phone: " + $_POST('phone');
11:13:15 <Slixxor> ?>
11:13:29 <teranoid> That should be ok. For neatness, I always go:
11:13:52 <Slixxor> i cant declare a string a on multiple lines can i?
11:13:53 <teranoid> $emailbody = "Name: " .$_POST('client'). "\n";
11:13:59 <teranoid> $emailbody .= "Line 2"
11:14:00 <Slixxor> ahh
11:14:06 <teranoid> $emailbody .= "line 3"; etc.
11:14:24 <Slixxor> using "."
11:14:28 <teranoid> Yeppers.
11:14:30 <Slixxor> does the + work?
11:14:42 <teranoid> Hmm... Don't think so. At least, not in the projects I've worked on :P
11:15:10 <Slixxor> it's quiote ironic really.. i'm buolding my site in PHP that advertises the fact i design .NET applications
11:15:19 <Slixxor> building*
11:15:21 <teranoid> lol...
11:15:44 <teranoid> Also, if you're using quotation marks, you can just include the variable without the need for separate quotation mark blocks.
11:15:58 <teranoid> eg: $emailbody = "Name: $_POST('client')\n";
11:16:13 <teranoid> It'll echo whatever the variable is.
11:17:13 <Slixxor> if a form field is left blank is doesnt generate the $_POST('') item does it?
11:17:33 <Slixxor> as in; will i need to do isset() checks on all form fields?
11:18:11 <teranoid> isset() is good.
11:18:47 <Slixxor> haha i've had a 20 min crash course in PHP :P
11:19:09 <teranoid> At the start: if (isset ($_POST["foo"])) { $bar = $_POST["foo"]; } or something.
11:19:24 <Slixxor> yep.
11:19:34 <teranoid> Want a 20 minute crash course? http://www.tizag.com/phpT/ <=- Great reference material.
11:19:43 <Slixxor> i'm looking at w3schools
11:20:02 <Slixxor> PHP is quite like C#
11:20:09 <Slixxor> however the system methods vary slightly.
11:20:22 <teranoid> w3schools is all right. But lots of searching around. tizag is: This is how to do forms. Capische?
11:20:31 <teranoid> I dislike C#; I quite like php :)
11:20:53 <Slixxor> haha
11:21:06 <Slixxor> i'm David, whats your name?
11:21:22 <teranoid> Andrew.
11:21:49 <Slixxor> cheers for your help, i'll stick around a while :)
11:21:54 <teranoid> To that end, I must work on this assignment, lest I want my balls sliced in twain.
11:22:19 <Slixxor> affirmative.
11:23:00 <teranoid> Have fun~ and if you need help, I might be in (I always idle) or someone else might be able to help (they always idle).
11:23:25 <Slixxor> tsk,
11:23:29 <Slixxor> it's still in the ass!
11:23:35 <Slixxor> check PM ;)
11:23:39 <Slixxor> and i appreciate it.
11:23:46 <teranoid> np
15:06:26 <Slixxor> i have returned
15:06:58 <Slixxor> anyone looking for a PHP contract.
15:07:23 <Slixxor> i met up with a client who wants a PHP ite done, the silly man didnt read that i'm .NET framework only!
15:09:45 <teranoid> Depends on scope and price OHOHOHO. That said, I'm probably out -- too busy with other sites atm ;_;
15:10:23 <Slixxor> yeah the guy offered me a salary :S
15:10:33 <Slixxor> clearly not familiar with outsourcing.
15:10:38 <teranoid> Yarr
15:15:30 <teranoid> Alas, class beckons. Catch you around 8, maybe.
15:16:19 Nick: Slixxor is now known as PlayfulAngel
15:25:12 Nick: PlayfulAngel is now known as Slixxor
15:33:48 <Slixxor> i'll be here im sure
15:45:36 Quit: smythe ([email protected]) Quit:
16:17:44 Join: teza ([email protected]) to #php
16:17:50 <teza> hi is anyone available for help?
18:39:52 Quit: teza ([email protected]) Quit:
18:51:49 <teranoid> zzz
19:10:59 Quit: keenly ([email protected]) Ping timeout: 121 seconds
19:11:43 Join: keenly ([email protected]) to #php
22:16:26 Quit: keenly ([email protected]) Ping timeout: 151 seconds
22:17:16 Join: keenly ([email protected]) to #php
23:39:17 Join: tom ([email protected]) to #php
23:39:18 <tom> hi
23:40:55 <tom> [23:39] <tom> say theres a table on a website which has http authentication
23:40:55 <tom> [23:39] <tom> and i want to grab that data from that table
23:40:55 <tom> [23:39] <tom> using php
23:40:55 <tom> [23:39] <tom> the contents of the table are variable
23:40:55 <tom> [23:40] <tom> and using php possibly i want to play with the data and put it into a different form, say a google calendar format
23:40:55 <tom> [23:40] <tom> how would you do that
23:51:51 Quit: tom ([email protected]) Quit: