@# 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 30 31 32 33 34 35 36



Comments:

<0> volcom: try JavaScript
<1> kodekrash: i am not an experienced web coder but i'd ***ume you'll need to make a way for ppl to correct your database. ideally you want to get some friends to help you write the code. all this is IMHO and I may be wrong
<2> What are people using for forms libraries these days?
<3> unfo: yeah, collaboration for maintainance is taken care of... but I have to build the system first
<4> yea i find a ton of stuff talking about serverside cookies but no example code or tutorials on it
<3> jules: wrote my own
<2> kodekrash: I did too.
<5> http://www.phpbuilder.com/tips/item.php?id=179
<0> well that is mostly because serverside cookies are called sessions
<6> fgbah
<1> kodekrash: good luck
<1> ttyl all
<4> well i mean, will it still work like a cookie?
<1> volcom: y
<7> unfo: i think i will get the learning php book



<7> if its no good i will sell
<7> it
<4> unfo: just testing somethin out
<0> It is a cookie by definition
<1> junix-other: i can sell you mine
<1> junix-other: i am located in toronto, canada.
<4> yea i know that. I just need it to work in conjunction with another one of my applications, and my app uses cookies not sessions
<1> junix-other: interested?
<1> kodekrash: cool
<3> unfo: yeah, it's a bit nippy
<1> no he can't
<1> :)
<8> how can you redirect a web page ? do you have to do it in the <head> tag?
<4> header("Location: yourpage.com");
<3> thehil: http://php.net/header
<7> unfo: how much?
<1> junix-other: to ship to where?
<7> Missouri
<7> did you write in it?
<9> uhh
<1> junix-other: i didn't write in it.
<7> k
<1> Eleaf: should this be PM?
<1> junix-other: PM ok?
<7> yes'
<9> unfo, should what be pm?
<9> oh
<0> volcom: http://www.phpfreaks.com/tutorials/41/0.php
<9> eh, other people aren't talking very much anyways
<9> but possibly
<9> ;p
<10> nice to see the author updated that tutorial, to use $_SESSION and no longer session_register
<10> junix, be sure your book was written after php 4.1.0 came out :)
<11> if you have a form that posts data to another file how do I retrieve the data from the other file
<11> do I use the post variable or get variable?
<10> depends on you
<12> somebody use phpa?
<10> read php.net/variables.external
<4> hmm... i think sessions may work. How do i set the different values like i would with a cookie? or rather, ***ociate them all to "one cookie"
<10> volcom, you read the manual on sessions?
<10> $_SESSION is easy to use
<10> much easier than cookies
<0> PHP takes care of that for you
<4> yea i did
<0> or you can ***ign a sesion value to the session
<13> I keep hearing that sessions w/o cookies are insecure
<10> that's bogus
<4> hmmm
<10> cookies are insecure :)
<10> technically everything is insecure :)
<0> lol
<5> simple existings comes with several properties, one of them being insecurity
<4> see my problem is, the app i am trying to work with uses cookies. It's a security problem i believe, but i can't create cookies from my local php, to my servers. So i want to try and store them serverside
<14> night
<4> (local php that is)
<4> then try and forward my local to my server, and see what happens
<15> What's wrong with "RewriteRule ^links/(.*)$ links.php?cat=$1"? I want it to go from http://domain.org/links/categoryhere to http://domain.org/links.php?cat=categoryhere.
<0> $_session['hello']="thisvalue";



<10> wow, what a bad example ;)
<4> buy i know setcooke("name", "values", time()+3600, "/", "domain") has all those values and they are ***ociated together. So im kind of confused how i could do multiple sessions for say domain, path, and value and have them all ***ociated
<15> Anyone?
<10> session is not an alternative to cookies, volcom, i think you are a little confused
<10> you just worry about name and value
<4> yea thats what i was thinking, i want to make serverside cookies... and everyone keeps telling me sessions, i think this is the root to my confusion
<0> use a cookie for what a cookie does
<10> let php worry about the rest
<0> and a session for what a session does
<4> and it should work?
<16> volcom: Yes. It does...
<13> everywhere it talks about the SESSIONID variables inserted in the url and sent to the site
<10> like magic, go test it
<4> so only name and value? and it should go through?
<10> create two pages, with sessions, p*** stuff back and forth
<0> follow the tutorial
<10> php.net/session-start has such an example
<4> yea i've used sessions on numerous occasions... it's just my current problem, i'm a bit confused how i would use cookies in this manner
<0> use cookies as they are
<0> to p*** values use sessions
<0> if you want to p*** domain
<4> yea i got that, but i think my app has a problem with the way i let users login. I think my cookies can be tampered with, and i just want to try it out for myself
<4> so im trying to do it locally and create a cookie, but i can't make one for my remote domain. So i thought, maybe if i do it serverside it would work
<10> you have a cookie value named admin, with value 1 or 0? ;)
<4> of course not, a bit more complex than that... a few decryptions, conversions... ect ect
<4> but i think the method is flawed, and i want to test it and figure out why
<10> then stop talking, and start doing! :)
<4> lol argh, but now im confused
<4> i think i need a good sleep
<10> think about it as you lay in bed
<4> maybe i'll figure it out when im unconscious, as my consciousness doesnt seem to be doing me much good :D
<17> if i am using fopen('out.log') - how do i give it the correct permissions?
<4> chmod it?
<17> volcom - does fopen() use the relative path?
<18> SupIAmMike: yes it does, unless you specify an absolute path
<17> also i would rather do chown instead of chmod - i dont want it to be read by everyone just the php group
<17> how do i find out what my php group is?
<18> SupIAmMike: chown is a root command, generally, so you'd want to do that outside of your script's execution
<4> ah well im going to sleep, thanks for all the help guys
<17> numist - well i am not root
<18> night
<4> g'night :)
<17> i have my own /home/xxx/public_html/trunk/ directory
<18> SupIAmMike: then you're stuck.. make the folder world-writable and let php create the file itself
<0> night read the tutorial tommarow
<17> hmm ok
<18> then you'll have it owned by whoever php runs as, which, on a proper server, is you
<17> should i have it do a seperate folder?
<17> like /blah/out.log
<17> so it doesnt change the original .php file
<18> when allowing a script to write to a folder, its a good idea to make sure that it is secured from attacks to the script and from local user
<18> users*
<17> i mean so i dont have to give it privleges to do that
<18> as long as the folder is world-writable, php can create files in there, but so can anyone else, so once php has created the file, chmod the directory back to something secure, if you must use this method
<19> hello, i'm wondering if anyone knows a way of finding out how much CPU time a script has used?
<18> in a perfect world, php would run as your user
<18> elouise: are you on a unix-like system?
<19> yeah
<18> sec
<19> openbsd
<18> elouise: you probably want to check out http://us2.php.net/manual/en/function.posix-times.php
<18> it gives you things like user/system cpu time, real time, ticks, etc
<19> that looks good, thanks
<18> er, scratch real time, you get to do that yourself
<8> What's the fastest way to turn a TAB delimited text file into a INSERT SQL query in php?
<19> nah i dont care about real time
<3> thehil: parse it
<18> explode("\t", $textfile) and use that in an intelligent manner
<18> explode in a loop, even
<17> echo "$this->_filename <br>"; $this->_fp = fopen($this->_filename, ($this->_append) ? 'a' : 'w'); outputs logFile/out.log
<18> SupIAmMike: what version of php are you using?
<17> 5
<18> use file_put_contents then.. its really handy


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Presario V2000 horizontal sync
#kde
preg_replace remove tag
python freeze.py library
hope breik
supaplex clues
theoco
danskmand
irc perl room
lilo usplash howto



Home  |  disclaimer  |  contact  |  submit quotes