Search found 72 matches

by johnmacd
Mon Apr 11, 2016 5:09 am
Forum: PHP coding => General
Topic: IPv4 Address
Replies: 0
Views: 1958

Re: IPv4 Address

Hi, Following are steps to check whether a given string is valid IPv4 address or not: step 1) Parse string with “.” as delimiter using “strtok()” function. e.g. ptr = strtok(str, DELIM); Run on IDE step 2) ……..a) If ptr contains any character which is not digit then return 0 ……..b) Convert “ptr” to ...
by johnmacd
Mon Apr 11, 2016 5:08 am
Forum: Free time
Topic: Signature Visibility Question
Replies: 3
Views: 898

Re: Signature Visibility Question

Basically signature visibility under post depends upon the sites.
by johnmacd
Mon Apr 11, 2016 5:07 am
Forum: Free time
Topic: Does PHP,Joomla has a Future???
Replies: 2
Views: 1740

Re: Does PHP,Joomla has a Future???

Yes. PHP has bright future and scope. It provides best features to developed best website.
by johnmacd
Mon Apr 11, 2016 5:07 am
Forum: Free time
Topic: Jquery has overtaken javascript
Replies: 2
Views: 1583

Re: Jquery has overtaken javascript

jQuery is a just JavaScript Library, It’s not overtake javascript. The purpose of jQuery is to make it much easier to use JavaScript on your website.
by johnmacd
Mon Apr 11, 2016 5:06 am
Forum: Free time
Topic: How we can get alt tag using function?
Replies: 0
Views: 744

Re: How we can get alt tag using function?

Hi,

Try this:
<html>
<head>
<script>

$('img').click(function () {
var alt = $(this).attr("alt")
alert(alt);
});

</script>
</head>

<img src="white.png" width="25px" height="25px" alt="1" id="star1" onmouseover="starOverOne()" onmouseout="starOutOne()"/>
I hopes it help

Thanks
by johnmacd
Mon Apr 11, 2016 5:05 am
Forum: Free time
Topic: What is Ad hoc Testing??
Replies: 2
Views: 1714

Re: What is Ad hoc Testing??

When a software testing performed without proper planning and documentation, it is said to be Adhoc Testing.
by johnmacd
Mon Apr 11, 2016 5:04 am
Forum: Free time
Topic: Benefits of social media marketing?
Replies: 6
Views: 4128

Re: Benefits of social media marketing?

Today’s, Social media marketing is important factor in all field. You can offer better customer service with social media and it’s a cost-effective way to get your brand in front of fans and prospective customers.
by johnmacd
Mon Apr 11, 2016 5:04 am
Forum: Free time
Topic: script or language ?
Replies: 4
Views: 696

Re: script or language ?

Basically php is scripting language that not compiled. But these days it doesn't matter anymore, PHP programmer is probably the more accurate term.
by johnmacd
Mon Apr 11, 2016 5:03 am
Forum: Free time
Topic: Benefits of PHP Web Development
Replies: 3
Views: 1898

Re: Benefits of PHP Web Development

There are lots of advantages in PHP web development .It open source, Cross platform, easy to learn for new user, free of cost, and it also provides efficiency in performance.
by johnmacd
Mon Apr 11, 2016 5:02 am
Forum: Free time
Topic: What Are The Skills Required for Web Designer?
Replies: 2
Views: 1766

Re: What Are The Skills Required for Web Designer?

Hi,

Skills Required for Web Designer are:
• an understanding of web programming and scripting languages.
• Be familiar with the entire design process
• a logical approach to work.
• the ability to pay attention to detail.
• Good problem-solving skills and strong creative skills.

Thanks
by johnmacd
Mon Apr 11, 2016 5:01 am
Forum: PEAR and PECL
Topic: Emails Don't Arrive
Replies: 2
Views: 2362

Re: Emails Don't Arrive

If some email is getting through, it is probably not a drupal or php problem. Check your mail server logs.
by johnmacd
Mon Apr 11, 2016 5:00 am
Forum: PEAR and PECL
Topic: Unable to load dynamic library '/usr/lib/php5/20121212/apc.so
Replies: 0
Views: 953

Re: Unable to load dynamic library '/usr/lib/php5/20121212/apc.so

Hi,

Try this command:
sudo apt-get install php5-mcrypt
sudo apt-get install php5-mysql


Thanks
by johnmacd
Mon Apr 11, 2016 4:59 am
Forum: PEAR and PECL
Topic: gearman not working with apache
Replies: 0
Views: 2962

