@# 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> how can i post to a https:// site from with in my php script and p*** variables?
<1> CURL
<2> elshaa: pastebin it, you've probably just got the cl*** syntax a little messed up
<3> anyone willing to tolorate some newb php question
<1> sure
<1> cant be worse than some of my gems
<4> I am unwilling to answer questions relted to 'can I ask a question;'
<1> myconid; he'll give you timbits if you do.
<1> schapht: oh yeah; i have to rewrite the SOA and the NS records in the zones first :D
<5> HolyGoat: you here?
<6> IN '^(Article\:)(Free_Code)(.*)$' , how can i change (.*) so it wouldn't match NULL ?
<7> 'can i ask a question?' i don't know, do you have the ability to begin a question with a "who what where when why or how" and end it with an question mark?
<3> I want to grab a value from mysql and i used mysql_query(SELECT column FROM table) and it grabs me the resource id. This is what my book tells me to do but it seems the author get different results, such as the column value
<0> dogwater, can you point me at some examples does that mean curl has to be there
<3> err row value
<6> teller not enough info, seems to be ok, check if tables are the same



<8> schapht: ok. look at http://pastebin.com/534259 . It's newbie code, I'm learning php.
<6> elshaa whats wrong
<4> elshaa: make a new page.. only put on it <? phpinfo(); ?> and load it in a browser
<2> elshaa: are you sure you're working on PHP5?
<7> teller: after doing your query, you need to fetch the row from the result array
<4> elshaa: what version of PHP does it say you have?
<8> Drakas: I got the error expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or { in line <where is "public $cl***">
<4> elshaa: please view my above suggestion.
<1> Trazz: well; its pretty easy to use cURL to do what you want.. you just read this http://us3.php.net/manual/en/function.curl-exec.php
<8> ok all. just a sec
<0> ok will try it
<0> thanks
<6> elshaa there is no "public $cl***" :/
<9> I'm never going to W3Schools again, their XML tutorial is 50 pages not even related to XML! Horrible
<6> ..in the code
<1> teller: $query = mysql_query("SELECT * FROM whatever where whatever"); $row = mysql_fetch_row($query);
<6> Loren :)
<8> yep, running "PHP Version 5.0.4" as phpinfo says;
<1> print_r($row);
<8> Drakas: sorry, I mean "public $name"
<10> !+select*
<11> You should consider explicitly naming the columns you wish to retrieve in your select statements. See http://www.parseerror.com/sql/select*isevil.html
<4> elshaa: what line is the error on?
<1> Jymmm: that was just an example
<8> myconid: line 8 : public $name = "";
<2> elshaa: your code worked fine in my version of php
<4> elshaa: what happens if you change public to 'var'
<8> myconid: that works
<8> (if I change public to var)
<12> you can't have the | operator in define() ?
<9> Q: What's the difference between RSS, Atom Feeds, and XML
<6> IN '^(Article\:)(Free_Code)(.*)$' , how can i change (.*) so it wouldn't match NULL ?
<10> DogWater: so is rm ~rf /*
<8> schapht: hummmm...
<4> elshaa: upgrade to a newer version of PHP 5 then
<8> ok.
<4> Loren: this isnt google
<5> echo "R"; for ($i=0;$i<1000;$i++){echo "a";} echo "h!\n";
<8> thanks all
<5> there
<1> Jymmm: the impact of rm -rf /* is slightly larger than SELECT *
<9> myconid: ?
<5> my screem for the evening without even flooding
<9> myconid: am I not talking to educated people?
<4> Loren: you jsut asked a question not related to PHP that you could find the answer to on Google
<13> JoshX: lol
<5> now excuse me while i go and clean myself
<5> *shudder*
<9> myconid: being a PHP developer, I'm interested in choosing XML, RSS, or Atom feeds in order to better my software. Yes it is related to php as php harneses these abilities, just not directly like what what is the use of explode()
<4> Loren: XML is a markup scheme for data. RSS and Atom are syndication formats that are defined in XML and are used with RSS/atom readers.
<9> thanks
<4> Which you could have googled yourself.
<3> I run the command from MYSQL command line and it works fine. Just not in the script. The column hold only one row soI dont have to search it. $result = mysql_query(SELECT myColumn FROM myTable) im using MYSQL5.1 and the table column that im trying to query has a value in it. Is there another function I can use or something I have disabled on Mysql? Sorry for lame question my school gave me somewhat dated books.
<4> goto google and type 'differences atom rss xml'
<9> if everyone googled everything, irc would not exist
<9> ;)
<14> Can someone get me the manual for echo?
<14> php.net/echo
<13> wow its busy in here
<4> Kcaj: paypal me $0.39 and give me your address
<9> once someone says something it's like a trikling effect and everyone gets in the convo :D



<4> teller: ... mysql_query(' query goes here note the quote -> ');
<15> Stormchaser: Thanks
<3> I tried it with the query variable too. I still get the Resource ID#.
<4> teller: what do you mean?
<15> Stormchaser: I finally figured out I need to set CURLOPT_RETURNTRANSFER to true.
<15> . o O (Now if only I can figure everything else out...)
<16> teller: mysql_query() returns a resource that points to the specific result set.
<8> oh, it's ok. In fact, the php5 version was installed in /usr/local/php5/bin/php, which is not in my $PATH, so the php engine used was /usr/bin/php, which is the 4.x...
<16> It's suitable for p***ing into functions like mysql_fetch_array() and such
<16> elshaa: You could just Remove /usr/bin/php and link /usr/local/php5/bin/php in its place.
<16> s/R/r/
<8> Clazziquai: yep, sure
<4> elshaa: you told me it said php5
<8> myconid: yes, phpversion says that
<4> elshaa: then how is it using php4?
<8> myconid: maybe because the .so librairie declared in apache is the one of php5 ...
<8> myconid: I'll make a test.
<3> $query = SELECT myColmn FROM myTable; mysql_query('query'); It return resource ID#, not the value in the column. There is only one value in this column so I dont need to search. I just want to store the columns value in a variable.
<4> teller: of course it returns a resource id.
<4> teller: you need to fetch a row, and then get the data from taht row, google php mysql and find a tutorial
<3> Im a newb, just following my cl*** book. In the book it shows it returning the value
<4> I highly doubt that
<17> darkk: There's not a formalized grammer for PHP outside of the sourcecode to the lexer itself.
<18> JoshX: sorta
<4> you need to do something like $row = $query->fetchrow();
<4> then echo $row[0];
<8> myconid: that works now :) (I just mv /usr/bin/php somewhere else, and ln -s /path/to/php5 /usr/bin/php).
<13> omg, why do ppl have cl***es for an SQL query?
<13> i've been wondering that for awhile..
<4> GregVernon: because it makes life easy?
<18> why does your mom have low morals?
<10> GregVernon: As opposed to hard coding the SQL itself?
<4> GregVernon: PHP doesnt offer a way to connect to SQL databases natively with a single command.
<17> myconid: That's decidedly untrue
<19> no native API does
<8> myconid: I think that even if I tell apache to use the php5.so librairie, it uses the php engine in /usr/bin/php (so the version 4)
<20> TML, source contains flex-generated analizer... source for the flex can be a good start point.
<4> TML: Show me how to connect to oracle, mysql, or postgres with a single command
<13> well, thats why you make ur own functions, etc, I mean, I just don't know why ppl make new cl***es for everything it seems like
<4> GregVernon: so there is a standard.. so I dont need to do it myself.
<3> Thanks. Serously though my book doesn't even show me the fetch function. Time for a new book. Thanks again, sorry for the llama questions
<6> how to match anything BUT / in regex?
<17> myconid: For MySQL, it's "mysql_connect". For PgSQL, it's pg_connect. For Oracle, it's oci_connect.
<21> [^\/]
<13> myconid: that works :)
<19> getting only one value back from a query is a very rare case
<18> [^\/]
<16> Drakas: preg_match( '&^\\/+$&', $string )
<18> feh
<16> err
<17> [^/]
<16> [^\\/]+
<16> Aww ****s
<17> No need to escape /
<18> well, yeah, depends on what you use for delimiters
<16> I forgot I used different delimiters
<4> TML: you just told me 3 commands..
<18> a lot of people use /
<4> TML: I wanted a single command
<4> Pear lets me connect to any database with a single command
<19> TML: he wants to query and get the values in one command
<17> myconid: You didn't say "PHP doesnt offer a way to connect to *DIFFERENT* databases using the *SAME* command."
<4> (any supported database.. for the nitpickers in the croud)
<19> myconid: so use pear
<23> myconid> no, PEAR doesn't...the DB module downloaded using Pear does
<17> myconid: You said it doesn't support connecting using one command, which isn't true.
<17> Each database type has its own one-command connector.
<24> i have a mysql database with p***words created with crypt($p***word,$salt);, in php which command should i use to compare a new p***word with the stored one?
<13> haha, I guess part of the reason I don't use cl***es for SQL work, is I only use mySQL
<4> rhavenn_: Nice nitpick, but incorrect. Thank you for playing.
<20> TML, anyway, thank you, seems, I'll have to reverse flex-generated code or ask developers.
<17> darkk: The flex is in .l files under the Zend directory


Name:

Comments:

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






Return to #php
or
Go to some related logs:

1280x800 fc5 855
#centos
#math
emerge Failed on RMD160 verification
perl regular expresion negate OR negates
mod_mysql_vhost ubuntu
nx6125 rhel
azureus quits gentoo
swig LPCTSTR
#ubuntu



Home  |  disclaimer  |  contact  |  submit quotes