@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> well ... once you set samba up ... the 'drive' part is simply 'mount network drive' in windows or something
<1> then once it finds the date/time, it switches to "Header mode" which looks for one of 5 different headers, thus comparing 5 regular expressions to each line
<2> Is it possible to let PHP execute scripts at a specific time ?
<3> caffinated, never heard of bro ?
<0> don't know how dreaweaver will behave though
<3> caffinated, what is it ?
<3> lepine, well as long as windows see it as a normal drive should be a problem
<4> raden: it's a version control system. it keeps track of files you change in a repository. it can also be set up to deploy things you do on commit.
<0> caffinated: does DW support subversion?
<1> i guess what i'm asking is whether or not keeping track of the current "mode" will improve performance significantly... if i'm comparing _every_ line to _every_ regular expression (i.e. not keeping track of the mode) i think the performance could be fairly poor
<4> lepine: I have no idea. I stay away from macromedia products
<1> btw, most of these files are less than 100kb
<3> caffinated, what is version control ?
<0> another question ... is it worth using subversion if i'm alone ?
<4> not that it matters, there are any number of clients for windows and linux



<4> raden: say you make a m***ive change to a file, and you screw something up. subversion allows you to roll the changes you made back.
<2> Is it possible to let PHP execute scripts at a specific time ?
<3> caffinated, ahh gotcha
<0> redalpha: , crond
<4> raden: of course, that's the simplified version of what it does, there is more to it. but it's chief responsibility is tracking changes in files.
<0> php -q /path/to/your/script.php
<3> caffinated, my main thing is i just want dreamweaver to be abble to post to my /srv/www directory if i could find how to map that as a drive in win id be good
<3> caffinated, thanks for FYI ill look into it
<2> But how can i trigger that from a page ?
<4> raden: well, I'd agree with the others then. a samba/NFS link is what you want. the other thing might seem like more work, but believe me, it will probably save you a lot of grief in the process too.
<1> so should i bother optimizing the order in which my function compares each line to particular regular expressions based on the section of the file i'm in (because i know certain sections have a lot more of certain line types) or will that optimization effort be lost considering the function will only process one file at a time up to 100kb?
<5> redalpha: so you want it triggered when someone hits the page, not at a specified time..?
<4> raden: http://svnbook.red-bean.com/nightly/en/svn.intro.html#svn.intro.whatis
<4> that will give you a better description of what it is and what it does
<2> Like i want to trigger the server to thumbnail a gallery at midnight
<2> i got the script, it only needs to trigger it later without going to that page itself.
<1> redalpha, could you trigger the script on the condition that it hasn't already been triggered today?
<1> then you could let user access dictate the trigger
<1> if no one visits the page between 11:30pm and 12:30am, then the script would be triggered at 12:31am (or whenever the first visitor hits the page)
<6> using the Heredoc, is there a way to have $_GET['foo'] in it without erroring?
<0> caffinated is it worth installing subversion for a loner developer?
<2> Well its a simple function to trigger the process, but the process takes about 2 minutes for all images to thumbnail.
<4> lepine: unquestionably. I'm told that DARKS is also worth looking at, although I've never actually looked at it myself
<2> like Thumbnail('3553'); and the 3553 is the gallery id
<1> actually, everytime someone hits that page you'd have to access a file or something that would store the last date/time the trigger was executed just to find out 99.9% of the time it has already been triggered today
<0> alrighties ... i'mstarting to need a source management thingy
<4> lepine: are you at all familiar with CVS?
<0> will look at darks
<0> not at all
<4> lepine: but are you aware of what it is?
<0> well ... yeah ...
<0> i've dabbled with source safe ...
<0> check out the file
<0> it gets locked
<4> ok, well, subversion (SVN) is pretty much the user friendly CVS ;)
<0> work on it ...
<0> check it in
<0> unlock
<7> redalpha, if you want to trigger a php script at a specific time, you either visit the page at that time or use cron to run it every day at XX:XX
<2> joe333 , when i let the user trigger it it will take 2 minutes for the page to load because of the thumbnail process
<2> cron ?
<0> yeah, but subversion doesnt simply lock the files ... it locks portions of it ...and lets the users do the merging and stuff ... just wondering whether that will be a h***le considering i'm workign alone.
<7> redalpha, yes...
<2> explain please.
<0> well
<0> cron is a utility to schedule jobs
<0> it's quite flexible ...
<4> lepine: it locks nothing. when two people open the same file at the same time and modify it in different ways, it attempts to intelligently merge the files. if it can't do that, you get what is known as a conflict, and you resolve it manually with a diff editor.
<1> redalpha, yet another reason my suggestion ****s :)
<0> oh!
<2> I can update the cron schedules without shell access ?
<0> cool, i thought there wasn't any merging done at all ...
<7> redalpha, some servers allow you to edit cron in their control panels
<0> redalpha: , depends ...
<0> (see elBugz)
<7> redalpha, check out with your provider
<2> How do i use the cron, i dont know anything about cron
<0> if it's 'cPanel' then you can unless it was disabled
<4> lepine: we use it at work :) saves a lot of h***le. integrates well with TRAC as well, so we have a front end to view the revision histories.
<1> caffinated, the problem with using fgetcsv() on my file is that text fields have quotes but numerics do not, for example: "foo",123,"bar",0.25,"blah"
<0> caffinated, cool



