| |
| |
| |
|
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> -R is recursive <1> Sweet. <0> cynic: However if you only want to apply it to files *OR* folders then that's incorrect because it'll apply it to everything. <1> How would I do it just to the files? <0> man find <2> can i do something like this : putenv('QUERY_STRING=?same=1&user=$user'); <2> use the variables in the putenv like that? <0> isn't query string in $_SERVER already? <1> I am looking at the man page, it's not helping me for some reason. Maybe cause I'm a stupid face. <2> i don't know anything about php sorry ..i'm just modifying an old one <0> heh :) <3> t35t0r: then start with what you are trying to do <2> http://rafb.net/paste/results/nGgWXc30.html here's the whole bit <4> hya, i got a question concerning Xpath queries. When evaluating a query, e.g. /html/body[1]/div[1]/p[1]/ul[1]/li[1] ... does it, for each step make a nodelist and checks if the predicate is correct? Or can it operate on some abstract logical structure? Otherwise said, is it computationaly more space and time expensive than traversing the tree (which goes deeper when the first element is found)? <5> Why would I get "Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link" when there is no error in my SQL syntax (mysql_error returns an empty string) <3> t35t0r: oh my
<2> ||cw, it's not necessary i guess i can just do the stuff in php <4> `Mace if the your sql connection hasn't been set up <5> I can connect to the database through mysql_connect() <3> t35t0r: I'm guessing that's a way to trick a cgi into thinking to's being run from a web server instead of from a php script <4> `Mace and you use that handle for your sql query? <2> well i just want to open a file in a directory and write it <5> I use no handle, I let PHP ***ume the last connection made <4> `Mace there you got it, use a handle <3> t35t0r: that's pretty easy, fopen() and fwrite(), or even file_put_contents() <6> `Mace, how do you call mysql_affected_rows ? <7> hey <7> anyone here use drupal before? i'm curious about it <5> if (mysql_affected_rows($result)) { /* success */ } <6> `Mace, mysql_affected_rows doesn't take a result resource <6> you have to give him the mysql link, or nothing. <5> Ah, so it doesn't <8> how can i format an normal text email message with colums? <1> man chmod confuses the **** out of me. <1> "man chmod" confuses the **** out of me <5> That explains that somewhat, but I get the same with _***oc which does take a result resource -> "mysql_fetch_***oc(): supplied argument is not a valid MySQL result resource" <6> `Mace, then its because you're query failed. <6> your* <5> mysql_error returns an empty string <6> `Mace, please pastebin the whole script <5> Hang on one sec. <9> hi php peoples <5> colder, nevermind i sorted it. <5> thx anyway <10> Is there anything wrong with if (strpos($link, "43folders") === false) { ? <6> njdavid, no. <10> Gah <1> njdavid: If it's at the beggining on the string it may not work properly. <10> Parse error: syntax error, unexpected T_VARIABLE, expecting '(' <6> cynic, it will. look at the ===. <1> Oh, ick. <1> Sorry. =) <10> What about foreach($links[1] as $link) { <11> ew. same line {'s. :P <6> njdavid, pastebin the whole code. <3> njdavid: is that the line before? <10> http://pastebin.com/655787 <9> Can anyone suggest a good way to get the dates for this week and last week as in the start and end date Sun-Sat? <12> where can i find documentation on the interface Iterator? <3> njdavid: unset() is function, it needs () <10> *doh* <10> lol <3> JakeConnor: start with php.net/oop5 and it should have an intro with links to more details <6> JakeConnor, there is some here : http://www.php.net/~helly/php/ext/spl/interfaceIterator.html <12> great thank you :) <2> in the submit portion of my php script ..how do i clear out the previous HTML? <10> What I have is http://pastebin.com/655803 ok. How can I tell if one of the links are the same as another one? <12> is there anyway i can extend more than one abstract cl*** at a time? <6> JakeConnor, no, multiple inheritance is not supported in php. <13> JakeConnor: That's what interfaces are for. ;) And yeah, what colder said. <10> colder: Any ideas? <6> JakeConnor, But you can use more than one interface. just separate them with a comma. <9> Hmmm <12> but interfaces can't have functions defined in them that have body right? <6> njdavid, you could store the url you found in an array, and check if it already exists. <10> colder: how? <6> JakeConnor, you're right, they can't.
<12> ok coolio <12> is there anyway for my cl*** to take like "extend" sort of speak some other cl***es so that it has its methods? <9> JakeConnor yes php can inherit cl***es <6> JakeConnor, you can extend a cl*** that extends another cl*** etc.. <10> colder: ? <6> njdavid, take a look on array_push() and in_array() <13> colder: I think JakeConnor is still referring to multiple inheritance. <13> JakeConnor: I think you need to read up on multiple inheritance and abstract cl***es vs. interfaces and then rethink your design. <6> Elazar, probably, but then I already answered :) <9> Not sure if anyone answered this as I had to go away for a sec - Can anyone suggest a good way to get the dates for this week and last week as in the start and end date Sun-Sat? <13> colder: I know. ;) Just making an observation. <13> cathar: strtotime() and mktime() <13> cathar: Sorry, ignore the mktime() part. :P <9> yeah, been looking at them Elazar, JAST CANT FIGURE OUT WHAT TO DO <9> oops <9> scuse the caps <9> I got it working for last month because thats easy to work out <9> and next month <6> cathar, strtotime('last sunday'); strtotime('next sunday'); <9> What if it is Sunday? <6> then you've to decide what to do <9> right, thought I might have to do something like that <12> like merge functions from one cl*** to another? <14> i want to get several images and merge them into one. GD is what I am going to do. <10> colder: I know how those functions work, but I don't understand how I could put them in the code I have now. <14> can anyone point me towards the right functions? <9> Thanks :) <13> cathar: $timestamp = strtotime("last Sunday"); if(date("l") == "Sunday") $timestamp = strtotime("last Sunday", $timestamp); <9> Will hang around and help out where I can <9> Elazar: thank a lot <13> JakeConnor: Merge or convert? <12> merge... i have cl*** c and i want to have the methods and everything from cl*** a and b in it but b nor a extend eachother <6> Elazar, with your code, it would return get two weeks back on each sunday <6> s/return// <13> JakeConnor: Again, you're talking about multiple inheritance, and again, PHP doesn't support that. <13> colder: If that was a question, yes. <13> colder: Example -- If today is Monday, it would get a timestamp for yesterday (Sunday). If it was Sunday, it would get a timestamp for the previous Sunday. <6> Elazar, But last sunday already gets you the last sunday, even if you're sunday <13> colder: Does it? Hm... that's odd. <9> Thats kinda my poroblem <9> s/o// <13> colder, cathar: OK, here you go then... <6> cathar, tell me how you expect it to behave exactly please <9> Tried to do something similar a lil while ago and it went mas :) <13> if(date("l") == "Sunday") $timestamp = strtotime("-1 week") else $timestamp = strtotime("last Sunday"); <9> OKay The user selects 'This Week' or 'Last Week' <15> if ($ADDR == "1" && ($retAVS == "Y" || $retAVS == "U")) --- if $ADDR does equal "1", and $retAVS does equal "Y", shouldn't this execute? <13> lostage: Yes. <6> lostage, yes <9> This week gives them from 9th to 15th <16> UML question : Does anyone know whether to use Dependency notation or ***ociation notation from a regular cl*** to a cl*** consisting of static functions only (an instance cannot be created) ? <9> last week gives them 1st to 8th <6> cathar, and if your sunday ? <6> you're <6> well, not you, but the day :) <17> does anyone know if function calls cause a large performance hit to php? <6> SimAtWork, you mean in general ? no. <9> if its the 9th it should display this week I guess <18> Relative to.. no function calls? <17> i'm trying to determine if I should sacrifice code readability <19> SimAtWork; Are they recursivly <19> ? <19> Or do they have syntaxes like.. while (1) { }? <18> Seeing as the cost of no function call is 0, and the cost of a function call is ***umably not 0, there is an infinite percentage increase in time taken to run the script. <9> But I see where Elazar is going with this <17> FauxFaux: yes. like instead of calling print "<td>Bla bla bla</td>" 1000x is it just as fast to do print tablecell("Bla bla bla") <20> SimAtWork: never sacrifice code readability <17> CryWolf: i try not to. <17> but i wish php had macros <15> so if I reverse it: --- if ($ADDR == "1" && ($retAVS != "Y" || $retAVS != "U")) --- and $ADDR does equal "1" and $retAVS does equal "Y", it will still execute because $retAVS does not equal "U" <18> SimAtWork: Function calls with constant arguments are a terrible idea, the above incurs, along side the function call, a copy and two concats? <17> but then i'm wondering if it needs them. <9> brb, gotta ask someone a question about how they want it to work, thanks again colder and Elazar <13> cathar: NP.
Return to
#php or Go to some related
logs:
#perl #linux #perl tcsetattr: Invalid argument #linuxhelp confusing aticonfig two screens sendmail.cf masquerade gentoo cedega k7 torrent openssh sftp resume #debian
|
|