@# 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



Comments:

<0> Sooo.. anyone know how hehe :]
<1> bamm`laptop, hang
<1> you want a new <table> block every 4 pictures? or you mean a new row every 4
<0> New table block preferably
<0> But new row is fine if ya want.. whichever easier for ya
<0> :]
<1> first off a few questions! Line 10, why do you if(!$imagelist[$i]) exit();
<0> mhmm... oh wanted it to exit if the array was empty
<2> bamm`laptop: play with something like if(++$i % 4 == 0) echo '</tr><tr>';
<1> If you dont mind how many pictures you are showing, you can just make the loop only go for the amount of images you have
<3> ahh i think i need
<3> global $currency;
<0> Using?
<0> While?
<3> pfft stupid me
<1> instead of <20 you could (for example) use count($imagelist) or sizeof



<0> ah okay
<0> I'll give it a whirl after hehe
<0> thanks.
<1> anyway, what PhrostByte said would be the best way to go about it
<0> Alright, thanks both you guys
<3> how come if i set the cookie on /hosting/
<3> it doesnt set
<1> although no need to incremebnt the $i value as you already do it in the loop
<4> just because
<0> yea
<0> saw that
<0> hehe
<0> *need to talk in one line*
<1> anyone know of any decent php community sites?
<5> phpfreaks.com ... phpbuilder.com phpcl***es.com
<6> hmm_mmh: he said decent :P
<6> Plasma: sitepoint is pretty awesome
<1> wheres your site imho =]
<3> how can i download http://currency.gregvernon.com/api/d84a11e76ddeca7e73ddd895912aa9ea/USD/AUD/update to usd.txt every 12hrs
<3> what would be a cron command?
<3> wget?
<1> file_get_contents
<3> then just php update.php
<3> in the crontab?
<7> Just set a cron for wget.
<3> yeh but what am i making the wget string as?
<3> im reading the wget man
<3> it doesnt say what to save as
<3> wget [option]... [URL]...
<8> AlexW, it'll be in there
<9> Say I have an array with blank values how can I easily empty the nULL values, can't I just array_filter?
<1> seems like the way to go
<10> i've got a page with a button, form action is echo $PHP_SELF. but how can i store the $vars in the script
<10> got an if/else structure with if (!isset[submit])
<10> when i submit, the vars are gone
<11> which vars?
<11> you want vars to the new page?
<10> yes, i've got a var = mysql_insert_id() it's prety important :P
<0> Hey PhrostByte I can't get the tables to make new row.. :[
<10> bamm`laptop: what error?
<11> and you want that var to go onto the the next page?
<10> yes, if i push the button, and the page "shows" itself, then follows a different route trough the php, i wanna have still that variable
<0> Kevor.. it's a problem from earlier.. I wanted the table to goto new row after 3-4 pictures
<0> http://pastebin.com/526990
<11> well im a bit rusty with php
<12> hi, is there some way to force php to throw an exception on error?
<12> (instead of using old-style error handling)
<11> but you could make an invisible html form dealy and send that along and get it with $_POST or $_GET
<11> yea thats probably not the right way to say it but i havnt used php in a long while but you should get the idea
<10> Chowmeined: don't think that's a very nice method
<10> there has to be another way..
<11> you could store it in a text file
<10> that's so.. 80's too
<11> no wait i got it
<11> you could alter the link url
<11> url.com?mysqlid=$var
<0> GET ;]
<11> yea but without using that invisible form
<10> yeh Chowmeined but i want this to be n00bproo and usable
<3> would 0 * * * * mean every hour?



<10> they be scared for the number :P
<10> can't i just set a globar variable?
<10> global
<11> whats wrong with <input type="hidden" name="mysqlID" value="<?php echo $var; ?>" /> ??
<11> oh yea you dont want it in the address huh
<10> i like code alone, don't trust it
<10> (graphical that is)
<10> sorry to be a bitch, but just want it perfect
<10> there HAS to be a way to p*** vars on, when a script execution has ended...
<0> hidden, sessions
<3> whats the cron for every hour?
<10> Chowmeined: so what if i run this pHP script from a "main" phpscript
<11> yea sessions mabye but i dont know too much about those
<10> i can make the var before i enter the subscript..
<11> yea you could
<11> but once you reload the page its all gone
<11> you could store it in a database :)
<10> Registering a variable with $_SESSION.
<10> :P
<11> oh wait duh
<11> you could make a Cookie
<10> :| evil kookies
<11> dont sessions make cookies?
<0> http://pastebin.com/527057 <-- why wont that add another row of tables after 3 pictures
<10> dno :P
<11> i think they do
<11> they make a sessionID cookie
<10> if it works, i'm a happy mofo
<11> the only way i can think of making a cookie-less script for such a deal would be using GET and stuff
<11> but then your address is funky
<11> yea that pastebin doesnt load
<10> yeh, so the cooky seems the most stable solution to me
<11> but some people disable cookies
<0> Anyone have any ideas
<10> this is gonna be used in a company, so i can enable cookies on their browsers
<11> well if you want somthing really cool
<10> then?
<11> you could use a cookie tied to their username/p***word
<10> they dun have :P
<11> no usernames? no p***words? :(
<10> negative :P
<10> small company, only 2 pc's :P
<10> just making this to learn
<11> lol
<11> usernames and p***words are fun
<11> then you can have them login and store all this other data junk in a database and hide it from them
<0> Chowmeined any good w/ tables?
<11> the pastebin page doesnt load
<0> Yea noticed
<11> html tables?
<0> http://pastebin.com/527059
<11> or database tables?
<0> I want it to make new row of images after 3 pics
<0> Html
<11> i pwn html
<11> why does $i = 2?
<0> ignore that code.. i have it redone on my end
<0> but because in the array first two are . / ..
<0> which screws up the division of $i
<0> but beyond that, still doesn't work
<13> What does title(); do? I can't find it on the PHP Manual
<14> bamm`laptop: What's the problem?
<14> pavlion: There is no such function as title(), it's probably user-defined.
<0> Kuja, im trying to have the table spit out 3-4 pictures per row.. and I can't make it do it.. code is above in a pastebin url
<15> bamm`laptop : if(!$imagelist[$i]) exit(); << maybe if(!isset($imagelist[$i])) { exit(); }
<11> cant you do a scandir with *.jpg or whatever to get rid of those first two deals?
<13> kuja; ok thanks
<0> Yea probably.. not really my issue atm
<14> Well, it's easy to get rid of . and ..
<14> Just create and if statement
<14> Or use glob(), which doesn't list it and is more backwards compatible
<0> was just a quick solution.. any ideas on the row though
<14> If you use glob(), . and .. I don't think get listed, so your incrementing and modulus check probably won't get ****ed.
<11> well i cant see your table layout


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
queue/mess perms
#osdev
#postfix
88W8335 debian
FC5 chroot sftp
linux 2.6.15 NPROC Resource temporarily unavailable
#perl
netbeans X11 DISPLAY variable was set
#physics



Home  |  disclaimer  |  contact  |  submit quotes