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: 1822.69 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Next >
[03:08]<pdznpfdq99q>argh, got it
[03:08]<sxzzypp>What's the php function that can perform a command within the OS, exec?
[03:10]<eyzau>Shariff: there are several ways, but php.net/exec will explain
[03:10]<pdznpfdq99q>Shariff, http://us2.php.net/function.exec this?
[03:11]<yzg>ach im an idot.. been working on a backup copy of a script and wondering why it wasnt working.. changing things on a script other than the one im executing
[03:11]<sxzzypp>Thanks! sorry.. I must have been looking in the wrong place.. thanks! :D
[03:12]<sxzzypp>I couldn't find it in the file function section :)
[03:12]<bummrbjd>Shariff: try system()
[03:13]<bummrbjd>can anybody have thoughts about line 72? http://php.pastebin.com/710532
[03:13]<sxzzypp>Thanks!
[03:14]<crlsj>If I do: for ($i = 1; $i < $var; $i++) { $arr = array(); $somvar = somefunct(someargs); $arr[$i] = $somvar; } ... then instead of placing everything into $arr[$i] each time... it creates a new array, probably due to $arr = array(); ... how may I solve this problem, yet still reset the array each time the loop is run?
[03:15]<bummrbjd>Capso: move the $arr = array(); out of the for loop?
[03:15]<rrl>hey, does anyone know a program to do some reverse engineering with PHP?
[03:15]<luzgpusyjg>Wow... I'm getting this crazy error.. I've never seen it before in my life!!
[03:15]<luzgpusyjg>Fatal error: Corrupted encoded
[03:15]<luzgpusyjg>Fatal error: Corrupted encoded data detected ... on line 0
[03:16]<crlsj>BuddaBoy: Then it simply keeps appending to $arr when I don't want it to.
[03:16]<luzgpusyjg>It's for the easy PHP calendar that I downloaded
[03:16]<bummrbjd>Capso: i don't understand what you want to do then.
[03:17]<cjg_>purefusion: check zend kb
[03:17]<luzgpusyjg>it's zend optimized
[03:17]<luzgpusyjg>site says I need to copy the files as binary.. can I do that in dreamweaver??
[03:18]<cjg_>i hope so
[03:18]<luzgpusyjg>I suppose I can do it in WS_FTP
[03:18]<cjg_>definitely
[03:18]<luzgpusyjg>k, thanks kon_
[03:19]<cjg_>no problem
[03:19]<gn2djoo>hi http://pastebin.com/710551 on line 137 it displays the session $_SESSION[redirect] which can either be: /account/user/ /account/staff/ /account/admin/ when loging on the system, it doesnt display the correct section (170,181,189,197) and ideas please?
[03:20]<gn2djoo>for instance if i login as admin line 137 will tell me its /account/admin/ but it wont display that section
[03:22]<rrl>hey, does anyone know a program to do some reverse engineering with PHP?
[03:25]<svfs>hello... I'm a newbie in php... is there a convenient one liner for checking if a string is set and then using it but otherwise use a specified alternative? Example: $text = isset($foo,"bar"); // if $foo is set, use that value, otherwise use the text "bar"?
[03:26]<vawm>$text = (isset($foo) ? $foo : "bar");
[03:26]<rrl>does nobody know such a reverse engineering tool?
[03:27]<drvvdaa>Er, reverse engineer what?
[03:27]<vawm>Aap: whatever you're looking for.. have you tried googling it?
[03:27]<rrl>matmcc: a tool that puts php code into UML
[03:27]<rrl>tcwd: yes mom, i did
[03:27]<vawm>heh
[03:28]<rrl>:)
[03:28]<svfs>tcwd: ok... thanks... just wanted to check if I was missing some PHP function that I could use
[03:28]<drvvdaa>Ah, that's not really reverse engineering. It has an element of introspection involved, but that's about it.
[03:28]<gn2djoo>anyone think they might be able to help, i posted message 01:19
[03:28]<gn2djoo>(please)
[03:28]<drvvdaa>And a quick google of "PHP to UML" does seem to turn up some stuff.
[03:29]<rrl>matmcc: what is it then
[03:29]<rrl>nebmo88: what's the prob?
[03:30]<eyzau>php to uml?
[03:30]<rrl>yes
[03:30]<eyzau>like saying C to HTML
[03:30]<gn2djoo>its not displaying correct stuff
[03:30]<rrl>OOP PHP to UML
[03:31]<rrl>nebmo88: if you say such things, who will listen?
[03:32]<gn2djoo>sorry!...im still typing what i want to say
[03:32]<rrl>lol
[03:33]<gn2djoo>when i go onto the page, it automatically displays user information(line 181-187)
[03:33]<gn2djoo>http://pastebin.com/710551
[03:33]<rrl>matmcc: still, it is reverse engineering my friend
[03:33]<gn2djoo>it should go to 170-199
[03:33]<slnavyn>does anyone know this library: http://keithdevens.com/software/phpxml
[03:33]<slnavyn>and is there anything special you need to do to get the php xml parser to parse utf-8 encoded text ?
[03:34]<gn2djoo>and the session is blank
[03:34]<cdvvdrgdr>RAWR, kitty smush! *smushes images down to shrink them*
[03:35]<vawm>nebmo88: if the session is blank, you probably set it wrong..
[03:35]<rrl>nebmo88, you tried putting the session_start totally on top?
[03:35]<zjw>Hello kittyanya....
[03:36]<zjw>I have a problem with a regexp, its been greedy even tho U is set and capturing stuff from the next tag along regexp is '%\[col(\s+.*)(?:width=(?:"(.+)"|(.+))(\s+.*)style="(.*)"|style="(.*)"(\s+.*)(?:width=(?:"(.+)"|(.+))))(?=(\s+.*)|\])\](.+)\[/col\]%isU' any ideas?
[03:36]<rrl>and doesnt print "$_SESSION[mnurdrct]"; has to be more like $_SESSION['mnurdrct'] ?
[03:36]<gn2djoo>aap: no i didnt, if you look http://pastebin.com/710581 i put it on line 8. would that matter
[03:36]<rrl>i don't know much about headers, but you can try
[03:36]<vawm>Aap: there's no difference
[03:36]<rrl>actually i don't know a lot about php
[03:37]<vawm>(between $_SESSION[foo] and $_SESSION['foo'], that is)
[03:37]<gn2djoo>lol...nor do i, im trying to learn from php.net, but some parts i still cant do for some reason
[03:37]<rrl>well maybe session_start above the headers? (i never used headers)
[03:37]<zjw>use object buffers
[03:38]<zjw>if you send ANY stuff via echo errors etc then you can't alter headers
[03:38]<slnavyn>is there any reason why xml_parse will not work with utf-8 strings ?
[03:39]<gn2djoo>the session is getting its value when a user logs in. (it detects what the redirect url is) so if redirect url is admin it SHOULD display the admin IF statment
[03:40]<zjw>nebmo88: whats your problem?
[03:40]<gn2djoo>because on line 137 i told it to display what the value in the session is
[03:41]<zjw>you must wrap your code like so ob_start(); session_start();..reset of your code.. ob_end_flush();
[03:41]<gn2djoo>erm, im having trouble with a script which gets the value from a session and displays a certian bit of code (with an IF statment)
[03:41]<zjw>you can't send headers then alter sessins and stuff
[03:42]<zjw>just so you know, and you really should not mix html/php like that
[03:42]<zjw>its a bitch to work with :)
[03:42]<gn2djoo>lol, how else would you do it?
[03:42]<gn2djoo>close the php ?> then do the html, then open again?
[03:42]<zjw>templates, include files
[03:43]<gn2djoo>i dont know how to do that yet:(
[03:44]<zjw>if ($_SESSION[mnurdrct] = "/account/admin/") include('somehtmlfile.htm);
[03:44]<zjw>then put the html in that file
[03:44]<zjw>that would be cleaner
[03:44]<zjw>I take it no one is able to help me with my regexp :/
[03:45]<mnfvyz>row: well, its a big regexp :)
[03:45]<zjw>its not that complex when you break it down
[03:46]<zjw>put so much work into the preparser for my cms code and its been lame now :(
[03:46]<zjw>everything but that regexp works
[03:46]<zjw>:(
[03:46]<mnfvyz>what is it supposed to do (im not in the mood to analyze, and maybe there is a function that already does what you want)
[03:47]<zjw>its mean to take [col *style=* width=* *] and then shove it into a correctly formed tag







