ProgScripting Languages

ProgScripting Languages

Hi All,

Which are the frequently asked questions related to C programming?

I am preparing for an interview and have come across this site and decided to ask you experts some questions: what are the questions asked and please give me the top 10 Q & A's.

Thank you all.

  • 1021 views
  • 2 answers
  • 0 votes

Dear Perl Programmers!

I created this script and run. But there is an error arises "Firefox can't establish a connection to the server at localhost". Is there any technical problem???


Unable to connect

Firefox can't establish a connection to the server at localhost.

#!C:Perlbinperl

  • 2015 views
  • 1 answers
  • 0 votes

Dear friends,

Here is the C source code :

void travpost(node *root) {
node *p=root, *q=NULL;
stk.top=-1;
do {

while(p!=NULL)) {
push(P);
p=p->left;

}

  • 909 views
  • 2 answers
  • 0 votes

Hey,

Following is the script in perl.

#!/usr/bin/perl

open(TXT, "<nonsuch.txt") || $error($!);
@data = < TXT >;
close(TXT);

print "Content-type:text/htmlnn <html>";
foreach $item(@data)
{
print "<li>" $item";
}
print "</html>";

sub error
{
print "Content-type:text/htmlnn";
print "<html><h3>Error: $_[0] </h3></html>";
}

I got errors while running this script. Please help me in this regard…

  • 1029 views
  • 2 answers
  • 0 votes

Hi,

I use a regular expression to validate the date.

But it does not work properly. See my code :

function checkdateformat(userinput){
var dateformat = /^d{1,2}(-|/|.)d{1,2}1d4}$/
return dateformat.test(userinput) //returns true or false depending on userinput
}

Is there any other regular expression available to check the date format.

Thanks.

  • 1121 views
  • 2 answers
  • 0 votes

Hi,

Study the following code :

<script language="php">
# Set a few variables
$site_title = "PHP Recipes";
$bg_color = "red";
$user_name = "Chef Luigi";
</script>
<html>
<head>
<title><script language="php"> print $site_title; </script></title>
</head>
<body bgcolor="<%=print $bg_color; %>" >
<?=$site_title; ?>
<?
# Display an intro. message with date and user name.
print "
PHP Recipes | ".date("F d, Y")." <br>
Greetings, $user_name! <br>

  • 1535 views
  • 3 answers
  • 0 votes

I am using PHP CMS i.e Wordpress. I install it in my localhost. When I check the site, it shows an error message : [an error occurred while processing directive]. I capture the screen shot and put in this post. Help me if anybody knows.

[an error occurred while processing this directive] The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. [ an error occurred while processing this directive]

  • 7794 views
  • 2 answers
  • 0 votes

Ubuntu error.jpg [/attachment] hi guys, I have downloaded Ubuntu 2.5 and I want to install it from windows 7

  • 1176 views
  • 2 answers
  • 0 votes

Hello,

I have been frequently facing the following problem while programming in "C": the error message "Unable to open include file." was entered at the time of compiling the program.

I checked the library of files, they are stored in my include folder yet the error message has entered while compiling; why? I would be grateful if anybody solves this.

Problem in C-the error message "Unable to open include file

Message

Compiling D:MYDUMP~1TCMYPROGRA.C:

Error D:MYDUMP~1TCMYPROGRA.C 2: Unable to open include file 'STDIO.H'

  • 3029 views
  • 3 answers
  • 0 votes

Hi all,

I have to change the display of the PHP files extension as html files like .html on the address bar on the browser. I am using the following code for this in text file and save it as .htaccess.

RewriteEngine On

RewriteRule ^(.*)-([0-9]+).html$ viewstudent.php?id=$2

RewriteRule aboutus.html$ aboutus.php

RewriteRule careers.html$ careers.php

RewriteRule services.html$ services.php

RewriteRule consulting.html$ consulting.php

RewriteRule enquiry.html$ enquiry.php

RewriteRule contactus.html$ contactus.php

  • 1167 views
  • 2 answers
  • 0 votes

Latest Articles

How To Choose The Right Linux VPS For Your Needs

Choosing the right Linux virtual private server (VPS) is a critical decision that can greatly impact your online projects, whether you’re running a website, hosting applications, or setting up a development environment. With various...

Benefits Of Storing And Sharing Documents In The Cloud

Have you ever wished you could access your important documents anytime, anywhere? With cloud document storage, that wish becomes a reality. In today’s fast-paced world, secure and accessible document management is more essential than...

From Lost To Found: Restore Your Data On Windows 11

Are you worried about data you lost during some operation on your Windows 11? Don’t worry; we are here to guide you on how to recover the lost data from your Windows device in...

Latest Blogs

Top 10 New Laptop Entrants That Shook The Public

The finest laptops are powerful enough to do your daily tasks, comfortable enough to use all day, and power-efficient enough to ensure you don't run out of battery power unexpectedly. Of course, all these...

10 Facts About The Dark Web

Before getting into knowing the facts, let’s have a brief about the Dark Web. The dark web is the data of the World Wide Web that is accessible only through special software, combinations, or...

Top 10 Latest Steam Cleaner Machines

While looking for a chemical-free way to clear and purify both durable and low grounds in your home, a steam cleaner is an excellent solution. With a spurt of superheated steam, this cleaning equipment...

Latest Tips

Top 10 Internet Monitoring Software

Internet monitoring software keeps a log of all internet activities. You can install this type of software on your computer remotely or by the administrator. An operating console controls this software. This type of...

Top 10 Best Partition Manager Software

A Hard Disk Drive is usually partitioned into various smaller drives for optimization. A partition manager helps make this process easier and more efficient. Here, let’s discuss the top 10 best partition manager software. 1....

Top 10 Best Online Music Production Software

Music production is the initial stage of any song. Music production can be done either in studios or at home using an online music production software. Here, let’s discuss the top 10 best online...