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



Comments:

<0> so how does your timestamp look like? what's the format?
<1> murdoc: time()
<2> mdl003: i m not sure.. how can i add http://google.com to a hash and get later back?
<3> mdl003: most hash encryption is non-reversable
<1> mdl003: write your own encryption thingie.
<0> mdl003: the reason you want to hash something is cause you don't want anyone to ever be able to decrpt it.. so you can't go backwards
<2> no thats not what i want
<1> mdl003: ***ign a numeric value to every letter of the alphabet, then convert your string to the numbers. then do some math on it
<1> you could turn http://google.com into 8164382649423.234
<1> how cool would that be. :)
<2> yes but i need a function which does for me :) .. encode and decode.. there must be something for such a thing..
<1> mdl003: well, there's the always fun rot_13
<3> ajnewbold: great, however anyone who doesn't fully understand encryption will likely fall into traps that they don't even realize
<1> err
<1> mdl003: str_rot13
<0> mdl003: I don't think there's going to be a function that does that because hackers can read off those sites and just decode it



<3> mdl003: reversable encryption is pretty dumb
<2> mdl003: its not about safety..
<1> mdl003: what's your goal here?
<3> mdl003: then what would be the reason?
<2> its just to call javascript function with that parameter
<1> knowing that will help
<3> mdl003: so....why can't you just send the url?
<3> mdl003: modify your js function to allow it
<2> xmlrequesnt removes the /"url/" thats why
<2> mdl003: i m using xajax (ajax framework)
<3> mdl003: oh, so you basically just need to change / ? and & characters
<2> and :
<3> well, you could replace them with %hex equivalents
<3> just using str_replace
<2> hmm
<3> using a series of str_replace() (or p***ing arrays to str_replace) you could convert special characters to their hex values and write a reverse function to do the same thing
<3> the potential characters you would have to check would be : / ? & =
<2> and .
<3> your js function won't allow the .?
<2> no
<3> i figured . would be ok, but i guess not
<4> Hey all, where can I find a doc on downgrading my php 5.0.6 to php 4.3.X? I have an web app that I must run that is not forward compat with 5.
<2> b1n0ry: but replacing with a hex wouldnt be good.. as if there could be that hex value in the url..
<3> mdl003: true
<5> How would I do this correctly. I am a noob at php. strstr($result, 'id=\"indicatorMail\" cl***=\"show indicator\"') i believe the backslashes are messing it up. the text i am searching for does not have these so it messes up my whole if statement
<3> in any case, a hash would not be proper
<3> Subwoofe1 you don't use \ characters when your string is enclosed in single quotes '
<2> b1n0ry: the whole is going to be a bloody hack :( thats not i wanted it to be..
<2> what
<5> b1n0ry: ohhhh ok.
<3> Subwoofe1 you only escape symbols when a string is enclosed in double quotes "
<5> b1n0ry: so i should change the single quotes to double quotes
<3> Subwoofe1 or remove the \ characters
<3> strstr($result, 'id="indicatorMail" cl***="show indicator"')
<3> strstr($result, "id=\"indicatorMail\" cl***=\"show indicator\"")
<3> either is acceptable, though " adds a bit of unnecessary overhead in this case
<5> yes i see
<5> i had no idea. i was trying to figure this out for a while
<5> thanks man. appreciate it
<3> double-quote strings are parsed, single quote strings are literal
<3> hope that helps
<6> anyone know offhand what useragent php's fopen wrappers use by default?
<7> question
<7> anyone know why #mysqls so dead
<0> ajnewbold: about time stamp.. did you add anything to it?
<7> someone here is responsible
<0> ajnewbold: or did you just type "time ()"
<1> murdoc: nah, it's just a unix timestamp
<0> ok
<0> since it's just a numeric value
<0> we can compare it
<8> cw2: it doesnt report any user agent
<1> murdoc: I think I know what I need to do...
<8> cw2: my apache log says "-" for user agent
<8> cw2: ini_set('user_agent','MSIE 4\.0b2;');
<9> if I want to count how many entries in a table have the same field (ie. how many comments have nid=4) hoiw would I do that
<1> murdoc: array_multisort :)
<1> I hope
<9> I tried COUNT() to no avial (maybe I'm using it wrong)
<1> I'm looking into it now
<10> you are able to get a date and time from the unix time() thing right



<9> and the only guy in mysql is telling me to just select it and run a loop doing +1 each time
<9> or not
<9> nevermind :P
<9> I misunderstood him I think
<11> MikeH: SELECT COUNT(field) AS total WHERE nid=4;
<0> ajnewbold: you want to use a foreach loop
<12> "SELECT COUNT(field) total GROUP BY field HAVING total>1" maybe it sovles the problem?
<6> arg!
<10> how do you change a unix timestamp to english textual datetime
<6> i've been beating my against this for like 2 hours and the whole problem was html encoding in my url
<13> !+g8
<14> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
<6> and I have no idea how it got htere
<11> Burian: date();
<15> guys, how can I read the files in a directory?
<15> I want to list the files, I mean, and get their names.
<2> anyway i go.. cu
<10> tws: unless I am blind, I don't see an example of how to do it
<4> b1n0ry: Care to help me with my downgrade issue? (Since we are talking in the other chan too :-P?)
<16> okay so i am VERY new to regex but im trying! :) Trying to get FieldId=XX or FieldId=X or FieldId=XXX ... where X is a number. I have this: preg_match_all('/FieldId=([0-9][0-9][0-9])/', $filter, $matches); but that forces 3 digits, when it could be 1 or 2...
<0> ajnewbold: I private messaged you with the scripts
<0> it should work
<0> you are right about array_multisort
<0> but that's how you would go about sorting
<0> I haven't worked with 2d arrays much.. so it takes me a while to think
<12> Kaitlyn, '/FieldId=([0-9]{1,3})/
<1> murdoc: thanks!
<3> php = Plenty of Hot Pu... um... Pudding... yeah
<16> thanks yd
<0> ajnewbold: np
<0> can someone please help me with permission problems?
<12> !ask
<0> I've created a code that wil do a simple fopen but it showed and error when I loaded the page saying permission denied when I have the folder and the files all at permission level 777
<0> does anyone have a way around this problem?
<3> murdoc permission is denied to what... the fopen() or the execution of the script in general?
<17> is there something like Castor for php? and no, PEAR::XML_Serializer doesn't compare :(
<0> Warning: fopen(settings.dat): failed to open stream: Permission denied in /home/abc/public_html/xyz/monex/index.php on line 13
<0> that is the error I got
<8> Jesus.. my school has full access to oreilly's safari online
<8> afaik: excuse my ignorance.. castor does?
<0> xyz is at permission level 777 as well as index.php and settings.dat is at 755
<11> Burian: My mistake, didn't read carefully.
<0> I was doing an fopen to write
<10> ok
<12> murdoc, you need to set permission on "monex"
<0> the folder?
<12> yes
<3> murdoc: you make sure that settings.dat allows all write
<17> myc, maps objects to xml, and xml to objects
<12> there is PWD when executing, write?
<17> without imposing design restraints on your objects, like XML_Serialize does
<3> murdoc: try setting settings.dat to 777
<3> murdoc: i'll bet that's your problem. 755 is user-all everyone else read/execute so your web server can't open it for writing
<16> okay now im trying to replace " = " with "=" (remove space on sides...) preg_replace("/(.=.)/", '=', $filter); why isn't it working?
<12> murdoc, why do you use settings.dat ? 1. it can be viewed by anyone (unless dissallowed by HTTPd). 2. including php file with array of setting is MUCH faster.
<3> murdoc: you're trying to open settings.dat for writing but only have read/execute permissions on it
<0> YD: I'm trying to make a simple game with this.. I can't figure out anyway to store user settings such as the amount of logins that needs to be created
<0> or perhaps in the future any user settings for the game
<3> murdoc: database :)
<3> murdoc: but anyway, i gave you your answer
<0> B10ry: yes it seems like that is the problem. however it was weird that I cannot change settings.dat's permission.. it was left at 744
<12> murdoc, DB solves the problems. 99% that you get into file locking problem.
<0> B10ry: so I had to do a chmo 777 monex/* to make it work
<8> Recommend ORM library?
<17> mybadluck, Prado
<17> erm
<17> Propel
<17> sorry
<0> YD: so this is how gmail saves every user's settings?
<12> murdoc, no you need to change the group of files to your httpd's one and give it write permission.
<3> murdoc: you can actually chmod 766 for rwxrw-rw-
<18> Kaitlyn: what's the problem?
<12> murdoc, you can't even imagine what is behind gmail :> And it's no PHP.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

kubuntu change the default window manager
#php
parted ext_attr
fedora 5 install forcedeth
Ctk-WARNING **: cannot open display
#css
#perl
console menus ubuntu
#perl
oisceo



Home  |  disclaimer  |  contact  |  submit quotes