Re: [PHP] unlink() & rmdir() ... Problems.
The reason this works is because you are doing a recursive remove of the directory. The PHP rmdir() does not remove a directory with contents in it. If you modify your script so that it walks the users directory and removes each file and subdirectory then it would probally have worked correctly. I would have mentioned this earlier but I have been away from email for the past day or so. -William On Tue, 24 Aug 2004 14:32:43 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > Ave, > > IT WORKS!!! > I guess it was the syntax which was the problem! Finally it works!! > > system("rm -rf $user_dir", $ret_val); > > Works perfectly... Removes folder! > > Thanks a TON! > > > > > On 8/24/04 2:04 PM, "Jason Wong" <[EMAIL PROTECTED]> wrote: > > > Please do not top post. > > > > On Wednesday 25 August 2004 01:31, PHP Junkie wrote: > >> Ave, > >> > >> Nope... Didn't work. Didn't return an error or anything, didn't delete the > >> folders either! > > > system('rm -rf',$user_dir,$ret_val); > > > > That should be: > > > > system("rm -rf $user_dir", $ret_val); > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing large file
> We have a text file that is 2.2gb in size that we are trying to parse > using PHP to put the content into a mysql database. This file contains > 40 million individual lines of data. Basically PHP isn't parsing it. > Any suggestions of how we could do this? Without knowing more information (eg: Any errors, does the script run completely, partially, or not at all?) I would say that you could running into the script execution timeout. Check your php.ini file for max_execution_time and adjust accordingly. If you are surpassing max_execution_time then you will notice that the script runs correctly, but it will not finish parsing all of the data. If you check the DB, do some of the records show up there? -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Cached Templates
On Tue, 31 Aug 2004 16:24:19 -0400, rogue <[EMAIL PROTECTED]> wrote: > Sorry if this is the wrong place for this post. I am having problems > where PHP templates that I modify via ftp are not showing changes for > like 1 minute or so. I assume this is some kind of server caching but I > am not sure how to adjust this (it is my development server). Running > Apache server. I would recommend checking your access and error logs to make sure Apache is really getting your request. I've run into some nasty bugs/code in the past where I could not figure out what was going on and it had turned out that apache was core dumping when ever I tried pulling up the page. I was not getting any errors, but it appeared that the page was not updating. I was able to use die("BLAHBLAH ". __FILE__ .":". __LINE__) statements in the code to find out where the problem was occurring. I started from the top and worked my way down the page until I found the trouble spot. If you try to pull up your page and neither your access_log, or error_log file show anything for that request then you can be pretty certain that your request is getting intercepted somewhere. -William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php