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



Comments:

<0> eek too many questions
<0> try and ask in one line
<1> TheLibrarian: php.net/count, php.net/sizeof
<2> thx
<0> linux2: just shove error_reporting(E_ALL); at the top of each fole
<1> linux2: error_reporting(E_ALL); ini_set('display_errors', 1);
<1> Alternatively modify your php.ini
<3> ok thanks
<1> Mm... and of course .htaccess, php_value error_reporting E_ALL and php_flag display_errors on
<0> Razz3r: open relative
<4> Techboy: what do you mean
<1> Razz3r: echo getcwd(); // tells you the current working directory.
<1> That will tell you from where you are working, and if you include relatively, it's based from that path.
<1> The preferred (mine, at least) is to use include_path's
<5> another way would be include dirname(__FILE__).'/my_file.php';
<3> $html_body = array(['midcol'], ['rightcol'], ['leftcol'], ['banner'], ['footer'], ['menu'], ['login']);



<4> kuja: home/ukcs/public_html/affiliates
<3> does that look on
<3> ok
<0> no, it doesnt
<0> i have no idea what you just tried to do
<5> oo sorry just saw "relative"
<3> make an array called $html_body
<1> /home/ukcs/public_html/affiliates/languages//header_footer.php exists?
<5> is there any difference worth worrying about in performance between if/else and the ternary operators?
<1> linux2: Remove the []'s
<0> you doing include("templates/header.php")?
<0> real_b***man: Depends what you are coding
<0> real_b***man: And how much people are going to use it.
<4> Kuja: yes
<5> techboy: haha ok so if nobody is...
<1> real_b***man: No, there is nothing that should concern you.
<1> Razz3r: Then I'm stumped. I can't help.
<5> ok wicked cheers
<0> real_b***man: no then
<1> It doesn't matter how many people use it.
<1> It is none of your business.
<0> Razz3r: are you ding include('templates/header.php');
<0> becauseit says youre including something that doesnt exist
<3> kuja: humm, ok i did that but my server is still showing this error...
<0> kuja: I didn't ask, I said "it depends how many"
<3> Parse error: parse error, unexpected T_VARIABLE in /var/www/html/system/html_header.php on line 12
<0> are you missing a semicolon somewhere..?
<1> Techboy: It doesn't depend on "how many", and to anyone who chooses to use whichever, it is none of their business to worry in the first place on performance issues.
<3> Techboy: maybe, let me check
<0> kuja: If you were coding something which were to be used by alot of people frequently then performance may become an issue on the server
<1> Techboy: Over if/else and ?:, no.
<3> $html_body['midcol'] = mysql_query (select * html midcol);
<1> If you must worry about such things, use C.
<3> would that work?
<0> no.
<1> Once again, it's *none of your business* to worry about such minor details.
<0> kuja: if you insist, i'll just let you handle all the performance questions then.
<1> linux2: It looks like you need to learn about strings. php.net/types.string
<1> Techboy: Sounds great.
<3> kuja: ok thanks, i was reading a book on it but i think it kinda teaches it poorly
<1> Yeah well, that's what you get for reading a book :)
<0> haha
<6> Techboy: i've found a problem... the parsers does not like quotes ( " ) it signals errors when they occur... any ideas?
<0> use different parser
<0> you cant write xml without quotes
<6> i know
<6> but it's the f****** php xml_parser
<6> it should work
<0> then thats likely an issue your end
<0> cause well, it does
<0> Use a different example at least :>
<3> $html_body['midcol'] = mysql_query ("select * html midcol")
<0> no
<0> $result = mysql_query("whatever query");
<0> well
<0> sec
<3> i can't use an array?
<0> yes you can
<0> you're just getting the result wrong
<0> check out here:



