Search found 15 matches
- Tue Mar 16, 2004 5:31 pm
- Forum: PHP - Code
- Topic: regex help
- Replies: 13
- Views: 1104
1 question to tim and phuts: how could he insert new data into an existing band_id?? He is obviously trying to edit existing data, or else there would be no need for the WHERE clause who knows.. but I do things like that all the time, usually because I forget the syntax / feel lazy and copy some co...
- Tue Mar 16, 2004 4:54 pm
- Forum: PHP - Code
- Topic: regex help
- Replies: 13
- Views: 1104
- Sun Feb 29, 2004 7:34 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 7:29 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 7:24 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 7:11 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 6:48 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 6:19 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
If I understand correctly, Illusionist is saying to make sure you are checking for the existing file in the correct directory.. I'm not sure if this is the correct syntax, but something like: <?php if (file_exists($_SERVER['DOCUMENT_ROOT'].'/localmm/upload/'.$imagefile)) ?> to replace: <?php if (fil...
- Sun Feb 29, 2004 5:33 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
- Sun Feb 29, 2004 5:21 pm
- Forum: PHP - Code
- Topic: Stop overwriting of user uploaded files if file name exists
- Replies: 24
- Views: 2403
Re: Stop overwriting of user uploaded files if file name exi
Well, as far as the filename overwriting problem, you need to tell the script to stop if you encounter an existing file with the same name. With the code you have, all you do is tell the user that the filename already exists, but the script keeps executing anyways. Perhaps try: <?php //Check to see ...
- Sat Feb 21, 2004 2:17 pm
- Forum: PHP - Code
- Topic: Impossible Parse Error
- Replies: 15
- Views: 2389
- Thu Feb 19, 2004 12:29 am
- Forum: PHP - Code
- Topic: how to run cron jobs every 3 mins
- Replies: 2
- Views: 397
You may want to check out http://www.phpfreaks.com/print.php?cmd= ... &tut_id=28
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/local/bin/php /home/user/crons/cronjob.php
I believe this is the format for three-minute intervals every day.
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/local/bin/php /home/user/crons/cronjob.php
I believe this is the format for three-minute intervals every day.