Hi,
I changed permissions to 0777 using chmod and I logged in as a root even though the same problem occurs.Do you any php scripts to replace emails in files please post the script.Because I am much need of it.
thanks.,
Raju.
Search found 6 matches
- Fri Mar 26, 2010 1:22 am
- Forum: PHP - Code
- Topic: Replacement of Emails in files using php script
- Replies: 7
- Views: 423
- Tue Mar 23, 2010 7:00 am
- Forum: PHP - Code
- Topic: Replacement of Emails in files using php script
- Replies: 7
- Views: 423
Re: Replacement of Emails in files using php script
here in the code the lines causing errors are 25,29 and 30.
- Mon Mar 22, 2010 11:19 pm
- Forum: PHP - Code
- Topic: Replacement of Emails in files using php script
- Replies: 7
- Views: 423
Re: Replacement of Emails in files using php script
I replaced extra spaces in the code that's why the lines not appear in the code.I have changed chmod of $destFolder to 777 and I tried as a root also. Then also its not working fine.
can anyone help me in this issue...
can anyone help me in this issue...
- Mon Mar 22, 2010 5:25 am
- Forum: PHP - Code
- Topic: Replacement of Emails in files using php script
- Replies: 7
- Views: 423
Replacement of Emails in files using php script
Hi, I have the below peace of php script to replace Email ids in file by using regular expression, while executing this code I am getting an error: [Mon Mar 22 06:17:50 2010] [error] [client 127.0.0.1] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/raju/sour...
- Fri Mar 12, 2010 11:26 pm
- Forum: PHP - Code
- Topic: Replace all Emails in all php files using Linux sed with php
- Replies: 2
- Views: 117
Re: Replace all Emails in all php files using Linux sed with php
I tried with single quotes but its still giving a problem. Can you please give the regular expression that match all emails in all .php files using linux sed function along with php system function or How can we do this with PHP script.Please help me I am new to this environment.
Thanks for Reply
Thanks for Reply
- Fri Mar 12, 2010 8:36 am
- Forum: PHP - Code
- Topic: Replace all Emails in all php files using Linux sed with php
- Replies: 2
- Views: 117
Replace all Emails in all php files using Linux sed with php
Hi All, I have a problem while replacing all Email Id's in a directory of .php files with some other email id using linux sed function and php system function.Here the code looks like this, // $data="find . -name "*.php" | xargs sed -i s/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$...