| |
| |
| |
|
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
Comments:
<0> andrejkw: Personally, I'd write something like this in Python. It'd work 10x faster, and work right. The stream extension has the ability to do that though. http://php.net/stream <1> vpb: it will work <2> I have 2x 2003server machines. 1 running mssql and the other running iis+php. i have a php file (basic connect and query to the mssql server). it works if i run `php test.php` from the command line, but refuses to connect from a browser via IIS. any ideas? <3> Julian|Work: string(10) "1149629819" <4> BigE: so cn it do the same I am trying to do? <5> philip i cleared the cache <5> but it still doesn't display the image <0> andrejkw: Yes, and the stream extension is actually supported, unlike the socket extension. <1> vpb: do this, <?php $pic = 'foo bar'; echo 'hello'. $pic.'there'; ?> and notice it works <1> vpb: not a php problem <0> andrejkw: I mean... it's got http://php.net/stream_socket_accept .. <5> the problem is on that url() <1> url() is not php <5> because outside the url() it works, but if i do url("/img/file.png") it shows it but when I put the variable <5> it doesnt <4> BigE: Alright :) Thanks! It was driving me nuts... lol. Time to do some conversion now :)
<0> I'm so used to calling them modules due to python, the word "extension" looks funny. :P <6> i rinstalled apache and php and i get same Call to undefined function mail() <0> andrejkw: Welcome. :) But like I said, you might want to check into using Python... it'd be quite a bit faster. <1> vpb: what shows in html source? <1> vlash: php.net/mail says a few reasons why mail() may be undefined <5> philip background: url("/img/Rajon.png") <7> ; <8> is it possible for me to have php save all the values p***ed to it on submit into a file? <1> so it works, now fix your html <1> CBTC: impossible <1> heh <4> BigE: python is a bit... confusing. <8> thought I would try <8> heh <0> vlash: Did you compile PHP yourself? <5> I fixed it :D <8> in that case. I need to make a new database each time with the database name being the value of one of the questions <5> url('.$pic.') <5> philip thx <8> is that possible? <1> CBTC: <?php fil_put_contents(print_r($_POST, true)); ?> :) <0> andrejkw: Any language is a bit confusing when you first start :) <1> CBTC: consider sessions <0> Ugh, my connection is ****. <0> I see what I'm tying 10 seconds after I type it. <1> hmm, forgot to give file_put_contents a filename, oh well, it was a bad joke anyways <9> heh, I love it when I reverse the arguments on file_put_contents on accident <9> lots of fun "random" filenames :P <10> with this: [^a-zA-Z]+ how can I make it do what it does (match everything but a-z) but also match spaces ? <1> heh <11> It should match spaces as-is. <12> With what php function can I draw a line, circle or others? <10> oh, didn't think of it that way <11> znh, look at gd. <12> Julian|Work, aight <0> k4st: That regex matches everything (including spaces) except a-z. Are you wanting it to not match spaces? <12> Julian|Work, I want to draw lines/circles etc based on cordinates not an existing image :) <10> no, that's how I want it, I'm just merging two split()'s that both have opposite regex's <13> does anyone have a (probably recursive) function to show graphically a tree represented by an array of elements with "parent" value ([0] => [value] = 10, [parent] = -1) <11> znh, so? <10> it's just not splitting by some of the spaces though... <11> An image library is the best place to start. <11> znh: "Draw a filled rectangle" etc. -- it's not all manipulation of existing images. <11> www.php.net/gd <14> anyone have any comparisons between the free project hosting services? <0> k4st: What exactly is it supposed to do? What function are you using this regex in? <10> split() <15> k4st, are you by chance using that to get lines out of a file ? <10> no, to separate words, spaces, and all symbols like periods, commas, etc <10> andn umbers <15> you're creating a tokenizer, then <10> I'm just trying to separate everything to p*** into this diff algorithm :D <0> Hmm. <10> I'm just not separating as much as I want to :/ <0> k4st: Well, that regex will split everything except a-zA-Z <10> like, it won't break up . : into two separate array keys <10> err.. values <0> k4st: Try this instead of split()... $array = preg_split('/[^a-z]*/i', $stuff); <10> okay :D <0> k4st: I think the + is your problem, but preg_split is faster anyway. <0> 'Cause the + says "split everything that comes after at least one or more letter"
<15> BigE, I believe he wants to have the delimiter in the array as well <0> colder: Erm, eh? <15> BigE, for example "foo,bar" => array("foo", ",", "bar") <15> k4st, use preg_split with PREG_SPLIT_DELIM_CAPTURE. <0> colder: Right, that regex will do it. <15> what regex ? <7> ... what regex? <7> regex = Regular Expressions <15> L1nX, wow, hopefully you're there! <7> :P <0> colder: The one I just told him to use. <15> BigE, no, won't do <12> With what function can I draw a line using cordinates? <16> how do i pull the requesting page (ultimate******ins.com/*page*) <15> 1) using * will separate each letter 2) you need to capture that, so /([^a-zA-Z]+)/ <17> By parsing $_SERVER['REQUEST_URI'] <15> k4st, use something like that: preg_split("/([^a-z]+)/i", $yourtext, -1, PREG_SPLIT_DELIM_CAPTURE); <16> can you give me a expamle of what is on the var <17> jrwr: http://us3.php.net/manual/en/function.parse-url.php <0> Ugh. <0> My head is killing me. <17> parse_url($_SERVER['REQUEST_URI']); <17> Rather ... <17> $url_array = parse_url($_SERVER['REQUEST_URI']); <10> colder, thanks, gave me exactly what I needed :D <15> you're welcome <3> The mysql record date is: 2006-06-15 19:37:51 but $date = strftime("%e %B %Y %T", $record->timestamp); shows: 16 June 2006 05:37:51 What could be the problem? <17> Then *page* would be $url_array['path'] <18> I'm looking for a PHP IDE equivalent to how ECLIPSE is for JAVA. Does anybody have any IDE's they would recommend? <15> redrain,different timezone <9> znh: read the manual, sheesh :/ <9> oh <9> nevermind <9> was scrolled up, ignore that :< <15> nautiazn8, phpeclipse exists <17> redrain: Perhaps you need to use setlocate to set your timezone? <3> colder: But I want to show my record's date, not current date <15> so what ? <12> Rick, I've found it already. If you are searching in a wood full of trees without knowing what tree you search for is kinda hard SHEESH <9> znh: ignore that, I didn't mean to say that (was scrolled up thought you asked that again :<) <18> colder: I know but I hear it's not too stable and still has a lot of quirks... is there an ide that is more well developed? <15> redrain, strftime relies on the system timezone by default <0> Hrm.. .I need to generate a new CLSID. <9> znh: much apologies :) <15> nautiazn8, yep, using no IDE :) <12> Rick, no worries :) <19> would a wiser more experienced PHP and SQL programmer take a look at my code, and help me make it more dynamic, I need to make the SQL query Dynamic in that it only searches for the PHP variables that are equal to "1". My code is here http://rafb.net/paste/results/alfqSk33.html which makes me think I need PHP to populate the SQL search string, but I don't know how to filter out the zeros... I googled and read up on array_filters an <20> hello <20> anyone can help me with an command ? <12> Does someone has a example for a visual validation box? <20> with php <20> i need the ctcp protocol <15> travail101, ick <20> i need an coder <21> }MatriX{ google for ctcp rfc <12> }MatriX{, CTCP as with the IRC protocol? <0> !tell }MatriX{ about enter <19> colder: ick? <21> or IRC rfc <3> colder: But the date is already there, I just want to show it in another format... Why I have to change timezone? <22> !+jobs <23> no job posting / asking for jobs on ##php (see /msg php-bot g7). You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities". <15> redrain, meh, because mysql use a different timezone, so the date displayed is different <20> please ? <22> please what? We're not your personal search engine <20> i searched <22> no you didn't <0> }MatriX{: If you're trying to understand the CTCP protocol, google the RFC. If you're trying to code for the CTCP protocol and have a PHP question, ask it. If you're looking for someone to code for you, see what php-bot said about jobs. <12> }MatriX{, I asked you something. <19> colder: ? <20> sorry <20> znh <3> colder: If I only use echo $record->date; it shows correct date and time
Return to
#php or Go to some related
logs:
acer ar5bmb5 drivers xgl kaffeine conflict ubuntu The sdl-config script installed by SDL could not be found gentoo ditscc vanderpool tyco #linux henriknj #gentoo building simulation lisp alternatives --config java
|
|