Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

09 October 2007


Total 44 pages. You are browsing page 1/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Tue Oct 09 00:00:02 2007
00:00 <****> syntux: yes
00:00 <****> :)
00:00 <****> Hi. I want to find out the name of the current "main" file being executed. I tried __FILE__ but if I'm in an include it will output the name of the included file. I also tried basename($_SERVER['REQUEST_URI']) but If the request is / then it won't return index.php. What can I use?
00:00 <****> libmagick9-dev libraries
00:00 <****> ornicar: var_dump( $_SERVER ); and select what is the closest to the truth
00:00 <****> rza, thank you, I owe you dude.
00:01 <****> proapbly SCRIPT_NAME
00:01 <****> Biolante and marklar: thanks.. i got it now..
00:01 <****> is there a simple php script i can put on my website that will log the IPs of who comes on it?
00:01 <****> syntux: well, not really :)
00:01 <****> rza: thanks
00:01 <****> yw
00:02 <****> Bohemian: doesn't your webhost keep logs? :\
00:02 <****> rza: thanks it looks like PHP_SELF will work
00:02 <****> in general, just write $_SERVER['REMOTE_ADDR'] along with a timestamp to a file or something
00:02 <****> marklar: no
00:02 <****> marklar: and i dont know php so i need a script ;)
00:03 <****> Bohemian google is your best bet here
00:03 <****> php script ip collection?
00:03 <****> what exactly am i looking for?
00:03 <****> ip logging
00:04 <****> you can either store it in a database or a flat file
00:04 <****> Bohemian: function _log_ip() { $fd = fopen("/path/to/log.txt", "a+"); flock($fd, LOCK_EX); fputs($fd, sprintf("%d|%s", time(), $_SERVER['REMOTE_ADDR'])); flock($fd, LOCK_UN); fclose($fd); }
00:04 <****> then just call _log_ip wherever
00:04 <****> guys, how do i check if a variable contains only a numbers?
00:04 <****> syntax-error: is_numeric
00:04 <****> syntux: ctype_digit or is_numeric
00:04 <****> Cheers :)
00:05 <****> is_numeric will return true with floats
00:05 <****> so its not just numbers
00:05 <****> hrm
00:05 <****> floats aren't numbers? :D
00:05 <****> marklar: make that a text file and put it in my public_html folder?
00:05 <****> well, not only numbers
00:05 <****> is_int then
00:05 <****> Right, cool
00:05 <****> Bohemian: yeah, writable by httpd
00:06 <****> is_int will return false if its a numeric string :)
00:06 <****> what is httpd?
00:06 <****> uhm
00:06 <****> chmod 666 log.txt
00:06 <****> kthx
00:06 <****> oh
00:06 <****> Bohemian: a bit like a zeppelin
00:06 <****> but a bit smaller
00:07 <****> Can I put multipul fields in a LIKE statement?
00:07 <****> thanks
00:08 <****> I'm trying to find the best development environment for LAMP on Ubuntu Gutsy, any ideas?
00:08 <****> Hi.
00:08 <****> I've got a full Zend License, but Zend runs very poorly with 512MB RAM
00:08 <****> drewzf: vim
00:08 <****> :)
00:08 <****> drewzf: gvim?
00:09 <****> I'm looking for something a bit more... polished... or complete....
00:09 <****> And I'm in a GUI environment
00:09 <****> drewzf: eclipse?
00:09 <****> marklar: this would just be /path/to/log.txt ~/public_html ?
00:09 <****> Zend AND Eclipse?
00:09 <****> gvim has code coloring
00:09 <****> you want his machine to die?
00:09 <****> the man only has enough ram for one of them
00:09 <****> ~/chris/public_html/log.txt
00:09 <****> Haha, thanks marklar
00:09 <****> or that?
00:09 <****> You seem to understand my situation
00:09 <****> drewzf try Eclipse PDT
00:10 <****> I'd love to use Zend but it's simply too intense for this little laptop
00:10 <****> why would he need to run both at the same time?
00:10 <****> drewzf: you could also check out bluefish
00:10 <****> he has a full license, so he's probably running all the server extensions and stuff
00:10 <****> = heavy
00:10 <****> dreamweaver ftw
00:10 <****> erm, really, drewzf you dont run Zend Platform on your laptop?
00:10 * deshymers smacks SwiftDog
00:11 <****> hurhur
00:11 <****> Bohemian: a full path is preferred
00:11 <****> Biolante, I'm trying to run Zend Studio on my laptop
00:11 <****> just studio?
00:11 <****> Primarily
00:11 <****> man, 512mb...
00:11 <****> cuz full Platform suite is MONSTER
00:11 <****> it's like we're in 1999 again
00:11 <****> I know -.-'
00:12 <****> I'm getting a new laptop soon
00:12 <****> really, try Eclipse PDT
00:12 <****> Biolante, I tried installing Aptana(sp?) and PDT and figured out that Eclipse and I just weren't meant to get along
00:12 <****> ok, slightly more tricky, how can i check to make sure a string contains only 0-9 ?
00:12 <****> But I'm down for another try
00:12 <****> drewzf: http://bluefish.openoffice.nl/ i dunno if that might be more what you are looking for
00:12 <****> drewzf: heh, I'm running VS 2005 + Eclipse on a box with 2gb and it's still laggy
00:12 <****> Does Eclipse+PDT feature SFTP?
00:12 <****> eclipse is too heavy, imo
00:12 <****> syntax-error ctype_digit
00:13 <****> there is lot of plugins for Eclipse
00:13 <****> syntax-error: pcre
00:13 <****> SFTP too
00:13 <****> rza, almost all methods with Imagic are undefined, is that normal with version 2.0.0 /
00:13 <****> marklar not heavier than Zend :)
00:13 <****> pcre just to check for digits?!


Total 44 pages. You are browsing page 1/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo