RE: [PHP-DB] Quick question
On 08 December 2005 20:53, Chris Payne wrote: Hi there everyone, How do I set the following items with ini_set()? I looked at the manual but when I try nothing happens: * file_uploads * upload_max_filesize * max_input_time * memory_limit * max_execution_time * post_max_size Apart from max_execution_time, the things affected by those settings all take place before your script even gains control -- so changing them in the script can never have any useful effect. To do any good, they must be set in an appropriate config file (php.ini, httpd.conf, .htaccess, etc.) as permitted. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Quick question
Hi there everyone, How do I set the following items with ini_set()? I looked at the manual but when I try nothing happens: * file_uploads * upload_max_filesize * max_input_time * memory_limit * max_execution_time * post_max_size Basically I need to be able to upload 1gig files via FTP which is based on PHP, when the file uploads successfully it then adds the info to a mysql database so that the administration program can control the programs uploaded, but I can't upload any large files only small ones. Any help would REALLY be appreciated as this is quite urgent and I've searched the net for examples but couldn't find what I needed. Help me o-b-1, you're my only hope :-) Thanks everyone. Chris
Re: [PHP-DB] Quick question
ini_set('max_execution_time', 9600); that's how you set the max_execution_time, i would assume the rest follow the same format. notice the time is in seconds. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]
RE: [PHP-DB] Quick Question: Line Breaks
On 09 January 2004 03:58, Jacob Hackamack wrote: Hello, I have a couple of quick questions. When I execute this code on my php page (I know that the .PSD image isn¹t web ready, but Safari does what I need it to do :) ) it displays the entire source as one line. Is there anyway to have it be broken. I have read places (internet sites) that say that the following solutions might work: echo OE¹;\n\n echo OE¹\n\n ; echo OE\n\n¹; None of them seem to work, am I doing something wrong? echo 'meta http-equiv=content-type content=text/html; charset=utf-8'; echo 'html'; echo 'head'; echo 'title'; echo 'FilmCanister Desktops'; echo '/title'; echo '/head'; echo 'body'; echo 'center'; echo 'img src=images/Rotating.psd'; echo 'h2'; echo 'Coming SoonDesktop Pictures (2.83 GB Worth)/h2'; echo '/center'; echo '/body'; echo '/html'; The reason you have it all on one line is because you haven't echoed any newlines. You have a number of options to do this. As there is no variable interpolation anywhere in there, you could just break out of PHP and do it as straight HTML: ... ? meta http-equiv=content-type content=text/html; charset=utf-8 html head title FilmCanister Desktops /title /head body center img src=images/Rotating.psd h2 Coming SoonDesktop Pictures (2.83 GB Worth)/h2 /center /body /html ?php ... Or you could echo the whole thing in one go (since you can have newlines in a PHP string): echo 'meta http-equiv=content-type content=text/html; charset=utf-8 html head ... /body /html '; If you plan to have variables in there at some point, you can either use ?php echo $var ? segments, or use a heredoc: echo END meta http-equiv=content-type content=text/html; charset=utf-8 html head body center img src=images/$name.psd ... /body /html END; or, again, you could use a multi-line string -- but this time double-quoted to give interpolation (but note that you now have to escape all your embedded double quotes): echo meta http-equiv=\content-type\ content=\text/html; charset=utf-8\ html head body center img src=\images/$name.psd\ ... /body /html ; Which route you choose is pretty much personal taste -- personally, if I have a page that's mostly straight HTML with not much PHP code, I write it as HTML with embedded PHP snippets, but I know some people think that looks weird or ugly...! Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Quick Question: Line Breaks
Hello, I have a couple of quick questions. When I execute this code on my php page (I know that the .PSD image isn¹t web ready, but Safari does what I need it to do :) ) it displays the entire source as one line. Is there anyway to have it be broken. I have read places (internet sites) that say that the following solutions might work: echo ¹;\n\n echo ¹\n\n ; echo \n\n¹; None of them seem to work, am I doing something wrong? echo 'meta http-equiv=content-type content=text/html; charset=utf-8'; echo 'html'; echo 'head'; echo 'title'; echo 'FilmCanister Desktops'; echo '/title'; echo '/head'; echo 'body'; echo 'center'; echo 'img src=images/Rotating.psd'; echo 'h2'; echo 'Coming SoonDesktop Pictures (2.83 GB Worth)/h2'; echo '/center'; echo '/body'; echo '/html'; Also, I am looking for a good freeware image gallery for Linux/Apache, if anybody has any suggestions please help out. Thanks for advance. Jacob
Re: [PHP-DB] Quick Question: Line Breaks
\n is not converted to a newline unless you use double quotes around the string. See: http://us3.php.net/manual/en/language.types.string.php -Micah On Thu January 08 2004 7:58 pm, Jacob Hackamack wrote: Hello, I have a couple of quick questions. When I execute this code on my php page (I know that the .PSD image isn¹t web ready, but Safari does what I need it to do :) ) it displays the entire source as one line. Is there anyway to have it be broken. I have read places (internet sites) that say that the following solutions might work: echo ¹;\n\n echo ¹\n\n ; echo \n\n¹; None of them seem to work, am I doing something wrong? echo 'meta http-equiv=content-type content=text/html; charset=utf-8'; echo 'html'; echo 'head'; echo 'title'; echo 'FilmCanister Desktops'; echo '/title'; echo '/head'; echo 'body'; echo 'center'; echo 'img src=images/Rotating.psd'; echo 'h2'; echo 'Coming SoonDesktop Pictures (2.83 GB Worth)/h2'; echo '/center'; echo '/body'; echo '/html'; Also, I am looking for a good freeware image gallery for Linux/Apache, if anybody has any suggestions please help out. Thanks for advance. Jacob -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Quick Question qufcYso
Anyone heard of this company? I just bought a nice motherboard from these guys for 20 bucks! http://www.tigersurplus.com Just wanting to know if anyone else has used them before. Thanks BJ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php