#php
06 October 2007
Total 39 pages. You are browsing page 1/39.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sat Oct 06 00:00:54 2007
00:00 <****> |splat|: what is in $item? try to do print_r( $item );
00:01 <****> Naktibalda: it is the output from running preg_match_all on a couple hundred HTML files
00:01 <****> http://www.overclockers.com/dbredo/html_import.php
00:03 <****> is it a print_r of $output3?
00:03 <****> that is the print_r of $main
00:07 <****> |splat|: so, $output3 is 3 param og preg_match_all, right?
00:07 <****> yes
00:07 <****>[^-]*[- ]{1,2}([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{2,4})[<\s]/', $contents, $output3, PREG_SET_ORDER );
00:08 <****> ugh
00:08 <****> wow, php gave me a nice useful error there :P "Fatal error: Couldn't execute method Template::__set in Unknown on line 0"
00:09 <****> |splat|: http://www.pastebin.ca/727297
00:10 <****> but output3 isn't going to be empty
00:10 <****> why not?
00:11 <****> http://www.pastebin.ca/727301 that is the full code of what i have so far
00:12 <****> |splat|: if nothing matches, $output3 will be empty
00:17 <****> hmm i'm getting a parse error now
00:20 <****> hi
00:20 <****> hi
00:20 <****> my isp broke the bloody dns stuff again
00:20 <****> ca someone copy me ip address of php.net?
00:22 <****> get a new isp
00:22 <****> http://69.147.83.197/
00:22 <****> 69.147.83.197
00:24 <****> or use open dns Jernej_L_Work
00:25 <****> thanks.
00:26 <****> as soon as i enable that if statement, i get parse errors
00:26 <****> woudln't load, it tries to access static.php.net
00:26 <****> oh it loaded now.. kinda
00:28 <****> |splat|: it's very simple syntax error
00:28 <****> i don't see it
00:28 <****> add one more closing bracket after mktime
00:29 <****> ooooh
00:29 <****> sweet that worked Naktibalda , thanks
00:33 <****> hmm trying to use the filesize() function but it keeps saying stat failed, i've tried both a www and internal link
00:35 <****> hi, i have a text, wherein i have a stringpos, how do i get the entire string given the stringpos?
00:35 <****> http wrapper doesn't support stat
00:35 <****> Saberu: how does it looks internal link?
00:36 <****> \moozicne\dateasiapac\members\2_46fc346c2c544.jpg
00:37 <****> getting the string given a stringpos seems to be difficult. hmm.
00:37 <****> backslashes works in windows only
00:37 <****> does anyone know why errors would still be output when display_errors is turned off and error_reporting is set to 0 globally?
00:37 <****> so they should be forward slashes?
00:37 <****> yes
00:38 <****> vegpuff: sorry, I don't understood what you want to get from string
00:38 <****> still doesn't work Naktibalda
00:39 <****> could it be a permissions issue?
00:39 <****> is it an absolute path?
00:39 <****> yes
00:39 <****> Naktibalda, i a string with words , i have a stringpos(which is not a space). i want the word which the stringpos belongs to.
00:39 <****> ^i have a
00:40 <****> I suggest to use preg_match instead of strpos
00:41 <****> sounds like it's be easier to do with preg
00:41 <****> would php throw notices even if error_reporting is 0/
00:41 <****> how do I get a static class method to reference the class it is called from rather than the one it is defined in?
00:42 <****> Naktibalda, cyth ok. will check it out
00:42 <****> hex42: pass $this as an argument
00:42 <****> so ebya is admitting it overpayed for skype - to the tune of about 1.4 Billion dollars.....hehe
00:43 <****> what's the deal with joost? all free?
00:43 <****> TehSausage: is there any way to do it without instantiating anything?
00:43 <****> joost is free but mostly crap
00:43 <****> then you're not looking for static methods
00:44 <****> only the anime channel is good
00:44 <****> Naktibalda. any ideas about my problem?
00:45 <****> Saberu: did you got error message?
00:45 <****> TehSausage: I thought static methods were the ones that didn't require an instance to work
00:45 <****> they don't
00:45 <****> but you're trying to access another class without even telling the function what it is
00:45 <****> that's all a static method is, a fancy named function
00:46 <****> just says stat failed.. thats all
00:46 <****> :)
00:47 <****> isn't directory moozicne in your homedir?
00:48 <****> http://pastebin.com/d55ed2240
00:48 <****> um perhaps i'll try it with home
00:48 <****> can a function it tell how it was called? e.g. between Foo::function1(); and Bar::function1(); where Bar extends Foo and function1 is not overridden
00:48 <****> can somebody advise me as to why that produces nothing
00:48 <****> it brings beginning, end
00:48 <****> oh yeh works now, heh thanks. i always forget about that home dir
00:48 <****> try __CLASS__ or look through debug_backtrace()
00:49 <****> dev-bin: and what you expected?
00:49 <****> well, $test should have the results of my query
00:49 <****> it shouldnt
00:49 <****> when I use that select statement in mysql console, it gives me 4 records
00:49 <****> ok
00:49 <****> I'd like it to :) any suggestions?
00:50 <****> uncomment $row and do print_r($row);
00:50 <****> if i use __CLASS__ surely i will have to override the function in every child class
00:50 <****> hex42: use get_class($this)
00:51 <****> can I paste a 1 line error message ?
00:51 <****> ok, here goes
00:51 <****> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/apache2-default/index.php
00:52 <****> dev-bin: http://faq.php-quake.net/#mysql
00:52 <****> lol, I pasteed my password
00:52 <****> dev-bin: add or die(mysql_error()); after mysql_query()
00:53 <****> or do it right, like the example on the page i referred to shows
00:57 <****> very helpful
00:57 <****> Is there a common term difference for a file path thats public like 'http://domain.com/path' and local like 'D:/public_html/path/' ?
00:57 <****> its something to do with permissions
00:58 <****> like, is one called path, and one called directory, something distinguishable
01:09 <****> is there any python-slice equivalent in php?
Total 39 pages. You are browsing page 1/39.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
