PHP

2 answers

PDFlib Error - PDF_set_info

-1 points

Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in script.php on line xxx.

Why the heck am I getting this PHP Error?

Read more »
Created by Anonymous 19 weeks 2 days ago
  Tags:
2 answers

PHP Question

7 points

Bugged enough to post it here:
I have a large set of records and I want to increase execution time of PHP for processing these large number of records.

Read more »
Created by Anonymous 19 weeks 4 days ago
  Tags:
2 answers

What is PHP strip_tags() Perl quivalent?

8 points

Like the previous PHP Strip_tags() javascript equivalent question, I am looking for PHP strip_tags() Perl equivalent? I have to stip all html tags from content in Perl.

Read more »
Created by Anonymous 19 weeks 4 days ago
  Tags:

PHP strip_tags()

PHP strip_tags() function strips HTML and PHP tags from a string. Syntax: <?phpstring strip_tags ( string str [, string allowable_tags] )?> This function to return a string with all HTML and PHP tags stripped from a given string. You can use the optional second parameter to specify tags which should not be stripped.
1 answers

What is PHP strip_tags() Jquery quivalent?

-11 points

Hi People,

What is PHP strip_tags() Jquery/Javascript equivalent? I have to stip all html tags from content variable in the javascript code that uses Jquery.

Read more »
Created by Anonymous 19 weeks 4 days ago
  Tags:
3 answers

Warning: MySQL server has gone away query

17 points

I am getting the following error when connecting my drupal application to mysql.

<?php
Warning
MySQL server has gone away queryINSERT INTO watchdog (uidtypemessageseveritylinklocationrefererhostnametimestamp)

VALUES (1'php', <em>MySQL server has gone awaynqueryUPDATE cache SET data =&amp;#039;a:4....

in C:xampphtdocsstudentindiaincludesdatabase.mysql.inc on line 172
?>

What does this mean?

Read more »
Created by Anonymous 19 weeks 4 days ago
  Tags:
1 answers

PHP Self vs this?

0 points

Hi, this sounds very embarrassing but i've been using too much $this->field keyword for so long i can't remember what's the difference between "php $this" and "php self".

does php "self" has any special functionality besides being called differently? surely there must've been some purpose.

example,
instead of $this->GetMyName(), it becomes self::GetMyName();

?

Read more »
Created by Anonymous 19 weeks 5 days ago
  Tags:

Cron Job

On Linux, cron is a utility for automating tasks. This means we can schedule a task to run "every minute" and the cron would all that task every minute. Task can be deleting old files, back up database at 1.00am at midnight etc. The daemon that needs to run for cron to work is "crond" and the program is "crontab". Following command on the shell allows you to write your cron jobs in the editor: crontab -e Once, you log out, they are saved in the /var/spool/cron/ directory. The crond daemon reads this regularly and executes the cron tasks at the scheduled time.

How to Theme Drupal Menu Tree

Following is the code that is being used to theme Drupal 6 menu tree where "clean" is the theme being used: <?phpfunction getMenuItemCounter($case=null){  static $counter = 1;  return ($case == 'reset') ? $counter=1 : $counter++ ;}// theme_menu_tree()function clean_menu_tree($tree) {  getMenuItemCounter("reset");  return '<ul class="menu">'. $tree .'</ul>';}// theme_menu_item()function clean_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {  $class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));?>

Svn Update

Svn update updates the current working copy of the repository on the local environment. Syntax: svn update [PATH...] Help Options: --revision (-r) REV --non-recursive (-N) --quiet (-q) --diff3-cmd CMD --username USER --password PASS --no-auth-cache --non-interactive --config-dir DIR If no revision is mentioned, latest HEAD copy is updated. Example: svn update svn up 'svn up' and 'svn update' are same commands.