@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23



Comments:

<0> I'm writing a install script
<0> in php and bluelagoon is a theme for cpanel
<1> smaxor: ... do you have a question?
<0> yeah I'm wondering if anyone knows how to set a programatically using php?
<0> I was trying to use url strings and cpanel but it didn't seem to be working
<2> how to set a .....?
<2> a cronjob through cpanel?
<0> whoops, cron
<0> programatically
<1> smaxor: the words "what the ****" come to mind
<1> smaxor: do you actually have a PHP question?
<0> does the words "quit being a jack***"come to mind aidan?
<1> smaxor: no, they don't
<0> if you want to be an ***hole go join #***hole they'd lovve to have you
<2> yeah. I see nothing to do with php at all. smaxor, it seems like a cpanel question
<1> smaxor: but, now that you say it, quit being a jack***



<0> jpeg do you know a way to set a cron programatically using php?
<1> this is a PHP programming channel, you haven't asked a PHP question yet.
<2> that looks like no cron format I've ever seen before.
<0> that's really what I want to do
<1> smaxor: then just ask that next time??
<2> smaxor: I'm completely unfamiliar with the url format you're using. I've never used cpanel, never heard of simplecron.html, and it still doesn't look like php to me.
<1> smaxor: `crontab -e 0 0 10 1 20 foo`
<2> but again, smaxor: your url has &hour1=12 and then &hour1=34, so you're doing something wrong
<0> hmmm, ok
<1> smaxor: shell_exec, exec, p***thru, or backticks - all are suitable for execing a command on the system, if you want to know how to use cron, try #linux
<0> I know how to use cron
<0> and manage linux boxes I just know there's some security issues with issuing shell commands thru php and I heard I should do it
<1> smaxor: if you let the user issue random commands on your box, then yes, that would probably be a security issue
<0> I'm new to php and don't know a lot about it, I appolgize I'm not as on top of things as you'd like me to be
<1> smaxor: noone minds if you're new to php, what does frustrate people is an inability to ask a logical question.
<3> later
<2> smaxor: it's just that that your question had nothing to do with php. it's a cpanel or whatever question.
<0> ok
<1> smaxor: start with some context, "I'm writing an installer script", what you want to do, "I want to add a cronjob", then ask your question, "what function would I use? / How can I do this?"
<0> didn't realize that
<4> for the record
<4> nevermind
<5> anyone reccomend a good site to get a dedicated server for hosting from?
<6> hi
<7> howdy
<8> mod_php4 in FreeBSD ports; does one enable session support?!
<1> lclark: ask in #freebsd
<8> Gee, thanks
<9> guys
<9> what does this mean: Unknown column 'a.paidbyadmin' in 'on clause'
<8> wrong room. This place is full of women
<9> k
<8> I'd stick around ladies, but my wifes wating.
<6> i have a file upload form which puts the data into a MySQL table(TEXT type) ... this is working for certain file sizes ... i've checked php.ini and even increased the upload filesize limit.
<6> but it wouldn't work.
<10> at what hour would i most likely be able to get ***istance with the problem i've asked about a couple times now?
<7> zoyd_, your webserver may also set a limit
<6> _Lewellyn: count that question in too.
<7> _Lewellyn, ask
<10> heh
<1> _Lewellyn: I see no question
<6> peerless: oh, lemme check that.
<10> peerless: ok. here goes again
<10> hoi. has anyone here used php as an isapi extension with apache?
<10> alternatively, could someone guide me through setting up the php extension mapping on iis?
<10> i don't ever use iis, and that's the only step i couldn't get done from the install.txt
<10> http://iamcode.net:64//tmp/php4-iis-add.png
<10> i can't click ok on what appears to be the correct dialog
<1> _Lewellyn: ah, noone uses IIS, probably why noone is able to help
<7> my answer is no
<10> aidan: ok. how about mod_isapi on apache? ;)
<10> http://iamcode.net:64/phpinfo.php4
<10> take a look at that :(
<11> hi, good morning, is there another way than, include,include_once and readfile to insert html in a php page?
<7> require/require_once
<11> ah, and another the get way, I forgot this
<1> _Lewellyn: 500 Internal Server Error, check C:\TRSM.log
<7> pitillo, whats wrong with those commands that you need another way??
<11> well, it overwrite too he php page
<10> aidan: hrm?
<1> pitillo: readfile() should be used for any static content, not require/include, they are only for PHP



<10> aidan: i don't see a 500
<10> i see the actual dll
<1> _Lewellyn: look harder
<1> it's there down the bottom
<12> i have a string like this, "test_test_1".... is there a way in one line of code to get the last part of the string that is seprated by _?
<10> 1(1,10181<1@1
<10> that's the end of the "document"
<11> peerless, trying to add a main.html in a php. but dont want to make the traditional get. And with options the content of php is overwrited by the html, not included. I?ll try the readfile
<1> that made no sense
<10> and i have no c:\trsm.log
<1> 500 Internal Server Error, C:\TSRM.log
<10> where in that binary mess do you see a 500? and i don't have that file.
<1> _Lewellyn: if that's the actual dll being displayed I guess it doesn't matter
<10> a DIR /OD c:\ shows 18.May.06 19.53 <DIR> php4 as the newest entry
<1> it's probably the hardcoded error messages
<10> it sure seems to be the actual dll, yes.
<7> pitillo, I don't understand your question
<1> me either
<10> unless php is *really* confused and is outputting a windows binary
<7> what is 'the traditional get"
<10> (the MZ indicates that)
<11> peerless, sorry, my english is too bad and Im a bit lost.
<10> aidan: i wanted to see if iis gives the same behavior so i can report it as an actual php bug rather than wondering if php or apache is at fault
<1> ah I see
<10> and yes, i do realize that using a cgi is far more standard on windows
<1> yeh, I don't know, it's hard finding people who know about windows servers
<10> ya. ##windows keeps pointing me at documents which tell me to go to the dialog which i gave the screenshot of.
<10> and if i give a .exe, the ok is still greyed out.
<13> If I make a query with mysql_query(), and I put the result into $result, and in the next line I write mysql_fetch_row($result), and I get an error saying $result is not a valid resource, then does it mean the query was invalid?
<7> pitillo, use readfile to output the contents of a file to the browser, the output of your php file before and after it will be before and after it. If the page you are attempting to include is a complete page wth html/head/body tags etc, and you want to include it within another page you might want to strip those elements.
<11> peerless, thanks. :) Im trying with readfile.
<14> on mysql when it says tables now thats just adding like a table rgiht like a regular table?
<14> like seprate tables
<14> like when you use html tables to seperate items?
<11> peerless, is the same the readfile function and the php?rf ?
<6> peerless: i've looked in the apache config files but couldn't find anything about upload file sizes
<15> hey i'm trying to set the initial value for a text box to a variable and this is what i have <input name="name" type="text" id="name" value="$_SESSION[username]"> i know something is wrong i just havn't tried this yet anyone know what should be in there?
<16> bengrubb, inside <?php ?> ?
<15> hi
<15> yes
<15> ill postit if you want?
<15> pastebin it*
<16> so it should be echo '<input name="name" type="text" id="name" value="'.$_SESSION['username'].'">' ;
<7> bengrubb, bengrubb value is the correct field, many things could be wrong, paste your code and tell us what the output/result was
<7> pitillo, again, I don't undertand what you are asking, same deal paste your code somewhere and give us a link to it
<7> zoyd_, there is definitely an option, used to be LimitRequestBody, but that idoesn't seem to be there anymore (apache2 configuration has changed a lot and im not up on it sorry)
<15> just trying styx_'s suggestion
<7> bengrubb, styx_ was asking a question, not giving you an answer
<7> oops, booched soz
<10> http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline
<10> zoyd_: try that url on for size :)
<10> and pardon the pun
<17> !quit
<17> ...
<17> !quit
<15> ok this is my problem is i am swapping between php and html and the place where i wasnt the value to be a variable is in html could i swap to php and use echo? here is what i had http://pastebin.com/726141
<13> If I make a query with mysql_query(), and I put the result into $result, and in the next line I write mysql_fetch_row($result), and I get an error saying $result is not a valid resource, then does it mean the query was invalid?
<9> guys
<18> csaba, I would suggest putting mysql_query() or die("Cannot retrieve: ".mysql_error());
<9> is anyone an expert in mail()
<18> that way if the query fails, you will know about it
<15> im not quite sure how i would do it .. as if i put php tags in it will stuff it
<18> hacked``, I have worked a fair bit with mail(), but it ****s
<16> bengrubb, <input name="name" type="text" id="name" value="<?php echo $_SESSION['username']; ?>">
<9> ya but i mean, lets say im using mail(), but that the email address is invalid
<15> yay i got it
<15> yer
<15> ty
<9> like, how can i see the emails that get returned
<15> what i did was
<9> know what i mean ?
<15> http://pastebin.com/726145
<15> gotta love putting in lotsa tags
<15> ty for your help


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
eggtray python
p7010d ubuntu
gentoo nbstat
ubuntu eggdrop configure: error: no acceptable C compiler found in $PATH
sysvconfig ubuntu
#asm
moonbounce
#ubuntu
ma600 debian



Home  |  disclaimer  |  contact  |  submit quotes