@# 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> Jymmm: true...
<0> hackmiker: google... 'php login script tutorial' etc etc
<1> how do i go through each item in a _POST?
<0> foreach ($_POST as $post) {echo $post;}
<2> One item at a time.
<1> phpmattk_, rock on
<3> yeah
<3> anyway
<4> hi. can i just copy a php binary if i want it to be used on a computer that doesnt have the whole apache thing?
<4> usr bin php
<2> Ehm...
<2> How do you plan on using it without a webserver?
<4> cli
<0> aalex: ya, you should be able to.. you can run php without having apapche/litehttpd etc, from cli
<4> cool
<4> because, i dont like to learn 1000 scripting languages



<0> you dont need to learn new languages to install apache
<5> Is there a way to set the memory_limit to something larger for just a single script?
<0> ini_set
<5> You're beautiful.
<0> im just being a karma whore, i was trolling the other day and felt bad about it.. heheh
<1> phpmattk_, how do i call the name of the field?
<4> phpmattk_: dont wanna install apache on my knoppix CD, but want to use php
<0> i wrote a script that i store on my remote server, and when i boot up knoppix i wget that file from the server and run that script (which installs apache/mysql)
<6> Does anyone have any web hostingb providers in particular that they recommend?
<0> also installs ror too
<0> ev1 is good people, ssh all the goodies
<6> I know it's a bit of an off-topic question. I'm looking for one that supports PHP and MySQL minimum, preferably on a Linux server running Apache.
<2> http://www.tollfreepage.com/
<0> Elazar: http://www.ev1.net/english/index.asp
<2> Pretty much EVERYTHING nowadays supports PHP and MySQL and is running Apache under Linux.
<0> they are pretty good. dont block shell access.. or try and run your webserver for you
<7> http://allhyper.com/members/login.php <-- Love it.
<1> phpmattk_, is there any way i can pull the variable name from the _POST?
<8> Elazar: well, do you know of any host that does NOT run MySQL and Apache with PHP on Linux?
<1> how to put in a key... i guess is what i am asking.
<8> cause I'd like to know about it...
<2> array(key=>value, ...)
<2> Sphex, http://geocities.com/
<9> daMaestro: print_r($_POST)
<9> daMaestro: the keys are there
<8> FreeOne3000: heh. this ain't really a host. :p
<0> daMaestro.. i cant remember off my head.. one sec
<2> I'm running MySQL apache and PHP on windows.
<8> creepy
<10> I would like to develop an online application is there any framework to ease development?
<8> it's called PHP
<10> for now I read about smarty and pear
<6> sphex: Off the top of my head, no, but I've heard of hosting providers running Windows before.
<2> Sphex.
<1> foreach( $POST_ as $key => $value){ echo $key.' '.value;}
<1> ?
<2> No... array(key=>value) is for creating arrays. See aidan's solution.
<1> i don't just want to print the vars
<0> daMaestro... that for loop is right.. $key will echo what you named the form element in the HTML side
<1> sweet
<1> thanks
<2> Wow.
<2> I did something right on accident.
<11> lo
<2> lo stands for "Landsorganisasjonen i Norge". Never knew that.
<11> hello
<0> ahh.. here is what i was looking for.. casts post values to variables based off keys foreach.. ($_POST as $key => $value) {$$key = $value;} little late now
<1> that is sick... i have wanted something like $$key = $value since my days with vb6
<1> php is looking a little better now :-)
<2> <bias>Looking like VB is not looking better.</bias>
<0> variable variables.. mmmmmmm
<12> in C, we call those pointers
<1> how i do i call the name of the var?
<0> yeah, its a bit different in php.. however it uses the same notation as c =>
<0> errm.. never mind what i just said
<13> phpmattk_: you could just use extract($_POST) to do the same thing
<9> except that's BAD
<9> phpmattk_: that code is stupid, don't use it
<0> yeah, i know.. the real bit i wanted was the $_POST as $key => $value
<9> dannyp: a variable variable is NOT a pointer
<0> what code my for each or extract?



