@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> how can i return the folder that a script is in?
<0> $_SERVER[document_path] or whatever
<1> How can i get the PHP executable location on my hosting server?
<2> whereis php
<2> ansimation: you can use $_SERVER['SCRIPT_FILENAME']
<2> something like:
<2> substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
<1> Oke spox i'm gonna try it
<0> DOCUMENT_ROOT WORKED
<0> damn caps lock
<2> GOOD!
<0> this script attempts to download the file but it doesn't. original file is like 1.*MB and downloaded, it;s only 28 bytes. and the filename is -home-ansimati-public_html-files-stock-cal20044.jpg. why the hell it uses the path i don't know.
<0> http://pastebin.com/741819
<1> I'm trying to setup a cron using this tutorial : http://www.htmlcenter.com/tutorials/printtutorial.cfm?id=155&type=php
<1> Anyone might want to try give me a hand.



<1> My php is compiled as CGI
<3> How to ruin it for your buddy - http://video.google.com/videoplay?docid=7989389525662768727&q=genre%3Ahome_video+***y
<4> SecurePhp: compiled as CGI?!
<1> Two-Bits yes..
<4> how?
<1> i mean installed as a CGI
<4> oooh, sorry. i thought you meant your code
<4> "That looks a lot like PERL now, doesn't it?" hehe.. NO it looks like a bloody shell script with a she-bang. it could be ANY interpretter ffs
<4> sorry.. so what's the problem then?
<1> lol
<1> my problem is i'm trying to set a cron job.
<1> The address i've posted, is a small tutorial on how to.
<4> no, that is your goal. what is your problem
<1> Lol ok , the problem is.. i don't understand this line Edit /etc/crontab and add the following line: * * * * * php /path/to/your/cron.php in that small tutorial to move on.
<4> are you on a *nix system?
<1> Two-Bits : Sorry was on the phone.
<1> Yes i'm on a unix system
<1> Do you think you can help me
<4> do you have a file named 'crontab' in your '/etc/' directory?
<1> Where can i look that up via ftp , or shell.?
<1> i'm a little new to shell and that kind.
<4> is this a remote host?
<1> Yes
<1> I have shell acces
<4> do you know how to nagivate the file system from a shell?
<1> not really but i think i can lookup some shell commands via google.. how to change directory etc.
<1> But what's the whole point cronjobs should be run from the crontab directory
<1> ?
<2> crontab -e
<2> put in that line
<2> then exit
<2> viola
<0> http://pastebin.com/741912
<0> any ideas on why that wont download the whole file?
<5> BECAUSE YOU'RE A VAGINA
<0> WE KNOW THIS
<2> ansimation: don't do that whole fread ****
<2> it's a waste
<2> @p***thru
<6> (PHP 3, PHP 4, PHP 5)
<6> void p***thru ( string command [, int &return_var] )
<6> Execute an external program and display raw output
<6> http://www.php.net/p***thru
<2> no
<2> that's not it
<5> @readfile
<6> (PHP 3, PHP 4, PHP 5)
<6> int readfile ( string filename [, bool use_include_path [, resource context]] )
<6> Outputs a file
<6> http://www.php.net/readfile
<2> wtf is it
<0> OK.
<2> there we go
<2> use that
<4> SecurePhp: you're going to want to read up on *nix commands, a console based editor (perhaps vi), and how the crontab file works
<0> PWNS MY NUTS
<4> if you dont already know how to at least change directories, then you're probably playing with fire
<2> marshmellows!
<1> Maybe you're right, i'm already kinda studying unix commands etc.. thnx by the way
<4> cheers



