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-08-01
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
48
49
50
Next >
[02:52]<jdddd>Do you think it's possible to authenticate to http_auth without using user:pass@ or the typical popup dialog box? Just using php (and maybe js) in all/most browsers?
[02:52]<sljvsna>the second part always returns true because false is a string
[02:52]<sljvsna>and not a boolean
[02:53]<sljvsna>so when I set $hideable == 'false' it works
[02:53]<jdddd>false is boolean false, 'false' is boolena true
[02:53]<sljvsna>yes
[02:54]<sljvsna>php was suppose to convert 'false' to bool false
[02:54]<jdddd>not if it's quoted.
[02:54]<sljvsna>its not quoted
[02:54]<jdddd>looks quoted to me --> SpotSec> so when I set $hideable == 'false' it works
[02:55]<sljvsna>yep...
[02:55]<jumn>$hideable == False;
[02:55]<rrdrdr>false != 'false'
[02:55]<sfymn>Does anyone know how to make imagerotate() not clip the image but rather make the dimensions larger to fit?
[02:56]<sfymn>(false != 'false') === true
[02:56]<sfymn>heh
[02:57]<drvvdaa>slide: Well, you could copy the image to a new image of sufficient size that rotating won't clip anything..
[02:57]<sfymn>matmcc, well, i am trying that route, but i cant get the new blank area to be transparent. I tried filling it with a transparent color, but it just turns out black, let me post that bit of code
[02:57]<srgwuw>how to increase timeout of an fopen function?
[02:59]<tuzm>set_time_limit(0);, if that's what you're asking
[03:00]<lvl1>I am trying to include some php into my page like this: <?php include("/usr/home/public_html/links/resources/link.php?catid=1"); ?> - but that does not work, but <?php include("/usr/home/public_html/links/resources/link.php"); ?> does.. although I can call it directly via a browser with the catid=... am i doing something obviously wrong?
[03:00]<srgwuw>this will increase the time limit of whole script dont?
[03:00]<drvvdaa>Sanhux: Are you using imagecreatetrucolor?
[03:01]<srgwuw>no
[03:01]<tuzm>yes, I though that's what you meant
[03:01]<musvrrrmrvv>ftp3: The 2nd way is the right way.
[03:01]<musvrrrmrvv>ftp3: Then just set a variable catid in your calling script and access it globally from your include.
[03:01]<sfymn>matmcc http://hashphp.org/pastebin.php?pid=7854
[03:01]<sfymn>matmcc yea
[03:02]<lvl1>mustangmatt, how do I access it globally from my include?
[03:02]<sfymn>matmcc: basically lines 30/32 are the important ones
[03:02]<musvrrrmrvv>Well is your include just straight php or is it a bunch of functions?
[03:02]<sfymn>thats where im drawing white, that is completely transparent (or supposed to be), but its drawing black instead
[03:03]<sljvsna>:S man im so freaking confused lol, it appears that php does convert the string to a bool, but it treats the bool true as string false... I feel so stupid right now
[03:03]<jdddd>!tell SpotSec about 0
[03:03]<lvl1>mustangmatt, basically, the catid chooses the category of links to display, so, if I call it "catid=1" it displays category 1, etc etc
[03:03]<jufyzg|wjzc>!tell Julian|Work about 0
[03:04]<jumn>SpotSec: ===
[03:04]<musvrrrmrvv>Can you pastbin.ca your link.php code?
[03:04]<sfymn>matmcc, if i change the imagecolorallocatealpha to just imagecolorallocate and remove the last argument it will put whatever the color is, but using the alpha makes it just put black
[03:04]<jumn>What does it say, anyway.
[03:04]<sljvsna>ok ill try ===
[03:04]<jumn>!tell Jude about 0
[03:04]<lvl1>mustang, one sec
[03:05]<jumn>Fun.
[03:05]<tuzm>!tell Turd about how good Poop tastes
[03:05]<sfymn>hrm, maybe the default truecolor image created has a black background?
[03:06]<a2zyd2fn>is there an isnull function?
[03:06]<jdddd>is_null
[03:06]<a2zyd2fn>thx
[03:06]<jumn>jbrimble: is_null. Read the manual.
[03:06]<jumn>:D
[03:06]<tuzm>http://php.net/is_null
[03:06]<tuzm>said the same thing at the same time as two other people...
[03:07]<tuzm>accidentally, of course
[03:07]<jumn>Jymmm: Then you have the ones in camelcase.
[03:07]<sfymn>sweet i got it
[03:07]<jumn>Jymmm: And then the million other different naming schemas :(
[03:07]<jdddd>Jude ...other funky notation
[03:07]<lvl1>mustangmatt, its http://pastebin.ca/109314
[03:08]<sajzaxnm>Jymmm, don't forget string functions that change the order of needle and haystack
[03:08]<sljvsna>Nope that wasnt the problem
[03:08]<srgwuw>I cant set time limit in safe mode, what should I do?
[03:08]<jdddd>Scorched lets not go there; we'll save that for another day of public with burning
[03:08]<jdddd>witch
[03:09]<jdddd>oh wait, wrong Salem
[03:09]<musvrrrmrvv>ftp3: Just make sure $catid is set on your main page and you are set.
[03:09]<jdddd>my bad mattmcc
[03:09]<musvrrrmrvv>ftp3: No need to pass it along the include.
[03:10]<lvl1>mustang, i realize i must be quite dense.. but how do I set it on my main page?
[03:12]<musvrrrmrvv>Well in the simplest terms:
[03:12]<musvrrrmrvv>$catid = $_GET['categoryid'];
[03:12]<musvrrrmrvv>But you'll probably want to do it more gracefully than that.
[03:13]<musvrrrmrvv>Do you have register_globals turned on? Looks like it.
[03:14]<musvrrrmrvv>I like to do it like this:
[03:14]<musvrrrmrvv>function set_var($key, $value=0){
[03:14]<musvrrrmrvv> global $url;
[03:14]<musvrrrmrvv> $url[$key] = isset($_GET[$key]) ? $_GET[$key] : $value;
[03:14]<musvrrrmrvv>}
[03:14]<ajfmnz>don't paste here
[03:14]<ajfmnz>!tell MustangMatt about pastebin
[03:16]<musvrrrmrvv>Is pasting 4 lines really a problem when the channel is nearly dead?
[03:16]<musvrrrmrvv>Especially when I'm trying to help someone vs asking questions.
[03:16]<ajfmnz>is pasting a link to a pastebin a problem at all ?
[03:16]<musvrrrmrvv>ftp3: colder will be able to assist you any questions you have. I gotta run.
[03:16]<ajfmnz>and your way of doing it sucks a bit
[03:16]<lvl1>thanks mustangmatt
[03:17]<wg2svzrgm>what is the best way to randomly generate a 255 character string?
[03:18]<ajfmnz>function GET ($index, $value = true) { return isset($_GET[$index]) ? $_GET[$index] : $value; } is quite easy and works fine
[03:18]<2zsxusz>Webstrand: rand() works fine?
[03:18]<wg2svzrgm>can i set how long i want it?
[03:18]<ajfmnz>Webstrand, use range() and then array_rand()
[03:19]<wg2svzrgm>ok
[03:20]<sjpypurus>If I get a date from mysql in "yyyymmddhhmm" format, how can I translate this into a php date so I can use the date() function to reformat it?
[03:20]<wg2svzrgm>coder i need it to have leters, numbers, and other characters (*&^%$#@!)
[03:21]<ajfmnz>Solifugus, use the UNIX_TIMESTAMP() mysql function
[03:21]<mpjgmr>is there some way to get file_exists() to check in include_path ?
[03:22]<sjpypurus>colder: ok.. i will try.. though mysql is goofy..
[03:22]<ajfmnz>no, you need to parse get_include_path and do some ugly hacks







