| |
| |
| |
|
Page: 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
Comments:
<0> Or "Latin is dead!" <1> Crell: Quoi?? <0> lol. Never mind. <2> I know, but in the context of our location, I thought I'd play word games <1> Crell: Latin is dead! :) <2> no pun intended <2> okay fine.... all pun intended <0> hehe. <0> Word doesn't have games, but Excel has DooM. <3> Excel has a flight-simulator <4> anybody point me in the right direction for more info on cmx tags? one of our sales people sold a hosting solution to a site which currently uses a "CMX Content Managment" and were told it should run under php..the actual end-user is IE only...any ideas what the back-end is? <0> Does parent:: work for static methods as well as normal methods? <5> rhavenn: CMX is almost certain "Coldfusion MX" <5> s/certain/certainly/ <6> Hi there <6> any lord of the regexp around here?
<5> !tell loiic about g1 <6> i'd like to separe the file name and its extension, of course the file can have many occurrence of "." and some file don't have extension <5> loiic: php.net/pathinfo <7> loiic: so look for the position of the last '.' and take the substring starting at the next position until the end of the string? <8> is there any funciton to rearrange array's keys in a specific order, defined by another array? <5> Or just use pathinfo, which does the heavy lifting for you <6> i actually have done that /^(.*)?(\..*)$/ but doesnt really work when the file has to extension ... <8> (apart from writing my own function) <6> thanks TML, i am reading the man page at the moment <7> loiic: You don't need regex for this problem, nor was I suggesting it. <6> how would you get the last position of the string ? start counting from the end of the string, or using a php function ? <3> loiic: substr <5> strrpos <3> oh, i misread the question <5> !+func strrpos <9> int strrpos(string haystack, string needle): Finds position of last occurrence of a character in a string within another <6> wonderful <6> thanks everybody <10> how do i tranfer variables past more than one page? like variables from page1.html->page2.html->page3.php <10> or such <5> cyphor: --with-jpeg-dir=$withpath looks for $withpath/lib and $withpath/include <11> so I need /usr/local, and it will then look in /usr/local/lib? <10> or page1.html->page2.php->page3.php <5> cyphor: Correct <11> k thanks <5> GalaMahina: The easiest way is generally sessions <10> TML, how? <5> GalaMahina: php.net/session <11> bah, /usr/local didn't work.. <10> yeah i'm reading that now, but I mean.... <12> trying to open a file with fopen($filename, "wb") but keep getting permission denied error, i have set the file to 777 is their something else i shoud do like chage the group name or something? <5> cyphor: Are you sure your libjpeg.so is valid? <13> _cathal: try 'r' to see if there is something else wrong <10> say I do $_SESSION['$answer1'] = $answer1, is that an initialization for the session variable? <5> _cathal: The directory needs to be writable as welll <5> GalaMahina: What does the manual say? <11> lol, ignore me TML, I forgot I tried before removing -dir, so I just tried --with-jpeg=, trying --with-jpeg-dir now.. <11> as far as the .so's, I believe so, I downloaded the jpegsrc-v6b.. .. .. and installed it, and have checked /usr/local/lib for them.. <5> cyphor: Why not use your package manager? That's generally a better idea. <11> yea, I should be... <5> "/root/home/jared/root/home/jared/root/home/jared/root/home/jared/root/home/jared/root/home/jared/root/home/jared/root/home/jared/root/home/jared/src/php.tar.gz" <11> lol <5> Someone was a bad boy <14> ... awesome <5> Good grief...no WONDER the disk is full! <15> found some p0rn? <5> No, just someone who did "cp -aL /home ." <5> And /home had a symlink to / <5> Well, /home/jared did <16> cheers TML its always something simple <5> cathal: The same goes for pretty much every configure script in the world. Generally, you don't want to p*** the /lib or /include component, because it needs to find both <5> I'm surprised it didn't hit PATHLEN_MAX before it ran out of disk <17> TML: Heh... sounds like a fun day at work. :P <11> TML: still won't work =( - you see anything helpful here --> http://pastebin.com/658070 ? <5> cyphor: That still says /usr/local/lib <5> cyphor: Also, --with-jpeg isn't a valid PHP flag <11> I ran that with /usr/local, I actually pulled that off another server where I installed this stuff a few months ago, the servers are nearly identical... I even checked the config.status for the libjpeg on the other server, and ran ./configure --enable-shared and that was it on it.. <11> I also tried it without the --with-jpeg, I just added it back because I saw the other server's config.nice had --with-jpeg and that one compiled into gd right.. <5> cyphor: Why are you trying to use PHP's bundled GD? Just install GD from your package manager.
<11> bah, everything I have I downloaded and compiled, lol... <17> Man it's hot today. <11> suppose I like to learn, instead of running emerge with the right USE variables.. <17> cyphor: Gentoo? You can still use the system's version of GD and build PHP for yourself. <18> BigE why wyud u want to? <5> !tell krisp about u <18> TML sos <18> :) <18> forgot myself there <17> krisp: Because I like customizing PHP beyond what emerge allows me to. <5> Save your ship? <11> yea, I have everything working good now, just can't seem to get libjpeg working... <18> UK contraction of sorry ... <19> Am I overlooking anything from a security point of view: I'm allowing users upload files through a webform to a directory which has a .htaccess limiting GET/POST and requiring a valid-user. The idea is that PHP can still access these files but browsers cannot? <19> Or is that fine? <19> Also I will check if the extension is '.png'. (Just incase someone tries to upload malicious .php files or whatever) <3> krisp: same old ****? <17> cyphor: I'm looking at the pastebin, just a second. <11> k thx, I will be right back in 2 mins <17> cyphor: You have libjpeg in /usr/local/lib/lib/ ? That's what you're telling PHP's configure. <11> BigE: TML told me about that, so I tried /usr/local, one sec and I'll put up a pastebin that might be more helpful =) thx btw <19> Can anyone comment on whether or not I'm overlooking anything? <17> cyphor: Are you sure that libjpeg exists in /usr/local/lib though? By default, Gentoo installs it into /usr/lib <11> yes, it does <20> How to make preg_match() search for shortest, not longest match ? <20> ok, got it (? must be added after * for example) <21> mg_: o.O <11> BigE: here is what I just did --> http://pastebin.com/658117 <21> does the libjpeg has it's own directory in /usr/local? And why aren't you using your system library located in /usr? <11> no <21> no what? <11> no it doesn't have it's own directory in /usr/local <21> and why aren't you using the system-wide library? <11> what is the system-wide library - /usr/lib ? <20> Stormchaser, In $var='"abc""efg"'; /".*"/ will match whole string, but /".*?"/ will match only "abc" <21> cyphor: /usr <22> what is a good code viewing program for linux? <22> i use programmers notepad for windows and that rocks <22> want something similar for linux <20> gedit <11> I simply ran ./configure --enable-shared, /usr/local/lib is where libjpeg put it's libraries.. didn't think it would be an issue <21> !tell lorfds about editors <23> hi all, anyone know if there's a more descriptive error code I can access when file_exists() fails ? <21> zadas: There isn't... <21> zadas: There's usually a more descriptive error, if you use fopen on inaccessable file. <23> oh I see <17> cyphor: Are you running `make clean && make distclean` before you configure? <11> no <24> biggie! <17> enygma! <17> cyphor: You should, otherwise the output could be cached. <21> zadas: Both functions return FALSE on faliure, anyways... So I'd suggest a combination of is_readable / is_writable, file_exists and is_dir() <11> k <21> BigE: s/could/will <23> Stormchaser, thanks <25> Yo Stormchaser. <25> Anybody have experience validating e-mail addresses? Not just the format, but actually connecting to the mailserver and seeing if it'll go through. <11> I ran make clean && make distclean against libjpeg and php, then re-installed them both.. The following php configure worked --> http://pastebin.com/658142 <26> hmm sockets <26> cyphor: this on your gentoo box? <27> Hey everyone. What would be causing curl_exec to return true/false instead of the contents of the page. And yes, I do call curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); <11> one of em yea <26> whynot USE="flags" emerge php ? <28> AfroTurf, Do you ever sleep? <21> ... <11> I have 2 gentoo boxes for developing, and when I get done developing my app I'm going to spend the time to setup a production server very carefully... <26> i think libjpeg is one of them <29> question: has anyone seen a code snippet to p*** a dir path and return the file modification date of the most new file in the dir? <21> !+prefix <9> You probably have wrong prefix directory for your application in the configure switch... Usually the applications, that contain the includes in /usr/include and libraries in /usr/lib are installed in /usr... Try --with-<yourswitch>-dir=/usr rather than --with-<yourswitch>-dir=/usr/lib <11> yea, probably should.. <26> will[werk] no i don't :) <28> :) <26> i'll sleep good tonight though :)
Return to
#php or Go to some related
logs:
weechat quakenet #linux #css #oe maildirmake -q hangs 214 netqmail home page heh to ascci #perl #perl +ubuntu +device manager +change setting
|
|