Knowledge Base Contributions
Below is a list of the knowledge base entries that Himanshu Jain has contributed to:
- What PCRE function could you use to match every instance of a pattern in a string?
- What function do you use to add an element to the end of an array?
- What function do we use to format date information?
- How do we move the user on to a page?
- What constant do we use to add a session ID to an HTML link?
- What PHP function do we use to send SQL queries to the MySQL database?
- Which function do we use to include library files in our project’s pages?
- What PHP function do we use to initiate or resume a session?
- What PHP function do we use to make our connection to the MySQL database server?
- What built-in variable will contain the error message if the php.ini track_errors option is allowed?
- .Which function allows you to log errors?
- What function can be used to override this directive?
- Which php.ini directive enables you to control the strictness of error messages?
- What function could you use to include a syntax-colored source listing of a PHP script?
- What function outputs useful information about your PHP configuration to the browser?
- How might you execute an external CGI script from within your script?
- How can you escape user input to make it a little safer before passing it to a shell command?
- What does the backtick operator return?
- What does the system ( ) function do with the output from an external command it executes?
- Will the exec( ) function print the output of a shell command directly to the browser?
- How can you write data to a process after you have opened a connection to it?
- Which function would you use to open a pipe to a process?
- How would you test whether a variable called $test is registered with a session?
- What does the SID constant return?
- .How would you destroy session variables both within the current script and the session?
- How would you end a session and erase all traces of it for future visits?
- How can you associate a variable with a session?
- Which function contains the current session’s ID?
- Which function would you use to start or resume a session?
- The name/value pairs submitted as part of a query string will become available as global variables.They will also be included in a built-in associative array.What is its name?
- Which built-in variable contains the raw query string?
- What function could you use to escape a string for inclusion in a query string?
- .How would you deletye a cookie?
- What function designed to allow you to set a cookie on a visitor’s browser?
- Which modifier would you use in a PCRE function to match a pattern independently of a case?.
- What PCRE function could you use to match every instance of a pattern in a string?
- What POSIX regular expression function would you use to replace a matched pattern?
- What syntax would you use to match either any number or the word”tree”?
- .How would you negate the character range you defined in question 124?
- How would you specify a character range between “d” and “f”?
- What regular expression syntax would you use to match the letter”b” at ;least once but not more than six times?
- .How would you break up a delimited string into an array of substrings?
- How would you convert a string to uppercase characters?
- How might you remove white space from the beginning of a string?
- What function would you use to acquire the starting index of a substring within a string?
- How would you specify a precision of two decimal places for the floating-point number we have been formating in the previous questions?
- How would you pad the conversation you effected in question 1 with Zeros so that the part before the decimal point is four characters long?
- conversion specifier would you use with printf( ) to formaqt an integer as a double? Write down the full syntax required to convert the integer 33.
- What function could you use to custom sort a numerically indexed array?
- What function would you use to delete an array element?
- How would you test whether a variable contains an empty value,such as 0 or an empty string?
- How would you test whether a variable has been set?
- Which function is desired to return the integer value of its argument?
- How would you determine whether a variable contains an array?
- What will the following code print?print “four”*200;
- Could you achieve the same thing without the function?
- What single function could you use to convert any data type to any other data type?
- What function could you use to check the validity of a date?
- How would you acquire a time stamp for an arbitrary date?
- What function would you use to formate date information?
- What function accepts a time stamo and returns an associative array representing the given date?
- How would acquire a UNIX time stamp representing the current date band time?
- What function would you use to write a string to a dynamic image(utilizing the FreeType library)?
- How would you draw a polygon?
- .How might you draw a rectangle?
- What function might you use to draw an arc?
- With which functions would you draw a line on a dynamic image?
- What function could you use to acquire a color identifier?
- What function would you use to output your GIF after building it?
- What function would you use to acquire an image identifier that you can use with other image functions?
- What header should you send to the browser before building and outputting a GIF image?
- What PHP function would you use to send an email?
- Given an IP address,what function could you use to get a hostname?
- Without making your own network connection,what function might you use to access a Web page on a remote server?
- What does the server response code 404 mean?
- What client header line tells the server about the browser that is making the request?
- What does HTTP stand for?
- Why can you not rely on the $REMOTE_ADDR variable to track an individual user across multiple visits to your script?
- What environment variable might give you the URL of the referring page”?
- How would you create a constructor method in a class?
- .How would you choose a name for a constructor method?
- How can you declare a property within a class?
- Given a class called emptyClass( ),how would you create an object that is an instance of it?
- How would you declare a class called emptyClass( )that has no methods or properties?
- How would you sort an associative array by its keys?
- What functions would you use to join two arrays?
- In PHP4,what is the simplest way of looping through an array?
- How would you find out the number of elements in an array?
- Which function could you use to add the string “Susan”to the $users array?
- Without using a function,what would be the easiest way of adding the element “Susan” to trhe $users array defined previously?
- What functions can you use to define an Array?
- how do you return a value from a function?
- True or false.If a function doesn’t require an argument,you can omit the parentheses in the function call.
- .How would you convert the while statement you created in question 24 into a forestatement?
- How would you create a while statement that prints every odd number between 1 and 49?
- .What function would you use to list all tables within a database?
- What function would you call if you want to list all database available from a MySQL server?
- Assuming that you have sent a successful UPDATE query to MySQL,what function might you use to determine how many rows have been updated?
- Assuming that yopu have sent a successful SELECT query to MySQL,name three functions that you might use to access each row returned.
- What does the mysql_insert_id()function do.
- What function would you send a SQL query to a database
- .What function would you use to select a database?
- How would you open a connection to a MySQL database server?
- How would delete a named element from a DBM database?
- How would you access a record from a DBM database by name?
- What function would you use to insert a record into a DBM database?
- What function would you use to open a DBM database?
- What function would you use to read the name of a directory item after you have opened a directory for reading?
- What function would you open a directory for reading?
- .How can you tell when you have reached the end of a file?
- What function would you use to read a line of data from a file?
- .What function would you use to open a file for reading or writing?
- How would you determine the size of a file?
- What function would you use to find out whether a file is present on your file system?
- What functions could you use to add library code to the currently running script?
- What functions could you use to add library code to the currently running script?
- What functions could you use to add library code to the currently running script?
- How can you ste a limit to the size of upload files for all forms and scripts?
- .How must you limit he size of a file that a user can submit via a particular upload form?
- Which built-in associative array contains all values submitted as part of a GET request?
- What should you name your form fields to access their submitted values from an array variable called $form_array?
- Which environment variable could you use to find out about the browser that called your script?
- Which environment variable could you use to determine the IP address of a user?
- What should you add to a class definition if you want to make it inherit functionally from another class
- How would you access an object�s properties and methods from outside the object�s class?
- How can you access and set properties or methods from within a class?
- Which of the following statements contain an operator?4;gettype(44);5/12:
- How would you use the string variable created in the assignment expression $my_var + �dynamic�;to create a �variable� variable,assigning the integer 4 to it
- .What will be the following statement output?
- Which of the following variable names is not valid?$the first,$file-name
- Which of the following variable names is not valid?$_value_submitted_by_a_user;$666666xyz
- How would you create a regular method within a class?
- What function would you use to output a string to the browser?
- What do the script PHP delimeter tags look like?
- What do the ASP PHP delimeter tags look like?
- What do the standard PHP delimiter tags look like?
- can a user read the source code of PHP script you have successfully installed?
- What is the PHP’s configuration file called?
- What line should you add to the Apache configuration file to ensure that the .php extension is recognized?
- What is Apache’s configuration file typically called?
- From a UNIX operating system,how would you get help on configuration options(the options that you pass to the configure script in your PHP distribution)?
- Where can you find the PHP on line?
- Name a new feature introduced with PHP4?
- What is the name of the new scripting engine that powers PHP?
- What did the initials PHP originally stand for?
- Can I run several versions of PHP at the same time?
- Test Question
- 1. How to install Apache, MySQL, PHP on Linux
- How to install PHP on Apache?
- How do I know which GTK Classes are supported?
How do I use the buttons in GtkFileSelection?
- Can I use Themes under Win32?
- What is PHP-GTK
Why is it not working with the browser/web server?
How do I install PHP-GTK on Win32?