| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> I got mad grips on ice <1> heya dravine :) <0> what up mang <0> ? <2> dafux <1> dravine: not much, you? <0> just another day man <0> just another day <3> is there another way to connect to mysql server without using mysqli_connect() <4> using mysql_connect <3> :) <5> sockets, i guess <6> is there a function like str_replace that can replace one occurrence at a time? <2> erm. ok <4> ereg_replace ? <2> is there a way I can include a file using a relative path to the file I'm trying to include from
<4> yes ? <0> don't use ereg replace <0> don't use ereg at all actually <7> ('/where/be/that/file.php') <2> Eldritch: relative, not absolute <4> ('./where/be/that/file.php') <2> ok, let me put the example :) <7> that is relative <4> everything is relative <8> http://www.theregister.co.uk/2006/01/17/kent_killer_not_killer/ <- thats just silly <2> needs to be relatively up <2> ~/dev/dsf/sites/gfm/config.inc.php <2> needs to parse the ini file at ~/dev/dsf/sites/global.ini <4> ../global.ini <2> using relative paths, as the absolute path will change depending on where deployment is <2> yea see that's what I thought. heh. <4> learn about unix paths RALF! <7> jesus <6> coo <2> oh ffs, I know about unix paths <2> please <2> is the include relative to the file calling the include() <2> or is it relative to the php file hit in the browser? <0> the file doing the include <2> well so much for that theory <0> well <0> here's the thing <0> if you include() a file <0> and that file includes() something else <0> that second include will be relative to the file that opened the first file <9> hi <2> dravine: ohhhh <1> this is why i use dirname(__FILE__) :D <2> BOOM <9> 2/3 = 0.66 , can anyone tell me the function that gives me just the 66 part of the result ? <0> % <9> % ? <1> dravine: that would give 1 <0> would it? <0> ;) <1> or 2 <1> i think <1> :D <1> modulus works akin to long division <1> from hat i've been able to figure out <9> there has to be a function , I dont think its % <2> DWism: that's what I'm talking about <1> horia000: substr('0.66', 2) ? :D <4> *100 ;) <10> anyone have idea how to make registeration page with php that after the user put his username its opens a subdomain with his username? (i.e : username.mydomain.com ) <1> mod_rewrite, or curl with your control panel <10> no but i want to do it automaticly <10> without that ill need to mess with server conf <0> then learn to code <1> heh <1> i told you how to do it automatically <10> curl control panel? <10> what do you mean?> <11> fdsfds32 header("Location: username.mydomain.com"); <1> ww: i think he means to create the subdomain too, but i could be wrong <10> so i need to mess with the rewrite plug of apache and then do curl?
<10> yeah <1> fdsfds32: it's either or <1> do you have a control panel on your server? <10> lets ***ume that i got a blog websites and user register <10> so i want to give him subdomain automaticly <2> hrm. this is annoying <10> like anna.blogwriter.com <11> lets ***ume? you mean i'm doing a... <10> yeah <11> fdsfds32 and you control the server? <11> fdsfds32 what kind of server? and is it running apache? <10> apache <1> ww: LOL! :D <10> yeah im the webmaster <1> well <10> i got full access <1> being a webmaster is different than being a server admin, FWIW <1> :D <11> ok, webmaster :P, use vhost-alias with apache <1> yeah, that'd probably work out best <10> i want to write a script that once user register in php its will open him subdomain with his name and directory <11> VirtualDocumentRoot /usr/local/www/vhosts/%-2.0.%-1/%-3+ put that into your httpd.conf file <11> or a path to whatever and use the %-2....-3+ stuff at the end <10> and how php can interact with it? <10> i should get the config file each registeration and add lines? <11> apache looks at the directory structure as the url structure <1> fdsfds32: you need to go read up on things :) <11> so you have /path/to/domain.com/username and it goes username.domain.com as the url <1> fdsfds32: ww just told you a perfectly valid way to do it :D <11> fdsfds32 make sure apache has --enable-vhost-alias compiled into the binary <10> but isnt that not secure to tell php to rewrite everytime the config of the server? <11> fdsfds32 do you know what you are talking about? <10> sure.. <10> wait. i want to make sure you understand me <11> fdsfds32 cause that doesn't make any sense to me.. if your talking about mod_rewrite then you need to read a lil about it <10> 1. user enter to the website and register to the website in order to open a blog (with username let say : "anna1" , 2. server gives him a directory with his user and then also give him subdomain for shorter url : like: anna1.blog.com <11> omfg.. i understand exactly what you are trying to do <11> i told you exactly how to do it <10> ok <10> but how that can interact with php script? <11> fdsfds32 you just create the directory <0> anal.blog.com? <0> wtfc <10> anna1... :) <10> oh <0> learn to code stupid <10> i got you <11> http://php.net/mkdir <0> http://www.google.com/search?q=learn+php+in+24+hours&ie=UTF8 <10> this line gives automaticly on each dir a subdomain for each dir? <2> meh <10> now its clear:) <12> Parse error: parse error, unexpected T_STRING in asd.php on line 70 <11> yea <11> S4F- go look at line 70 <7> 69 <12> |ww thanks. newfunc ("1", "2", "3", "4", "5", "6"); <12> what could be the problem ? <0> stupidity comes to mind <12> may i ask why ? <11> S4F- do what Eldritch said.. look at line 69 <10> thanks guys!!! <10> :) <0> S4F-, I think I'm the one who should be asking why <12> thank you <12> fixed :) <7> line 69? i just wanted a 69'er <11> lol <11> good luck <7> dont encouragethem! <13> 'DVD Jon' Declares Intent To Crack Next-Gen DVDs <13> Jon "DVD Jon" Johansen, who popularized the means to crack the CSS system protecting DVDs, has committed to launching a tool to crach the Advanced Access Content System (AACS) used in next-generation DVDs. <13> Hah
Return to
#php or Go to some related
logs:
#linux oxx sabieh #skype #chatzone #skype TiFmeK
intext:valid cc #linux adeline loget #linux
|
|