1,076,254 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Posts by jino

:-) I have figured it out.

#!/bin/bash

for dom in cat /home/xxxx/domainslist.txt

do

result=$(dig +noall +answer $domains | awk '{print $5}')

if [ "$result" != '' ];then

echo "$dom" >> /home/xxxx/havingA.txt

else

echo "$dom" >> /home/xxxx/havingNoA.txt

fi

done

This will dig the domains one by one that is listed in the domainslist.txt and will seperate by having Address record and not.

Thanks for everyone who tried. :-)

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

There is a small syntax error in my previous code and it is corrected as

if [ "$result" != '' ];then

The issue persists. Please help me if anyone have a better idea of doing this.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Hello,

I need to seperate multiple domains by having and not having A records.

I have created a shell script like below, but it is not working, as the $? is same (0) for both the dig commands that have and not have A records.

*************************

!/bin/bash

for dom in cat /home/xxxx/domainslist.txt
do

result= dig +noall +answer $dom

if [ "$result" != '') ];then

echo $dom >> /home/xxxx/havingA.txt

else

echo $dom >> /home/xxxx/havingNoA.txt

fi

done

**************************

Please help me if there is any other way we can do this. Thank you.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Hello Everyone,

Removing suhosin is not a good idea for solving this problem. It will only make your server vulnerable from bad php code attacks.

Please have a check on this for further knowing.

http://wordpress.org/support/topic/wordpress-3-and-500-errors-solved-suhosin-php_ini-culprit

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

In the case of Parked domain , both the names should point to the same domain name.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yourdomain2.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]

Please have a try on this and let us know if this works.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Dear,

If you have root access to the server then first login to the server as root.


Then type :

tail -f /usr/local/apache/log/error_log

for displaying the apache error log.

the syntax : tail -f <apache_config_path>/log/error_log

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0
jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0
jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Could you please paste the complete error showing here when you try to connect to the server.
This may be happen if your local ip has been blocked by the server's firewall. Please contact the support team of the server and tell them to whitelist your ip.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Before going to give 777 permission to ur documentroot, make sure what access you give the owner, group, and others. 777, probably is a bad idea. That will cause hacking simple.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

You have to add the Directive DocumentRoot inside your virtual host tag along with other directives

<VirtualHost 10.0.0.1>

DocumentRoot /home/<path-to-public_html>/public_html

</VirtualHost>


then # /etc/init.d/httpd restart

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

may this will help u .

# wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
# tar -xzvf lame-3.97.tar.gz
# cd lame-3.97
# ./configure
# make
# make install

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

You just try to restart your network using the command:

# service network restart

May this fix your issue.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

If you want to kill an application for example firefox:
# pidof firefox
# kill <pid>
or by simply typing
# killall firefox

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Dear all,

I have a date time picker and i have to trigger an event when the text box for that date is filled with the date.
if textbox id print_date

something like ......

$("#print_date").'......'(function(){

alert("Date is entered using date picker");
});

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Dear,

I am doing a site for chatting application. How can i detect the other person started typing for displaying he is typing...

I also want to display an (alert) , what i mean is , if we typed a text and go to an another tab and if we get a response from the other person, that should be displayed in the chatting page tab of the browser.........Just like google .....

Than you for ur valuable time..


Jino.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Dear,

I am doing a site for chatting application. How can i detect the other person start typing for displaying he is typing...

I also want to display an (alert) , what i mean is , if we typed a text and go to an another tab and if we get a response from the other person, that should be displayed in the chatting page tab of the browser.........Just like google .....

Than you for ur valuable time..


Jino.

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Finally i had figured it out with the help of my sir.

1)First request the encoded string image by

$encodedImage = $_REQUEST;

2) Then create an image name with ur own requirement
$imagename = $monitorId.'.jpg';
Note that the extension of the image should be the same as the image that is posted from the .net application.

3) Open a file with modes w+ or wb

$ifp = fopen(ROOT."/images/monitoring/".$imagename , "w+");

4) then replace all the spaces in the encoded string with + symbol

$encodedImage = str_replace(' ','+',$encodedImage);

5) Then write the encoded image string to the file.
while writing the encodedImage should be decoded using base64_decode ()

fwrite( $ifp, base64_decode($encodedImage));

6) fclose($ifp);

That is all... now go and look the /images/monitorig folder ... there will be ur image ready to smile for u....

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';

echo base64_decode($str);

This also decode the string...

Yes i know that but the problem here is the string is generated by encoding a jpg image.. and it is done in .net application and this string is posted from the .net application to my php website.
I want to get that image back to jpg for saving that image in a folder.

This .net application is used for work monitoring and it will take the screenshot of the work doing by a programmer in the office.

Thanks for ur valuable time....

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0

Hi,

I had changed an image to string using base64_encode() function.

In now want to convert this string back to an image for saving it into a folder.

Please help....

Jino

jino
Junior Poster
117 posts since Feb 2008
Reputation Points: 10
Solved Threads: 10
Skill Endorsements: 0
 
© 2013 DaniWeb® LLC
Page rendered in 0.1210 seconds using 2.63MB