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: 1952.35 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-10
[11:33]<djjsdnd>anyone ever use imagejpeg()
[11:33]<djjsdnd>i having hard time writing to the dir, its chmodded 777
[11:34]<djjsdnd>Unable to open thumbs/1/ for writing
[11:34]<djjsdnd>i tried full path/thumbs/1/ ./thumbs/1/ /thumbs/1/
[11:34]<djjsdnd>nothing :/
[11:39]<cwxye>moosiey: You want to call it "1"?
[11:40]<djjsdnd>thats a subdir in thumbs
[11:40]<djjsdnd>my current userid :)
[11:40]<cwxye>moosiey: Do you have a filename at the end of that?
[11:40]<djjsdnd>yes, you think it would have ouputted the filename?
[11:40]<djjsdnd>let me check that
[11:41]<cwxye>moosiey: http://hashphp.org/pastebin
[11:42]<djjsdnd>oh i read the code wrong ($thumb, $thumbdir, 100)
[11:42]<djjsdnd>was thinking $thumb was the filename but thats the actuall data
[11:42]<cwxye>moosiey: Yes ;)
[11:42]<djjsdnd>someone should fix php.net for making it $thumbdir hehe
[11:43]<djjsdnd>fooled me after writing it
[11:45]<djjsdnd>oh i did that like a schmuck
[11:46]<djjsdnd>time for bed, thanks and gnite
[11:47]<cwxye>Good night.
[11:47]<djjsdnd>bah my thumbs are all black
[11:47]<djjsdnd>lol
[11:47]<_nzr_>whats a good PHP based CMS for editing and maintaining around 50 pages, with support for password protected areas, printer friendly versions of all pages and customisable drop down menus?
[11:48]<_nzr_>something simple
[11:48]<cwxye>_era_: Precisely :)
[11:48]<cwxye>_era_: Know why that is?
[11:48]<djjsdnd>era session_start?
[11:48]<djjsdnd>:)
[11:48]<_nzr_>and that will make getting them to do what I actually do need far more work than going from scratch
[11:48]<_nzr_>CWhiz: no, what?
[11:48]<_nzr_>why rather
[11:49]<_nzr_>lol
[11:49]<cwxye>_era_: Because they need to be all things to all people :)
[11:49]<_nzr_>I was looking more for something that does my work for me
[11:49]<djjsdnd>i dunno what the code is but i think joopla is ok
[11:49]<djjsdnd>or was that xoomla
[11:49]<djjsdnd>there's about 50,000 of those clones now open source
[11:50]<cwxye>_era_: See if anything at http://www.opensourcecms.com/ strikes your fancy (hint: I thought everything there didn't fit what I wanted).
[11:50]<_nzr_>CWhiz: lol - yer, I remember David Heinemeier Hanssons blog post on CMS's 'try to remember, there is no content'
[11:50]<cwxye>If what you want is truly simplicity, you may be better off writing it yourself
[11:50]<djjsdnd>http://www.ehosts.org/web-hosting.html <-- look at the cms section, there's as hitload there with links to their site
[11:51]<_nzr_>CWhiz: yer, I aggree it could work out better if I do that
[11:51]<_nzr_>CWhiz: but I'd like to at least investigate using an already existing onw
[11:51]<_nzr_>onew
[11:52]<_nzr_>moosiey: cool thanks for link moosiey, very helpful
[11:53]<djjsdnd>np
[11:53]<_nzr_>I think the problem is that most CMS's will do way more than I need
[11:54]<_nzr_>Mambo looks promising
[11:55]<mbnfn>hey all
[11:55]<mbnfn>how can i display only 2 numbers after the decimal without any rounding?
[11:55]<mbnfn>i read number_format function but didn't know how...
[11:55]<djjsdnd>number_format
[11:56]<mbnfn>moosiey, can you tell me how?
[11:56]<djjsdnd>you can try money_format, but it requires strfmon on the server
[11:56]<djjsdnd>number_format($var,2)
[11:57]<djjsdnd>echo "Cost: " . number_format($cost,2);
[11:58]<djjsdnd>not sure if it rounds or not, read alot about that and how it might be banker routing etc...
[11:58]<djjsdnd>you might need more advanced code
[12:03]<mbnfn>moosiey, thx... i just asked the boss.. he doesn't mind the rounding
[12:05]<djjsdnd>if your not a gas station or doing wierd convertions, doubt it'll be a problem hehe
[12:06]<_ee>is there a way to check a string for two particular chars?
[12:06]<djjsdnd>strpos or something like that
[12:08]<djjsdnd>strstr
[12:12]<djjsdnd>preg_match of course
[12:16]<t_v>hello all. maybe this is a stupid question, but what does '===' do ?
[12:17]<slcjd2>checks type and value
[12:18]<_ee>how do you append something to an array if you don't know what the next available index is?
[12:18]<slcjd2>[]
[12:18]<slcjd2>php automatically assings it to the next index
[12:20]<mrg__v>mysql's benchmark() is broken.
[12:20]<mrg__v>or so it seems!
[12:21]<t_v>SpComb thnx
[12:23]<djjsdnd>can never remember the mysql_num_rows syntax
[12:24]<djjsdnd>$mysql_numrows heh
[12:26]<szuzzqx-q>hello , i need help with php's socekt programming
[12:26]<szuzzqx-q>i want to know whether I can use BlueZ with php
[12:26]<szuzzqx-q>or any other similar stack
[12:28]<djjsdnd>wtf
[12:28]<djjsdnd>i still can't get it right
[12:33]<rrrrvxnsx>Hi
[12:33]<rrrrvxnsx>I tried installing phpBB in RH EL4
[12:34]<rrrrvxnsx>I created the DB and grant the previllages
[12:34]<rrrrvxnsx>When i tried installing using install.php, it asks the login credentials
[12:34]<rrrrvxnsx>When i entered into the credentials the page is not pulling
[12:35]<ndf>jagathesh, Please, don't try to get help about downloaded scripts.
[12:35]<rrrrvxnsx>The errorlog shows PHP_SELF variable is not found
[12:35]<ndf>I'm sure phpBB has their own IRC-channel.
[12:35]<rrrrvxnsx>ok
[12:36]<sgc00sa>hi, how can i output a dynamical constantname ?
[12:37]<sgc00sa>like echo CONSTANTNAME_$i or something
[12:39]<mrscm>wouldnt it be better to use an array or something
[12:40]<prrrnf>snk00sj: constant('CONSTANTNAME_' . $i);
[12:40]<sgc00sa>lemme t yr
[12:40]<prrrnf>snk00sj: well, echo constant(..);
[12:40]<sgc00sa>ok works
[12:40]<sgc00sa>thanks man !
[12:40]<prrrnf>snk00sj: np
[12:47]<rrdynf__>Hey all, is there any way to declare an abstract constant in your abstract class. eg. a constant that needs to be defined in any class extending your class for the class to work?
[12:50]<rrdynf__>hmm, guess there are better ways to write this method







