Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Warning: Unknown Persistent List Entry Type In Module Shutdown (11)


I am getting this wanrning:

Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 0

I have never seen it before or know what it means and line 0 is hard to find especially when no document is specified Everything works as it should at this point just getting that warning on my personal apache server any ideas?




View Complete Forum Thread with Replies

Related Forum Messages:
PHP Warning:  Module 'gd' Already Loaded In Unknown On Line 0
when ever i am running pear i am getting this warning message : ----

PHP Warning:  Module 'gd' already loaded in Unknown on line 0

Warning:  Module 'gd' already loaded in Unknown on line 0

PHP Warning:  PHP Startup: pdf: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

View Replies !
Pear - PHP Warning: Module 'oci8' Already Loaded In Unknown On Line 0
I always get this message. No matter what package

[as411161@spgs php-5.2.0]$ pear install Date
PHP Warning: Module 'oci8' already loaded in Unknown on line 0
No releases available for package "pear.php.net/Date"
Cannot initialize 'Date', invalid or missing package file
Package "Date" is not valid, install failed...

View Replies !
Unknown Php Error - Warning: Unknown():
mys site displays an error message everytime i perform a certain function however the error message disappears after i refresh the page and doesnt affect but it doenst look very professional. Code:

View Replies !
Cannot Remove Module Mod_php5.c: Not Found In Module List
Today I see in my apache error log file an entry 'Cannot remove module mod_php5.c: not found in module list'. Anybody any idea where this is located or where I get this php5.c file or why this shows up since today in my error log file?

Everthing still seems to work well except the anoying error entry.

View Replies !
Module 'modulename' Already Loaded In Unknown On Line 0
FYI: The page below describes one possible solution for resolving the
following PHP warning:

PHP Warning: Module 'modulename' already loaded in Unknown on line 0
(modulename may be bz2, ctype, readline, mysql, curl, etc.

http://www.somacon.com/p520.php

View Replies !
Keeping Select List Persistent
I grab data from an Oracle database and create a select list as follows:

while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS)) {
   print '<option value="'.$row[0].'">'.$row[1].'</option>'       
  }

The problem I have is that my error handling functions send the user back to the same form if there is a data entry problem. When this happens, I get an error that the login information (that I use to build the select list) is incorrect; basically because it is gone.

Rather than going back to the database each time the user is sent back to the form for a data entry error, is there a way to make this list persistent.

View Replies !
Managing A Persistent Linked List In MySQL
Any suggestions on a reasonably efficient way to model an availability list using PHP/MySQL.

Imagine a simple car rental agency with one car type, say Honda Civic.

Initially on Jan. 1, there are 10 civics available, and there is one record in the DB:

(FROM_DATE, TO_DATE, num_units). Code:

View Replies !
Warning: Unknown():
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

What does it mean? how can I fix it?

View Replies !
Warning: Preg_match(): Unknown Modifier
PHP Code:

foreach ($text as $key){ //line 48
$matched = preg_match('.*(pictureit(.*))+', $text[key($text)]); //line 49
print_r ($matched); //line 50
next($text); //line 51
} // line 52

I know that $text[key($text)] is the same thing as $key in this case. Code:

Warning: preg_match(): Unknown modifier '*' in C:pearbcode.php on line 49

i was reading about backslacshes and spaces cant be in my string or something. this is my first time with delimters, so im try to figure out why this isnt working cause i did a tutorial , bahhh .

View Replies !
Issue With Module Type
We are trying to use php through the command line on a fedora core 6 box. When we run our program we get the following error.

Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match. I am not sure where to start looking for the problem, as all of the programs were just compiled 2 days ago, with the latest updates. This problem happens in both PHP4.4.4 and 5.2.x.

View Replies !
Preg_replace Regex -Warning: Unknown Modifier
Code: $info[0] = "/apple/farm/";
$the_path = "/apple/";
$cat_rep = preg_replace("/^$the_path/", "", $info[0]);

