| |
| |
| |
|
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> TML, No one needs to use it. <0> TML, I just /need/ to code something <1> still not working <0> Same error? <1> yeah <0> Update the code <1> It works fine until I add the part about ORDER BY $_GET['sort'] <0> try ORDER BY $_GET[sort] <2> http: So instead of coding something useful, you're going to re-invent the wheel? <3> j-linux: or above that line do $sort = $_GET['sort']; <0> TML, What should I code then? What is useful? <3> and then line below it.... ORDER BY $sort <1> removing the single quotes worked... now an error on line 15 :S <1> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <0> j-linux, That was one of Slade's first suggestions <3> prolly because $_GET[sort] is empty
<3> http: yeah, people tend to ignore me. :) <2> http: An online scheduling system with automatic conflict management that allows import and export of iCal files. <1> ok... now it works... the initial display doesn't work, but clicking on a header works... I understand now... <3> j-linux: also, i'd recommend using mysql_fetch_row instead of array <1> Slade: ok... I'll look into it... Why is that better? <1> http: I must have missed it... <3> j-linux: preference :) <2> http: Or how about picking one of the projects Mark Shuttleworth is looking for someone to step up and deliver? <3> j-linux: whenever i used mysql_fetch_array() i'd have to do: mysql_fetch_array($result,MYSQL_***OC); <3> i hate extra typing <3> mysql_fetch_row($result); <1> Slade: ok, thanks... <1> I have to shutdown now... cafe is closing... Thanks for your help... <2> http: Or join one of the eduforge.org projects <3> any time <3> j-linux: buy me coffee :) <1> ok... I'm probably at least 5000 miles away from you though... <3> heheh <3> i live in NY, USA <2> http: I could probably continue in this vein for several hours <1> I'm in Honolulu, so 5000 is about right... :) <1> 10pm... store is closing... <1> thanks again... <4> http://bc.tech.coop/blog/images/curves.jpg <3> im jealous of him, he's in hawaii and im not. <3> he's in a warm tropical environment. I'm freezing by behind off... <0> wtf, how does notepad have a learning curve? <5> ... <6> "Learn to type in this box" <6> :P <0> lol <4> notepad comes with a wizard showing you how to open and save files, but you have to set an option in notepad.ini first :p <6> heh <7> when creating many objects in php5, is there a way to manually free certain objects, other than letting them deconstruct? <6> unset($obj) <7> is that something that is important to do explicitly? <8> argh im killing myself here.. rah *waves arms in air* its so hard! $string = '<input name="Number" type="text" id="Text2" value="1234456">'; how do i use preg_match to give me 1234456 only back <8> *cry* <8> preg_match('/id="Text2" value="(["^]*)"/',$string,$matches); ??? <9> dtb, i would do: <9> preg_match ('/id="Text2" value="(\d+)"/',$string,$matches); <2> dtb: Your regex doesn't match. Try using value="(.*?)" instead <8> ur a f.. genious <8> mwa! <10> hey ligament <10> er, autocomplete, sorry lig <11> :D <12> guys, how do I post raw xml using php? <13> <?php echo '<xml></xml>'; ?> is the minimum you need <14> use echo <14> r print with sigle quotes <12> OK thanks <12> ***uming I posted an xml as you described above, how would php client read and parse it? <12> i.e. does it arrive within $_POST? <13> php cilent? <14> it would print whatever you have thrown to the client as it is <13> oh duh. you want to POST the XML data <12> deadroot: yes <14> if you use echo or print with single quotes <12> OK i've posted XML data
<12> now I'd like to consume it on the other end <13> no. to POST data, it's a bit more complicated <6> What's the quotes got to do with anything? <13> __a: you'll need to send the appropriate HTTP headers as well <14> its all about parsing <12> i.e. ***ume client posts XML, now I'd like to obtain whatever it posted and parse and do some stuff with it <13> __a: do you know the HTTP headers involved in POSTing data? <12> deadroot: nope <15> there's no headers <13> there are. "Content-Type: application/x-www-form-urlencoded" <15> the point of POST data is that it's the body of the request <15> well, that's to do with submitting a form rather than POSTing data <13> that is POSTing the data <15> yes, but you can send any fil fype via POST <13> the forms are submitted via POSTing the form data <15> *file type <15> application/x-www-form-urlencoded means that the POSTed data should be interpreted the same way as a query string would <13> oh yeah <13> hmm... normal form submits also submits the data in that manner <15> yes <13> so that is what __a wants, iianm <16> in case anyone is having trouble w/ lexical vs dynamic: http://www.flownet.com/gat/specials.pdf <13> what is lexical and dynamic? <15> deadroot: definitely not. __a isn't p***ing a query string as POST data, he's p***ing XML <15> so conteny-type should be text/xml <15> *content <13> oh <15> POST != form <13> okay <12> I want to do 2 things <12> 1. post some XML data in response to some GET query <12> e.g. http://foo/bar.php?id=123 <15> __a: you know how when a server sends a page to you, there are headers and then the main body? <12> GarethAdams: sure <15> well, when you send a request to a server, again, there are headers and a body <17> lexical scope returns the value defined inside a function when it is defined, dynamic returns the value defined most recently but applied by the function <17> i finally get it <15> the body of this request is what the POST data is <12> now for the above i'd like to return '<xml><name>foo</name><surname>bar</surname></xml>' <15> the heaers tell the server about the data <17> why does the hyperspec use circular definitions? <15> when you say 'post' do you mena back to the user, or to another server? <15> you weren't clear before <12> GarethAdams: another server will consume it <15> using curl is probably the best way to handle it, to be honest <12> GarethAdams: can I create an XML document using DOM and post it with just print? <18> is possible to list files in directory in "created time" order ? <19> hi everybody! I was looking for a function to convert a string to a currency value with cents (es. "44.58")... any help? <15> __a: Should be able to <15> put you have to use a method of the DOMDocument to output it <15> *but <15> and that's if you're ok handling the connection yourself <13> Cavallo: use a platform specific system() call ;p <2> golan: php.net/money-format <19> TML: Thanks, but I don't have strfmon capabilities :-( <2> Cavallo: Use something like glob() or the Directory cl*** (php.net/dir) to read the directory in whatever order your OS uses, get the filectime() of each, and sort them. <2> golan: A crippled C library? Hard to say what *will* work, then. <19> TML: hmm... maybe I should doublecheck... everything works fine... maybe I did some errors in writing the PHP code... <19> thanks, I'll check it now <20> hi there /join #php <2> __a: As GarethAdams said, if you're doing HTTP calls from PHP, you'd be far better off using something that does the heavy lifting. curl or the PEAR "HTTP_Client" package come to mind. <21> where is the site one can post some code to? <20> how can i display a (loading) page during a prcess and when having finised a final page should be something simple ... <0> efic, http://code.bulix.org <0> or pastebin.com <21> thanks <19> TML: my bad, I did an error in the PHP code... now it's working... many thanks! :-) <2> efic: As suggested by the topic, you should ask php-bot about our channel guideline before proceeding too far. You've already asked one question that is answered there. <20> how can i display this loading page during th eprocess :) ? <22> php is not very suitable for that coca <20> Ruud: cant i do it somehow i dont want to use javascript <21> anyways <0> coca, AJAX is the only way...
Return to
#php or Go to some related
logs:
slapd -d 16383 ubuntu example com FATAL: Module wlan_scan_sta not found. ubuntu md resync #linux #css kde not in active session gtkatlantik #suse gnomebake #css
|
|