<0> thanks. that readfile **** is awesome. <3 you guys!
<7> Is there a common php function or cl*** that has allready been written that would take the paramaters (ie: name, phone, city, state) and use that to "select name, phone, city, state from database", then display the results in a group of editable text boxes. Then it should have a submit button on the bottom to submit changes back into the database.
<7> ??
<8> write one.
<7> basicly as an "edit" function of my address book. I find my self repeatidly doing this group of commands (select , display in text boxes, writing a "submit" function) in multiple applications, I thought there may be a simpilier way to do than manually.
<7> well I have... and I do, for each different application. But its such a common function I thought one may have been written
<8> there's no built-in function that does all that, no.
<8> but you said you've already written it
<7> it could also detect from the database structure the limit sizes of the text boxes and create combo boxes when appliciable
<8> write it
<7> i plan to.. i just didnt want to re-write something that has been done.
<8> google is your friend
<8> there's tons of code repositories where you might find something like that
<7> does it seem like a good idea to you? i find my self spending alot of time doing those same basic procedures...
<8> I just take what I've already written and modify it as needed.
<7> i tried sourceforge but i cant think of the proper keywords to search for.
<2> heh
<2> use rails
<7> cocaine?
<2> the scaffold thing does exactly what you want
<8> for php?
<2> @search ruby on rails
<6> Search results for ruby on rails:
<2> no, not php
<6> Ruby on Rails -> http://tinyurl.com/7a6xn
<8> so Rails requires no ruby knowledge?
<2> well, some. but it's certainly not hard to learn
<2> and doing the edit thing with the scaffold
<7> ruby...?
<8> As it happens, going into a php channel does not presuppose knowledge of ruby
<2> you can follow a tutorial and do it in a couple minutes
<2> Robdgreat: i'm just throwing a suggestion of something easy that does exactly what is wanted
<7> ok i'll check that out. i can't imagine a php cl*** or function hasn't been written that does the same thing. ?
<2> nickeooo: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
<2> shows the basic setup. the scaffold stuff is on page3
<2> it does all the edit/delete/add **** for a given database
<2> i've never seen anything like it written for PHP, but i haven't really looked
<7> ive just discovered the OpenReports project on sourceforge.net, and If I can implement this ruby rails to dynamicly created pages to edit database entries I'll save my self days of work setting up my next web app.
<2> looks like cakephp might have the same kinda thing
<7> have you guys seen the google web toolkit? looks like a java/AJAX based thing, but it's an interesting thing for google to release
<7> exactly what I was looking for! thanks guys!
<2> sure
<9> its not MySql Channel but any body know a mysql newsgroup?
<5> http://groups.google.com/groups/dir?lnk=srgmtg&q=mysql
<9> thank you.. iam asking about newsgroup can be work with news reader client not on the Browser
<9> seems there is none
<5> MurderMouse: so find one in there and open it in your news reader client.
<9> evulish: i tryed to do that... iam using outlook experss and its seems not to work until it have news:// protocol
<9> thank you evulish.. i found it .. its news://lists.mysql.com/
<7> quit
<10> anyone see my last quit message?
<11> ping timeout?
<5> <--comcor has quit (Quit: I like dudes and I cry myself to sleep)
<12> evulish: please enjoy this nice plate of ****
<12> Ipsifendus: thanks
<13> eh
<13> does anyone know a good flv player?
<14> is it possible to set the date on the PHPSESSID cookie?
<5> faither: for what purpose?
<14> to hold on to the session id
<5> why not use a cookie instead?
<14> ya i could do that too
<14> i tried using session lifetime extend but it's still not working
<15> Hullo!
<15> Someone care to tell me how to ignore the first element of an array but display the rest?
<5> unset($array[0]);
<5> foreach ($array as $val) { echo $val; }
<15> Thanks!
<15> Er. Whoops. My bad: I called it an array. >.< It's data that comes from a socket fget(). Got this error: Fatal error: Cannot unset string offsets in C:\PHPscripts\DefStat\bot.php on line 22
<5> so uh
<5> i'm not sure what you want to do with it
<15> I want to echo it out. :P
<5> ok


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

chatwith cam
#india
#worldchat
evet benim
#chat-world
#c++
#chat-world
southindian auntys
#allnitecafe
#kl



Home  |  disclaimer  |  contact  |  submit quotes