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 >
[05:35]<f00jajd>lost_and_unfound the ! tells convert to use those exact dimensions instead of using one of them and keeping the other proportionate. And i tried convert both ways and it made no difference
[05:36]<pjsv_rgm_ugpjugm>and convert is in your /usr/local/bin/convert ? *or whatever/wherever your OS saves it* ?
[05:36]<f00jajd>yes /usr/local/bin
[05:36]<f00jajd>keep in mind that....
[05:36]<f00jajd>when i chmod the image to 777
[05:37]<f00jajd>i can run that exact command in the code, from the command line, as myself, and it works perfect
[05:37]<reredqc>TML: Just in case, the problem was the tags didn't have the "name" attribute.
[05:37]<pjsv_rgm_ugpjugm>hmm.. permissions... the are a oain somethinmes! :)
[05:38]<f00jajd>agreed
[05:38]<f00jajd>this one i can't figure out
[05:38]<f00jajd>is there an easy way to make it so uploaded files are readable by everyone?
[05:38]<wnslnzruw>l008com, i think $height! tells php that there is a variable called $height!, not $height . "!"
[05:39]<f00jajd>really?
[05:39]<f00jajd>hmmmm
[05:39]<wnslnzruw>how would it know
[05:39]<wnslnzruw>that's my guess
[05:39]<f00jajd>i didn't know ! was a valid variable name character
[05:39]<f00jajd>i can test it very fast standby...
[05:39]<wnslnzruw>l008com, dude, i've tried to use image magick soooo many times in php. the exec never seems to work. i could never figure out why
[05:39]<f00jajd>everyone told me it was so easy
[05:40]<wnslnzruw>l008com, convert is easy to use...but i just couldn't figure out why it wouldn't exec()
[05:40]<wnslnzruw>it's hard to tell too...is it permissions? does php have to create a blank file first? iono...
[05:40]<wnslnzruw>anyways, can anyone help me fix this function. again, it's pretty easy, i just can't find the bad logic: http://rafb.net/paste/results/de0qiT22.html
[05:42]<f00jajd>nope getting rid of that ! had no effect
[05:42]<wnslnzruw>l008com, alright mate.
[05:42]<f00jajd>i'm still not even getting anything returned from exec() which is very odd
[05:43]<wnslnzruw>you're using javascript? oh...
[05:43]<sajzaxnm>hesperaux, you mind if I really change this a lot?
[05:43]<wnslnzruw>l008com, that was my same problem
[05:43]<f00jajd>js what?
[05:43]<wnslnzruw>Scorched, lol...i guess not. am i not very efficient?
[05:43]<wnslnzruw>l008com, the pastebin you pasted. or maybe this is someone else's >_<
[05:43]<f00jajd>no js
[05:43]<f00jajd>for me
[05:43]<wnslnzruw>l008com, sorry wrong pastebin >_>
[05:44]<f00jajd>oh
[05:44]<sw0eme>I am trying to have an if statement to have an header if something makes it true but it gives me the modified headers stuff
[05:44]<sw0eme>it is the very top
[05:44]<sw0eme>under some include syntax's
[05:46]<wnslnzruw>Scorched, once i got it to work, i was going to make it a more efficient function
[05:46]<lvl1>mustangmatt was helping me earlier, but I had to go. I am trying to pass a variable along to a script I am calling. I am using this line: <?php include("/usr/home/public_html/links/resources/link.php"); ?>, but I NEED to be calling it like <?php include("/usr/home/public_html/links/resources/link.php?catid=1"); ?> Matt mentioned using $catid = $_GET['categoryid']; but either I did it wrong or it doesnt work
[05:46]<lvl1>can anyone give me some clues?
[05:47]<wnslnzruw>ftp3, you use the location bar for that
[05:47]<wnslnzruw>$_GET is a global variable referring to variables passed in the url if i'm not mistaken
[05:48]<lvl1>i am trying to include some data in the middle of a page, I cannot put that in the location bar because I want to call different catid's in the page
[05:48]<sw0eme>how id it possible to have several header modifcation work at once
[05:48]<f00jajd>this is so annoying
[05:48]<wnslnzruw>ftp3, otherwise, you'd need to assign the variable $catid = 1; and then next line include the file
[05:48]<twnd_>ftp3: Wrong way 'round. If you've passed catid on the URL, it'd be $categoryid = $_GET['catid'].
[05:48]<f00jajd>i just ran the convert command as sudo -u www and it did the same thing, no errors, nothing returned, but no results either
[05:48]<twnd_>sw0rdz: It's not a problem, unless you send HTML output.
[05:48]<sxzzypp>I am dealing with numbers that are running into the millions and the billions.. is there a function that helps you make it readable?
[05:48]<sxzzypp>Either by having it look like 94.884 x 10^9 or 94.994.994.039 or both?
[05:49]<sw0eme>http://pastebin.ca/109457 it gives me cant modife headers
[05:49]<twnd_>sw0rdz: You've sent output.
[05:49]<lvl1>twey: ok. well, what is the way for me to make it display this: <?php include("/usr/home/public_html/links/resources/link.php?catid=1"); ?> ?
[05:49]<wnslnzruw>l008com, it's the www user's permissions?
[05:50]<f00jajd>huh?
[05:50]<musvrrrmrvv>sw0rdz: ob_start()?
[05:50]<sw0eme>i tryed it but i dont know if i am using it corrrectly
[05:50]<sw0eme>i put ob start above my includes
[05:50]<wnslnzruw>ftp3, i don't think you can't do that
[05:50]<sw0eme>mustage, i pust that above my includes
[05:50]<musvrrrmrvv>sw0rdz: That should do it
[05:50]<sw0eme>and then it doesn't change the headers when the if statement is true
[05:50]<wnslnzruw>ftp3, include asks for a filename. if you want to pass a var into it, you can put a variable declaration in your <?php ?> block right before you include it
[05:51]<twnd_>Shariff: for($i = strlen($str); $i > -1; $i -= 4) $str = substr($str, 0, $i) . ',' . substr($str, $i, strlen($str));
[05:51]<qt9drgan>Hi
[05:51]<wnslnzruw>ftp3, <?php $catid = 1; include("/usr/..../link.php");
[05:51]<twnd_>Shariff: Something like that, anyway.
[05:51]<sw0eme>mat you see the sql count. Well I know for a fac that it is more then 0 and it doesn't change the header location
[05:51]<lvl1>hesperaux: yes, I tried several ways.. but it does not work. such as: $catid = $_GET['1'];
[05:52]<wnslnzruw>ftp3, $_GET is an array of values that are retrieved from the browser
[05:52]<f00jajd>is there any easier way to make jpg thumbnails of tiffs from uploaded tiffs in php?
[05:52]<wnslnzruw>ftp3, unless i don't know what i'm talking about, which is possible. i'm quite new
[05:52]<wnslnzruw>l008com, just thumbnails? you can use GD lib
[05:52]<f00jajd>i tried
[05:52]<qt9drgan>My Php won't let me upload files and doesn't produce any errors
[05:52]<lvl1>hesperaux: i did what you said, and it errored with: /public_html/links/resources/link.php1
[05:52]<wnslnzruw>l008com, i'm donig that now actually. but you can't get cool effects like sepia-tone or inverse =(
[05:52]<lvl1>so thats closer than I was
[05:52]<f00jajd>i think my problem was getting php to compile with GD activated
[05:53]<f00jajd>i don't need effefts, i just need thumbnails
[05:53]<wnslnzruw>l008com, couldn't compile GD eh? hmm...i use gentoo =/ USE="gd"
[05:53]<wnslnzruw>lol
[05:53]<f00jajd>i tried all sorts of different things
[05:53]<wnslnzruw>l008com, some versions of php are rude when you compile them. =|
[05:53]<f00jajd>you need extra libraries for tiff support
[05:54]<[yvzn2rf_sfnnl]>night!
[05:54]<luzgpusyjg>anyone know of any good resources for planning to build an object oriented application (pref php specific) ?
[05:54]<sxzzypp>Thanks Twey_! :D
[05:54]<twnd_>Shariff: Welcome... dunno if it'll work unmodded though :-P
[05:55]<wnslnzruw>Scorched, hehe, i got my function to work.
[05:55]<lvl1>hmm, now I get this error: main(/usr/home/public_html/links/resources/link.php?catid=1): failed to open stream: No such file or directory in /usr/home/public_html/html/resourceswork.php
[05:56]<sajzaxnm>hesperaux sorry that I got distracted, I'll post it, hang on.
[05:56]<sajzaxnm>hesperaux, http://rafb.net/paste/results/VB23YV75.html
[05:57]<sajzaxnm>(i didn't test it, but it looks right)
[05:58]<lvl1>so, i guess. I am wanting it to pass that variable on to the link.php file..
[05:58]<lvl1>not add it to the include
[05:59]<lvl1>so, could someone help me to pass a variable (catid=1) onto an include script?