<9> either ... extracting POST vars to the global scope is incredibly poor form
<13> both :)
<9> there's a reason why it's disabled by default
<12> aidan: no, it isn't, it's a crippled pointer
<0> yeah, i typically dont do that.. unless im writing somthing to make generic output based on any form
<9> dannyp: how is that a pointer?
<12> it's not a pointer, but pointers have all of the functionality that variable variables do
<9> dannyp: there's no such thing as pointers in PHP, the closest thing we have is a reference, and even that isn't really close to a pointer
<2> Reminds me of pointers versus refrences.
<9> man, how? you're comparing apples to oranges
<0> a pointer in c is like an alias.. it points to an address in memory.. under a different name
<2> Turns out the only practical diffrence is that one breaks easier.
<12> conceptually, a pointer is an address and *pointer dereferences the pointer, and a variable name ($key) is referring to a variable at some address, and $$key dereferences it
<9> right, so you could call $var a pointer ... points to an address in memory under a different name
<14> no, because two pointers can point to the same bit of memory
<2> Or is it a refrence?
<14> two variables can't acces the same data
<2> Can too. $b = $a.
<9> $b &= $a;
<14> then change $a and $b doesn't change
<9> that's closer to a pointer than a variable variable
<14> this is where we get to references ;)
<2> Except that array copies are shallow. So b[3] = 5; means a[3]==5.
<9> ah don't bother this conversation has been doing so many times
<9> FreeOne3000: no they're not
<2> Not in PHP...
<2> In like, one language.
<2> Or more.
<0> http://www.embedded.com/story/OEG20010311S0024 difference between pointers and references (regarding c) (there are no 'pointers' in php unless you consider function callbacks pointers)
<15> how can I take a radio button with onclick=\"this.form.submit()\" and p*** the vale as a variable as well?
<15> value*
<0> document.form.element.value
<15> erm
<12> that's not regarding C, that's regarding C++
<0> dannyp: * and & works the same in both
<0> slid3r: what do you mean exactly? when you submit the form.. it will be available in $_POST on your action url
<12> phpmattk_: umm... int &r; as a declaration, is not valid C
<12> I don't know C++, but I know C, and what I saw on that page (int &r;) isn't C
<0> well.. nevermind then..though you could regarding c++
<16> can u install apache on a windows machine?
<0> KyNe: sure but i wouldn't recommend it
<16> why not
<0> beacuse its unstable, and insecure
<0> but.. http://apache2triad.net/
<14> use it for development, but don't run a live server
<0> that is a good installer... it will install php/mysql/ all that crap.. takes the pain out of getting it to work in doze
<16> hmm
<16> kk np
<0> if you want a really lite installer foxserv is cool, but its old
<16> nah i was just curiouse
<16> to the fact that ikf u can or not
<16> so phpmattk_ how the **** are ya
<17> hmm, okay so I have a script that lists all files/links/dirs in a folder, now I use $_GET['location'] to define which directory that should be listed, but.. if I location=q4, that'll be /home/eml/public_html/q4/ in my case, but I get an error message about permission denied if I use that, so what CAN I use before "q4"?
<16> q3
<16> 3 is before 4
<16> nah jk ask someone who knows =D
<15> thx again phpmattk_
<0> eml: what perms are set on q4?
<17> phpmattk_, well, I created it as the user "eml"
<0> what if you use . instead of /home/blah/blah
<7> !tell KyNe about u
<16> its a habit
<17> ok, I'll try that, php has permission for q4, I tried to move the script there
<0> . means in this directory (of the current script) .. means in the directory above the current directory (of the current script)
<17> $dir = dir("./"$_GET['dir']."/");
<17> oh
<17> hehe
<17> with a dot ofc
<7> !+english
<18> ##PHP is an English only channel. If you need support in some other language, please try elsewhere.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

whatis fscking
tizwonder
php mysql_last_error
#xine
utsa doesn't exist
linux 2.6.15 NPROC Resource temporarily unavailable
#suse
svn method not allowed quakenet
I prefer vim
#math



Home  |  disclaimer  |  contact  |  submit quotes