@# 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> hmmmm ok... I was hoping to be able to use some php vars to hold the info that I could read
<1> DrSpin, the files get deleted periodically.
<0> I could put it in a cookie and delete the cookie
<2> refreshed the session and still nothing -- I can't locate the cookie file on the windows box either
<2> rixth: See above
<3> SaintCrowdness: you can put the query in there but not the sort because you won't know what it is until they click on it and you would have to send it to another script to be able to put it in there.
<1> DrSpin, run "echo SID' wait. Is the the session constant? Is there a session constant?
<3> SaintCrowdness: is any of this making sense ?
<0> yup Rubberneck it is
<2> rixth: at the terminal or as a PHP command?
<3> SaintCrowdness: just making sure sometimes i don't explain things well
<0> I typically program in java and jsp, not php
<1> DrSpin, php command.
<3> SaintCrowdness: i don't think it would matter because the page is stateless no matter what you do
<0> well with jsp, I can instantiate an object and hold it in the object
<0> and they wouldn't see any of the info that's in the object



<0> I could even persist the session in that object
<1> DrSpin, http://pastebin.com/750604 that's what I get./
<3> SaintCrowdness: how are you going to set anything until you have sent what they clicked to the script ?
<0> if I was using java, I could instantiate the object, put the info in the object and p*** the object... then open the object
<0> and even do checking in the object for illegal chars, etc
<2> rixth: can't seem to figure out that echo command -- what do you mean is there a session constant?
<0> or I'd just put the data in an array or hashtable
<0> and I could sort the hashtable
<0> and wouldn't have to go back to the database at all
<2> rixth: it would help to understand the data model of the cookie ;)
<1> Whcih I don't :)
<4> is there a reason that this statement would throw off a count by one given that there is a SELECT SUM(var) as temp_var statement a couple of lines earlier? $num_tix = mysql_result($result, 0, 0);
<1> DrSpin, is your server Linux or Windows/
<5> DrSpin: rixth: it would help to understand the data model of the cookie ;)
<1> xoo?
<2> rixth: Linux2.6.12-10-386 | PHP5 | Apache2
<2> xoo ?
<6> man, can someone tell me whats wrong with this? http://pastebin.com/750600 basically if I try to submit a country it works fine, however if I try to add a state it redirects to add_locations.php, but both forms are using the same form and same submit button.. one works the other doesn't.. any ideas?
<1> DrSpin, put "<?php session_start(); $_SESSION['foo'] = 'bar'; echo session_id(); ?>" into a PHP file., run it. Then run updatedb on your server (from the command line) then run locate **SESSION ID**
<7> 'lo all
<1> Lo
<2> rixth: ooh -- good idea -- hang on a sec ;)
<8> why not just check the php.ini file for where they are stored ?
<2> rixth: *yawn* waiting...
<8> updatedb takes forever on cluttered/large file systems :)
<2> rixth: No result
<1> DrSpin, do sessions actally work?
<2> yes
<2> rather well I might add
<2> much easier than the old JS method
<2> even have em interacting with MySQL quite nicely
<1> Then try the php.ini, it should say in there. Otherwise I am stumped. Did you make the application thatis using sessions?
<2> yes --
<1> You're storing your seissions in mysql?
<2> ;session.entropy_file = /dev/urandom
<2> session.entropy_file =
<1> That is the file used to get random numbers, probably used in session id generation
<2> session.cookie_path = /
<8> ah, it's stored in / the root filesystem path
<2> ; Name of the session (used as cookie name).
<2> session.name = PHPSESSID
<1> [Ex0r], no....
<1> [Ex0r], that is the path of the cookie.
<8> that is what he was asking wasn't it? For where session cookies are stored ?
<2> yes
<2> but my user can't write to /
<1> No no, where on the file system.
<8> that is where on the filesystem
<1> DrSpin, the cookie path and session path are totally different.
<2> yay
<2> :S
<2> LOL
<1> DrSpin, look for session.save_path
<8> okay back to work on site design
<2> Backing up a bit I am under the ***umption that these files are stored on each client, is this correct?
<9> I installed Apache, PHP4 and MySql. Now what should I do next in order to install PHP based forum?
<10> Vaske_Car: choose a forum. research security issues. install.
<9> CryWolf, i know how to install forum when i can access server via FTP... (when you purchase hosting plan) can you give me a bit detailed instructions?
<10> Vaske_Car: no. I did not write nor do I support whichever forum you're going to use. You need to ask them for help.
<10> Vaske_Car: either them or your hosting admin, depending on what problem you're having.
<11> im lookng for some "html-encode" if i recieve a get variable "red & ponys" i recieve "red " <- with a space, but "and ponys" missing