<0> http://php.net/mysql
<3> yeah its not outputting anything
<3> but i do have data in the table
<0> i cant see why it would
<0> since "select * html midcol" isnt a valid query
<7> is there an official PHP coding standard?
<0> eleftherios: nah probably not
<3> Techboy: basically i want to store my html in a database and then grab it whenever i need it on one of my pages
<3> although im a little lost on how to do so
<0> there are better ways heh
<0> are you thinking "select midcol from html"
<3> Techboy: yeah im trying to make my own CMS
<0> im like. lost with what that is supposed to do
<0> maybe you should start with easier projects :P
<8> Purrrrrrrrrr ^_^
<3> Techboy: yeah already read a whole book on php and mysql
<3> did a ton of little projects
<3> im just kinda confused on how to tie it all together to make a fully dynamic website
<0> Linux2: sounds like i wasnt a very good book (no offence)
<0> for now, I'd recommend you use something premade and get a bit more up to steam on writing it yourself
<1> Well, the website may be dynamic. But it's likely that your database isn't. That makes it a whole lot easier. You just design your database and just put the pieces together. You tell what to do what with the database, how to interact with it, what to do with that data. PHP will handle all that.
<3> Techboy: im also kinda wondering were else i can learn php and mysql, cause i have been teaching myself mostly and it is rather hard to learn everything in a reasonable amount of time
<0> ditto kuja
<1> But I'm guessing 3 years isn't a "reasonable amount of time"
<3> yeah not really
<0> meh
<1> I don't like to rush things, anyways.
<3> i want to get a website out soon
<0> I learnt fast when I started learning them
<3> so i have been reading and reading
<0> it even
<4> kuja: I have tried messing about with the path but Im still having problems
<1> If you try to rush anything, your software will end up worse than what you could have done if you had just taken the time to learn and design it properly.
<1> That's the same as if you're reading a book or teaching yourself using online resources.
<1> I think it's much faster to read and teach yourself from the online resources. There's many tutorials, examples, and references.
<9> Proper programming requies a lot of patience
<4> kuja: here is my newest error Warning: main(home/ukcs/public_html/idevaffiliate/config/database.php) [function.main]: failed to open stream: No such file or directory in /home/ukcs/public_html/idevaffiliate/config/config.php on line 24
<3> MikeSeth: yeah
<1> Books are just a portable way of learning.
<0> Razzer2:put a "/" on the start
<3> MikeSeth: i just wish it was easier way to learn it all
<1> They, of course still don't compare to any of the stuff you can learn by just researching online.
<4> Techboy: ok
<0> I learnt php from um, a book
<0> the book was like 3 years out of date
<9> linux2, there isn't any. By the end of the day what determines your capability is experience
<0> so I just scrapped that and used php.net
<1> Programming books will always become out of date :)
<0> yup.
<8> when I got my first PHP job, my boss sent me to a php website to learn and gave me books for small references, not to learn otu of
<10> hello anyone know a way how i can buffer my homepage but also grab errors well its buffering
<4> Techboy: that has lessened the amount of errors I am reciving
<3> Techboy: well maybe you guys can give me some suggestions on how to go about what i want to do
<9> You know what's the most depressing thing? I live 20 km from the main Zend offices. You'd think there'll be a lot of competent people to hire in this area...
<10> so at the end i can do if errors go to a new page else show buffer
<1> kittyanya: There's still one thing though. You can't learn a programming language even from a book without a computer to try it on :)
<10> ive tried a few ways
<4> Techboy: Im still getting Warning: main() [function.include]: Failed opening 'languages//header_footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ukcs/public_html/idevaffiliate/templates/header.php on line 19
<10> but no ways seem to work with ob_start();
<0> Change "//" to "/"
<8> kuja: true, true. my first command was <?php phpinfo(); ?>
<9> won't help tho
<10> anyone have any idea's how i can attempt this /
<1> kittyanya: You remember? Do you remember your first word since birth? :)
<8> Mom says I said dada first
<9> my memories are more like "god I hate hate hate hate perl god hate perl stab die perl die die die"
<1> I think mine was "pizza"... though what do I know.
<0> perl h8. facestab.
<0> Apparently my first word was some feeble attempt at table
<11> My game ----> http://www.thricesoft.com/download.php?list.5


Name:

Comments:

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






Return to #php
or
Go to some related logs:

debian do.maintenance script
aedating cart problem
#xorg
how to put a script in ifup.d
#linux
#linux
#debian
bcm43xx_microcode5 apt-get
+fluxbox +emwh
#gentoo



Home  |  disclaimer  |  contact  |  submit quotes