| |
| |
| |
|
Page: 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 31 32 33
Comments:
<0> which it will be <1> or just p*** it in on the call... $connect = new connect($parse); <2> that just makes it less clean, in my opinion <0> Hello Seadog <2> but as far as code reuse, that'd be a useful way to do it <0> I think I'll use global $var; <0> since it needs to be the first line <0> of the function <1> im not sure why you need to instaciate parse anyway, seems like you could just use it as static <0> because $parse = new parse() <3> hey <0> if I was to change the name of __constructor to parse_buffer <0> the call would be <0> $parse->parse_buffer <0> (); <0> right?
<4> well, you need parens at least <4> and its probably __construct that you mean :) <0> the function did not need to be a __construct <0> as I need to call it when I want <4> then don't prepend it with the magic __ <0> I have not <5> ok new question <5> you know nl2br() turns content from a textarea with \n into <br>, right? <5> how do you reverse that to get it back into a textarea with the lines in the right places and no <br>'s? <0> mm <5> mmmmm? <6> Squalleh: If you're displaying it in a textbox, you want the <br />'s left in there so that they illustrate the line breaks. <6> Squalleh: The browser won't show \n as a linebreak when parsing the HTML. <5> yeah but i want it to appear in the textbox with the lines in the right places but so you cant see the <br>'s <6> Squalleh: Is it actually displaying the <br>'s? It's been forever since I worked with that kind of stuff :d <5> yeah it looks like um <6> Try a str_replace to turn them back into "\n" ? Google for this, I'm sure there's a more definitive answer out there. <5> its wierd, the lines are in the right place but the <br>'s still show <5> and i have a feeling if i remove all of the <br> then it'll all be one the same line <5> yeah i'll try switching them back <5> it is \n not /n...right? I always get this wrong :p <6> yes <5> k <5> lets see.. <7> i'm getting a Premature end of script headers: for a phpinfo() when i call test.php through apache/www but when i execute it via command line it's working fine <8> hello <9> I forgot, how can I select a value (zip) which are not in certain states: SELECT * FROM tbl WHERE zip = 99999 AND state NOT IN("CA", "FL"); ? <10> Something like that. <11> does anyone can give me information, what is the best framework in PHP ? <6> subsonic: I'm not familiar with US postal codes, but shouldn't zip codes be unique across all the states? <12> akugila: To do...? <12> Viflux: No. Some zipcodes even cross state lines. <6> Thus making the AND clause redundant...unless you're trying to perform some kind of legacy data cleanup. <6> o <6> My bad then...silly Americans :) <5> wtf <12> Viflux: zip codes respect no political boundry. They respect only the placement of central post offices. <10> Well, when you have cities which have state boundaries running right through them... :) <10> It stops making sense for them to be restricted to a state. <9> Viflux: Was trying to use an example. I want to search for something but not in another row with certain values <11> i have project to do.. then i want to use the framework that fit with my needs.. like support modular, template, etc. <5> viflix - for replacing the <br> and \n it shouldnt matter about if i use ' or " should it <13> akugila: joomla <12> akugila: A project to do... ? Be less vague. What exactly is it you're trying to do. <1> Squalleh: \n will not get translated inside ' <11> does joomla is framework? <11> like this: http://www.phplondon.org/wiki/Frameworks <5> really? <5> wow <5> ARGH WTF WHY IS THIS WORKING <5> and why am i complaining <13> akugila: api.joomla.org <14> hi <5> hi <15> all the tutorials are not too wel explained. any one know any good site who got good tutorials ? <13> lol... define 'not too well explained' <16> is there a freeware PHP encoder out there somewhere? <15> therock : well i searched several tutorials and i got stuck each time in some error i can't p*** it or understand it <0> ||cw I have one problem <17> Fushuing; The answer lies within.. <5> hmm...depends what ya need tutorials on
<13> JaMaLz: maybe you should hire a coder? <18> hi. can i trust easter_date() ? does it also check that easter is not on either an April 26th or 25th ? <19> has anyone ever used mysqli_fetch_fields to determine if a field is "auto_increment"? it seems that it will return flags... and the mysql docs say that auto_increment is a flag... but... <15> therock : why i'm learning, <5> if you're still on the very basics try www.ionxdesign.co.uk <15> mysql_select_db($mysql); <15> $query = "INSERT INTO user (host, user, p***word, select_priv, insert_priv, update_ priv) VALUES ('localhost', 'phpcake', P***WORD('myp***'), 'Y', 'Y', 'Y')"; <18> sequethin you can probly fetch that from the INFORMATION_SCHEMA instead <5> but they are pretty basic tutorials and i wrote them so they prolly **** <15> mysql_query($query) or die('Error, insert query failed'); <0> everything seems to be working for now, but for some reason my cl***es are not p***ing the values of the variables through to the others <15> like this what does it do i have put the info correct and its just gave me error <13> JaMaLz: use deductive philosophy <10> JaMaLz: http://php.net/mysql_error <5> yeah use or die (mysql_error()); <5> and it will tell you the error <5> although the error messages dont always help :P <19> Jax: thx this looks very useful <10> Well, it's almost certainly going to be more informative than "Error, insert query failed". <15> well u might know any good tutorial :) <10> The tutorial may not be the problem. <5> http://www.ionxdesign.co.uk/viewtutorial.php?tutorialid=12 try that? <15> mattmcc : if i'm an Expert i would solve the tutorial problems <13> JaMaLz: switch to asp.net <15> i hate asp <13> php hates you <0> eww <15> Squalleh : link is broken <5> no its not <5> http://www.ionxdesign.co.uk/viewtutorial.php?tutorialid=12 <5> wtf this is wierd <5> im starting sessions twice and its not crashing horribly <20> Squalleh: I think subsequent attempts are ignored. <21> php.ini -> extension=sqlite.so \ extension=pdo_sqlite.so so whats the problem Call to undefined function sqlite_open()? <20> snoopy: Heh... not the author of this are ya? :P http://snoopy.sourceforge.net/ <20> snoopy: Um... what OS are you on? <5> ah right, it only screws up if you try to do something between them <20> Squalleh: Hm... odd, that. Why are you calling it twice anyway? <21> Elazar: thats funny; os is linux <5> cos i just realised im calling it once in the actual page <5> and then once in the header.php include <20> snoopy: What's funny about it? I run a WAMP server at home. <22> !+enter <23> Don't use the enter key as puncuation. Think in complete thoughts, then type. <24> will rename() effectively move a file if the new path is different? <5> but its like <?php session_start(); require_once('loggedinheader.php');..... and the very first thing in the include is session_start(); so i guess it doesnt pick up on the headers already being sent <22> fangel: yes <22> er... Fango <20> snoopy: I think it's funny you obviously don't know how to read comments. <20> snoopy: Did you set extension_dir? Are permissions set so PHP can read it? <22> s/php/webserver <0> Why are my cl***es not p***ing the variables? http://tfom.servehttp.com/fishbot-source/ <--- source code there, for some reason when I try and run the file it says Warning: fsockopen could not connect to :0 which meens its not p***ing the value through the cl***es properly!! <21> yes <20> snoopy: Um, OK... how about the fact that you're trying to use the SQLite extension as opposed to the PDO extension with the SQLite driver? <0> Ive fixed it not p***ing the variables <0> now it is saying its calling a non-object <6> ngvglion: Shot in the dark...could it be calling a non-object? <1> ngvglion: what file and line <0> now its gone back to <0> Warning: fsockopen(): unable to connect to :0 (Unknown error) in /home/ome/fishbot/new/connect_cl***.php on line 12 <0> ||cw all the files are now in there <20> snoopy: Try this: $dbh = new PDO('sqlite:host=hostaddress;dbname=databasename', 'username', 'p***word'); <1> hm, I odn't think you want $con to be static <1> er, or any of the cl*** level vars for that matter <1> you aren't using them as statis <0> i want them as public? <1> yeah, seems so <25> How would I throw an exception if a PDOStatement::prepare() fails? <1> static would be like config::server <0> oo <0> id rather the config be static <0> look in connect_cl*** <25> oops, PDO::prepare() that is, of course <0> see how it says static $con = array();
Return to
#php or Go to some related
logs:
#php #web #php #perl awk backref xorg.cfg gentoo bluetooth via php androxxl how to install frostwire - ubuntu #perl
|
|