Weird error in phpmyadmin using virtualbox ubuntu - php
I have setup a virtualbox and vagrant using puphpet. Everything is working fine except for phpmyadmin. I have installed everything correctly but when I try to access http://ip_address/phpmyadmin I receive this text:
addJSON( 'options', PMA_RecentTable::getInstance()->getHtmlSelectOption() );
exit; } if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { PMA_printGitRevision(); exit; } echo '
'; } // Handles some variables that may have been sent by the calling script $GLOBALS['db'] = ''; $GLOBALS['table'] = ''; $show_query = '1'; // Any message to display? if (! empty($message)) { echo PMA_Util::getMessage($message); unset($message); } $common_url_query = PMA_generate_common_url('', ''); // when $server > 0, a server has been chosen so we can display // all MySQL-related information if ($server > 0) { include 'libraries/server_common.inc.php'; include 'libraries/StorageEngine.class.php'; // Use the verbose name of the server instead of the hostname // if a value is set $server_info = ''; if (! empty($cfg['Server']['verbose'])) { $server_info .= htmlspecialchars($cfg['Server']['verbose']); if ($GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ' ('; } } if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) { $server_info .= PMA_DBI_get_host_info(); } if (! empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } $mysql_cur_user_and_host = PMA_DBI_fetch_value('SELECT USER();'); // should we add the port info here? $short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose']) ? $GLOBALS['cfg']['Server']['verbose'] : $GLOBALS['cfg']['Server']['host']); } echo '
' . "\n"; echo '
'; if ($server > 0 || count($cfg['Servers']) > 1 ) { echo '
'; echo '
' . __('General Settings') . '
'; echo '
'; /** * Displays the MySQL servers choice form */ if ($cfg['ServerDefault'] == 0 || (! $cfg['NavigationDisplayServers'] && (count($cfg['Servers']) > 1 || ($server == 0 && count($cfg['Servers']) == 1) ) ) ) { echo '
'; include_once 'libraries/select_server.lib.php'; echo PMA_Util::getImage('s_host.png') . " " . PMA_selectServer(true, true); echo '
'; } /** * Displays the mysql server related links */ if ($server > 0 && ! PMA_DRIZZLE) { include_once 'libraries/check_user_privileges.lib.php'; // Logout for advanced authentication if ($cfg['Server']['auth_type'] != 'config') { if ($cfg['ShowChgPassword']) { $conditional_class = 'ajax'; PMA_printListItem( PMA_Util::getImage('s_passwd.png') . " " . __('Change password'), 'li_change_password', 'user_password.php?' . $common_url_query, null, null, 'change_password_anchor', "no_bullets", $conditional_class ); } } // end if echo '
'; echo '
' . "\n" . PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection') . ' ' . "\n" . ' '. PMA_Util::getImage('s_asci.png') . " " . __('Server connection collation') . "\n" // put the doc link in the form so that it appears on the same line . PMA_Util::showMySQLDocu( 'MySQL_Database_Administration', 'Charset-connection' ) . ': ' . "\n" . ' ' . "\n" . PMA_generateCharsetDropdownBox( PMA_CSDROPDOWN_COLLATION, 'collation_connection', 'select_collation_connection', $collation_connection, true, 4, true ) . '
' . "\n" . '
' . "\n"; } // end of if ($server > 0 && !PMA_DRIZZLE) echo '
'; echo '
'; } echo '
'; echo '
' . __('Appearance Settings') . '
'; echo '
'; // Displays language selection combo if (empty($cfg['Lang']) && count($GLOBALS['available_languages']) > 1) { echo '
'; include_once 'libraries/display_select_lang.lib.php'; echo PMA_Util::getImage('s_lang.png') . " " . PMA_getLanguageSelectorHtml(); echo '
'; } // ThemeManager if available if ($GLOBALS['cfg']['ThemeManager']) { echo '
'; echo PMA_Util::getImage('s_theme.png') . " " . $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(); echo '
'; } echo '
'; echo PMA_Config::getFontsizeForm(); echo '
'; echo '
'; // User preferences if ($server > 0) { echo '
'; PMA_printListItem( PMA_Util::getImage('b_tblops.png')." " .__('More settings'), 'li_user_preferences', 'prefs_manage.php?' . $common_url_query, null, null, null, "no_bullets" ); echo '
'; } echo '
'; echo '
'; echo '
'; if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { echo '
'; echo '
' . __('Database server') . '
'; echo '
' . "\n"; PMA_printListItem( __('Server') . ': ' . $server_info, 'li_server_info' ); PMA_printListItem( __('Server type') . ': ' . PMA_Util::getServerType(), 'li_server_type' ); PMA_printListItem( __('Server version') . ': ' . PMA_MYSQL_STR_VERSION . ' - ' . PMA_MYSQL_VERSION_COMMENT, 'li_server_version' ); PMA_printListItem( __('Protocol version') . ': ' . PMA_DBI_get_proto_info(), 'li_mysql_proto' ); PMA_printListItem( __('User') . ': ' . htmlspecialchars($mysql_cur_user_and_host), 'li_user_info' ); echo '
'; echo ' ' . __('Server charset') . ': ' . ' '; if (! PMA_DRIZZLE) { echo ' ' . $mysql_charsets_descriptions[$mysql_charset_map['utf-8']] . "\n"; } echo ' (' . $mysql_charset_map['utf-8'] . ')' . "\n" . ' ' . "\n" . '
' . "\n"; echo '
'; echo '
'; } if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { echo '
'; echo '
' . __('Web server') . '
'; echo '
'; if ($GLOBALS['cfg']['ShowServerInfo']) { PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); if ($server > 0) { $client_version_str = PMA_DBI_get_client_info(); if (preg_match('#\d+\.\d+\.\d+#', $client_version_str) && in_array($GLOBALS['cfg']['Server']['extension'], array('mysql', 'mysqli')) ) { $client_version_str = 'libmysql - ' . $client_version_str; } PMA_printListItem( __('Database client version') . ': ' . $client_version_str, 'li_mysql_client_version' ); $php_ext_string = __('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'] . ' ' . PMA_Util::showPHPDocu( 'book.' . $GLOBALS['cfg']['Server']['extension'] . '.php' ); PMA_printListItem( $php_ext_string, 'li_used_php_extension' ); } } if ($cfg['ShowPhpInfo']) { PMA_printListItem( __('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query, null, '_blank' ); } echo '
'; echo '
'; } echo '
'; echo '
phpMyAdmin
'; echo '
'; $class = null; // We rely on CSP to allow access to http://www.phpmyadmin.net, but IE lacks // support here and does not allow request to http once using https. if ($GLOBALS['cfg']['VersionCheck'] && (! $GLOBALS['PMA_Config']->get('is_https') || PMA_USR_BROWSER_AGENT != 'IE') ) { $class = 'jsversioncheck'; } PMA_printListItem( __('Version information') . ': ' . PMA_VERSION, 'li_pma_version', null, null, null, null, $class ); PMA_printListItem( __('Documentation'), 'li_pma_docs', PMA_Util::getDocuLink('index'), null, '_blank' ); PMA_printListItem( __('Wiki'), 'li_pma_wiki', PMA_linkURL('http://wiki.phpmyadmin.net/'), null, '_blank' ); // does not work if no target specified, don't know why PMA_printListItem( __('Official Homepage'), 'li_pma_homepage', PMA_linkURL('http://www.phpMyAdmin.net/'), null, '_blank' ); PMA_printListItem( __('Contribute'), 'li_pma_contribute', PMA_linkURL('http://www.phpmyadmin.net/home_page/improve.php'), null, '_blank' ); PMA_printListItem( __('Get support'), 'li_pma_support', PMA_linkURL('http://www.phpmyadmin.net/home_page/support.php'), null, '_blank' ); PMA_printListItem( __('List of changes'), 'li_pma_changes', PMA_linkURL('changelog.php'), null, '_blank' ); ?>
1) { trigger_error( __('You have enabled mbstring.func_overload in your PHP configuration. This option is incompatible with phpMyAdmin and might cause some data to be corrupted!'), E_USER_WARNING ); } /** * Nijel: mbstring is used for handling multibyte inside parser, so it is good * to tell user something might be broken without it, see bug #1063149. */ if (! #extension_loaded('mbstring')) { trigger_error( __('The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.'), E_USER_WARNING ); } /** * Check whether session.gc_maxlifetime limits session validity. */ $gc_time = (int)#ini_get('session.gc_maxlifetime'); if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) { trigger_error( __('Your PHP parameter [a#http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime#_blank]session.gc_maxlifetime[/a] is lower than cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'), E_USER_WARNING ); } /** * Check whether LoginCookieValidity is limited by LoginCookieStore. */ if ($GLOBALS['cfg']['LoginCookieStore'] != 0 && $GLOBALS['cfg']['LoginCookieStore'] < $GLOBALS['cfg']['LoginCookieValidity'] ) { trigger_error( __('Login cookie store is lower than cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.'), E_USER_WARNING ); } /** * Check if user does not have defined blowfish secret and it is being used. */ if (! empty($_SESSION['auto_blowfish_secret']) && empty($GLOBALS['cfg']['blowfish_secret']) ) { trigger_error( __('The configuration file now needs a secret passphrase (blowfish_secret).'), E_USER_WARNING ); } /** * Check for existence of config directory which should not exist in * production environment. */ if (file_exists('config')) { trigger_error( __('Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'), E_USER_WARNING ); } if ($server > 0) { $cfgRelation = PMA_getRelationsParam(); if (! $cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false ) { $msg = PMA_Message::notice(__('The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click %shere%s.')); $msg->addParam( '', false ); $msg->addParam('', false); /* Show error if user has configured something, notice elsewhere */ if (!empty($cfg['Servers'][$server]['pmadb'])) { $msg->isError(true); } $msg->display(); } // end if } /** * Warning about different MySQL library and server version * (a difference on the third digit does not count). * If someday there is a constant that we can check about mysqlnd, * we can use it instead of strpos(). * If no default server is set, PMA_DBI_get_client_info() is not defined yet. * Drizzle can speak MySQL protocol, so don't warn about version mismatch for * Drizzle servers. */ if (function_exists('PMA_DBI_get_client_info') && !PMA_DRIZZLE && $cfg['ServerLibraryDifference_DisableWarning'] == false ) { $_client_info = PMA_DBI_get_client_info(); if ($server > 0 && strpos($_client_info, 'mysqlnd') === false && substr(PMA_MYSQL_CLIENT_API, 0, 3) != substr(PMA_MYSQL_INT_VERSION, 0, 3) ) { trigger_error( PMA_sanitize( sprintf( __('Your PHP MySQL library version %s differs from your MySQL server version %s. This may cause unpredictable behavior.'), $_client_info, substr( PMA_MYSQL_STR_VERSION, 0, strpos(PMA_MYSQL_STR_VERSION . '-', '-') ) ) ), E_USER_NOTICE ); } unset($_client_info); } /** * Warning about Suhosin */ if ($cfg['SuhosinDisableWarning'] == false && #ini_get('suhosin.request.max_value_length') // warn about Suhosin only if its simulation mode is not enabled && #ini_get('suhosin.simulation') == '0' ) { trigger_error( sprintf( __('Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'), '[doc#faq1-38]', '[/doc]' ), E_USER_WARNING ); } /** * Warning about mcrypt. */ if (! function_exists('mcrypt_encrypt') && ! $GLOBALS['cfg']['McryptDisableWarning'] ) { PMA_warnMissingExtension('mcrypt'); } /** * Warning about incomplete translations. * * The data file is created while creating release by ./scripts/remove-incomplete-mo */ if (file_exists('libraries/language_stats.inc.php')) { include 'libraries/language_stats.inc.php'; /* * This message is intentionally not translated, because we're * handling incomplete translations here and focus on english * speaking users. */ if (isset($GLOBALS['language_stats'][$lang]) && $GLOBALS['language_stats'][$lang] < $cfg['TranslationWarningThreshold'] ) { trigger_error( 'You are using an incomplete translation, please help to make it better by [a#http://www.phpmyadmin.net/home_page/improve.php#translate#_blank]contributing[/a].', E_USER_NOTICE ); } } /** * prints list item for main page * * #param string $name displayed text * #param string $id id, used for css styles * #param string $url make item as link with $url as target * #param string $mysql_help_page display a link to MySQL's manual * #param string $target special target for $url * #param string $a_id id for the anchor, * used for jQuery to hook in functions * #param string $class class for the li element * #param string $a_class class for the anchor element * * #return void */ function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null, $a_id = null, $class = null, $a_class = null ) { echo '
'; if (null !== $url) { echo ''; } echo $name; if (null !== $url) { echo '' . "\n"; } if (null !== $mysql_help_page) { echo PMA_Util::showMySQLDocu('', $mysql_help_page); } echo '
'; } ?>
This issue is very similar to the one mentioned here.
My concern is that I setup my config through puphpet so I am not sure if I follow along with the answer to that question if I will make it worse. Does anyone have any idea how I can fix this?
EDIT: I ended up following the steps in the answer I linked in my question and it all seems to have been fixed. Not sure if there is a way to mark this question as complete since there is technically no answer here. Please mark it as closed or answered.
This means that your web server is not configured to interpret .php files with the PHP handler. For Apache 2, have a look at item 8 here:
http://php.net/manual/en/install.unix.apache2.php
For nginx, see item 7 here:
http://php.net/manual/en/install.unix.nginx.php
Related
Custom Flash message PHP
This flash message helper is from traversymvc: a custom open-source php mvc. My question is: is it necessary to check if ($_SESSION[$name]) is not empty on line 6(3rd if) when we've already made sure that it is not empty from the if condition before it. Thanks. <?php session_start(); function flash($name = '', $message = '', $class = 'alert alert-success') { if (!empty($name)) { if (!empty($message) && empty($_SESSION[$name])) { if (!empty($_SESSION[$name])) { unset($_SESSION[$name]); } if (!empty($_SESSION[$name . '_class'])) { unset($_SESSION[$name . '_class']); } $_SESSION[$name] = $message; $_SESSION[$name . '_class'] = $class; } elseif (empty($message) && !empty($_SESSION[$name])) { $class = !empty($_SESSION[$name . '_class']) ? $_SESSION[$name . '_class'] : ''; echo '<div class= "' . $class . '" id="msg-flash">' . $_SESSION[$name] . '</div>'; unset($_SESSION[$name]); unset($_SESSION[$name . '_class']); } } }
Php Elastica - how to resolve - No enabled connection error - in long cycle
I have a php console script which processes long array in foreach cycle and send Elasticsearch bulks to database. I need to solve case if bulk insert fails on connection error like: No enabled connection. I would like to catch it and try it again. But my solution does not work. Still no enabled connection error. Here is the code: /** #var Elastica\Client $elastic */ $elastic = new Elastica\Client(['servers' => [['host' => 'xxx.xxx.x.xx', 'port' => 9200]]]); /** #var \Elastica\Index $searchCz */ $searchCz = $elastic->getIndex('search_cz'); $bulkLimit = 500; $scrollIcos = [About 2mil items...]; $continue = TRUE; while ( $continue && $bulkIcos = array_splice( $scrollIcos, 0, $bulkLimit ) ) { try { $elasticBulk = []; $icos = array_values($bulkIcos); foreach ($bulkIcos as $ico) // Numeric key does not work with array_splice() { $offset++; $companyData = []; $companyData['ico'] = $ico; $companyData['xxx'] = 'yyy'; ... $elasticBulk[] = new \Elastica\Document((string)$ico, $companyData); } if( $elasticBulk ) { echo 'Bulk send start ' . PHP_EOL; $searchCz->getType('doc')->addDocuments($elasticBulk); echo '----- offset ' . $offset . ' OK' . PHP_EOL; } } catch( \Exception $e ) { echo '------------------------' . PHP_EOL; echo 'Error while bulk insert. ' . $e->getMessage() . PHP_EOL . PHP_EOL; setIcosBackToScrollIcos($bulkIcos, $scrollIcos); sleep(30); } }
Error while unserialization of model
on my production system occurs an error while unserializing an user object within queue execution: [2016-12-20 21:10:01] production.ERROR: Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [App\User]. in /var/www/virtual/bob/bobnet/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:210 Stack trace: #0 /var/www/virtual/bob/bobnet/vendor/laravel/framework/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php(45): Illuminate\Database\Eloquent\Builder->findOrFail(137) If I run \App\User::findOrFail(137) the correct user could is found without an error. Until a few weeks everything worked fine. Just as the unserialization on my dev system. Has anyone an idea what's going wrong? Notification: <?php namespace App\Mail; use Carbon\Carbon; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Mail; class GuideNotification extends Mailable { use Queueable, SerializesModels; // Once the data has been set to a public property, it will automatically be available in the view private $template; public $user; public $tour; public $pivot; public $sender; public $date; /** * Create a new message instance. * * #return void */ public function __construct($template = 'emails.status_update', \App\User $user, \App\Tour $tour, $pivot, \App\User $sender = null) { $this->template = $template; $this->user = $user; $this->tour = $tour; $this->date = new Carbon($tour->start); $this->pivot = $pivot; if ($sender) { $this->sender = $sender->fullName(); } } /** * Build the message. * * #return $this */ public function build() { return $this ->to($this->user->email) ->cc(config('bob.bcc_mail'), 'BoB') ->subject($this->generateSubject()) ->view($this->template); } protected function generateSubject() { switch ($this->template) { case 'emails.request': return 'Guide Anfrage ' . $this->tour->name . ' am ' . $this->date->format('d.m.Y') . ' um ' . $this->date->format('H:i') . ' Uhr (ID ' . $this->tour->id . ')'; break; case 'emails.confirmation': return 'Guide Bestätigung ' . $this->tour->name . ' am ' . $this->date->format('d.m.Y') . ' um ' . $this->date->format('H:i') . ' Uhr (ID ' . $this->tour->id . ')'; break; case 'emails.change': return 'Guide Änderung ' . $this->tour->name . ' am ' . $this->date->format('d.m.Y') . ' um ' . $this->date->format('H:i') . ' Uhr (ID ' . $this->tour->id . ')'; break; case 'emails.freesale': return 'Guide Bestätigung "geschnappte" ' . $this->tour->name . ' am ' . $this->date->format('d.m.Y') . ' um ' . $this->date->format('H:i') . ' Uhr (ID ' . $this->tour->id . ')'; break; default: return 'Guide Statusupdate ' . $this->tour->name . ' am ' . $this->date->format('d.m.Y') . ' um ' . $this->date->format('H:i') . ' Uhr (ID ' . $this->tour->id . ')'; break; } } }
Long story short: Due to some environment variables and execution context the queue was worked with a different php version which resulted in this error. After forcing the correct php version everything works fine.
How to check that value exist in YII Session Variable
I am using yii and creating a cart, by using id of product i need to check that id already exists or not , but i use in_array and array_key_exists but unable to solve it Here is my code of controller public function actionCartupdateajax() { //start yii session $session = Yii::app()->session; // get posted values $id = isset($_POST['id']) ? $_POST['id'] : ""; $name = isset($_POST['name']) ? $_POST['name'] : ""; $price = isset($_POST['price']) ? $_POST['price'] : ""; $imgSrc = Yii::app()->request->baseUrl . '/images/icondeletecart.png'; /* * check if the 'cart' session array was created * if it is NOT, create the 'cart' session array */ if (!isset($session['cart_items']) || count($session['cart_items']) == 0) { Yii::app()->session['cart_items'] = array(); } /* * Here is the proble * check if the item is in the array, if it is, do not add */ if (in_array($id, Yii::app()->session['cart_items'])) { echo 'alreadyadded'; } else { Yii::app()->session['cart_items'] = $id; echo '<li><strong>' . $name . '</strong><span>' . $price . '</span>' . '<img src=' . $imgSrc . ' alt="No Image" class="imagedeletecart" id=' . $id . '></li>'; } } and the error in console is in_array() expects parameter 2 to be array, string given
I think problem in next row: Yii::app()->session['cart_items'] = $id; After this code cart_items will be NOT array, but integer or string. Clear session and try to change: Yii::app()->session['cart_items'][] = $id; And better use CHtml for generation html. It is cleaner. Like this: echo CHtml::tag('li', array(/*attrs*/), 'content_here'); //your code echo '<li><strong>' . $name . '</strong><span>' . $price . '</span>' . '<img src=' . $imgSrc . ' alt="No Image" class="imagedeletecart" id=' . $id . '></li>'; //I propose this way(but you can use your version): echo CHtml::tag( 'li', array(), CHtml::tag( 'strong', array(), 'name' ) . CHtml::tag( 'span', array(), 'price' ) . CHtml::image( 'src', 'alt', array( 'class' => 'imagedeletecart', 'id' => 'id' ) ) );
PHP - How to use functions from another directory file?
I have this function in $root/content/plugins/musicplayer/includes/player.php public function head_script( $id, $playlist_id, $songs, $in_popup, $autoplay = false ) { $output = ''; $playlist = ''; $artist = ''; $free = null; $external = 0; if ( $songs ) { $ogg = ''; foreach ( $songs as $song ) { $free = $song->free; if ( $song->poster ) { $poster = esc_url( $song->poster ); } else { $poster = $this->get_default_playlist_poster( $playlist_id ); } $playlist .= '{ title : "' . $song->name . '", mp3:"'. esc_url( $song->mp3 ) .'"'; if ( $song->artist ) $playlist .= ', artist : "' . $song->artist . '" '; if ( $free != 'on' ) { $playlist .= ',poster : "' . $poster . '" '; $playlist .= ' },'; } $playlist = substr( $playlist, 0, -1 ); $output .= '<script type="text/javascript">//<![CDATA['; $output .= "\n"; $output .= 'jQuery(document).ready(function($) { new jPlayerPlaylist( { jPlayer: "#jquery_jplayer_' . $id . '", cssSelectorAncestor: "#jp_container_' . $id . '" }, ['.$playlist.'], { swfPath: "' . WOLF_JPLAYER_PLUGIN_URL . '/assets/js/src", wmode: "window", '; $output .= '});'; // end playlist if ( ! $in_popup ) $output .= $this->popup(); $output .= '});'; // end document ready playlist $output .= '//]]></script>'; } echo $output; } How can I use it in $root/content/themes/bigwolf/index.php, with it still being able to call all the functions that are originally and normally called in the native directory, without any problem?
You can include it. That's how you do it. f1.php <?php function func1() { echo 'hi'; } f2.php <?php require_once('f1.php'); // require //include 'f1.php'; // or include func1();
Obviously musicplayer is a plugin. If it's properly formatted, WordPress will automatically include it. So in the main file of your plugin put require_once __DIR__ . "/includes/player.php'; That will bring your player.php in and give you access to the functions in it. HTH, =C=