@# 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 28 29 30 31



Comments:

<0> if that was the only field you need
<1> i guess i could do that
<1> i really only need to make the magic array for two fields
<1> so that's probably the easiest solution
<2> nife: it wont work on any IP though
<2> not just my own
<3> $data = array(); while ($data[] = mysql_fetch_***oc($query)) should work I think
<4> nife mysql_id() or mysql_insert_id() ?
<3> insert_id
<3> mysql_id was just my brain farting
<4> ok, thanks ;)
<3> Wsoprulz1299: exactly
<2> o
<2> well i'm hosting this server
<2> unless it gets disabled by default
<2> i haven't



<3> Wsoprulz1299: I don't know what to tell you and I'm not real sure I would. But I can tell you that you need to close the sockets otherwise you are going to have errors
<2> yes
<2> i think that's where the problem lies
<2> i'm getting errors concerning this
<2> but I thought i did this adequately w/ @socket_close($tConnected);
<1> dang it
<1> so, with data[] = mysql_fetch_row or ***oc or array, i get a nested array
<1> but with just data = mysql...i get no array
<5> if $profileid2=mysql_fetch_array($query,MYSQL_***OC); and print_r($profileid2); returns returns Array ( [fkprofileid] => 11 ) ...how would i delete row $profileid2[0] from a table
<3> Wsoprulz1299: you want to close the socket not the boolean saying its open or not
<2> hm
<2> so close socket array?
<2> @socket_close($socketArray[$i]);
<3> yea
<2> ok, but it still does not work properly on any IP, i had made a very simple one to start out w/, using simply fsockopen(); and i just tired scanning with that one on my external IP, it picked up port 80
<2> whereas this one does not pick anythign up other than 127.0.0.1
<2> http://69.134.230.201/scripts/source2.php
<2> thats the simple one
<2> http://69.134.230.201/scripts/source3.php
<2> and a little bit more complex
<6> hello all
<6> anyone here intimately familiar with the fsockopen function
<2> familiar, not sure how advanced you're looking at
<6> I have an fsockopen command that parses another site, but if the site is down, i get feof():supplied argument is not a valid stream
<6> like 800 times
<7> hello
<8> I am trying to get a number from a URL inside a page
<8> like I get the contents then I get lost :(
<8> I have tried regex but that didn't work :(
<0> probably need more regex
<6> seen that before Wsoprulz1299 ?
<8> damn it
<0> what regex are you using?
<8> just a simple id=(.*)\">
<0> that will return all id's in the page
<8> yeah
<8> but it return the "> as well
<0> it would
<8> how would I stop that?
<0> try usinjg (.*?)
<0> it would make the * less greedy
<8> ok
<0> and
<8> just checking now
<9> when a function f1 calls another function f2 from inside a try block, and an exception is throwed from f2, the function f1 gets no exception... I think this isnt right.. this happens with some of you too?
<0> i would prefer using DOM to parse html rather than regex
<8> I am on dialup
<8> slow
<0> why wouldn't it be right eddiestone?
<8> yeah it works
<9> if f2 launched an exception , f1 should be launch too.
<8> legend
<8> thanks
<8> later
<9> at least, in C# and Java
<9> cythrawll, this is right?
<0> honestly i don't kno
<10> hello all, anyone here in the clearwater florida area?
<11> backwatcher is in clearwater
<12> eddiestone http://hashphp.org/pastebin.php?pid=6814
<12> eddiestone are you meaning that ?



<9> xshad, let me see..
<10> jake: thanks
<12> f1 would appear in the trace
<10> when is he usually on?
<11> mykilx, it's a company I used to work for. checkout backwatcher.com, they do php work, you could probably email them
<9> xshad, yes
<12> and what's wrong there ? the exception should be thrown once :P
<10> jake: ahhh no i meant a person, my neighbor just got some sort of it director position or somesuch and the company is looking for a php programmer
<12> checking the trace, you'll see both f1 and f2 (f1 calls f2, f2 throws the exception)
<9> it prints the "ok" from f1?
<12> no, I'm calling f2 before
<9> yes..
<10> unfortuneatly the position isn't telecommute, hence asking for someone near clearwater
<9> so that's allright
<13> !tell mykilx about jobs
<12> f2 just throw the excpetion.... I catch it and prints it out
<12> but echo "ok"; f2(); should print "ok" before the trace
<10> TML: sorry :/
<10> i didn't know
<10> please disregard :)
<9> thanks
<10> was trying to be nice lol
<12> eddiestone another question? :)
<5> TML !tells you whats up
<9> xshad, no, Im already glad :)
<14> how would I get every nth element of an array? (i.e. 1, 10, 19 or 2, 11, 20 etc.)
<0> $arrrayname[$n]
<0> if its a numerical array
<14> it'd be strings
<12> the same
<12> $array['myCollestString']
<12> omg... I need caffeine now!
<15> possm: Look at the functions at http://.php.net/manual/en/ref.array.php
<12> :)
<14> yeah, but i'm thinking doing next($arr) 9 times isn't the best way to go :/
<16> $pos + 9 ?
<16> use the iterator
<17> can you set cron jobs within PHP?
<18> In what sense?
<18> It can, like any other language, make system calls
<0> or directly edit crontab
<18> That, too
<17> how? any info no that
<17> on*
<12> fopen, fwrite, fclose
<17> ah ... so where is the cron file stored?
<19> zon3d: usually /etc/crontab
<17> ok ... so i guess shared hosting accounts won't be able to access that?
<20> hey
<12> no
<20> oh?
<17> dang
<20> you guys famliar with the way php5 creates xml documents?
<15> Or /var/spool/cron/crontabs/<username> which will only be accessible by root
<17> so it's not possible to have a crobtab file accessable by someone not in root?
<12> MGrim ask
<19> zon3d: you can chmod that file
<12> on a shared host? I don't think so
<19> oh i missed that part sorry
<21> if you have access to use crontab you might be able to use a system call to run crontab -u (username) cronFile and that can have your cron job in it iirc
<17> oh ok ... cause in cpanel you can set cron jobs ... so i was wondering if youcould do it in your own php file
<21> zon3d: with phpwebhosting they give me crontab usage
<17> ok, i'll ask my ask if they do
<12> you should have a cron file, you can chmod it via ftp, and edit it as you wish
<22> can php use remote SMTP on linux? or it is just on linux?
<20> xshad im trying to create a document from scratch using the new methods in php5
<20> not sure where im going, i keep getting warnings/errors galore
<12> MGrim using domdocument ?
<20> yes
<23> backz: did you typo an OS name in that statement?
<17> xshad: where?
<12> what's goiing on ?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
#linux
#linux
mysql server keeps restarting
substack perl
#kde
#perl
PASS_MIN_LEN +postgresql
fatal: gethostbyname: Resource temporarily unavailable
#math



Home  |  disclaimer  |  contact  |  submit quotes