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-26
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
49
50
51
52
53
Next >
[00:00]<tml>surfdue: No, it doesn't have to be possible. You don't chmod, you just get the file the right permissions in the first place.
[00:00]<suzpmun>TML, this is the first place man.
[00:00]<cdzjwjs>TML, well, how am i to do that? hehe
[00:00]<suzpmun>TML, this is when it has just uploaded it and moves it from the tmp dir.
[00:00]<tml>surfdue: No, "first place" happens before PHP ever gets ahold of the file.
[00:00]<suzpmun>then how can I do that TML ?
[00:00]<tml>Cyroxos: dirname(__FILE__) is a start
[00:01]<tml>Cyroxos: The rest is left as an excercise for the reader
[00:01]<suzpmun>TML, I dont think html has the ability to do that sir.
[00:01]<tml>surfdue: Using the +s flag on the directory.
[00:01]<suzpmun>im not sure how to run the +s flag
[00:01]<suzpmun>or how to set it?
[00:01]<||aw>chmod +s foo
[00:01]<tml>surfdue: You set it via the commandline with root permissions
[00:01]<suzpmun>k
[00:01]<suzpmun>thanks
[00:02]<szzzfyrxv>cythrawll, RH
[00:02]<svr222d>is there a way to include a php file but not have things like html outputted?
[00:02]<tml>surfdue: You set the correct permissions on the parent directory, and then use the +s flag to make sure all descendants get those same permissions.
[00:02]<rdvxzrwff>Scarlight http://php.net/image look at installation
[00:02]<tml>surfdue: php.net/include
[00:02]<tml>stabbby: php.net/include
[00:03]<||aw>stabbby: what do you want to do with that html output?
[00:03]<cdzjwjs>:/ so, instead of <?php include("../main.html"); ?> I use <?php include("public_html(main.htm)l"); ?> ?
[00:03]<rdvxzrwff>Scarlight, maybe you could also find a RH package that has that support with it
[00:03]<svr222d>TML: no, not that, I mean html within the php file I am include, wantd to know if there way a incude the funtions but not execute the html include in it
[00:03]<tml>Cyroxos: <?php include_once $CALCULATED_ROOT.'/thefile.php'; ?>
[00:04]<szzzfyrxv>cythrawll, I thought it was uncommenting something in the ini
[00:04]<svr222d>TML: rather then making another file for the php functions themselfs ot appending the HTML to a varible and output it later
[00:04]<tml>Cyroxos: ALWAYS ALWAYS ALWAYS ALWAYS use the _once version, unless you think you have a valid reason for including the same file twice.
[00:04]<suzpmun>TML, seems to work now, only thing now is my file still fails to download whats really in it it still downloads and inserts html into it. the variable has a correct path: string(56) "/home/uploadian/domains/uploadian.com/files/402-READ.txt"
[00:04]<fwnzvd_>hi, how realiable is php+gd with really heavy use of gd? I mean, will i have to whine "damn, it crashed again" to many times?
[00:04]<rdvxzrwff>Scarlight, that's windows
[00:04]<szzzfyrxv>heh
[00:04]<szzzfyrxv>sucks :P
[00:04]<tml>qwerty_: yes
[00:04]<rdvxzrwff>no it doesn't, its absolutly nothing to recompile
[00:05]<nufd>qwerty_: whats gd?
[00:05]<tml>qwerty_: Heavy use of *any* dynamic image processing is a bad idea right out the gate.
[00:05]<fwnzvd_>image stuff
[00:05]<rdvxzrwff>especially if you have a build file that has all the config options preset
[00:05]<fwnzvd_>TML, what would you recomend me then?
[00:05]<fwnzvd_>"dont"?
[00:05]<fwnzvd_>:)
[00:05]<tml>qwerty_: Pretty much
[00:05]<nufd>we use quite a lot of jpg rescaling, and it works.
[00:06]<nufd>not many concurrent users though
[00:06]<cdzjwjs>TML: i get errors doing that.
[00:06]<tml>euly: I can't quite say why, but I find that hard to believe.
[00:06]<fwnzvd_>its not that ill be doing world maps with gd
[00:06]<tml>Cyroxos: Doing what?
[00:06]<svr222d>qwerty_: unless your using php for desktop development, execessive image manipulations isn't that great on your server
[00:06]<suzpmun>tml anything?
[00:06]<nufd>tml: about 80.000 jpgs rescaled
[00:07]<fwnzvd_>but a lot of users is a part of the plan
[00:07]<cdzjwjs>using that code you offered, i get ..Failed opening '/main.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cyroxos/public_html/articles/totse.php..
[00:07]<tml>euly: Again, I doubt the veracity of your claim.
[00:07]<tml>surfdue: I don't understand the problem you're trying to describe.
[00:07]<fwnzvd_>so gd cant handle it?
[00:07]<suzpmun>did you read what i said?
[00:07]<svr222d>qwerty_: no your server wont
[00:07]<nufd>tml: what should happened? we did rescale 80000 jpgs. why should i pretend it?
[00:07]<rrdrdr>80k images? how long did that take?
[00:07]<tml>Yes, but it didn't make sense.
[00:07]<nufd>enygma: over the last 2 years.
[00:08]<tml>euly: I don't know, why WOULD you pretend such a thing? Just to be contrary, I suppose? You seem to have that trait.
[00:08]<szzzfyrxv>cythrawll, thanks a lot for all your help
[00:08]<suzpmun>ok basically i own uploadian.com im trying to make the download function work http://uploadian.com/files/1043361221/402-READ.txt look in the file it isnt suppose to have the page html in it.
[00:08]<m2n>How can I break down a variable like $foo="whatever/random/morerandom"; to $var_1="whatever"; $var_2="random"; $var_3="morerandom"; ?
[00:08]<nufd>tml: lack of english over here. what means "you seem to have that trait"?
[00:08]<suzpmun>it is the correct path though
[00:08]<tml>euly: You've been doing it alot since you came in.
[00:09]<crd2ny>dbe: split or explode
[00:09]<nufd>tml: what?
[00:09]<tml>euly: Being contrary.
[00:09]<m2n>kambei, Thx.
[00:09]<tml>Cyroxos: You have to set $CALCULATED_ROOT. We're not going to do your work for you, we just point you in the right direction.
[00:09]<fwnzvd_>any sugestions then? i need image shanenigans :)
[00:10]<tml>Don't split
[00:10]<cdzjwjs>o ok ok
[00:10]<cdzjwjs>thank you
[00:10]<tml>Use either explode or preg_split
[00:10]<2ggsjg>hi all again
[00:10]<2ggsjg>TML, what was the reason for explode that split?
[00:10]<2ggsjg>why is explode better?
[00:10]<crd2ny>TML: What's wrong with split?
[00:10]<nufd>tml: ok. well, 2 years ago we set up a server that is doing a lot of things. among other things, it scales about 100 images a day. whats strange about it?
[00:10]<tml>split uses deprecated eregi engine
[00:10]<crd2ny>Oh.
[00:10]<2ggsjg>eh?
[00:10]<tml>euly: The fact that you didn't know what GD is.
[00:10]<crd2ny>dbe: Okay, forget split.
[00:11]<tml>benson: split uses bad code
[00:11]<nufd>tml: i coded it more then 2 years ago.
[00:12]<tml>euly: I still say your claim is more than a little bit incredible. As in, not credible.
[00:12]<tml>Just wanted to make that distinction, given you said you're English impaired.
[00:13]<2ggsjg>aha, *sorta* understands
[00:13]<nufd>tml: but you did not say why so far. how often should the machine have crashed in your opinion?