echo $cat_rep;

Im trying to get $cat_rep to contain "farm/", instead I get this error:
Warning: Unknown modifier 'a' in

View Replies !
Please Help With This Error: Warning: Unknown(): A Session Is Active.
I've searched high and low for this on the net but stil haven't found an
answer.

I'm trying to install both postnuke and xoops on a win2k server with php
4.3.3. and mysql installed.

Both applications are loading terribly slow. When the page finally has been
rendered I got the following error:

Warning: Unknown(): A session is active. You cannot change the session
module's ini settings at this time. in Unknown on line 0

Is it a bug in PHP? Has it something to do with the fact that I'm running it
at win2k?

Since I think it has something to do with sessions, I attach a snapshot of
the results for phpinfo()

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path D:programfilesphpsessiondata
D:programfilesphpsessiondata
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

View Replies !
Mail() Function - Warning: Unknown Error
I have been getting the crap beat out of me by the mail function. It just wont send the mail. I have even tried this simple test:

if (mail('myrealaddress@yahoo.com','Getting this to work','what the hell is it going to take?'))

The result -
Warning: Unknown error in c:phpdev5wwwalaskaerrandsindex.php on line 135

And when I say myrealaddress I mean I really used a valid email address. I know that the mail function just isn't working for me and it has to do with something other than my code.

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session
I'm getting a strange error in one of my programs:

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

Funny thing is I'm not using any globals at all in my script, but I am using $_SESSION. I even did grep GLOBAL *.php in my directory in case it's in one of the functions I included and nothin'. Strangely the error is output at the very end of the code (after a simple print statement which is before the closing php tag). I don't see the point in messing with register_globals when I don't use globals so am hoping for another solution. Any ideas?

View Replies !
Warning : Unknown(): Unable To Load Dynamic Library
I install php 4.3.1 on Windows XP (Use Apache 2.0.44) I open c:windowsphp.ini and uncomment line extension=php_gd2.dll When I restart Apache It has error pop up every time I open php file in browser like this:

Warning : Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found.

View Replies !
Warning: Unknown: 1 Result Set(s) Not Freed. Use Mysql_free_result To Free ...
Anyone seen this error before?

Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

Not certain how / where it would find another result set. Been reading up on the mysql_free_result command; when/where would it be utilized? Here is my scenario. I have a dynamic form that stores, draws data, edits records and emails data. There are two main sections of the site: Submission and Revision.

I assume it's best to free results when a user logs out of their account; while logged, the user can proceed to make revisions. I'm afraid they will run into the same problem I'm experiencing now. Can the results be freed without causing the user to lose their work?

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library
I'm running a dedicated server with windows 2003 server with IIS, anyway recently a strange message started to pop out in my face each time I tried to access a page have query to the database.

---------------
PHP Warning: Unknown(): Unable to load dynamic library 'E:Program FilesSWsoftPleskAdditionalPhpextensionsphp_curl.dll' - Access is denied. in Unknown on line 0
-------------------

View Replies !
PHP Warning: Unknown(): Unable To Load Dynamic Library Php_mhash.dll
I just downloaded PHP-4.3.3 for win32 and got the extensions folder and
dropped it intot he root of the PHP directory and set it's path in the
PHP.ini:

extension_dir = "c:/php/extensions/"

But I am still getting the error that it can't find the php_mhash.dll though
I can see that it is indeed in the folder....

View Replies !
Warning: Unknown(): Failed To Write Session Data (files)
When I run this:

<?PHP
session_start();
echo session_id();
?>

It give me the right ouput but it also gives me a huge error message:

Warning: session_start():
open(/tmpsess_c6782a171d1c85b13e9b9d3ff4c4a88a, O_RDWR) failed: No
such file or directory (2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2

Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at C:Program FilesApache
GroupApache2htdocs10.1.php:2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at C:Program FilesApache
GroupApache2htdocs10.1.php:2) in C:Program FilesApache
GroupApache2htdocs10.1.php on line 2
c6782a171d1c85b13e9b9d3ff4c4a88a
Warning: Unknown(): open(/tmpsess_c6782a171d1c85b13e9b9d3ff4c4a88a,
O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp) in
Unknown on line 0

