IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-19
Pages: < Prev
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
Next >
[17:16]<maasaz>http://pastebin.com/726539
[17:16]<vygzdnfdzz>^Spinner, unset() ?
[17:16]<jzjmzsvnz>vinadelmar: if you are using PHP5, you can use the categorize parameter to split out the defined constants into sub arrays
[17:17]<vygzdnfdzz>unset($arr[7]); works
[17:17]<jzjmzsvnz>spinner: $myarray = array();
[17:17]<raaca>chasep_work_: if COM is a class you have written yourself, and you try to store object in a session.. you have to make sure to require/include the classes before you session_start() again =)
[17:17]<aduv>what hoffie proposed is the only reliable way. you could parse the file with preg_match as well...but does not mean necessary a constant is difined (if in if block)
[17:18]<vygzdnfdzz>JAJMaster, nope. all users constants are put into a sub array called 'user'
[17:18]<vygzdnfdzz>impossible dude
[17:18]<jzjmzsvnz>vinadelmar: I'm just saying it would make things easier to parse out, you'll still have to do the comparisons previously mentioned
[17:19]<zxzsnl_wjzc_>Rockj: no, COM is built into PHP for handling COM functions
[17:19]<jzjmzsvnz>if $myarray still has stuff in it after you do a $myarray = array(); I'll eat my hat.
[17:19]<vygzdnfdzz>yup
[17:19]<vygzdnfdzz>the clever thing would be to use prefix :/
[17:20]<dycnpjj>Anyone use oscommerce here before? just a general Q: about it..
[17:20]<drvnd>!tell mikefoo about g10
[17:20]<vygzdnfdzz>try #oscommerce
[17:20]<dycnpjj>ahh? yeah? thanks
[17:20]<dycnpjj>sorry then..
[17:20]<maasaz>lol, that channel exists?
[17:21]<vygzdnfdzz>i dont know :)
[17:21]<maasaz>ha ha
[17:21]<raaca>chasep_work_: oki. I had "same" problem yesterday and figured out it was just that I had to load the classes before start_session again. Maybe you can try to cast the variable to that object? (learning php myself atm)
[17:21]<vygzdnfdzz>my point is that you'll find more support on a dedicated place than #php
[17:21]<maasaz>i wonder if they are ever goign to finish that next version
[17:22]<zxzsnl_wjzc_>Rockj: no, totally different issue. I remeber your issue, I gave you an answer to it :-)
[17:22]<raaca>chasep_work_: ohh.. ops *blush* *goes into hiding* oki, good luck atleast ;)
[17:22]<ejgyne>crap, i solved the javaproblem, but now it dont give me any error or anything.. :(
[17:23]<maasaz>anyone want to make $10 for 10 mins or so of work? LOL, i have been looking at this same small snippet of code for way to long
[17:24]<maasaz>should be easy for someone that knows what they are doing. i just suck at complex arrays
[17:24]<vygzdnfdzz>did i see something aweful like [href] ?
[17:24]<aduv>WTF. why don't you break down this a bit with functions
[17:25]<maasaz>Spinner, yoru code gave me headaches too =P
[17:25]<aduv>sorry. cannot read it . :) I am going blind
[17:25]<aduv>and tell us what is wrong and do you expect
[17:25]<vygzdnfdzz>^Spinner, that should be ['href'], unless href is a defined constant
[17:25]<ndf>What function can resize a image in the GD-library?
[17:26]<vygzdnfdzz>JAJMaster, i bet €100 on it
[17:27]<vygzdnfdzz>^Spinner, of course it works because php is a nice little boy, but this is not really a good practice. it even makes php to work more as it will first try to find for a constant named href
[17:27]<jzjmzsvnz>eml: imagecopyresized() ?
[17:28]<aduv>^Spinner: use http://bg.php.net/manual/en/function.stristr.php instead of this preg_match. Much faster
[17:28]<20z1m>Warning: open_basedir restriction in effect. File is in wrong directory in Unknown on line 0
[17:28]<20z1m>??
[17:29]<myrmjgmmrvn>hey all, i have a php file in my cgi-bin folder, but it has some includes in there, and it can't find any of those files, im using the full path to the files, what am i doing wrong?
[17:29]<ddsvd>hi all. I'm trying to use a session variable to hold my user's initials, and can't seem to make it work. I take their initials from a form, they go into $_POST, and then I try registering the variable with the session and setting it equal to the $_POST variable
[17:29]<ddsvd>It gets lost in the mix somehow :(
[17:29]<vygzdnfdzz>^Spinner, at least is a valid non working code
[17:30]<aduv>^Spinner: what is wrong!?! Tell us
[17:31]<aduv>^Spinner: shouldnt $temp_refined_size++; be outside of the if pregmatch. to increment weather or not inside the if
[17:31]<myrmjgmmrvn>anyone have an idea?
[17:32]<fynvu>DiamondDave: what's the error you get?
[17:32]<aduv>^Spinner: actuallyl it matters not. you don't use this variable
[17:32]<fynvu>DiamondDave: and have you checked the permissions on those files?
[17:32]<aduv>^Spinner: I will not look a sec anymore until you tell us what is wrong?!! Do you get errors. what output you expect....how many itterations. and stuff
[17:34]<vygzdnfdzz>see you guys, bye ;-)
[17:34]<fynvu>^Spinner: clear the array in between passes?
[17:34]<fynvu>or use a new array for the latter pass
[17:35]<myrmjgmmrvn>lietu: yes, the permissions are fine
[17:35]<fynvu>^Spinner: um, iirc, $ar = array();
[17:35]<aduv>^Spinner: of course it does
[17:35]<jjgrvxrgq9->I need 65 640$ for a business, interested? I search a partner...
[17:35]<aduv>for($j=0,$refined_size=sizeof($refined_list),$temp_refined_size=0;$j<$refined_size;$j++) { move this $temp_refined_size=0 outside . on top
[17:36]<aduv>and you are good to go
[17:36]<aduv>you mak e a 0 on each itteration after first loop. and it starts filling same array with same index
[17:36]<fynvu>Jonathan24-: ofcourse I'm interested to blindly give you $65 640, just give me your bank account number and you'll have the money in 5min
[17:36]<fynvu>Jonathan24-: ever heard of a bank?
[17:37]<myrmjgmmrvn>i tried full paths and relative paths, neither work
[17:37]<svznrcd>my question would be.. why the $640 ?
[17:37]<aduv>the same place...... but only incrementing to $temp_refined_size. not making it 0 again
[17:37]<fynvu>DiamondDave: and do you get any error?
[17:38]<aduv>you have nested fors !!!
[17:39]<aduv>afte the first for is finished you got some indexes in $temp_refined_list with indexes coming from $temp_refined_size. Then .....
[17:39]<aduv>the first for makes second itteration. you initialize $temp_refined_size to zero... and start adding to this same $temp_refined_list array (overriding it )
[17:41]<myrmjgmmrvn>lietu: yeah, it says Warning: main(toolbox/class_asw_db.php): failed to open stream: No such file or directory in /home/geminief/public_html/survey/classes/class_company.php on line 6
[17:41]<nulnzyr_>\quit
[17:43]<fynvu>DiamondDave: and you're sure you haven't typoed, ignored case or failed to check permissions on each of the directories(/home, /home/geminief, /home/geminief/public_html, ...)?
[17:44]<myrmjgmmrvn>yeah, im sure
[17:44]<aduv>^Spinner: what happens if script does not go through $temp_refined_list. You will assign $refined_list to same thing and voala.... you will make an infinate loop.
[17:45]<myrmjgmmrvn>wait a minute...i see something strange
[17:45]<myrmjgmmrvn>i think i see whats up
[17:46]<aduv>^Spinner: my fault
[17:46]<maasaz>ok, im going to die here. This is driving me nuts and wasting a lot of my time. I will pay someone to help me with the code i keep pastebinning
[17:46]<rffnm>how can i force a form to reload, if someone presses refresh?
[17:47]<wzdraxygn>is there any reason to put an underscore before a method?
[17:47]<wzdraxygn>er, function.
[17:47]<aduv>wrmachine: readability
[17:47]<wzdraxygn>that's it?
[17:48]<aduv>wrmachine: most people consider it privet if they see _
[17:48]<nzzzmz>wrmachine: sometimes i use underscore to have the same name as an existing method but to make it private
[17:48]<wzdraxygn>it has no real functionality?
[17:48]<aduv>wrmachine: no
[17:48]<wzdraxygn>coolios
[17:48]<nzzzmz>wrmachine: two underscores are magic
[17:48]<aduv>wrmachine: btw. readability is good enough reason to use it !
[17:49]<wzdraxygn>i suppose it helps you differentiate between $this->var being a var and $this->_function being a function
[17:49]<wzdraxygn>or something
[17:49]<nzzzmz>wrmachine: no it helps between $this->setVar() and $this->_setVar()
[17:50]<nzzzmz>sigh work is so dull today
[17:50]<wzdraxygn>I'm still getting warmed to object oriented programming in php
[17:50]<aduv>wrmachine: just make sure you start in php5 :D







