Re: [PHP] Image Upload??
chmod the file or directory so that php can access it it doesn't run as you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MAX_FILE_SIZE : warning
the problem with doing it on your server (you do it just to be sure though) is that the user has to wait for the form + file to be sent to your server before you can respond - this can be very slow ""JFL"" <[EMAIL PROTECTED]> wrote in message 9davlf$s63$[EMAIL PROTECTED]">news:9davlf$s63$[EMAIL PROTECTED]... > When I set and a > user uploads a file bigger than 50 my script prints a warning. > > How can I use MAX_FILE_SIZE and avoid that warning so that I can print my > own error message to the user ? > > :) Jacob > -- > [ www.eksperten.dk ] Scandinavias biggest IT forum. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Search a string between
.* in your patten will match everything It's greedy like perl (unless you compiled php not to be) add a ? and it will make it none greedy ^[]* will not work ^ needs to be in [] to mean not else it means start of string ""Luiz Vitor"" <[EMAIL PROTECTED]> wrote in message 011201c0d87d$57f8ab00$[EMAIL PROTECTED]">news:011201c0d87d$57f8ab00$[EMAIL PROTECTED]... Hi... I have a text and, some words of the text have the tags between them. What i'm trying to do is to replace the word between that tags for a url, wich I'll search them in a database and convert to a url. It's working fine when I have only one , but when there are more than one, the script converts all the text between the first and the last . I'm using this code: if (eregi("(.*)", $string, $result)) { $string = str_replace($result[1], ''.$result[1].'', $string); } Someone knows what I have to do to put it to work??? Thanks in advance. Luiz Vitor Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]