| |
| |
| |
|
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 25
Comments:
<0> i never tried anything above 500k per image (always scaled before storing to db) <1> i have a feeling its not is_uploaded_file ;) <2> freelancing <0> surfdue use the standard form post method <1> k thats already done then :P <2> hey if a PHP script is called by a browser, and its taking a long time to complete, and u close the browser, is the script killed? <0> surfdue use the form to get the file onto the server, and then use move_uploaded_file <0> details here: http://us3.php.net/manual/en/function.move-uploaded-file.php <3> amit1, i doubt it - how would the script know about the browser being closed? <2> yeh true <0> of course it will know <2> so once a script is called by a browser it runs until completion? <0> the http connection is closed <2> yeh <2> so it just gets killed when the connection is closed? <0> depends on how you configure apache / php
<2> lets say it takes 10 seconds to finish, and u close it in 2 seconds, the job isnt completed? <0> check the script execution timeout defined in php <2> oh in the .ini file? <0> php.ini <2> the problems is that the php is on a webserver <2> somewhere far far away <4> you could use javascript HttpRequest to ping the server every x seconds and then die unless the ping is receievd, if you want to make sure they're still there <4> but there is probably an easier way <2> they wont' even allow remote mysql connections <0> amit1 the apache holds the http connection open as long as the browser isopen <2> the PHP script is supposed to send out a bunch of emails <2> once the browser connection is started <0> my understanding is while the script is running and if the http connection is lost, then apache will kill that thread <2> its apprently not sending out all of them <2> oh okay, thats what i was suspecting <0> amit1 then it is most likely timing out <0> but that is a different question <0> check php.ini, there is a timeout value <2> i think it was a stupid idea to have a php script send out emails <0> if script runs longer than the timeout, the script is automatically killed <2> okay thanks a lot <0> amit1, not necessarily, i had one <2> yeh but how many did it send out <0> also, your host supports ssh? <0> if so then you can ssh forward a port to your remote mysql connection <0> that's what i do <2> someone from my work called the webhost and they said its not allowed <2> due to security considerations <0> you will find that most hosts disable 3306 on public network interface (i.e. bind only to 127.0.0.1) for obvious security concerns <2> so i'm making a java application to run on a server at the office to send out the emails using the JavaMail API <2> it opens a connection to a PHP script running on the webserver that retrieves info from the mySQL server and sends the text data <0> ssh -l<loginname> -N -f -L 3307:localhost:3306 <remotehost> <0> and then just connect mysql to localhost:3307 <2> oh okay <5> so im trying to enter some basic data from a form into a database with php. im pretty sure the code is good, but i just get a blank page after clicking submit, and nothing shows up in the database. any ideas on how i could troubleshoot this? this blank page doesnt tell me much. <2> show us the code <5> nothing shows up when i try to view source either. <2> and maybe put some echo statements in the code for debugging reasons <5> talking to me? <2> yeh <5> oh ok <2> is the server configured to run PHP? <6> I need find a way to send visitors back to previous page after executing some commands, how can i do that, the script is called by lot different pages, and i cant know where did they came from... <5> oh yeah. i can pull data out of the database easy. and i had it working at one point where i could insert data <5> but i've been making some changes, like adding more fields...and now its broke <6> currently i do it with header("Refresh: 5;url=javascript:history.back(1)"); but its not cool as the page they get is outdated, after the script runs they should see changes [delete or edit rows etc...] <7> PHP_Devil: $_PHP['REFERER']; ? <7> or something like that <6> this is where they came from <6> i dont need the whole link, just a simple file <6> like: ../admin.php <7> oh <8> using the php mail() function, how can you put a condition on it to whether is sent an email or not? <8> Jams44_: $_SERVER['http_referer'] <-- i think <9> Ugly_Duck: mail returns a boolean value <9> meaning that it left the computer ok, or didn't <9> not necessarily that they got it <8> tempest1: ok, so $mail = mail(vars); if($mail = true) { echo "message sent" } ? <8> that kinda thing <9> yea, basically <9> or if($mail)
<8> tempest1: tried if($mail) its not working <9> what do you mean? <9> $mail is false? <8> i tried to print_r( $mail ) and it dont print any thing <9> did you set it equal to the return value of mail() first? <10> is xml-rpci totally dead now? <10> I can't even find any docs for it <8> $mail = mail($to, $subject, $body, $headers); <9> k <8> print_r( $mail ); <9> says what... <8> i thought it would print some thing out <9> not if it's false, apparently <9> i just tested it <9> try var_dump istead <8> kk.. <10> what is the difference between print_r and var_dump <8> bool(false) <5> can somebody take a look at this code? im having trouble findint out why it wont insert into the database. i could figure it out myself if someone could give me a way to debug this because all i get is a blank page after clicking the submit button. here are the links to the source http://store.hyperfiercecompiler.net/test/custinsert.phps; http://store.hyperfiercecompiler.net/test/addcustomer.phps; and http://store.hyperfiercecompiler.net/ <11> phliver: echo $query to check that it's doing what you think it is doing <5> mikere: ok <12> Anyone else here see that kitten based authentication thing? <12> instead of Captchas <13> Hi folks! <13> Is there any kind of compatibility mode for 5.1.2? I just installed fedora core 5, and my journal program, php & mysql won't run. <13> Let me clarify, mad.thought is written in php with a mysql/postgresql engine. <13> mysql, version 5 seems to not be the problem, that's why I came to this channel. <14> have you asked the authors of the journal program? <12> http://www.thepcspy.com/kittenauthtest <-- kitten based human authentication, neat idea <14> er, aren't most of those not kittens? <14> oh, I get it <13> Xyphoid: Yeah, but I haven't heard back. He's not currently developing it. <15> hello <13> I kinda like it though, and have quite a bit in the database, and like the interface. <15> anybody know if a server had notice and warning ready.how to avoid the notice and warning <16> alien3d, with @ <15> with @? <15> how? <17> @include ( "foo" ); <16> alien3d, sorry if do not understand, but the that Nanobot show there <17> That way, if include wants to output an error, it won't <18> Would updating to php5 from php4 cause problems with my websites? or is that a problem with the ini file? <19> Jaywalker: it _could_ <18> It seems to <18> with my PHPBB forum etc. <18> Is there a way to fix it, or should i revert back to 4? <20> Is there a way that I can dump PHP errors to a custom error log on the server? <21> Jaywalker: it depends on the problem. but you should check first with phpBB on it or try to solve it yourself <18> deadroot: It's not just PHPBB <18> it's my blog, my counter functions, etc. <15> if entire website> <18> more than just PHPBB <15> ? <21> brohism: in the php.ini there is "error_log = filename" <13> I wondered if my problem was maybe just a php.ini, too; but I can't seem to isolate it to see. <20> deadroot, I don't have access to php.ini, should I just set it with ini_set? <2> any good PHP books out there? <21> Jaywalker: then you are probably using old code <18> So revert back to PHP4 would be the only way... <20> amit1, PHP and MySQL Web Development <21> brohism: you may need to check whether that can be set with ini_set or .htaccess <20> deadroot, ok <20> thanks <2> i got "SAMS Teach Yourself PHP in 24 hours" :) <21> Jaywalker: maybe, maybe not <21> i don't have a problem with php5 <2> hey, brohism, do u do PHP work? <21> it is probably that your scripts uses legacy coding style <20> amit1, yeah, some <18> Well, it doesn't work on apache, but on my other webserver with it's own PHP binary and ini it works fine <2> what is the pay? <18> Lol, pay... <2> per hour <20> well, i do mostly freelance work, and it's sporatic, but I've gotten $25 an hour before
Return to
#php or Go to some related
logs:
gimp_image_convert_grayscale #perl artec dvb on ubuntu dapper sudo problem Installing DecoratorTools #perl #ubuntu #sql #web edcba +asm
|
|