| |
| |
| |
|
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
Comments:
<0> It's simple <1> any one here familar with linux <2> colder, I know, I started my question refering to array_unshift, but I'm having problems with it <3> Hi all, I'd like to grab data from a MySql database and then strip the data of duplicates e.x 1,2,2,1,2,3 for it to strip it too 1,2,3 anybody got any ideas? <4> i know that i do! i just would have been easier to use a function which works without changing the whole code! But if it's not possible... <5> ingrato, well, if you want an non-numerical index, you'll have to use $new_array = array('key' => 'new value') + $sorted_array; <3> is there a strip function or something <2> colder-: how do I insert the item? array_unshift ($array, array([key]=>value)); doesn't work <6> firepower: to do what? <0> MonsieurBon: That's where you messed up. There is absolutely *NO NEED* to make it so you have no control over your output. <7> GarethAdams, if you're interrested in how good your code works, keep an eye on eml.nu ;-) <2> ohh <8> firepower: group by <3> GarethAdams: to list the results to the page <6> eml: nah, I know it's good ;_#) <3> lith: how do you mean?
<7> GarethAdams, :D <4> kuja, I do have control over my output! :) <2> colder-, thanks that worked :) <0> MonsieurBon: Then you shouldn't have a problem sending that redirect header :) <5> ingrato, you're welcome <8> firepower: select col1, col2 from table WHERE col1 = 'foo' group by col1 <9> MonsieurBon: why not just run that part of your code at top of your file? with a _GET parameter.. like.. myfile.php?send_mail=1 <8> well actually that select that i just posted was idiotic <8> group by col2 <4> kuja, it's because i called the mailing script over a _Get parameter in index.php. The forms goes to index.php?page=send. It could also go to send.php directly. So fixed already. Thanks for your help, guys <6> eml: I know you've got safe_mode on, but you should probably do some more validation to check the dir given <7> GarethAdams, such as? <6> otherwise if you move the code to another server, or turn safe mode off, http://eml.nu/?dir=/ could be a problem <9> agh i hate php <8> monsieurbon: Also if your p***ing the message to your email form through a GET variable, there is a charactor limit... you may want to use POST <9> it's get more and more buggy for each version <9> i think i will migrate totally to java instead <9> or even perl <7> GarethAdams, that should just make an error <10> is there any way to get a cookie set in http://www.mysite.com to be read in http://mysite.com <10> ? <4> lith, you're right, I'm actually using post! :) <7> even with safe_mode off? <3> lithit's to grab car makes from a table, i want to grab all the makes sort by ascending order, strip so theres no duplicates and then display to the page, any ideas? <7> since permission is not granted.. <8> fanskapet: php is nice , i dont have any problems with known bugs <9> lith: i have <3> lith: it's to grab car makes from a table, i want to grab all the makes sort by ascending order, strip so theres no duplicates and then display to the page, any ideas? <8> fanskapet: like? <9> the exec function architecture seems to be pretty much screwed up <8> firepower: yes.. group by makes <9> adding a exec row launching imagemagic's convert app makes the whole script crash <6> eml: well people would be able to see your directory structure <3> lith: will try thanks <7> GarethAdams, ok, I'll add it <9> or the http session for the browser crash even. <8> Fanskapet: use GD then <9> but it sure is php who causes this <1> in linux how cna i chnage the php.ini <9> eh.. GD ****s and this isn't any problematic relating imagemagic <9> it's a bug in php <9> imagemagic works like a charm in bash <0> Wizz_Kidd: phpinfo() will tell you which php.ini PHP is looking for. <9> exec() should just let the system start the application <9> that's the only thing it should do. <1> kuja: i installed the php package how cna ido that <8> Fanskapet: i wouldnt use exec() to manipulate images anyway <1> i have to run it i ***ume <0> Good job Sherlock <0> :P <8> Fanskapet: compile PHP with image magic support and use built in functions <0> Um <11> Jymmm: You arround? <0> PHP doesn't have ImageMagick support in ext/ <0> ImageMagick is part of PECL <8> kuja: well i spose that is one option ;) <1> if i put an extension in my php extension dir do i have to load it in the php.ini or can i jus load it through the script with dl('dfsd'); <8> I just enjoy recompiling... makes me feel like i know what the **** im doing <9> or just change to perl or java instead. <12> itrebal: no <11> Jymmm: oh.... ok, do you know wherei could get headers to solder on my AVR?
<8> Fanskapet: then change to perl or java, but quit bitchin about it in here <9> if php has begin to show bugs on even such basic implementation of functions one should really consider migrating to another language. <12> itrebal check your irc logs. I gave you then url's to a few places <11> Jymmm: alright <0> How goes it <9> php has really became more and more buggy for each release.. not as it should.. less buggy <9> a couple of years ago it worked like a charm.. bleh. <12> itrebal: or are you tlaking online? <1> anyone wanna anwser my easy questionm :P <8> Fanskapet: problems like the ones your talking about typically come from poor ability and habbits... using exec() for what your doing is an example of that <0> A couple of years ago it was the ****tiest thing around. Now it's loosening up, Fanskapet. I think you have a reverse clock. <11> Jymmm: online, stores, anywhere - i went to Radioshack, they were dumb little ****s like they always are, but they have somethings - but didn't have this <0> register_globals probably has to be one of the ****tiest things, and yes that was some years back. <9> lith: ehm? <0> So you can't really say it's getting worse. <12> itrebal: http://www.google.com/search?q=surplus+electronics+florida&sa=Search+Google <1> in linux do i have to load the php ext in the php ini or can i jus put the ext in the dir and load it through the script with dl('dd'); <13> hello <9> yes. register globals was bad indeed. <0> Wizz_Kidd: It's better to load it in the php.ini <1> is it required ? <1> im trying to avoid it <9> but it shouldn't be any bugs in this small and basic function and especailly they should do something about it. <0> Wizz_Kidd: Either way, if dl() is enabled it should work, ***uming the extension was compiled from the same source. <1> i use mandrake its set up a little different <1> same source ? <11> Fanskapet: there are bugs in any function, big or small <0> Well, just cause of that you shouldn't use dl() <0> Wizz_Kidd: sudo updatedb; locate php.ini <0> Run that <0> Stormchaser! <1> sorry try again <1> thats what it says <0> When you sudo, enter your root p***word. <1> i did <0> If it asks. <0> Is your user on the list of sudoers? <13> I have what I think is an interpolation problem ($this->text('title') holds "Example page"), my echo in the following code prints out "Example page" instead of "bar" <13> $myArray = array("Example page"=>"bar"); <13> echo $myArray[$this->text('title')] ; <13> any hints? <0> Wizz_Kidd: `nano /etc/sudoers` and add yourself <0> The point is though, you need to find php.ini <14> wuzzap, bitch! <14> Um... Er... I mean kuja :) <0> Whether it's in the place that PHP is looking for it or not, cause you can't just go crazy everywhere and use dl() <0> Stormchaser: >>hurt feelings<< =( <12> kuja you have no feelings <1> theres one 1 php ini on here <0> Yeah, I thought no one would notice that, ****! <14> kuja: Well... you can, bure that's a faliure in your logic... <0> Wizz_Kidd: Is it the same one PHP is trying to use? <14> kuja: So? IS KDE korean-friendy? <0> (phpinfo tells you this) <0> Stormchaser: Hell no :p <1> i would guess right only 1 of them <1> first time running php on linux <0> Stormchaser: Ended up back on GNOME lol <15> how to configure gd2 with php? <0> Ivco: Depends how you're installing PHP, and your OS <1> im using kde <1> this extension was made for php 4 i think <15> kuja its installed <1> can i still use it in php 5 <0> Ivco: Right, so *how* was it installed? <0> Wizz_Kidd: No <1> it doesnt speicfy but its about 1.5 years old <0> If you're on Mandrake, I ***ume you're using Mandrake's packages? <14> kuja: You might want to bug #kde-devel a bit about that :) <1> http://72.14.203.104/search?q=cache:PW2PW21TPCsJ:php-tk.sourceforge.net/documentation.html++site:php-tk.sourceforge.net+php+tk&hl=en&gl=us&ct=clnk&cd=2&ie=UTF-8 <15> the os is fedora core 3 and the php version is 4.3.11 <1> thats what i am trying to install .............getting paid to update the package
Return to
#php or Go to some related
logs:
#linux fatal: open /etc/postfix/main.cf: Permission denied nfsstatd rhel mssql_bind() ubuntu #qemu #php #perl cedega ati radeon 9200 ubuntu uninstall totem ubuntu #linux
|
|