<8> how can I get the content of a cookie?
<2> dont have cpanel, have another cheap whm
<7> redalpha, that's a whole different issue... before going with cron, verify that you can actually use it
<0> caffinated: cool
<2> Yodafone $_COOKIE['name']
<7> redalpha, then worry about how to use it.
<8> will that work for cookies set through JS?
<0> i'm bring finally bringing in a linux server at work (weeeee! vmware) ... so will set up something decent
<4> joe333: fgetcsv will deal with the quotes. that is a string enclosure, and it can be set in the 4th parameter.
<2> Okay, i was just wondering if there was a function or a good workaround for it with php
<1> caffinated, will it know that the non-quoted items are numbers?
<4> joe333: I would imagine so, yes. the quotes are generally used when the inner string may contain the column delimiter.
<1> also, how will it treat strings with commas? "foo",123,"bar",0.25,"foo,bar"
<2> Yodafone , cookies are cookies
<6> using the Heredoc, is there a way to have $_GET['foo'] in it without erroring? anyone?
<4> Sutabi: {$_GET['foo']}
<4> it should interpolate in heredoc
<9> Sutabi: That depends. What do you mean by "without erroring"? What errors?
<6> parse error, unexpected T_BAD_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
<2> like : print " Hey {$_GET['foo']}, how are you"; <- there you use the curly brackets to avoid warnings
<9> caffinated: I thought that syntax was deprecated in favor of ${_GET['foo']}
<6> caffinated,thanks!
<10> if I have a string ",ewwewasdfewwe2323sasd,wee323asd" -- what's the most efficient way to strip off that first "," ? (and yes, I'd love to not put it there i the first place... but that's not under my control) .. thanks!
<4> dj_segfault: if it has been, it's the first I've heard of it. though, I haven't been around much lately either. does that even work?
<11> hello ppl
<9> caffinated: I always do ${var} style.
<1> caffinated, if fgetcsv() handles them automatically then i will be pissed that i wasted time making my own function
<3> caffinated, i got it soo dreamweaver works directly off my networked drive :)
<11> i have that code to send emails with html tags
<11> http://pastebin.com/556844
<4> joe333: sorry man :) i'd do a test run, see if it does what you need. it's possible I'm wrong, but I don't think I am.
<2> absentia only the first ? or all ?
<1> good idea
<1> thx
<11> but <img src=...> tag not work fine :S
<11> for example
<11> i try send that
<10> just the first "," .. really, the first char -- I know I can rtrim .. off the other end, I need "btrim" :-)
<11> <img scr=http://try/try.jpg>;
<3> wow does this work nice :)
<4> absentia: ltrim
<11> and that script send
<11> <img scr=http://try/try.jpg&%&&654sdfasd>;
<11> for example
<10> perfect, thx
<12> hi
<2> hi
<13> Hi!
<2> HI! :p
<4> ..hi?
<11> anyone can help me?
<14> does php have any functions for parsing fixed width databases
<15> http://php.net/strings
<4> myconid: define 'fixed width databases'
<16> anyone ever done idea with mcrypt ?
<14> caffinated: NAME = 5 char, URL = 10 char. exmalpe would be STAN stan.com BOB bob.com JOE ....
<17> myconid: split at newline with explode and then parse with substr?
<4> myconid: nothing comes to mind for that particular format. you might wind up rolling your own.
<11> prophile that is for me?
<15> yes
<18> myconid, first of all, use file() - it'll automatically split on the new lines.
<11> w8
<11> let me see
<18> then you can use substr pretty easily.
<18> !tell malmen about AOLbonics
<17> myconid: Something like this perhaps foreach(explode("\n", file_get_contents("yourdatabase")) as $tmp) { $foo[]['name'] = substr($tmp,0,5); $foo[]['url'] = substr($tmp, 5,10); } etc.
<17> (Might be a slow way to do it, I'm not sure)
<18> that will never work right phreak
<17> Davey|Work: Mkay, what's wrong with it then? :)
<18> after the first iteration you end up with $foo[0]['name'] = "Foo" and $foo[1]['url'] = "bar"
<18> (note the numeric indexes)
<17> Davey|Work: Oh, yeah, you're right :)
<11> Davey|Work tanks, i ill try talk better now


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

akill efnet pastebin
#gaim
#centos
#ai
Unable to add forward map from : bad DNS key
xorg.cong epia
marco13185
ubuntu wlanctl-ng
phpmyadmin File could not be read
#php



Home  |  disclaimer  |  contact  |  submit quotes