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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-11
Pages: 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
48
Next >
[00:00]<rdvxzrwff>but that get's harder (stillpossible) across different domains
[00:01]<kyrrdyfj>could someone help me fix the syntax of this line; echo '<meta http-equiv="refresh" content="10;url=displayDeferByDate.php?<? $_SERVER[`QUERY_STRING`];?>">';
[00:01]<kyrrdyfj>thanks ;P
[00:02]<rlurrsnw7>is it legal to have a variable in a header function (such as, "header("Location: index.php?num=".$num);" ?
[00:02]<wjlllrws>where's the echoo part?
[00:02]<tml>Kingmilo: Don't put <?php inside <?php
[00:02]<rvymrf>i'm having a hell of a time getting my local server to be a mirror of the live server
[00:02]<rvymrf>anyone know the simplest way to do that, besides having the people that setup the live server doing it?
[00:02]<wjlllrws>That too.
[00:02]<tml>CLucas916: sure
[00:02]<rlurrsnw7>TML: k thanks
[00:02]<rvymrf>i have the phpinfo, the php.ini and all of the .conf files for apache
[00:02]<vxndjvns>hi all, I have this class, http://pastebin.ca/84350, but I'm getting this error: Fatal error: Class 'iController' not found in /Users/craig/Sites/themoves/site/lib/classes/Controller.php on line 3
[00:02]<kyrrdyfj>ok, let me try
[00:03]<rvymrf>..
[00:04]<rvymrf>the odd thing is that the configure command for php as listed by phpinfo.php has --without-mysql, yet it connects to mysql
[00:05]<rvymrf>and is there anyway to get the configure command that was used to compile apache?
[00:06]<wjlllrws>avidal: That's nothing unusual... You cal always compile additional modules later
[00:06]<rvymrf>this is pissing me off. i need to just put my foot down and tell them i'm not a server admin
[00:07]<rvymrf>and tell them to get the guys that did the other servers to just shell in and do this one
[00:07]<z0wjz>yes, you probably do
[00:07]<rdvxzrwff>linux admin 4 hire :">
[00:07]<wjlllrws>Well... Most fo the sysadmins don't give a damn about the server
[00:07]<rvymrf>or whoever does thing like that
[00:08]<rvymrf>we have our web servers colocated
[00:08]<rvymrf>and those guys set them up for us, and now we want our local dev server to be a very similar environment
[00:08]<rvymrf>but they want me to do it, instead of the guys who did the original ones
[00:09]<wjd2rw>how do you read a cookie in php? say, after setting one.. how would I check to see if it exists?
[00:10]<rfygdgdrg>print_r($_COOKIE);
[00:10]<rdvxzrwff>$_COOKIE['name']
[00:10]<wjlllrws>Vasily: Are you a bot?
[00:10]<vrsdfd>nope, sorry
[00:10]<vrsdfd>that's just my ident
[00:11]<rdvxzrwff>if he was, do you think he'd admit it?
[00:11]<vrsdfd>which is.. uh coming from my other PC
[00:11]<wjlllrws>ouch
[00:11]<vrsdfd>(i'm in network)
[00:11]<wjlllrws>cythrawll: Of course, 'cause he can be a SPY
[00:11]<vrsdfd>lol cythrawll
[00:11]<rdvxzrwff>a SPY?
[00:11]<rdvxzrwff>>.>
[00:11]<rdvxzrwff>e-conspiracy
[00:12]<rdvxzrwff>Wazb^ did you do session_start() on all the pages that used the $_SESSION variables?
[00:13]<rdvxzrwff>you have to do it on every page you plan to use the sessions on
[00:13]<txgwzzmgg>Hi. I'm using htmlentities() and it works great, however I have one problem. When I want to use a trademark symbol I put ™. Works good by itself when I apply htmlentities() on this variable it conversts the & symbol instead of leaving it as is. how can I get around this?
[00:13]<ddsjzzd>is it possible to redirect and post to a another server?
[00:14]<rdvxzrwff>Wazb^ also note, it's good practice that session_start() is always the first line of code
[00:14]<rdvxzrwff>because it sets headers, if you don't, you may get "HEADERS ALREADY SENT" error
[00:14]<ddsjzzd>what goes after session_start()
[00:14]<rdvxzrwff>the rest of your code
[00:14]<txgwzzmgg>I apply htmlentities() on the variable all the time in case it contains a character that needs to be converted. But in my case here it converts the & symbol when it's not necessary. Haven't thought of an idea on how to get around this problem. Any ideas?
[00:14]<2gdsjg>hey folks
[00:14]<2gdsjg>forms question
[00:15]<rdvxzrwff>TheWarden, when is converting a & symbol not necessary?
[00:15]<wjlllrws>bemson: #web
[00:16]<z0wjz>question, will escaped characters remain exactly the same across all implementations of PCRE?
[00:16]<2gdsjg>can I create nested arrays via naming form elements in my html? eg values[1][], values[2][]... would this result in a $values array with 0 and 1 as arrays?
[00:16]<z0wjz>i.e. isn't that the point of PCRE?
[00:17]<mzzcz9q>bemson: Yes you can, and it would
[00:17]<z0wjz>e.g. i'll always know that i don't need to escape () for it to be special, as opposed to... vim for example, which i need to actually escape \( and \) for it to be special
[00:17]<2gdsjg>MarkR42 - thx (awesome!!!)
[00:17]<txgwzzmgg>cythrawll: When the string contains an entity such as ™ already... then it converts the & character to &#8482;
[00:18]<rdvxzrwff>ahh
[00:18]<txgwzzmgg>cythrawll: So then the character no longer renders.
[00:19]<rdvxzrwff>TheWarden, then do http://us3.php.net/manual/en/function.html-entity-decode.php and then re,encode
[00:20]<txgwzzmgg>cythrawll: do this instead of doing htmlentities()?
[00:21]<rdvxzrwff>no do them both
[00:21]<txgwzzmgg>ahh I figured that out... works great. thanks.
[00:21]<gjd2zgaygf>is it possible to have a form not do a break?
[00:21]<rdvxzrwff>nombrecinq i don't understand the question
[00:21]<gjd2zgaygf>or simply to have multiple forms one one line?
[00:21]<txgwzzmgg>nombrecinq: change the properties of the tag using CSS to remove the break.
[00:22]<rdvxzrwff>nombrecinq, i believe your looking for #web
[00:22]<gjd2zgaygf>TheWarden: you think it's probably CSS and not the HTML?
[00:22]<txgwzzmgg>nombrecinq: by specs there is break created after the form tag is used. Only way to control this or change the style is using CSS. Yes I've been here before. But yes cythrawll is correct, this is a question in #web.
[00:23]<gjd2zgaygf>okay thanks
[00:23]<txgwzzmgg>nombrecinq: need more help on it message me in #web.
[00:28]<wjznm>which is the best method to create a activation key ? random number + timestamp <- hash ?
[00:29]<rrppygrvnm>xored: that doesn't guarantee you a unique key
[00:29]<xrwcrfjjryn>caffinated, nothing does?
[00:29]<rdvxzrwff>xored: I use: md5(uniqid(rand(), true));
[00:30]<rrppygrvnm>hawkaloogie: you can, but you have to have a table which holds the unused keys.
[00:30]<wjznm>cythrawll: thank you
[00:31]<rrppygrvnm>if it's just for one-time verification or something like that it's not critical. if it's for activating software, or something like that, it might be.
[00:32]<rvymrf>ugh
[00:32]<rvymrf>my head hurts
[00:35]<kvzjg>AJAX is pretty much the win
[00:35]<kvzjg>heh
[00:35]<kvzjg>give me a week or two, I'll try to stay in here and answer AJAX/PHP questions
[00:35]<gn2djoo>hi, everytime it creates a thumbnail 4 errors come up and also it creates the thumbnail but it fills in the image with black. --> http://rafb.net/paste/results/aYxT1Q31.html <-- (4 errors shown at the top)
[00:40]<ajyf>Hello, I am trying to create a php form that is passing information to a mysql database, but I would like to have a a couple fields ignored unless there is a checkbox selected. Is this possible, and if so can someone please offer advise?
[00:41]<znyp>if (5~isset($_POST['checkboxname'])) {
[00:41]<znyp>Blah.
[00:42]<znyp>if (!isset($_POST['checkboxname'])) { save the else-ignored fields }
[00:43]<ajyf>hmm im not sure i understand what you mean :S
[00:44]<gsfv>hi, i have a page its html but with php extension i would like to paste onto that page in specific place whole other page how to do it?
[00:44]<znyp>coil, how are you passing the information to the mysql database?
[00:44]<mzvzyw_mjzlxnus>coil: I would suggest dynamicaly creating the Query statment
[00:45]<ddsjzzd>does a good hacker have a good chance at accessing session vars?
[00:45]<bfracbysxjl>if($_SESSION['count'] > $_SESSION['quota']) { echo "Quota exceeded"; exit; }







