#php
21 October 2007
Total 36 pages. You are browsing page 1/36.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sun Oct 21 00:00:34 2007
00:03 <****> How do i turn on error reporting for php so i see it on my actual form im trying to access via firefox
00:05 <****> e_all
00:05 <****> !+error reporting
00:05 <****> to the top of your PHP script to display all errors, or set the display_errors to 'on' in your php.ini and error_reporting to E_ALL in your php.ini
00:06 <****> hallo-a
00:06 <****> hello, I would like to have a page and on that page I would like instead of frames, to be able to use php to grab the html code from a external source and insert that external code dynamically into this one page, how do I do it?
00:07 <****> I'm trying to find the file zend_language_parser.y... supposedly it is part of the Zend sources, but I couldn't find it in the repository. Anyone got any pointers?
00:07 <****> Like say I have a website at joesmoe.com and I want people to be able to see my blog entries from freeblogs.com, rather then use a frame I'd like to be able to insert the blog entries from the external host into the template I have on my website
00:09 <****> Thialfihar: /home/wolfy/sources/php-5.2.0/Zend/zend_language_parser.y
00:10 <****> Helpful. :)
00:10 <****> Hmm still not making errors
00:10 <****> But I just found http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_language_parser.y?revision=1.191&view=markup, which'll do me.
00:10 <****> thanks
00:10 <****> If i pastebin my files would anyone care to look at them?
00:10 <****> its a simple insert data into sql php script
00:11 <****> hello everybody
00:11 <****> just pastebin and paste, dont ask
00:11 <****> does someone use mantis BTS
00:11 <****> anyone?
00:11 <****> ?
00:12 <****> becaus i'm experienceing a problem of a blank page display with no error in lighttpd log
00:13 * gentoodude loves nopaste
00:13 <****> for gentoo :D
00:14 <****> siddharta: It's not a ##php problem
00:14 <****> ah ok
00:14 <****> sorry for annoying
00:18 <****> http://rafb.net/p/eaGmWm34.html
00:18 <****> http://rafb.net/p/9XPGaA82.html
00:19 <****> Can some one verify these files for correctness? its not making any entries
00:19 <****> gentoodude: o.O Ever heard of 'quoting strings in SQL'?
00:20 <****> Wolfpaws: heh something i should do with big queries?
00:20 <****> values get single quotes ' '
00:20 <****> gentoodude: No, something that you should do in queries
00:20 <****> !+sql injection
00:20 <****> It's a really bad idea to put variables directly into SQL queries. Always escape them using a function like mysql_escape_string() first, and make sure the data matches the format you're expecting. For more information, see http://www.php.net/manual/security.database.sql-injection.php | Examples can be seen here: http://www.unixwiz.net/techtips/sql-injection.html
00:21 <****> And read that as well.
00:22 <****> okay so '$name' right
00:22 <****> wrong.
00:22 * gentoodude cries
00:23 * gentoodude is confused
00:23 <****> gentoodude: Read what the bot said
00:26 <****> I read it and i dont understand :S
00:26 <****> can I do a conditional like this: if($blah != array("something","somethingelse","maybeeventhis")) { // logic } ?
00:27 <****> i think you're looking for in_array()
00:27 <****> Wolfpaws: Can you give me an example? :(
00:28 <****> arpad: thx I just used this: if($blah != ("blah" or "blahblah" or "poop") { // logic }
00:29 <****> matthewobrien: that won't do what you're thinking
00:29 <****> what a bunch of poop.
00:30 <****> arpad: so i should do $array = array("blah", "blahblah", "poop");
00:30 <****> i got an error on a GPL php app Mantis : http://rafb.net/p/1y8Uv075.html
00:31 <****> and then do if(in_array($array, $var)) { //logic
00:31 <****> thanks for the sql-injection.html been looking for some guidlines
00:31 <****> matthewobrien: yes
00:32 <****> awesome thankyou arpad!
00:32 <****> matthewobrien: um, in_array($var, $array) but otherwise yes ;)
00:32 <****> Wolfpaws: I dont understand what i have to do to make this correct.. i read all this :S
00:33 <****> ahh, got it.
00:33 <****> thx
00:35 <****> gentoodude: php.net/mysql_real_escape_string
00:35 <****> brb
00:38 <****> siddharta: I told you it has nothing to do with ##php
00:39 <****> siddharta: Correction; Your PHP doesn't have PCRE module installed
00:39 <****> lol
00:39 <****> the fatal error is pretty obvious
00:39 <****> i thought reading it would be sufficent for him
00:40 <****> in php what is the command to get a http page and then manipulate it to get a certain DOM div container?
00:40 <****> krustofski: 95% of fatal errors are obvious
00:40 <****> cAn anyone recommend a progress bar for my file upload script?
00:41 <****> 5.2.0 and APC installed it's easy
00:41 <****> i just spent about 2 hours trying to solve a problem
00:41 <****> very weird
00:41 <****> ionico: That's 1.5 hours too much
00:42 <****> i lock some tables from write, but i did use a select mysql statemen and it showed me an error
00:42 <****> i just lock that table too
00:43 <****> and it works
00:43 <****> but why?
00:43 <****> hey can someone help me do error catching from a mysql database in php? what im trying to do is catch the error and not have it display the sql error to my users, rather have it display something more useful. how would i go about doing that?
00:43 <****> ionico: Thst's #yoursql problem
00:43 <****> if i use LOCK i must LOCK all the tables i am about to use even if im not going to write in all of them
00:43 <****> ?
00:43 <****> ok
00:44 <****> whitty1142: php.net/mysql-error
00:44 <****> thanks
00:44 <****> #yoursql doesnt exist
00:44 <****> but thanks anyway
00:44 <****> :)))
00:44 <****> hes being sarcastic, its #mysql
00:44 <****> ionico: Please ask SQL questions in the channel dedicated to your SQL implementation, not in ##PHP
00:44 <****> ok
00:44 <****> i think witty is a more appropriate name for it :p
00:45 <****> He simply expected ionico to recognize the inherent meta-syntax in the channel name
00:45 <****> It's usually a reasonable expectation
00:45 <****> TML: Rather "hoped" than "expected"
00:46 <****> It gets rather tiresome to type out "Ask #mysql if you're using MySQL, #postgres if you're using PostgreSQL, ..."
00:51 <****> any1 know how with php i can retrieve the HTML of a website, and then manipulate the DOM to find a DOM Div Node?
00:52 <****> D^A^N: "anyone". file_get_contents or just use DOM's loadFile()
00:52 <****> I figured out how to unite the democrats and republicans, Hire an illegal alien to pray in school
00:53 <****> jameswf: This isn't a channel for politics
00:53 <****> no thats what we call humor
Total 36 pages. You are browsing page 1/36.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
