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

Channels


#php

15 October 2007


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

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

--- Log opened Mon Oct 15 00:00:04 2007
--- Day changed Mon Oct 15 2007
00:00 <****> i have no constructor
00:00 <****> AlReece45, are you doing this y your self or is this cleaner or smth like that that you use ?
00:00 <****> graywhite: not really, at least afaik
00:00 <****> spamyboy: by myself ;P
00:01 <****> Hi I'm making a calendar app in php, in a table I have 1 colon with hours and the other colon with events, it is possible to make the entire cell to be a link? so I can just leave the cell and the user click on the empty cell of the table to insert events?
00:01 <****> spamyboy: though there are many editors that will help you indent your code
00:01 <****> spamyboy: and there are some tidy programs.
00:01 <****> Hmm, im still confused how i would store the output of print_r($array) into a string
00:01 <****> Er, variable
00:01 <****> I just want to be able to store the output into a file for easy reading
00:02 <****> it is nice this solution?
00:02 <****> Ny0: you might need to use javascript and have a onClick event... wouldn't work on scripts with javascript disabled or without javascript support though... keep them in mind.
00:02 <****> try $output = print_r($myvariable, true);
00:03 <****> I don't want to use js... but if it is the only one solution...I'll go..
00:03 <****> AgentScorpion : thanks, ididnt think i could do it like that, will try it out
00:03 <****> ???
00:04 <****> Ny0: should work
00:04 <****> ok
00:04 <****> Ny0: it also looks as though you can use CSS to expand to the entire contents of the cell.. you would have to do this for each column though.
00:04 <****> tags
00:05 <****> tags
00:05 <****> right?
00:05 <****> Ny0: maybe
00:05 <****> who nows how to generate random strings with a certain length ?
00:05 <****> Ny0: might be more of a question for #html
00:06 <****> you're right
00:06 <****> caotic: you create your own function
00:06 <****>
00:06 <****> AlReece45: crap
00:06 <****> na
00:07 <****> caotic: use a for loop and rand
00:07 <****> <3
00:07 <****> yeah but still is a 24 level switch to generate a char
00:08 <****> caotic: a nice way is substr(md5(uniqid()), 0, 5) will give a 5 letter random string
00:08 <****> more than 32 would be interesting, but it is probably faster
00:08 <****> uniqid() /??
00:08 <****> http://php.net/manual/en/function.uniqid.php
00:10 <****> caotic: http://alreece45.no-ip.org/%23php-2007-10/random_string.php http://alreece45.no-ip.org/%23php-2007-10/random_string.phps
00:11 <****> yeah that may work AgentScorpion thanks
00:11 <****> im tring to make a rando filename generator for user uploaded files
00:11 <****> np
00:12 <****> How can I make sure a file that's supposed to be included in another is never accessed directly?
00:12 <****> put it outside webroot
00:13 <****> what function gives lenght of variable value ?
00:13 <****> strlen?
00:13 <****> spamyboy: what type of variable
00:13 <****> count?
00:13 <****> for e.x. i value is "apple" so count should be 5
00:13 <****> bolt: you could define a constant in the file that should be accessed directly and in the included file do if(!defined('CONSTANT')) { die() }
00:13 <****> so it is count ?
00:13 <****> spamyboy: strlen
00:13 <****> thank you.
00:14 <****> np
00:15 <****> AlReece45, still there?
00:15 <****> oh, nevermind ;P
00:15 <****> Riotblade: maybe
00:15 <****> Riotblade: you are probably missing a library from your system (I think). What extensions are you trying to load? <--- I'm trying to load ffmpeg.so and phpshield
00:15 <****> It was working before I went and installed the worker module
00:16 <****> Riotblade: eh
00:17 <****> ok I am trying to format numbers in a money format $1,100.11
00:17 <****> i did
00:17 <****> setlocale(LC_MONETARY, 'en_US');
00:17 <****> echo money_format('%i', $subTotal);
00:17 <****> Hey, what does it mean when it tries to load an extension but gets a "undefined symbol: executor_globals" error?
00:17 <****> where $subTotal is my number i want formatted
00:17 <****> It was a while ago
00:17 <****> Riotblade: how did you install the module?
00:18 <****> but it says the function is undefined
00:18 <****> by compiling ffmpeg and make install and the other one comes in a package
00:18 <****> before I switched over to worker I didnt need to include php shield since dl() worked
00:20 <****> Hi! nusoap/wsdl : How to return a complextype in function? I am looking for a good tutorial
00:20 <****> kur1j: Note: The function money_format() is only defined if the system has strfmon capabilities. For example, Windows does not, so money_format() is undefined in Windows.
00:21 <****> edaiana: just return an array with correct structure
00:21 <****> Riotblade: what distribution are you using?
00:21 <****> Riotblade: or what *nix ;P
00:21 <****> Oh, ffmpeg I thikn I need to recompile
00:21 <****> i'm on ubuntu
00:22 <****> Riotblade: If it worked before, it should work now. You might be missing some libraries that it expects to be there...
00:23 <****> No, it uses phpize so I just redid it and recompiled now it works
00:23 <****> but the phpshield error is weird
00:23 <****> can someone tell me how to display my query results in different order then what I selected them in?
00:23 <****> Riotblade: well I'm off
00:25 <****> kaser, fetch them all in a array and sor it
00:27 <****> many mysql_* functions take a link identifier as argument, and the last opened by mysql_connect if none was found. will it find the last connection even if it was closed?
00:27 <****> faern, no, it will not
00:28 <****> HarryR, ok. I was afraid of that. still solvable thou
00:28 <****> How do I turn off thread safety in PHP?
00:35 <****> Shouldnt this work?
00:35 <****> http://phpfi.com/269020
00:35 <****> Im trying to put it all in one variable that i can then write to a file
00:37 <****> maybe your PHP version is < 4.3.0 ?
00:37 <****> does this look right? unset($_SESSION['uid']);
00:37 <****> Naktibalda : its 5.2.4
00:37 <****> buzzed: yes
00:38 <****> anything else i need to do?
00:38 <****> it does not seem to be working
00:39 <****> MACscr: it works for me :)
00:39 <****>


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo