@# 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> I got an error : saying it's uable to connect
<1> I'm trying to write httpd.conf entries into a browser (for convenience working locally) and the line
<1> echo "<VirtualHost 111.222.111.222>";
<1> fails to echo -- anyone know what have to do to make this work?
<0> I don't understand why
<0> doen't the 5 mean : it it fails after 5 seconds, move on to next instruction
<2> svn users anyone?
<3> does anyone have any ideas why a get variable might not be set?
<4> hi
<4> i get errors on an easy php image upload form!!
<4> why? everything is activated? :(
<4> activated!!
<4> can anyone help me?
<4> people, i need help in configuring php for file uploading!! :( don't leave me alone
<4> i get [imagefile] => Array
<4> (



<4> [name] => happy-birthday-1.png
<4> [type] => image/png
<4> [tmp_name] => /tmp/phpaH7vbR
<4> [error] => 0
<4> [size] => 200993
<4> )
<4> but the file is not uploaded
<5> when theres a line of code that goes something like,,,,,,,,,,,,,,, $foo ? $bar : $doo, what is the term called for doin those single char's (?:) so i can look it up in hte manual, plz
<6> it's a for of if.
<6> ... There is one more expression that may seem odd if you haven't seen it in other languages, the ternary conditional operator:...
<6> Not the easiest thing to find!
<4> can i post the code that doesn't work? they are few lines
<6> use the pastebin
<7> when you have to use $_GET['var'] to access variables from the URL, that means that global vars is off for your php install ??
<7> and if yes to above, is there a way to declare them global in the php so as to access them like normal eg $var
<6> DaveQB: register_globals is off yes. And that is a good thing
<8> hello i have a problem ... i do know if is in my config file or in the script. error message is Warning: file() [function.file]: URL file-access is disabled in the server configuration in d:\docroot\softpedia.php on line 19
<8> ... i do not know
<7> so i have to refer all variables like so $_GET['var'] ?? cause i have some pages that have been working fine, but moving to a nw server i find they need to use $_GET['var'] to get a hold of them
<6> gangster`s: your php is configured to not allow ou to open url's using the file functions
<4> this is the code that doesn't work
<4> http://pastebin.com/536797
<4> the scripts is launched by the simple file upload html form
<8> Gargoyle: how do i configure to can use the file function?
<6> gangster`s: http://uk.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
<4> it always fails!
<6> alexxio: what error do you get?
<4> the first echo you see there :"Possibile attach with file upload" :(
<4> *the second echo
<4> always, but i saw from my connection that the file is uploaded but it seems not to be memorized in temp dir (it has permissions)
<6> you have warning messages displayed?
<4> no warnings.
<6> you have them enabled?
<4> yes
<4> you can try the page here: http://151.50.239.201/images/a.html
<6> doube check permissions on /usr/local/apache2/htdocs/images/
<4> chmod 777 *
<4> it has them
<4> i activated all the php.ini variables for this
<4> you can view the phpinfo() file if you want
<4> here: http://151.50.239.201/images/a.php
<4> what else can i do? i just installed the server , it is strange it doesn't go
<6> your code is operating on ['userfile'], but your debug is using ['imagefile']
<4> so?
<6> the code on the pastebin is not the code you are using!
<4> please tell me what should i do
<4> yes it is, i posted it right
<6> alexxio: no you did not!
<4> :D
<6> alexxio: The code in the pastebin CANNOT create the code I saw onscreen!
<4> sorry, but in pastebin i posted the upload.php file
<4> the upload.php file is what you launch from a.html page
<4> so i'm not understanting what you want to say
<6> right. The code in the pastebin cannot and willnot work for the a.html form.
<6> you have got the name wring in the $_FILES array!
<9> hi
<4> and so garg, what will i do?
<9> $$var doesnt work ?
<6> alexxio: Dude, this is basic array naming stuff. If you can't figure it out you need to go back to the docs!
<4> maybe it worked now
<10> Drim: yes it does



<9> since which version ?
<4> garg now it goes!! :D
<4> i just changed the name of the form!!
<4> that is what you wanted to tell me??
<4> :D
<10> <?php $var1 = "var2"; $var2 = "hello"; echo $$var1; ?> will output hello
<9> I test
<10> since.. a very long time ago
<10> :P
<6> I think God actually used that code when he created Adam!
<11> anyone remember what was the name of the function that returned a list of disabled php functions ?
<9> yes it works :`
<10> of course it works :P
<10> Drim: so what code do you have where it doesn't work?
<9> echo "update spip_documents set keywords=$$key
<9> it displayed
<9> $valueofkey
<10> ahh
<9> :\
<10> you can't put it in quotes
<9> :o
<10> try echo "update spip_documents set keywords=".$$key;
<10> that should do it
<9> Ok I test, thank you ;)
<12> can shell_exec output contain multiple lines ?
<10> ovis: pretty sure it can
<12> mmh oke
<13> hi guys, I'm after a bit of help, I need to get a query from a database where all the dates are before the current one, now that bit I can do, but what I need to then do is group them by their username
<4> thanks garboyle :D
<13> basically I'm grabbing "invoice products due" from the database, each product is a separate entry, so if one customer has 3 products I need to send them all out in the same invoice
<13> how would I go about doing this grouping by user?
<10> MikeH: and that has what to do with ##php? :P
<13> err, the fact I'm writing the script to do it in php?
<10> hehe, well i don't think sql questions are allowed here..
<13> its not entirely a SQL question
<13> which is why i asked here and not in #mysql
<4> Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /usr/local/apache2/htdocs/quera.php on line 2
<4> what does it mean?? it is just mysql_connect("localhost","user","pwd") or die("no");
<11> alexxio: your connecting a 3.x module to a 4.x server
<4> the server is mysql 5 but the client is...?? firefox??
<11> alexxio: no, its php.
<4> doh
<11> phpinfo() will tell you what version of the module you have
<4> what can i do meltir?
<4> i'm here http://dev.mysql.com/doc/refman/5.0/en/old-client.html
<13> 2 for mix, /q
<4> you are right , Client API version 3.23.49 (from phpinfo)
<11> alexxio: you cant do a thing unless your the admin AFAIK. if the server and mysql are on the same machine, complain to the admin.
<4> i'm the admin
<10> alexxio: windows or linux?
<4> linx
<10> alexxio: oh.. well dunno then :P haven't upgraded mysql client in linux before
<4> doh
<10> if it were windows though, you'd just have to replace libmysql with a newer version
<10> i suppose it's the same idea for linux
<4> what do u think meltir?
<11> alexxio: recompile php, it _should_ use the headers available on your system - those should be the new ones
<11> reconfigure and recompile
<12> niraj : in my attempt to do this, $check = shell_exec("/usr/bin/pdfinfo $newfile 2>&1"); i get only one line back from $check
<4> let me understand
<11> im not 100% sure on this thou
<4> if i reconf and recompile, it will install the same things or not?
<4> where should it take the newer libs?
<11> you installed mysql recently right ? wihtout recompiling php ? :>
<14> :)
<4> yes
<11> alexxio: if you compiled mysql by hand - its a good idea to point php to the sources it should use.
<4> ok
<4> i'll try
<4> but this guide will work? http://dev.mysql.com/doc/refman/5.0/en/old-client.html
<15> i need to simulate HTTP File Posting via cURL. how can i please?
<16> http://www.google.com/search?client=safari&rls=en&q=http+post+curl&ie=UTF-8&oe=UTF-8
<15> thanks
<16> Also see http://curl.haxx.se/docs/httpscripting.html


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
mac enable ssh tunneling
yum intall vnc
#debian
flash_eraseall netbook
#css
#gentoo
nzbget ubuntu compile
newtoubuntu
dapper midi /dev/sequencer



Home  |  disclaimer  |  contact  |  submit quotes