Search found 254 matches

by agent007
Mon Feb 02, 2004 11:54 am
Forum: Programming
Topic: PHP & Text Matching
Replies: 8
Views: 4983

well, I was able to find a solution!
if (eregi("^[A-Z]", $title)) {
print "</h2>Only lowercase characters are allowed!</h2>";
return FALSE;
PHP rocks!!
by agent007
Mon Feb 02, 2004 6:20 am
Forum: Programming
Topic: PHP & Text Matching
Replies: 8
Views: 4983

I just thought of an idea. Would it be possible so that it allows only lowercase characters to be inputed? That would really make things simple...

thanks..
by agent007
Mon Feb 02, 2004 1:09 am
Forum: Programming
Topic: PHP & Text Matching
Replies: 8
Views: 4983

PHP & Text Matching

hi guys, I'm using PHP to do some form validation..Basically, to block words related to porn and violence. Only problem is, if the word is changed to CAPS, for example, 'Rude' or 'rUde' or 'RUDE', then the user is able to make the submission. The original word to be banned was 'rude'..So, is there a...
by agent007
Sat Jan 24, 2004 4:22 am
Forum: Applications
Topic: HDD Serial ID
Replies: 2
Views: 3210

HDD Serial ID

hi all,

Doing a hdparm -i /dev/hdc gives a SerialNo=3HS0xxxx.....IS it possible to change that using some tool? since its possible to change MAC addresses......

TIA
by agent007
Wed Jan 21, 2004 11:57 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

And what would happen if the image of the r00t file system was created when in Fedora? Would the backup be corrupt or something?
by agent007
Tue Jan 20, 2004 11:56 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

Void,

Do u create the image from Fedora? Wont that create a prob if the r00t filesystem is in use? I heard that one has to reboot the system and create backups using Knoppix or some other live-distro.....
by agent007
Mon Jan 19, 2004 11:48 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

Well, VoidMain , u were right about everything...I created the partitions bigger than the source and dd worked perfectly...The 20gig partition took very long though, cause as u mentioned dd copies the free space too. In this case it was 15GB of free space! I backed up the MBR & restored the 446 byte...
by agent007
Sat Jan 17, 2004 1:51 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

Well, I just tried out a small experiment... Source Disk /dev/hda1 Size: 5.9G Used: 122MB I created a partition on the destination having the same size and did a dd /dev/hdc1 Size: 5.9G dd if=/dev/hda1 of=/dev/hdc1 dd: writing to /dev/hdc1: No space left on device 1751085+0 records in 1751084+0 reco...
by agent007
Wed Jan 14, 2004 3:40 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

So, what I'll do is create the partitions on the empty disk. Use dd to copy the
partitions since partimage compresses it into an image which I dont need. The imaged HDD needs to be used immdediately after the process.

Btw, how do I copy the MBR using dd? Its located at hda...

thanks..
by agent007
Tue Jan 13, 2004 12:33 pm
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

Void Main, Yes, the 2nd HDD will be on the same system. So what ur saying is, I have to create 3 ext3 partitions + 1 FAT 32 partition on the destination HDD correct? Also, do they need to be formatted? What would happen if they are not formatted? thanks.. PS: will explain later, the reason for the i...
by agent007
Tue Jan 13, 2004 11:12 am
Forum: Fedora/Red Hat
Topic: Imaging a Server
Replies: 13
Views: 4687

Imaging a Server

Guys, I need to create an image of a server running RedHat 7.2. There are 3 ext3 partitions & 1 FAT32 partition. The destination will be a HDD (slave). I plan to use Knoppix 3.3 Q1) What would be the best way to image the server? Q2) Should the destination HDD be formatted/partitioned inorder to mat...
by agent007
Tue Jan 06, 2004 11:08 am
Forum: Fedora/Red Hat
Topic: Creating SQL database
Replies: 9
Views: 4109

Right, reinstalling did not work..SO now what? Is there a way to reset the password?
by agent007
Mon Jan 05, 2004 12:50 pm
Forum: The Lounge
Topic: Void Main at Erudition?
Replies: 11
Views: 6473

Cool forums....I think I'll join soon......
by agent007
Mon Jan 05, 2004 11:55 am
Forum: Fedora/Red Hat
Topic: Creating SQL database
Replies: 9
Views: 4109

oh great...I dont think so...I was playing aound earlier before and may have put a password which i have no idea of now...Is there a way to reset it? i'll try uninstalling and reinstall mysql to c if it gets rid of it.....

thanks..
by agent007
Sun Jan 04, 2004 12:23 pm
Forum: Fedora/Red Hat
Topic: Creating SQL database
Replies: 9
Views: 4109

hi guys!

Thanks for the help......After issuing the command
mysql -u root

The following error comes up:
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
What does it mean?

thanks..