Re: gearman not working with apache

Hi,


Try this:
1. Install the mod_gearman_status, which is an Apache module to show the status of Jobs and their associated workers.
2. Run gearman in background mode. In your terminal : gearmand -d
And then run the worker in the terminal, and call client from web browser.


Thanks
by johnmacd
Sat Apr 09, 2016 5:13 am
Forum: Other Database Engines
Topic: how to connect php with mssql server
Replies: 1
Views: 2496

Re: how to connect php with mssql server

Hi,

Try this:
$serverName = "serverName\sqlexpress"; //serverName\instanceName
$connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>"password");
$conn = sqlsrv_connect( $serverName, $connectionInfo);


Thanks
by johnmacd
Sat Apr 09, 2016 5:02 am
Forum: phpMyAdmin
Topic: Short link in PhpMyAdmin
Replies: 1
Views: 2460

Re: Short link in PhpMyAdmin

Hi,

you could install PHPMyAdmin in an alternate directory, and add this to httpd.conf:
Alias /phpmyadmin /path/to/thenew/install/

Then any domain can access phpmyadmin directly via domain.com/phpmyadmin

Thanks
by johnmacd
Sat Apr 09, 2016 5:00 am
Forum: PHP Installation
Topic: Problem with browser refresh
Replies: 0
Views: 757

Re: Problem with browser refresh

Hi,

Please try this by disabling ngCacheBuster by commenting the following line in app.js
httpRequestInterceptorCacheBusterProvider.setMatchlist([/.*api.*/, /.*protected.*/], true);

The browser is now refreshed with the changes made in html source.

Thanks
by johnmacd
Sat Apr 09, 2016 4:57 am
Forum: PHP Installation
Topic: Unable to install php5-dev! Please Help!
Replies: 0
Views: 628

Re: Unable to install php5-dev! Please Help!

Hi,

Running apt-get update and redoing apt-get install seems solve the problem.

Thanks
by johnmacd
Sat Apr 09, 2016 4:56 am
Forum: PHP Installation
Topic: How to bind php with AddressSanitizer
Replies: 1
Views: 1025

Re: How to bind php with AddressSanitizer

Try this:
public Closure Closure::bindTo ( object $newthis [, mixed $newscope = "static" ] )
by johnmacd
Sat Apr 09, 2016 4:55 am
Forum: PHP Installation
Topic: apache server is not started
Replies: 1
Views: 970

Re: apache server is not started

Download latest Xampp server, try again.
by johnmacd
Sat Apr 09, 2016 4:54 am
Forum: PHP Installation
Topic: How to increase SOMAXCONN
Replies: 0
Views: 1031

Re: How to increase SOMAXCONN

Hi,

Try this:
Check its value by cat /proc/sys/net/core/somaxconn,
Change it simply by echo 1024 > /proc/sys/net/core/somaxconn

Thanks
by johnmacd
Sat Apr 09, 2016 4:53 am
Forum: Other Database Engines
Topic: convert a .php file to .dll
Replies: 3
Views: 2689

Re: convert a .php file to .dll

Hi, Pack a bare-bones version of php with your project in a WinRar SFX archive, set it to extract everything to a temporary directory and execute php your_script.php. To run a basic script, the only files required are php.exe and php5.dll (or php5ts.dll depending on version). To add extensions, pack...
by johnmacd
Fri Apr 08, 2016 4:33 am
Forum: CSS
Topic: how to get equal height for both left and right div column
Replies: 2
Views: 799

Re: how to get equal height for both left and right div column

Hi, Try this: .main .container { padding-right: 330px; overflow: hidden; } .content { float: left; width: 100%; background-color: #fff; } .sidebar { float: right; margin-right: -330px; width: 300px; background-color: #fff; } .content, .sidebar { padding-bottom: 99999px; margin-bottom: -99999px; } se...
by johnmacd
Fri Apr 08, 2016 4:31 am
Forum: CSS
Topic: Help with Alignment
Replies: 2
Views: 1440

Re: Help with Alignment

Hi,

Try this:
<div style="text-align:center;">
<div style="border:1px solid #000; display:inline-block;">Div 1</div>
<div style="border:1px solid red; display:inline-block;">Div 2</div>
</div>
by johnmacd
Fri Apr 08, 2016 4:31 am
Forum: CSS
Topic: Favorite colors for a website
Replies: 6
Views: 3903

Re: Favorite colors for a website

Dark color like black make website attractive. I prefer to use dark color for theme.