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



Comments:

<0> hmm
<0> try just Sum(DepositPaid) ?
<0> or =Sum(.....);
<0> what you doin tonight?>
<0> gRim's a *****, he's got no cash so doesn't want to do anything :|
<1> hi, I'm trying to install phpbb, and I'm getting an error about no mysql module
<2> I'm unsure... I think I'll have an early one
<2> superfoo: is that a joke?
<1> aidan: yes, I read the topic and couldn't help myself :)
<2> oh good
<2> Macca`: It prompts me for that value when I do that
<3> is it possible to somehow load the PCNTL extension even if it wasn't compiled in?
<4> yoyo
<0> no idea sorry aidan. :( i gotta boot
<5> how do i have more then one db connection?
<5> $link = mysql_connect('localhost', 'user', 'asdf');



<5> is how i am doing it now
<5> i perl i would just $link2 = mysql_connect('localhost', 'user', 'asdf');
<5> but that does not look like it would work
<5> because of calls like mysql_select_db("bmname");
<4> that will do
<4> $foo=mysql_connetct.... $bar=mysql_connect...
<3> daMaestro: if you take a look at php.net/mysql_select_db you'll see that there's an optional second parameter
<4> and then mysql_query("whatever",$connection)
<4> or even mysql_db_query($db,$query,$connection);
<4> http://php.net/mysql
<5> thanks
<5> i will try the ,$connectionObject
<6> Is there a way to have file_exists check a URL.. or a function to do it?
<2> does anyone have coral draw?
<2> I need to convert some files to .png
<2> or anyone know of a utility to do this?
<4> coral?
<4> i have corel
<7> aidan: ImageMagick's convert tool
<4> yep
<6> Is there a reason get_header() isn't defined o.0
<6> php 5 ah nvm
<8> how can I echo the modified time from a file when the piece of code is in it's header, this only shows the modified time for the header: <meta name="DC.date.modified" content="<?php $file_stats = stat(__FILE__); echo date("Y-m-d H:i:s", $file_stats['mtime']) ?>" />
<5> foreach( $_POST['checkboxDataName'] as $idNum ) {
<5> is returning 'Array' as a $idNum
<5> any way to fix this?
<3> is it possible to somehow load the PCNTL extension even if it wasn't compiled in?
<9> daMaestro, use print_r to see what is in it and then modify you code to get it
<10> is it ok (as far as programming practice is concerned) to use printf() instead of print or echo?
<10> my code would look alot cleaner with printf i think so i was just wondering
<11> beebop: nothing wrong with printf afaik
<10> ok. just from code ive seen doesnt seem to be used alot
<10> ill use it anyway
<10> :) ty
<9> beebop, as long as you don't hve so many it messes with speed
<10> lig: ok so use it for strings where there's alot of variables being thrown in?
<9> beebop, why not just use a double quoted string?
<10> yea i do that now
<10> i think its mainly my SQL statemenst look messy.
<10> i dunno i guess if it works leave it alone its just a bit ugly to the eye
<9> can I see an example of one that looks messy?
<8> how can I print the modified time for a file from it's header.php, this fails: <meta name="DC.date.modified" content="<?php $file_stats = stat(__FILE__); echo date("Y-m-d H:i:s", $file_stats['mtime']) ?>" />
<9> sifi-xz, what do you mean fron it's header.php?
<10> lig: now that I look i guess they arent that messy.. it just seems to look messy when you're using arrays and {} stuff
<10> $sql = "SELECT COUNT(*) FROM code WHERE category = {$results['id']}";
<10> i dunno that looks ugly to me
<10> for some reason
<10> but its fien right?
<10> fine*
<9> beebop, it's fine - and you could always move it into a working var and then use that.. *shrug*
<8> lig, I have 2 files, 1 header.php and 1 index.php, in the header I use <meta name="DC.date.modified" content="<?php $file_stats = stat(__FILE__); echo date("Y-m-d H:i:s", $file_stats['mtime']) ?>" /> to declare, but this will only be for the header.php and not for index.php
<9> sifi-xz, that is because __FILE__ is the header file
<8> lig, I know, but how do I select the file that is using header.php instead?
<9> is header included?
<12> how can I transfer something from iso8859-1 to utf-8
<8> lig, correct
<9> sven_GP, define transfer
<13> morning people
<12> I have an input from a Form field which I want to save in utf-8 (as XML)
<8> lig, so how do I fix it?
<9> sifi-xz, why not make a var then that holds the calling page and use it?



<12> the input seems to be in iso8859-1 and I want to change the format of it
<8> lig, yea =)
<12> something like a function which changes the coding
<8> lig, but then I would need variables in each files
<9> sven_GP, have you looked at the mbstring functions? IIRC there is a convert_encoding
<12> lig: ok found something now seems to be utf8_encode
<12> thanks
<9> sifi-xz, maybe something like - calling page - $callPage = __FILE__; and in the included header page - content="<?php $file_stats = stat($page);
<8> lig, thank you =), it works fine
<8> lig, but that requires $callPage = __FILE__; in each file, damn
<14> I want to take an array that has 12 items and recreate it as an array with 3 items each containing 4 items. Is it possible??
<9> [aJ], sure
<14> lig: what function would I use?
<14> or would I use a foreach()?
<9> depends on how you want the final array to be
<15> http://news.php.net/php.notes/102520 <--- most useful usernote of the day
<9> :D
<14> lig: I want the finally array to be array(0=> array(0=>'', 1=>'', 2=>'', 3=''), 0=> array(1=>'', 1=>'', 2=>'', 3=''), 0=> array(2=>'', 1=>'', 2=>'', 3=''))
<9> [aJ], I don't think you can have duplicate array keys
<16> obviously, they wouldnt be very effective keys if they werent... "keys"
<14> array(array(array(), array(), array()),array(array(), array(), array()),array(array(), array(), array()))
<14> that better
<14> sorry
<14> is there a way to split an array?
<9> explode
<15> http://news.php.net/php.notes/102524 <--- *falls off chair laughing*
<16> I guess the temp part was lost on the poster :)
<15> someone obviously didn't notice that tempnam() returns a string with the filename :)
<5> how do i print a newline?
<5> perl it is \n
<2> what a twat
<15> "If you have a __destructor() in a cl*** that is stored in a $_SESSION, that object will have all it's values NULL'd out when you do a session_start() and try to retrieve the object.
<15> "
<2> daMaestro: same
<15> er
<5> sweet.. thanks
<15> why the heck would you want to store a cl*** in a session var?
<9> daMaestro, just make sure it is in double quotes
<15> http://news.php.net/php.notes/102532 <--- *gouges his eyes out*
<15> http://news.php.net/php.notes/102535 <--- wtf?
<17> how i could split numbers of string ?
<2> if: example?
<18> Is there any way to verify if a file exists on another server?
<17> aidan: the whole idea is that i want to generate html color for some strings..
<19> i getting 'page cannot be displayed.. blabla' 5 seconds after click on upload with large files .. its php or apache problem?
<19> i changed all possible configs on php
<2> if: ... what does that have to do with "splitting numbers of string"
<2> inter: use a better browser
<20> bamm`laptop you would need to make a connection, best way would be too have a file on the other server that uses file_exists and then returns the output(so your script can read it)
<19> better than firefox ?
<17> i'm trying to do that with md5($string) and then to split the numbers of the generated md5string and to use the numbers for html code
<2> inter: firefox should give you a real error, "page cannot be displayed" sounds like IE
<18> Was more of for someone to submit a picture from a diff url... it checks see if file exists first
<2> if: uh, why?
<19> aidan its same error
<19> 'the connection has canceled' ...
<2> inter: what's the exact error firefox gives please
<19> my firefox is in portuguese
<2> okay ... well I'm off
<17> aidan: i don't know.. :/ how i can do that to generate color for string which i want to colorize ?
<19> The connection was cancelled by the server while the page was loaded.
<19> aidan its apache/php error
<19> less than 50k files = ok .. larger = error
<21> So, did that chap from yesterday ever end up securing his site?
<18> Ah got it scott-mc.. just allowed fopen to open url's... :]
<22> i need help from a mac user
<23> Rich97, if you expand on your problem, maybe somebody - who's not a mac user - may be able to guide you through the right path
<22> yeh its a problem with a format that a client sent me
<22> its written on mac
<23> what is written on mac? Format of what?
<9> define format
<22> its a document but my pc cant read it
<22> it just comes up as File on my pc


Name:

Comments:

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






Return to #php
or
Go to some related logs:

portage: ACCESS DENIED access_wr: /
#perl
#bash
#php
Kooldock twinview
emerge invalid atom
XML_Serializer+fedora
gentoo mtd runlevel
#perl
ubuntu PCI: Cannot allocate resource region



Home  |  disclaimer  |  contact  |  submit quotes