<12> in firefox, i've noticed that some cookies say "Send For: Encrypted connections only" and others say "Send For: Any type of connection". how do you create a cookie/session that is only for encrypted (ie: ssl) connections?
<11> in example : mynicepage.php?show=red%20&%20ponys transfers "ponys "
<13> litage: A cookie is marked secure by virtue of being sent from a secure server.
<10> iregulaone: htmlentities()
<11> instead of _get?
<11> i will look for it
<11> thx
<12> mattmcc: "secure server" being one that a valid SSL certificate signed by a trusted CA?
<8> litage- in otherwords, if you are accessing the site via https:// it is an encrypted session
<8> err, cookie*
<10> iregulaone: you encode the string with htmlentities before printing the link. see php.net/htmlentities
<11> jsut found it, great help, thx
<12> [Ex0r]: i'm accessing an internal site, using ssl, that i've setup with a self-signed cert. however, firefox says the cookie is sent for "Any type of connection" rather than for "Encrypted connections only"
<14> litage: Look at the manpage for setcookie(), the parameter is right there in the prototype
<11> hmmm
<11> doesnt worl
<12> ah, thanks for that. i need to use session_set_cookie_params() to mark the cookie for secure connections only
<11> if i write echo "red & horse" and if i write echo htmlentities("red & horse") .. i get the same results
<11> .. the get variable is still not recieved... can i transfer a "&"-symbol?
<11> without using post?
<8> no
<15> iregulaone: in the browser you wont, because & and &amp; will display the same
<8> not with get
<12> does it really do much good to set a cookie for use only with encrypted connections?
<8> & is considered another get post
<15> iregulaone: view the source to check the output
<8> like blah.php?test=1&name=12
<16> hi, would i be scolded for asking a question regarding getting phpmyadmin to worK?
<15> majd: yes, #phpmyadmin
<10> iregulaone: ah, my mistake. It should be urlencode. & is always the variable separator.
<11> but ... if i transfer, the encoded strinfg, and echo the result on page 2, i get onyly the halfe, and the get_paramete in adressline does not change?
<11> ok
<11> ty
<8> iregulaone- That would be because you'd have to use two gets, since & is considered another get
<11> k, now it works
<11> yop
<17> is there a channel for Flash
<18> I uncomment "ini_set('display_errors', '1');" whenever I wanna debug stuff... But now, it's just completely blank when (obviously) an error occurs. Sigh. Why?
<17> n/m
<18> (I'm finally converting to mysqli.)
<8> can you have spaces in a $_POST var ?
<13> They get converted to underscores, iirc.
<19> :( Still no luck designing a simple login script
<10> KimmoA: parse error. php -l will find it
<3> KimmoA: if there is a fatal error it won't matter because the ini_set never gets executed
<18> Aaah.
<18> I don't like fatal errors.
<11> i need a favour, what is the right command to connect to a 2nd server, in a seperate window ... i thought it was /server -a oder -add, but its wrong @_@
<18> iregulaone: Um... depends on your IRC client.
<11> i have mirc + nnscript
<11> mirc
<18> mIRC is /server -m if I remember correctly...
<18> (And I most likely don't.)
<8> yes, it is
<11> yo, you'ar right man, your ma maaan :)
<18> Been using Opera's IRC client for a long time now.
<11> noone know that, BUT YOUDO
<11> :-D
<8> it's server -m to open and connect, /server -n to just open it without connecting
<11> ok, and is there any website where i can read all channels on irc-world?
<11> ..sorry, bad english, where i can see a list of all channels?
<18> Last time I used mIRC, it didn't even support its own protocol's URLs... o_O
<8> iregulaone- their website? Try using /list to list all channels
<11> yes ;-)
<11> it needs an entiry day :-)
<20> Is there a way to accept a HTTP POST file upload, without actually having a visible front end file input field?
<8> I don't think so
<20> obviously i cant have a type='hidden' and type='file'
<20> in the one input
<20> *ponders*
<21> EyeCue: Ummm...strictly speaking, yes, but you're not asking the question you mean to ask.
<20> its for a backend upload system
<20> any suggestions?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Split({@Invoicenum},@);
apt-get master list
etisalat ping solution
xfdesktop amarok crash
mplayerplug-in stopped
amvetshallofhonor
webrsync rsync router
suse beagle-indexer
ofuscated perl contest
fc4 cfdisk package



Home  |  disclaimer  |  contact  |  submit quotes