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



Comments:

<0> the body of an http request? what's that?
<1> like in header/body
<1> of an http transaction
<0> like.. a GET request? or a POST request?
<1> post in this case
<0> $_POST ?
<2> is there any way in PHP to throw a new Exception type without actually declaring it? Like declaring it inline?
<2> I'm thinking something like: throw new cl*** TrialTaskException extends Exception{};
<3> not sure but i really doubt that
<2> Me too, but I thought I'd check
<2> I know java can do some interesting tricks with that stuff
<2> but I don't know if it goes as far as exactly what I'm trying to do
<3> schapht: i just tried it; syntax error
<3> just extend it somewhere else
<2> yeah, I did too. I thought maybe the syntax was just a little different. Yeah. I'll do that. It just always seems like a shame to have so many cl*** declarations that are basically one line
<1> jasz, that does not work. I want the body as-is



<2> soyt: have you looked at $_SERVER? Seems like it might be there
<3> schapht: i know; anonymous data structures are not something php "does"; perl loves them however
<0> soyt, ... are you generating the body of the request? or are you getting it from another machine?
<3> schapht: i'd love to have anonymous arrays and hashes so I don't have to give everything a name
<0> sounds confusing. maybe soyt is looking for curl
<2> Narada: how do you index it without a name?
<3> hash slicing is another feature i really miss
<4> hash slicing?
<5> Hello and greetings to ALL
<3> schapht: there are ways of creating and using a data structure without naming
<3> schapht: it's been ages since i did perl though so forgive me if i don't remember the syntax but i did find it incredibly useful; special variables were lovely too
<5> I have LAMP on a server, and have been told that I can apply the PHP config of magic_quotes_gpc to ONLY a single VirtualHost in Apache, can anyone point me to an example or some docs?
<6> you ppl mean $_ @_ and stuff like that?
<3> Rick: yes; split('/', $randomDataStructure)[6] gives you the seventh element of the split
<4> ahhh
<7> no, that goves you parse error
<7> *gives
<3> Stormchaser: this is not php code
<4> Stormchaser: that's what he *wanted*
<1> jasz, I'm generating the body and I'd like to parse in a certain way. I just want the raw string.
<3> Stormchaser: it's probably closer to perl but since i can't remember the syntax it is more likely to be pseudocode
<7> Narada: yet this is ##php...
<8> oscommerce is the most awfull code i have seen since i started coding... my first tryes with php looked better than that lol!
<7> Ah, tyhat's acceptable :)
<3> heh
<7> hartym: Look in to phpnuke
<8> Stormchaser, i looked out then throwed it lol
<0> soyt, .. then you need to use ob_start ... this will buffer all output and you can use it later..
<0> http://us2.php.net/ob_start
<8> i like nicely thought oo code that takes you 10 minutes to debug.... first stuff i found in that oscommerce installation (of one of our client) was a nice include of a $xxx
<8> knowing oscommerce asks for register_globals.......
<8> but even their queries system is so low level you cant think of every place you'll have to chane for a simple modification
<7> hartym: Oh, well... phpnuke doesn't do that, but their 'fix' if 'phppuke' :)
<7> s/if/is
<8> i love new db frameworks it makes your code and the way your code is thought so nice...
<8> Stormchaser, i know phpnuke is a disaster... hey funny how they called it no?
<1> jasz, my problem is that the request is not generated by php, but I'm forced to use php to press it on the server, and to process it I want to retreive the body as a raw string. but it seems not obvious to do that in php.
<1> s/press/process/
<6> well apache started that way, it was "a patchy server"
<0> soyt, .. maybe if you use a template engine (like smarty) .. you could get the html content and parse it?
<9> anyone know what this maeans PHP Warning: DOMXPath::evaluate() [<a href='function.evaluate'>function.evaluate</a>]: Invalid or inclomplete context in /web/devel/rolf/mynatnet.com/html/auto/***et.php on line 15
<1> but it is _basic_ http. how come php can't do that?
<8> well after 4 hours of "look for the stupid error", i'm out to smoke!
<10> in ereg('string.php$',$string) how do I make the .php optional for the match?
<11> If you have 119 lines in a text file; and you use file_get_contents to pull them into a string; and then you explode the string putting it into an array (seperating on every) \n, what are the possible causes of 120 array definitions (119 being empty)
<7> dogOR you can use file()\
<7> Erf :/
<7> duanear: Don't use ereg
<11> Stormchaser: ah, that works better.
<1> so there is really no way I can retreive the raw content of the current request?
<12> $min = 0; $max=2; $checkValue=1; is there a function that allows you check if: 1) $checkValue is either between $min or $max 2) $checkValue equals either $min or $max 3) if it doesn't meet the requirments in 1) then exit? :) my head is fubar, so cannot figure out how to go about this :)
<13> when i have short_open_tag = on.. can i make it NOT detect <?xml
<13> ?
<14> Small question, i read about the chmod value 4000 to automaticly give new files in the directory the same mod as the dir. Should i write it like 4777 then for all new files can be r/w/e by all?
<15> Hi all, I'm having a few problems writing some PHP code to search a MySQL database. It's being parsed OK, but does not return any sensible results. I think my query may be wrong. This is the query: $sql = "SELECT * FROM my_table WHERE 'Field'='$search'";
<15> Is there a easy way to search ALL fields in a table for a specifc word? (or part of a word)
<14> this will only return the values that are EXACTLY like the $search used
<16> BlackShuck: this is off-topic here, but...don't quote your field names.
<14> BlackShuck: check out FULLTEXT
<16> stream: you can use <?php echo "<?xml ..."; ?>
<15> is FULLTEXT a MySQL query keyword?



<13> i figured out how to cahnge it off for just one vhost
<13> php_admin_flag short_open_tag Off
<13> aparently apple's iWeb uses <?xml
<13> and apache/php parses it as php
<14> BlackShuck: fulltext searched, example query:
<14> WHERE MATCH ( product.".strtolower($_SESSION['language'])."_title ) AGAINST ('".$string."')
<17> I just installed the php-cgi.exe of 5.1.2 successfully with iis 6. I'd like to read the username that IE submits to the server automatically (this is an active directory network). Are there any docs on how to to that?
<14> remember tho, make fulltext indexes, these will help a lot in speed.
<14> BlackShuck
<14> ---^
<14> slightly more like #mysql material btw tho lol
<16> kernelpnc: print_r($_SERVER) and see what's available.
<18> Is it illegal to name a cl*** constructor like the cl*** itself in PHP 5?
<18> (i.e., must PHP 5 cl*** constructors be named __construct()?)
<3> cl*** constants have no visibility right?
<19> how do i register my nick?
<18> /msg nickserv help register
<20> carefully
<17> CryWolf: Its neither in the phpinfo() output nor in $_SERVER
<17> CryWolf: do I need to activate some pp-filter thingy in iis6?
<19> tnx
<7> you have a pp-filter in IIS6? Ew.
<16> kernelpnc: if it shows up nowhere in phpinfo(), it's probably not available. You can try print_r($GLOBALS), which will show you every variable. Other than that, I've never touched IIS before.
<16> kernelpnc: if you're using AD, you should have a Windows admin there you can ask.
<16> One of them msce type people.
<19> hi
<19> what can i do to stream video (from a webcam) to a browser using php? is that possible?
<21> krinkx im not sure about streaming but what you can definately do is create software that would simply take pictures every secs from the webcam and then save into files
<21> and then php could simply output them somehow
<16> krinkx: how would you stream video without php?
<21> OR, you could get into advanced level of getting data from the webcam using php and somehow streaming it agian ;]
<19> drakas: so it wouldnt be realtime if that is the case right?
<19> crywolf: i actually dont know... is it possible? using a browser?
<22> could a "double" data type contain a negative sign?
<23> krinkx: depends on the video format the webcam device presents
<23> if to sends you motionjpeg it would probably be not too hard
<19> llcw: how can i do it?? please give me some tips... i have a friend who asked me to do a web app where people can see each other while doing chat but using a browser...
<23> krinkx: read from the device and echo to the browser
<17> Is it safe to use the php 5.1.2 isapi instead of the cgi version for iis6?
<16> krinkx: is the server supposed to be getting data from client webcams?
<23> it will probablt take some experimentation
<23> and might take a transcoding step
<19> that is my understanding... the server will get pix/video from clients and send to other clients... is there a client side/browser technology that can do that?
<24> hi, im having the following issue: i created a script that saves p***words in a mysql database with the function crypt using a salt... i used this script with no problems in RedHat 7.1, PHP 4.1.2 and MySQL 3.23.36.... Now Im migrating to Fedora Core 3, PHP 4.3.11 and MySQL 3.23.58 and when I try to compare the stored p***words with the same script i get no match... any ideas?
<24> it seems crypting is being done differently with the same function
<16> krinkx: somehow I doubt javascript can interface with a webcam...flash might be able to. That sounds like a job for an IM client, though.
<21> krinkx it would be realtime if you would use java based software
<24> im using the same stored salt (the first two characters) to crypt the p***word but i get another string, not the same on the database
<21> but that would involve a separate computer port
<16> edobefe: php crypt or mysql crypt?
<23> krinkx: most webcam stuff does use java
<21> krinkx : http://www.flashkit.com/movies/Basics/Interactivity/more6.php
<21> you should find something there definately; keywords = webcam, conference
<24> CryWolf: php crypt... I created them with: $p***word=crypt($p***word,$salt);
<19> drakas: what java based solution are you suggesting?
<21> krinkx something starting with F, i don't recall, i used it very long time ago. try google and pm me when you got one's name
<18> So,
<21> i can tell you if it is right
<18> cl*** constructors in PHP5: may they be named the same as the cl*** name?
<19> ok tnx...
<21> hmm, if you are not new into c++ or other programming, you can get source code of some IM software
<9> anyone familiar with xpath in here? I need to know how to uppercase a string comparison
<24> CryWolf: i try to compare them with: $salt=substr ($p***word_in_base, 0,2); $p***word_to_check=crypt($posted_p***word,$salt);
<21> and hack it
<16> rapha: php.net/oop5
<21> winmutt : if i got it right, if ( strtoupper($str) == strtoupper($str2) ) {...
<18> thx CryWolf
<24> CryWolf: it works fine on the old PC.. on the new one, crypted p***word strings are not equal
<16> edobefe: php.net/crypt says different hashing algorithms may be used.
<8> is there some way to do a SELECT distinct ..... without having to write our own method?
<3> well group by is preferable to distinct if possible
<3> what do you mean by "without writing your own method"; do you mean without writing the sql yourself?
<8> Narada, propel doc says if you want to do more complex request you have to write sql, but i saw somewhere a Criteria::DISTINCT so i think you can do it with criteria. But what i wanna do exactly is SELECT DISTINCT types from Movies;
<18> Too bad.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#centos
polyester keramik kde
mn-120 linux
#linux
#perl
perl escape pipe
+ltsp emu10k1 howto
dbi fork perl
wiki % escape symbol
growiso burn example



Home  |  disclaimer  |  contact  |  submit quotes