What am I doing wrong?

View Replies !
Warning: Preg_replace() [function.preg-replace]: Unknown Modifier
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'a' in index.php on line 6

my code as following;


<?php //line 1

$str=' test & me '
$p='^[^a-z]+$'
$r='_'
$str=preg_replace($p, $r, $str); // here is line 6
echo $str;

?>

View Replies !
Warning: Odbc_connect(): SQL Error: [MySQL][ODBC 3.51 Driver]Unknown
I'm trying to connect to an Access database via a system DNS called PromoDB which has a username of root but no password, and I am currently getting the following error: Quote:

Warning: odbc_connect(): SQL error: [MySQL][ODBC 3.51 Driver]Unknown database 'promodb',SQL state S1T00 in SQLConnect in fileMaintMaster.php

The line of code that generates this error is:

$access = odbc_connect('PromoDB','root','');

View Replies !
Detect If Module Is Available W/out Error/warning?
I'm writing a PHP script that tests if my server is set up correctly. One thing I want to test is if certain optional modules are installed and available. Is there a way to run require() or include() and have them do something other than blurt big messy errors and/or kill the script? I want my script to be able to do things like proceed to check other modules, print a nice summary of results, send an email etc... Maybe there's a function that just looks for a module without trying to load it?

An obvious solution is to write an error handler and call set_error_handler() before trying to require_once() the module in question. Unfortunately, if the module isn't available, the script dies even if my handler doesn't want it to.

View Replies !
Unknown Column 'icaodesc' In 'field List'
I'm getting the following error message...

Unknown column 'icaodesc' in 'field list'

when I try to update a table from a PHP form.

What 'field list' is it referring to? My PHP script or the MySQL
table???

Here is the PHP script I'm using...

<?php

//set up table and database names
$db_name ="xxx";
$table_name ="yyy";

//connect to server and select database
$connection = @mysql_connect("localhost","user_name","password") or
die(mysql_error());
$db = @mysql_select_db($db_name,$connection)or die(mysql_error());

//build and issue query
$sql ="UPDATE $table_name SET
icaodesc ='$_POST[task_icaodesc]',
icaosource ='$_POST[task_icaosource]',
icaonote ='$_POST[task_exp_outcome]',
usposition ='$_POST[task_usposition]',
expoutcome ='$_POST[task_exp_outcome]',
usposition ='$_POST[task_usposition]',
usaction ='$_POST[task_usaction]'
WHERE task_id ='$_POST[id]'";

$result = @mysql_query($sql,$connection) or die(mysql_error());
?>

icaodesc was the NAME in the updatable form. task_icaodesc is a
"good" field in the table yyy

View Replies !
SQL/DB Error -- [Unknown Column 'M' In 'field List']
I have a simple form element that drives me nuts. Here's the code: PHP Code:

<input type='radio' name='gender' value='M'";
    if ($usr->act_gender == 'M') { echo " checked"; } echo "> Male
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='radio' name='gender' value='F'";
    if ($usr->act_gender == 'F') { echo " checked"; } echo "> Female

When the form submitted it should PHP Code:

