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



Comments:

<0> CryWolf: +1h
<0> CryWolf: i'm almost sure it;s PEAR Date trigger it
<1> Hey guys. Anyone know a very tiny, secure and simple PHP forums script? On the scale, phpBB is waaay too much (and insecure as well)
<0> but i looked into PEAR Date code, and it doesn;t setlocale.
<2> zimnyx: could be, if it changes the locale. Can you duplicate with a simple test script?
<0> yeah, give me a minute.
<2> zimnyx: I'll give you an hour, if you want
<3> lol
<4> Anyone know how you go about writing arrays to a session?
<4> $this = $_SESSION['that']; is a variable
<3> $_SESSION[a'] = array();
<3> er... missed a ' there
<4> well; what im doing is i have a form setup like this <input type=\"text\" name=\"blah[$x]\" value=\"\"> right now when it p***es to the next page I have $blah = $_POST['blah']; and there is my array; and i just do my little foreach magic and away I go. is that all i really need to do with sessions? I hardly ever work with sessions as you can probably tell
<0> CryWolf: http://pastebin.com/561742
<5> Hi all. I'm installing a library from a payment processor and php needs a path in an environment variable. Would I do that in apache or php.ini?
<3> DogWater: I have no idea, what you mean by 'foreach magic'



<4> Stormchaser: foreach ($blah as $key => $value) { then whatever operations i need..
<4> Stormchaser: basically i just need to make it easier for people to change the values of blah.
<4> after they initially submit the form
<4> and i figured sessions would make it easier
<3> DogWater: Actually You are not giving us enough information... Why do you want to send the POST name to a session, anyways? That would only make sense, if you're creatuing a wizard...
<3> *creating
<4> Stormchaser: Ok I have a large form where people select things; and then quantities of things, like they say ok this is how many people are registering for this seminar, and this is how many people want to come to the bee catcher's seminar.. right? On the next page, it shows a summary; instead of having to click back to change everything and resubmit; i thought it might be useful if they could update the selections (based on data already entered)
<4> on the page they're already on
<6> anyone here use sybase?
<3> DogWater: You could also have hidden fields with informations in it...
<4> Stormchaser: yeah Im sure that would work to but i thought the idea of sessions was kind of to do it this way
<7> hello
<3> sybase... heh... Never thought I'd heard that again :)
<3> DogWater: Nah... I wouldn''t do it...
<3> sal: Yes?
<4> especially since they have to fill out about 7 pages of information
<4> and select a bunch of stuff
<7> if i require a file from another dir, what would be the dir to use in that file? its own or the dir of the file that required it?
<3> DogWater: Ah, that is different, then.
<4> My example kind of down played the application
<3> Sal: Include 'dir/file'
<3> DogWater: Um... What happend?
<7> Stormchaser: yes.... but the in the file included, i need to include another one
<7> so what dir should i use?
<4> I just used that as an example but its a bigger project than that
<3> sal: You should include the fries from where getcwd() says...
<7> ok, thanks
<3> DogWater: I don't see any reason why $_SESSION['stepxyz'] = $+POS; wouldn;t work...
<3> bah... $_POST
<4> Thanks i'll give it a hsot
<8> can aapache using gd or whatever make graphs?
<9> I can't seem to wrap my mind around how to make a banner that would rotate each time the user refreshes the page
<10> ^Migs^: phpadsnew.com
<11> SkramX: you can use GD with PHP, yeah
<9> would a MySQL db be the best way to store the banner position? How would this work if thousands of people are viewing the page?
<8> ^Migs^: oh, so it has to track which ips have seen which banners?
<11> SkramX: there are handy libraries out there which utilise it, too: http://pear.veggerby.dk/samples/index.php?sample=plot_all
<10> ^Migs^: that would be fairly easy to do
<3> SkramX: Well... Apache only serves pages... IU can't imagine, what it would do with GD
<9> well, they're actually articles, but I thought banners would turn on a few more light bulbs
<12> hmmm is there a function which can check the permissions of a dir/file?
<12> forexample
<3> *I
<12> something like checkperms($file);
<12> or something
<12> don't wanna have to write it myself
<13> ^Migs^: hardcore.
<12> reinvent the wheel so to speak
<3> migs: All burnt out for you?
<13> hardcode
<13> damnit
<8> I need to make a grapj.
<14> Are php's lookahead and lookbehind somehow hosed or do they not work in preg_match for some reason? I have a regex that is working in perl & .net but doesn't work in php.
<9> I don't want to add ips to the db
<3> then google for jpgraph, domas
<10> ^Migs^ then add session_ids, you have to have something to know whose seen what unless you want them to see the same ads over and over, you can also use cookies
<3> migs: They are usefull information
<13> Stormchaser: jpgraph? me? why?
<9> hmm, okay
<3> dammit... I ment SkramX
<9> I was wondering if there was just an easy way that was simply eluding me.



<9> well, session_ids is easy anyway
<3> domas: You were in te way :/
<15> oh, this is my nickname too ;-)
<9> I thought about using Javascript, but that might get too messy
<3> dammit: Funny...
<3> migs: Ip's are asy, too
<10> ^Migs^ You could be _overkill_ and make a session id like $_SESSION['ads_viewed'] and just add the ad id in there and just use in_array() to see which one they've viewed, then pull from one of the ids they haven't
<10> man i've been having a hard time finishing projets
<10> I get to a certain spot in almost all of them
<10> then just move on
<15> tek_: you can always hire someone else to finish them
<10> dammit: yes but i'd like to be able to finish them myself... I just hit a block and recently it's been templates
<10> and how to get all that to go together... it's been a pain in the *** to learn
<16> Hi. Using FreeBSD ports, how can I get postgres support into php? (not a sysadmin)
<10> templates are simple, but making logic, display, all that for some reason is hard for me and i've been trying to come up with a good system but i'm getting frustrated
<6> anyone here use sybase or know where i can get the rpm module for php
<3> swissmade: Install php-pgsql
<17> tek_: im in the same boat as you buddy
<3> ComputerWarm: You'd need freeDTS for that
<10> the-drew I know I can code all the programs just fine... I Just can't seem to get a grasp on how to tie it all together
<3> Er... TDS...
<15> FreeTDS!
<16> Stormchaser: is that a command? Where do I run this, in the ports/lang/php directory?
<15> I've been freebsd port maintainer for it like... 7 years ago
<15> lots of dirty stuff in it back then
<17> im doing mine with modules... basically just using smarty for the templates and inserting a different module for each page, be it about us, inventory, or otherwise... i ***ociate the stylesheet with whatever template is selected
<6> Stormchaser freedts has the module i need to connect to sybase?
<15> ComputerWarm: use php-mssql if you find it
<3> swissmade: I have no idea... Try something like php-mssql or php-sybase...
<15> mssql speaks [almost] same protocol as sybase anyway
<6> oh ok thanks guys i will try it
<3> dammit: Well... Not naymore... MSSQL went trough an overhaul in version 2000, so it's safe to ***ume, that the conversation MSSQL<-->sybase is not compatible anymore
<18> Can somebody give me an example for creating a splitted window like irssi with Term::Visual which doesn't exit until I press ctrl+c ?
<3> #irssi
<10> say that 5 times fast
<10> irssi
<10> irssi..
<10> ERR-SI
<19> could someone hel pme with this please
<19> <?php
<18> oh damn.. I want to post it in #perl :)
<19> http://pastebin.com/561792
<3> !tell roundyz about pastebin
<19> http://roundyz.com/uni/***esment1/contact.php
<19> its a mail script that mails infor from a form
<20> *gasp*
<19> however, the info isn't being mailed.
<3> $subject = $_post["subject"]; <-- What the hell is this?
<20> I still wonder why I so often see "$var".
<19> Stormchaser: whats wrong with that?
<5> Hi all. Is there somewhere in the php.ini that I can add to the search path? Or does it use apache's?
<20> variables are case-sensitive
<20> ceeto, "search path" ?
<20> you mean the include path ?
<19> thats why it aint working then,
<19> brb
<5> Yep. Include path.
<5> i.e., a path that php will use to find modules that aren't in the standard dir.
<20> ceeto, here you go http://php.net/ini.core#ini.include-path
<3> roundyz: Please filter your input, if you stick it into the DB and/or mailing system...
<20> hi Storm
<3> yo, colder! :)
<5> Thanks.
<19> Stormchaser: what do you mean by filter my input?
<14> FYI, the same pcre regex doesn't work in php 5.0.4 but does in php 5.1.2.
<3> roundyz: Check, if the email is email, as horrible stuff can happen...
<20> Simplex3, which is ?
<14> Looking in string: <foo="bar" me="myself">
<20> and you mean, using the bundled lib ?
<14> This pcre: (?<=foo=").*(?=" me)
<14> In 5.1 it returns "bar", in 5.0 it returns nothing.
<7> is there something i could check to see if i'm on the server or just testing on my local pc?
<7> i need to separate the db connection vars


Name:

Comments:

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






Return to #php
or
Go to some related logs:

gentoo athlon X2 cflags
aircrack linux precompiled
ubuntu transset permanent
invetel drivers
#linux
#lisp
Gentoo rdns
install rtorrent on suse
suse add nonoss source
#linux



Home  |  disclaimer  |  contact  |  submit quotes