| |
| |
| |
|
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
Comments:
<0> lol@deadroot <1> deadroot: using mod_rewrite for another purpose already ;) <2> stack em then <1> well i just need to get it working from the actual domain request so i'll see if i can actually grab the domain info when the user is first connected... <1> nice... $_SERVER['SCRIPT_URI'] contains the full url <1> wicked this will work ;) thanks for the help guys <1> but yeah i will go and re-read the TOS <1> just to make sure the legality of this <1> or... SERVER_NAME haha the more obvious one <0> nuphear: There most possibly is a reason you probably pay less for this solution you know? <3> nuphear: $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME'] seem to contain what you're looking for <1> berry__: yes im beginning to realise that hehe <1> niraj: thanks mate, sorting it out now :) cheers guys <4> hi anyone useing a php webdav implementation ? <5> morning <6> hi, is there some software/tool I can use to organize the development of our websites and webapplications? (This software prevents edits get lost)
<0> koko: So you want to have something like version control?? <6> yes, something <6> (would it be possible to work with 2 persons on the same file?) <7> SVN is such a tool <0> For example, but I take it you can find a lot more of those, when googling on 'version Control php'. <6> ok, thanks for the right term, I was looking for: cooperation+software+php+webdesign and that didn't work ;-) <8> hey all <8> 20 rows are being retreived from the database and are displayed.. how can i display 10 rows per page? <9> use limit in your sql statement <9> or use pagination cl*** <10> arghrssdflh <9> like pager <9> pear pager cl*** <10> php isn't really good with accidental infinite loops <10> it just says, "I can make it, i can finish it!" <10> forever <8> guru, what i meant is that 10 rows are being displayed.. i want the user to click on next to view the others... <10> then crashed zend <9> yes for that you can use pager cl*** <8> guru[1], where can i find that? <9> pear.php.net <9> pager package <9> in packages ->php <11> niraj: thanks for that hint. Have a problem though... I want to map images of type .jpg, .gif and .png... Got the .jpg to map as wanted, but when i try to map a .gif, it changes color... Any idea what to do? For instance, can i with input file.gif output this as jpg? <8> guru[1], is it difficult? <12> if i'm using mysql datetime data type how can I select fields from 15 minutes ago? <10> i did something similar to: $x=0; while($x==0) { echo "I am an idiot"; } <9> no <9> its very easy <9> you got to include a pager.php file <9> in your file where you are using it <9> that pager.php is available with the package <9> go through the documentation <9> available in that site pear.php.net <8> alright... <13> MBzle checkout php advance cache to chahe data and to display <9> who is yekangi? <8> yekangi, do you have sample? <13> MBzle no <13> MBzle just google for adavance php cache <8> guru[1], i can't fine it: http://pear.php.net/packages.php <8> which one is it/ <9> wait <13> MBzle its pear.php.net/manual <13> MBzle you get list of packages there <9> i think the pear.php.net is down currently <13> no site is up <9> ok <9> who is yekangi? <9> its slow <8> guru[1], site is up but slow <9> yeah <9> http://pear.php.net/search.php?q=pager&in=packages&x=4&y=4 <9> check out this <8> i am... <10> how do I exit a loop? <10> not exit() <7> return <10> ah <10> ty <7> np
<14> Or break <8> OR continue to skip... and start back aggain... <7> break if you have nothing to return, otherwise return X :) <9> did you get MBzle <8> yeah <8> which one though ? <8> DB PAGER? <15> TML: Is the a function in PHP to get a file type similar to UNIX or GNU/Linux utils `file`? <9> you see the docs and select the one which suits you <8> yeah... i am checking them.. <10> argh <10> here's the problem: <10> http://pastebin.com/590475 <10> i'm trying to figure out all the lines where a certain string occurs in an array <14> tws: pecl.php.net/fileinfo <8> guru[1], do i need to configure PHP to make it work :S <8> nothing is openin.. <9> no <8> Warning: main(../simpletest/unit_tester.php) [function.main]: failed to open stream: No such file or directory in c:\webs\test\pager\tests\simple_include.php on line 12 <8> and also: <8> Fatal error: main() [function.require]: Failed opening required '../simpletest/unit_tester.php' (include_path='.;C:\php5\pear') in c:\webs\test\pager\tests\simple_include.php on line <9> you got to put this in your pear libraray file <13> MBzle i think u need to set path in ur php.ini file <9> pager package <14> MBzle: Which part of "No such file or directory" is confusing you? <14> !tell yekangi about u <8> where is my pear library file? <10> either that or how do I make array_search return an array with ALL the lines where a string is found? <8> ah i found it <9> no there is no need for any configuration in php.ini file <8> i but the package there? <8> put* <14> Braz: php.net/preg-grep <10> man, I should just give up :( <10> i'll never get it <10> i've been trying for 5 hours <10> can anyone help a soul in distress? <8> yekangi, can you help me out? <15> Braz: What you get (3) os actually the result of your while () loop. <15> s/os/id <15> s/os/is <14> Braz: Do you have some form of a question? <10> no, you see... <10> I have a string like this: <10> $string "Text that may contain commas and {} here \n makegraph({1,2}{3,5}{7,10}) \n More text that may contain commas and {} here"; <16> tws: Actually shouldn't the second one be "s/id/is" ? <15> galisus: Yes. :) <10> I want to take the {1,2}{3,5}{7,10} <16> tws: ;> <10> and make 1+2+3+5+7+10 <15> Braz: Use regular expression. <10> but only the coordinates inside makegraph() <13> MBzle sure <8> yekangi, i've added the Pager folder in c:\php\PEAR <14> Braz: I don't understand that last statement, but you already *had* code that does that: preg_split('/[^\d]/', $str, -1, PREG_SPLIT_NO_EMPTY) <8> the packagae came with examples... <14> Braz: If you just want to turn that into a string that contains the symbol '+' between the items, use join(). If you actually want a sum of the items in the array, use array_sum <8> i put these examples in the folder where i access them using localhost <10> yeah, but if the string is makegraph({1,2}{3,5}{7,10}) ,6,7,8 <10> it'll mess it up <8> i opened a page and it's displaying : <8> Warning: main(Pager/Pager.php) [function.main]: failed to open stream: No such file or directory in c:\webs\test\pager\examples\example.php on line 2 <8> and <8> Fatal error: main() [function.require]: Failed opening required 'Pager/Pager.php' (include_path='.;C:\php5\pear') in c:\webs\test\pager\examples\example.php on line 2 <10> or if you have two makegraph() <13> MBzle the warning is because the pager.php is not in the path where php searches for modules <8> yekangi, where do i put pager.php? <10> you know what? <17> is there a general way on how to store the IP address of a user for say 15 minutes to prevent him/her from voting one item several times e.g.? <10> i think i'll just do a custom functions <13> MBzle i think you need to configure "path" in php.ini <10> makegraph)1,2,3,4,5) <8> yekangi, how? <15> TML: Thanks for the link. But I'll just use system() to get it. I'm on shared host and I'm not sure they have the package installed.
Return to
#php or Go to some related
logs:
#perl #python ubuntu glib not installed #perl #perl #math #math #web #perl what does sfsdf mean
|
|