("UPDATE act_details
SET ... gender=".$_POST['gender'].", ...
WHERE ID = '".$user."' LIMIT 1")

But I keep getting the following error: Quote:

SQL/DB Error -- [Unknown column 'M' in 'field list']

Even Thought I have such a field in my db table.

View Replies !
Warning: Unknown: Your Script Possibly Relies On A Session Side-effect
I have two sites hosted in a rather old server (as it seems), and I am getting these kind of messages:

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

The problem is the admin area is not working. I am using the pass but nothing happens.
Someone told me that there is a problem with the register_globals and safe_mode.
I dont know in what file in file directory should I check and what to fix.

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect
I am getting this warning on my localhost.

--------------
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively
--------------

I know that it is very straightforward, including on how to resolve it. However, my question is, what if our webhost would not want to change session.bug_compat_42 or session.bug_compat_warn to off? Any workaround?

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect ..
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0.

View Replies !
Form Entry List
I have a form with one box into which users type a few words (an email address).

That entry is emailed to me. I need to copy each entry into one text file automatically so I do not have to copy them manually out of each email one at a time. The result would be one text file with the entries listed down the page, one by one.

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
I am getting the following warning at the bottom of one of my script outputs:

"Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0"

Can anyone tell me why I am getting this warning? How can I change my code to get rid of it? Is it caused by $_SESSION['var'] = $_POST['var']; statements?

View Replies !
Warning: Unknown(): Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
I have been writing a login script for a site, upon execution of the
code I recieved this error:

Warning: Unknown(): Your script possibly relies on a session
side-effect which existed until PHP 4.2.3. Please be advised that the
session extension does not consider global variables as a source of
data, unless register_globals is enabled. You can disable

----------------------------------------------------

not quite fully understanding the error message I wrote a simpler
session script (below) I get a parse error on the session_register
line. Assuming the code is correct I take it the session isn't being
initilised correctly? if not how can I get around this issue?

<?php

session_start();
echo 'session started'

$username = 'paul'

session_register('username');
echo '"paul" has been stored in the session.'

?>

View Replies !
Warning: Unknown: Your Script Possibly Relies On A Session Side-effect Which Existed Until PHP 4.2.3.
some time in web page i can see this error:

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 What's wrong?

View Replies !
Invalid Query: Unknown Column In 'field List'
I'm getting this error when I execute my form and it brings up the corresponding .php page.

Invalid query: Unknown column 'DCS' in 'field list' Whole query: SELECT DCS#, CLIREF, GUAR, PAT, ADDR1, ADDR2, CITY, ST, ZIP, SS#, DOB, PHONE, DBAL, TBAL, PAID FROM crossroads10 WHERE CLIREF='ZQ02037/8558'

Here is my code:

View Replies !
Error: Unknown Column 'OOM210' In 'field List'
Can someone tellme why I get the following error?

Error: Unknown column 'OOM210' in 'field list'

$flightnumber is equal to OOM210...

(INSERT INTO and VALUES are on the same line, but here it is split so it is easier to compare.)

$sql = "INSERT INTO flights (flight_num, dept, dest, depticao, desticao, depttime, desttime, stops, duration, freq)
VALUES ($flightnumber,$departure,$destination,$departurecity,$destinationcity,$departuretime,$arrivaltime,$stop,$duration,$freq)";
  if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }

View Replies !
Book ERROR: Unknown Column 'Fredrik' In 'field List'
In confused with this problem, My code looks like this:

$sql="INSERT INTO calendar(year, month, day, name)
VALUES('$year','$month',".$_GET['day'].",".$_SESSION['name'].");

the table structure of "calendar" is

year TINYINT(4) notnull
month TINYINT(4) notnull
day TINYINT(4) notnull
name VARCHAR(30) notnull

View Replies !
Retrieving Full Entry From Multiple Select List
I have a list box with multiple selects. I define the name as numList[]. I
get the values from

$picked = $_POST['numList'];

It retrieves values for all those selected.

If the entries are, say,
First
Second
Third

and the first and third are select then $picked[0] has "First" and
$picked[1] has "Third".
If, however, the entries are:

First one
Second one
Third one

Then the values are for $picked[0] and $picked[1] are "First" and "Third"
respecticely.
How do I retrieve the entire value and not just the first word?

View Replies !
Warning: Ftp_exec() [function.ftp-exec]: SITE EXEC Is An Unknown Extension
This is kind of a part II to a question a posted earlier about exec and shell_exec not working.

I'm trying to use ftp_exec to execute some simple command:

$conn_id = ftp_connect("$server") or die ("Cannot initiate connection to host");
ftp_login($conn_id, "$username", "$userpass") or die("Cannot login");
$command = 'cd..'
if (ftp_exec($conn_id, $command)) {
   echo "$command executed successfully";
} else {
   echo "could not execute $command";
}
ftp_close($conn_id);


I'm getting the following error:

Warning: ftp_exec() [function.ftp-exec]: SITE EXEC is an unknown extension in /home/urieilam/public_html/work/video/test1.1.php on line 21
could not execute cd..

Have tried other commands as well, get the same. Could this be a security issue or something to do with p Safe Mode? I don't know much about commands, shell, etc..

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host 'sql1bravehostcom'
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'sql1bravehostcom' (1) in /misc/13/000/126/295/2/user/web/jeppers90.com/includes/fiction_mysql.inc.php on line 11
Cannot connect to server

this message is what i get when i try to upload it to a webserver..things i have done set up database put in correct information from the database in to my php form. what ever i try i can't seem to set it up .

View Replies !
Catch Any Type Of Warning Or Synax Error That Might Have Occured.
I'm using php as a backend language to a flex application i'm building. For those of you who are unfirmiliar with flex, it is an asynchronous style language built on flash. My problem is it is very hard to debug. Similar to many problems developers have encoutered with ajax, you can't actually see whats going on in the backend. To help i'm just writting all the variables that are coming in and and out to a txt file.

I was wondering if there was a way to catch any type of warning or synax error that might have occured. I'm using a try catch right now to write anything that errors in that sense to a file, but i wanted to take it a step further and basically catch any type server side (pre-runtime) error and spit that into a error.txt file as well.

View Replies !
REQ: PHP To-Do List Type App/Script
I've been searching high and low for an script to use on my website
which suits my needs but I haven't found anything. Since I've never used
PHP I'm hoping the open-source community can come to my rescue!

Here's what I'm after:

A script that's like a To-Do List. I'd like multiple users (user
management isn't essential) to be able to input text to a list as well
as have the ability to modify it.

Seems like it should be pretty simple... I'm hoping.

If I can be greedy, it would be great for items to be able to be
/crossed out/ and moved to another list which can be viewed as well.

Does anyone know where such a script would exist?

View Replies !
Calendar Type List/menu
how do i do 3 list type menu one with the 12 months next with the days in that month and  the year. so want i want is when people select a month the next list show the days as soon the pick the month.

View Replies !
Shutdown Order
I have this code:

class Test
{
public $status = 'dead'
function __construct() { $this->status = 'alive' }
function __destruct() { echo '<br>__destruct()' }
}
$o = new Test;

function shutdown()
{
echo '<br>shutdown()'
}
register_shutdown_function('shutdown');

function obflush( $s )
{
global $o;
return $s . '<br>obflush() ' . $o->status;
}
ob_start('obflush');

Which (using PHP 5.1.4) produces this output:

shutdown()
__destruct()
obflush() alive

I have two questions:

1) I have read that the order in which the three functions are called has
changed previously and is likely to change again in future versions of PHP.
Does this mean I cannot rely on this order at all?

2) Why is $o still "alive" in obflush() even though its destructor has been
called before? The destructor having been called, I would expect global $o
to point to a no longer existing variable (thus, "null").

View Replies !
Please Help: How To Log Data Before Shutdown?
Quick question:
Assume your PHP script is running in the background executing some
long, time consuming process. And while it's running the Host Service
Provider decides to shut down the server for maintenance.

How are running scripts in that case terminated? Will they exit
orderly or will they simply be aborted like pulling the plug?

Will the "register_shutdown_function()" be executed when a server
shut-down exits all running processes?

How can I get my script to write some log data before it is stopped
when the server shuts down or so?

