#php
22 October 2007
Total 32 pages. You are browsing page 1/32.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Oct 22 00:00:06 2007
--- Day changed Mon Oct 22 2007
00:00 <****> foutrelis: thanks
00:03 <****> dumped: You've problems with PHP code yoo
00:04 <****> to use level up var in func i use global right?
00:04 <****> "global"
00:05 <****> nevermind
00:05 <****> alex_funky_dj so what we can do please
00:05 <****> ?
00:07 <****> dumped: where have you got a script? you should get a database structure from same place
00:08 <****> Naktibalda: I've a player in this file : http://rafb.net/p/UOlJph53.html that gets file from here : http://rafb.net/p/1kadxF79.html
00:10 <****> hello... does anyone here use eclipse pdt with zend debugger?
00:11 <****> alex_funky_dj: you can't use session for that
00:11 <****> mhh... if i have $var=2; function foo($var=NULL){ how to get $var ther but not in foo(param)}
00:11 <****> Naktibalda: why ?!
00:11 <****> flash player connects to video file from different domain
00:12 <****> he hasn't session id
00:12 <****> Naktibalda: is session restricted by domain ?!
00:12 <****> it is restricted for a client :)
00:12 <****> your browser has a session cookie
00:12 <****> flash player hasn't
00:12 <****> global does't seem to work
00:12 <****> aha, got it
00:13 <****> so what's best solution for this ?!
00:13 <****> cookies is restricted to domain
00:13 <****> I used HTTP_REFERER, but for sorry Firefox doesn't send referer !
00:14 <****> put a hash to url and store it in database
00:14 <****> what's a good editor for linux?
00:14 <****> than check did a hash exist in database
00:14 <****> Naktibalda: can't get you !
00:14 <****> !+editors
00:15 <****> daws:phpeclipse
00:15 <****> phpeclipse
00:15 <****> hmm
00:15 <****> isn't PDT better?
00:16 <****> what is PDT?
00:17 <****> extension for eclipse
00:18 <****> alex_funky_dj: INSERT INTO video_sessions(id, ip, `time`) VALUES('$video_id', REMOTE_ADDR, NOW());
00:19 <****> than in video.php check did such record exists
00:20 <****> you want to forbid hotlinking, right?
00:20 <****> Naktibalda: that's great, but will work ONLY on same domain, cause of database right ?
00:20 <****> Naktibalda: yes, want to forbid hotlinking !
00:20 <****> you mean same server?
00:21 <****> sorry, yes same server
00:21 <****> yes
00:21 <****> http://adjaxio.miniville.fr/
00:22 <****> Naktibalda: so, what's best sol for hotlinking ?!
00:22 <****> I don't know :)
00:23 <****> :D
00:23 <****> your scripts is on different servers?
00:25 <****> yes !!
00:25 <****>30 minutes - die
00:25 <****> but I can put both on same server !
00:25 <****> :D, I LIKE IT
00:25 <****> looool, so nice so simple :D
00:26 <****> do be more secure, you can add timestamp and md5('salt text'.$timestamp)
00:26 <****> than check that in video.php
00:26 <****> aha, yes :)
00:28 <****> Naktibalda: Thanks a lot :)
00:29 <****> what's the function that will trim off all white spaces anywhere within a string?
00:30 <****> strtr probably :)
00:31 <****> that only translates current text into whatever i want but it doesn't take out spaces
00:32 <****> str_replace or preg_replace can
00:32 <****> how bad is to hanle syntax errors with set_error_handler and exceptions
00:32 <****> handle, rather
00:33 <****> k
00:33 <****> thanks
00:33 <****> localshot: Parse errors aren't processed by the custom error handler.
00:33 <****> Wolfpaws: would you suggest a workaround
00:34 <****> localshot: yes. Don't make parse errors
00:34 <****> Wolfpaws: but i need to ?
00:35 <****> localshot: Why?
00:36 <****> Wolfpaws: because im required to add some kind of happy crap to errors
00:36 <****> localshot: not to parse errors
00:36 <****> Why would $_ENV['FOO'] not exist when getenv('FOO') does?
00:37 <****> guys, do anyone knows how can i draw a line inside html if x1,y1,x2,y2 are given ?? either than draw million div with a point
00:37 <****> mnuaimat: Use an image
00:37 <****> that has nothing to do with php :)
00:37 <****> DavidHammond: i want to draw lines dynamically
00:37 <****> mnuaimat: GD
00:38 <****> mnuaimat: or use javascript, which isnt realted at all with php
00:38 <****> localshot: i want it on the client side, not on server side
00:38 <****> related*
00:38 <****> mnuaimat: You can try looking into SVG (all modern browsers except Internet Explorer) and VML (for Internet Explorer)
00:38 <****> localshot: javascript , ok , but what should i do to draw a line ?
00:38 <****> mnuaimat: have you wondered yourself, "is php a client side language?"
00:38 <****> localshot: huh ??
00:39 <****> mnuaimat: im no javascript master altough people in #javascript are very helpfull
00:39 <****> This $_ENV[] vs. getenv() nonsense is killing me. The PHP manual doesn't seem to indicate any difference between them.
00:40 <****> $_ENV is mutable
00:40 <****> hello, I need to run a linux command with some parameters, and wait till it finishes execution. I am running an Apache XAMPP server, and seems that, when I test "shell_exec()" it works asynchronously. How can I do it synchronous?
00:40 <****> getenv('FOO') returns what I want, but $_ENV['FOO'] doesn't exist
00:41 <****> hi folks - is it possible to temporarily redirect stdout to a file in PHP?
00:42 <****> ob_start(), ob_get_clean()
00:42 <****> i think so using fpasstru/output buffering
00:42 <****> if I start session from 1 page... then I use ajax to load another php script the session is still intact right?
00:42 * Arathorn reads up on ob_* - thanks :)
00:43 <****> Aha! The auto_globals_jit option is what's screwing it up. It was on, so the variable wasn't being added to the array.
00:44 <****> yikes
00:45 <****> Is there some way to define a PHP constant from an .htaccess file or Apache conf file?
Total 32 pages. You are browsing page 1/32.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
