@# 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> NickJane: $a = array_map('basename', $a);
<1> awormus, I'm new to writing web servers, is my statement correct? That you need internet access for WSDL to work?
<2> arpad: Ouch, now that confuses me. The array is based on data entereed into a form.
<3> HJBIII: wsdl is just an xml file that describes your web service
<2> arpad: The array is equal to $_POST['sources']
<2> arpad: do I have to give it the varaible a?
<2> $a = $_POST['sources']; then use $a = array_map('basename', $a);
<0> NickJane: you want to apply basename() to every element $_POST['sources']?
<0> of^
<1> awormus, So you don't neceserily need to connect to the internet for your WSDL file to work??
<4> Can anyone give me a pointer on this: http://phpfi.com/118450 it's more logic than code really
<2> arpad: $_POST['sources'] is a html form which users will type the URL to an image to upload, there will be multipul fields and I want to keep the same filenames. Therefore, yes I want the basename of each entry of the array.
<3> HJBIII: if people want to connect you your webservice, and they are not on the same network then you need to be on the internet
<3> but that's not the topic here
<0> NickJane: in that case you probably want something like $basenames = array_map('basename', $_POST['sources']);
<0> then $basenames is your array of base names



<5> hmm, i've got a web server with a bunch of asp stuff written on it.. and it's using some bloody dsn connection to a database, i havn't a notion what database it's using,, there doesn't seem to be mysql
<5> is there something i can do to work some form of databaseing with php 4.3
<1> Oh..Ok, Bit new to IRC also.....Really appreciate the help. Thanx awormus
<6> Fresh meat >:)
<5> kittyanya, scary...
<6> Nah, I'm a good kitty :P
<5> uhhuh
<7> any module for displays photos with small icons without having the thumbails??
<7> any script for it?
<5> !tell novata_peleona about G10
<2> arpad: Mabye you could ***ist me a bit more: http://hashphp.org/pastebin.php?pid=6724
<5> ooh, doobie brothers....
<0> NickJane: in that code $basename is an array of the filenames in $_POST['sources'], not a single string
<7> NET||abuse, onlye asked for how to do it?.Any function for read a directory where are all pictures, make then thumbs and open then with window.open?
<5> novata_peleona, not yet, how about you write one?
<0> NickJane: if there's more than one filename in $_POST['sources'] then you need a loop somewhere
<5> novata_peleona, what you will need, gd2 libraries
<5> novata_peleona, have a look at http://www.php.net/gd
<7> okis
<7> i will
<0> NickJane: and '<?php $self ?>' does nothing, just make it action="" if you want to submit to the same page
<2> oops, I had $self = $PHP_SELF; accidentally deleted that line
<2> But thats the easy part, I still don't understand what excatly needs done with that basename. How can I make it process 1 string at a time?
<0> NickJane: where you have the call to download() you need a loop. something like foreach ($_POST['sources'] as $src) { $des = 'downloads' . basename($src); download($src, $des); }
<0> NickJane: (since you need to loop anyway the array_map before isn't necessary)
<8> I need to run chown from linux in a PHP script, is system() the best method for this?
<0> there is a chown() function in php
<9> Elviso: is your script running as root?
<8> CryWolf, I'm not sure. I'm in a hosted environment, is there a way to tell?
<8> I kind of doubt it.
<5> if php is root on it, what's your ip....... muahahahaha
<9> Elviso: if you are running as root in a hosted environment, find a new host
<8> heh
<10> any good ideas for a really great php project? to practice my skillz?
<5> burk, build yourself an ajax personal photo gallery
<10> hmm, i dont like ajax
<10> :P
<5> then your in trouble
<11> make a torrent site with better sorting options
<10> torrent sites are kindof exposed to angry people ;)
<5> build a free personal site portal and call it myarea
<10> oh yes, maybe ill do that
<10> no
<5> hack your cities traiffic light control grid and build a web interface to control it and open it to the public!!! muahahaha
<10> some time ago everybody thought, lets stop using javascript since its not working for everyone, and then all of the sudden all websites need to use this new technology called ajax that is so great. javascript isnt bad, we can use it for ajax! everyone though
<10> t
<3> burk: Ajax is what Java wanted to be back in the early 90s
<10> abuse: hmm, i'd like to make something in php, not try to hack something thats not hackable
<12> Javascript is sweet for little nice extras. Otherwise I hate it. =)
<5> burk, i've got a good suggestion.. practicing your skills to a good standard, build an audio format converter, input one codec and spit it out in another... wma to mp3,, all that lark
<10> i still dont like javascript or ajax
<12> AJAX is way too much work.
<5> http://code.google.com/webtoolkit
<11> java could do a lot more than ajax, just the politics and slow vulnerable runtimes ...
<10> audio converters is something you download and use as a program :P
<5> shmooz, slow, vulnerable.... yeh, just little things
<13> burk: but isn't it the case now that javascript works pretty well
<13> i mean before it was a nightmare because of inconsistencies between browsers and so on...
<11> things could have been fixed imo for java



<11> hype to hype , whats next
<10> igge: still not all browsers can use java, but i agree, its not so bad for the small extras
<5> i think ajax has a good foothold since the mindset of the xml/xhtml developer is now being applied with javascript much more often.
<5> the big browser vendors are finally being forced to adhere to the standards more now
<10> the thing i hate most is people who think: now we can make a whole website without making the user reload, we can just add tabs and ugly loading bars, yey
<5> and even then there is a happier medium of interoperability of js
<2> Arg, anyone else have FTP problems after doing alot of trial and error? (Re-uploading the same files alot)
<10> so no really _good_ project ideas? like an browser based game or something
<10> ?
<5> burk, uhgg,,, browser based games,jhuck
<10> :P
<5> that's what flash and shockwave are for
<10> not if its like an rpg or something
<10> try nationstates.com
<11> burk it all exists .. google
<5> build a 3rd party certificate independant standard for email encryption
<10> wtf?
<2> arpad: Still there?
<0> NickJane: yeah
<5> http://file.sugarqube.com/Cards/jblo_The_Worm_Game.swf?PL=L400x300
<10> did you ever catch it?
<2> arpad: I'm not having any errors now but it's not getting the files.
<5> hehe
<14> Hello
<0> NickJane: time for some debugging... check it's getting into the loop, what download() returns etc
<11> burk you could make a quiz for teachers to upload their questions and make like a game quiz for the students keeping track of marks and whatever
<14> I am wondering how I can get the value of a post variable and set it to a string with php
<15> $value = $_POST['name'];
<14> thank you
<15> you also have $_GET
<15> and $_REQUEST seems to have them all
<0> don't use $_REQUEST unless it really doesn't matter where the input comes from
<14> it matters
<14> it will be from a post
<0> $_POST is the one then
<14> thanks :)
<15> arpad: why does it really matter? POSTs can be spoofed just as easily as GETs
<14> i dont want the info in the address bar so i am not using a GET
<2> arpad: Here is an update for ya to glance at: http://hashphp.org/pastebin.php?pid=6725
<2> I'll see what i can debug :P
<0> pdc303: in general because you might input from somewhere you're not expecting, eg. you can prevent most reflective xss attacks by only accepting $_POST
<14> I secured my site with an SSL, so the post is secured now right?
<14> I don't know if a GET would be secure
<15> arpad: ok then. I will take your word for that
<0> the difference between what $_GET and $_POST are supposed to be used for is something else - http://www.w3.org/2001/tag/doc/whenToUseGet.html
<0> NickJane: i'd var_dump() the return value of download() for a start
<16> you know, 1s/MB of CSV parsed including validation, isn't bad at all
<2> arpad: I don't know how to use var_dump() the manual don't excatly help.
<0> NickJane: var_dump(download($src, $des));
<2> hmm, thats what I did. lol Nothing happen.
<2> Which is why I thought I did it wrong
<2> Nothing happens when I do that var_dump(download($src, $des));
<5> awww, i leave for 5 minutes and the net splits
<0> NickJane: well var_dump() always outputs something, so it can't even be getting there
<5> what peoples favourite music to listen to whie coding?
<17> enygma
<5> hmm,
<2> I like the sound of silence, unless, I was just speaking with my girl. Then I like lound music that can releive stress...
<5> hehe, i feel your pain
<2> lol
<18> why can't i find the exact file on sf or freshmeat?
<5> can't live with em.....
<2> Ok, anyway. This code is stressing me right now... ARG!
<18> i type gedit, nada.
<5> da`bahny, em.. what are you working on?
<2> Any suggestions arpad?
<5> da`bahny, what platform/nix distro?
<19> Hi all! I need from string such as <IMG SRC="/path/probe_html_4ec24a67.gif" NAME="" ALIGN=ABSMIDDLE HSPACE=8 WIDTH=52 HEIGHT=24> extract in string only filename
<19> howto?
<0> silya_: preg_match()
<1> cheers all
<0> NickJane: if it's not getting into the loop, then do an echo just above the loop to see if it gets there, etc
<5> hehe, use simplexml to get the attribute
<5> :P


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xcompmgr fluxbox slow
xgl-compat100
modify a list in a list tcl
preg replace change backreference
#perl
/proc/sys/net/ipv4/conf/all/shared_media
#gimp
suse usb slow eject -e -u
#math
in PDF with PHP



Home  |  disclaimer  |  contact  |  submit quotes