View Replies !
Shutdown Computer
I run an online radio station, and am in need of a method to shutdown or restart the computer running the station in case of errors etc. I noticed the delphi program idea someone posted earlier, but I dont have possesion of any way to compile delphi code or any knowledge of delphi. I could use to solve this problem?

View Replies !
Warning "Unknown: A Session Is Active. You Cannot Change The Session Module's Ini Settings At This Time."
I'm trying to implement a custom session handler that writes session
data to a MySQL database. It works fine about 99% of the time. Trouble
is, at random intervals, I get entries like the following in my
php-error.log: Code:

View Replies !
Start Up / Shutdown Mysqld In Win98
I can start the mysqld fine by running the following command:
C:mysqlbinmysqld --standalone

and I can shut it down fine with the following command:
c:mysqlbinmysqladmin shutdown

But does anybody know how to set this up in win98 so that it will automatically startup mysqld on startup, and automatically shut it down on shutdown/restart?

View Replies !
Competition Entry Form / Random Entry Draw Script
I'm looking for an easy method to implement an 'entry form' for an online competition on my website (a competition page, if you like).

As I am running a 'trade promotion' I will need to apply for a trade permit license, therefore will need to satisfy the local authorities that the entry form and drawing method are acceptible.

The competition page will feature the prize on offer and the fields for entrants to fill in their details.

The tricky part I think is that I then require the entries to be able to be 'drawn randomly' once the competition has ended. Any tips here on how to successfully and easily run a competition from your site?

View Replies !
What Is Apache Module And What Kind Of Module It Has?
I'm planning to make apache module.
I made php code. but it's too slow to handle requests for my project.
So i'm thinking if i replace php code to c and make apache module
then it maybe much faster.

upon above idea I have three questions.
1. Is it really worth to replace php code to c and make as apache
module?
2. It seems like that apache has two kind of module. One looks like
*.c and the
other is *.so.
If i regard that *.c is being compiled together with apache code
and *.so is exactly same as shared library then my idea is right or
there can be more difficult concept?
3. when the php is running as cgi does apache call php.exe and php.exe
interetes *.php file?

View Replies !
Persistent Connections
I just started coding with PHP a few days ago. My code interfaces with a simple database of the books I own. MySQL is running on my computer, and Apache/PHP is running on another.

I tried using persistent connections to lessen the overhead of opening the TCP connection etc, but when I reload the page multiple times, PHP seems to make a new connection for each reload. I checked the processlist in MySQL and I had a whole bunch of sleeping connections from the webserver.

So my question is... did I do something wrong? I basically just changed from connect to pconnect... and to test it I was just reloading the page, so it was using the same username and password for the database.

Also, another question... how do I turn on compression when connecting to MySQL from a .php file? I don't have root access to the Apache machine.

View Replies !
Persistent Connection
For each page on my site I have to open a database connection to retrieve data. I have only one database. For this specific situation do you think is better to use a persitent connection (mysql_pconnect) instead of mysql_connect?

View Replies !
Persistent Variables
I have this variable that is passed in the the $_GET, which I then assign it to a $_SESSION variable to ensure persistency, however every time i reload the page the $_SESSION variable gets lost. Hence unusable.

$_SESSION ['very'] = $_GET['pery'];

How can I ensure persistency beyond page reloads?

View Replies !
DB - Persistent Connection?
For a low-ish traffic website that is doing the simple "build pages from
HTML templates and info in a database" kind of thing, do the wise folks in
this newsgroup advocate connecting and disconnecting from the DB with each
query, or maintaining a persistent connection in the session? Code:

View Replies !
Persistent Logins With Cookies
I am trying to make a persistent login like you find at yahoo and livejournal.

i have basic knowledge about cookies. i am thinking to store the username and password as a cookie, with setcookie(). the problem is that there is an expiration date on the cookie.

what is a way that i can work around the expiration date so that it is forever? i know some sites do something with ip's? what if the ip is not static?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved