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.
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