I really ought to check my code before posting... but you get the idea :)
class generatedFoo {
public function __autoload($class) {
include "/path/to/class/$class.php";
}
// other stuff
}
?>
http://www.php.net/zend-engine-2.php
--
PHP General Mailing List (http://www.php.net/)
To unsub
include (extended_methods_stuff.php);
}
I know that I can probably extend this class to add the extra
functionality however the other generated classes rely on the name of this
class so I cannot just extend this class and it's name cannot change.
Is there any way to have an include prior to the c
Hello,
Thanks for the replies ... I valid all the data and input from the
user. So if the user changes the value nothing bad will happen:
I have in the code:
if ($var != $hiddenvar) {
e-mail blank saying "Blank has been updated"
}
That is it ... I made a mistake in my last e-mail ..
Tom Rogers wrote:
store it in the session like:
$_SESSION[session_id()]['dbkey'] = $dbkey;
then get it back with
$dbkey = (isset($_SESSION[session_id()]['dbkey']))? $_SESSION[session_id()]['dbkey'] : 0;
That doesn't negate the problem of people having more than one window
open and editing records
Michael Gale wrote:
Now at the moment on
each page is a hidden variable containing a db primary key for which the
data is getting updated.
I know that hidden values are not a good idea since the user can change
them ... so I was going to store the hidden value in a "$_SESSION"
variable but then the
Hi,
Monday, July 5, 2004, 1:27:12 PM, you wrote:
MG> Hello,
MG> I am working on a web site that is available only over HTTPS and am
MG> using session tracking.
MG> So far I am only saving the person's display name (different then
MG> login), site role and e-mail address in the "$_SESSION" da
for($z=0;$zWhat is the difference between this code and using a "foreach" command?
Nothing, really. Using a foreach() simply means you don't have to keep
up with the $z count variable...
foreach($recipient as $email)
{ mail($email,$subject,$message,$headers); }
--
---John Holmes...
Amazon Wishlis
John W. Holmes wrote:
>
> mcp6453 wrote:
>
> > I'm using Jack's PHP FormMail script, and I need to change it. I know
> > very little abou PHP, but here's what I very much need to do right away.
> >
> > I need the script to send the same hard coded message to each of 10
> > people. All of the emai
Hello,
I am working on a web site that is available only over HTTPS and am
using session tracking.
So far I am only saving the person's display name (different then
login), site role and e-mail address in the "$_SESSION" data.
The rest of the site is dynamic, now the question is on thre
mcp6453 wrote:
I'm using Jack's PHP FormMail script, and I need to change it. I know
very little abou PHP, but here's what I very much need to do right away.
I need the script to send the same hard coded message to each of 10
people. All of the email addresses do not need to be in the "To" field.
O
Larry E . Ullman wrote:
>
> > /* Select User's First Name From Table */
> > $sql = "SELECT UserFirstName FROM RegisteredMembers WHERE
> > UserID='$_POST[TXT_UserID]'";
> > $result5 = mysql_query($sql) or die ("couldn't select UserID from
> > database");
> > $num = mysql_num_rows($result);
>
I'm using Jack's PHP FormMail script, and I need to change it. I know
very little abou PHP, but here's what I very much need to do right away.
I need the script to send the same hard coded message to each of 10
people. All of the email addresses do not need to be in the "To" field.
Only the intend
Hi,
I have a program which generates classes based on table structures within
a database. However there are a few times where I need to put custom
methods within these generated classes.
I want to be able to do this but php gives an error for the following include
class generatedClass {
var $t
Jason Paschal wrote:
i'd like to be able to strip only one type of HTML tag from a web
document (), but to do that with strip_tags(), i'd have to predict
every possible HTML tag that might be used, except for the one i want to
strip, and put those in the allowable tags parameter.
That's why I w
i'd like to be able to strip only one type of HTML tag from a web document
(), but to do that with strip_tags(), i'd have to predict every possible
HTML tag that might be used, except for the one i want to strip, and put
those in the allowable tags parameter.
That's why I was hoping someone kne
David T-G wrote:
Jason, et al --
...and then Jason Barnett said...
% >Is there any way I can tell the web browser to start trickling the data
% >onto the page?
%
% As Torsten so kindly pointed out to me before, your friend is the
% flush() function:
% http://www.php.net/flush
Aha! It looks like
L.S.
I can't get PHP5 / MySQLi (improved mysql) working.
Here's the setup:
Linux
apache-2.0.50
mozilla
mysql-4.1.3
php-5.0.0RC3 (configured --with-mysqli --without-mysql)
All are compiled and installed as per their respective configure files
and Makefiles
PHP relies on a server side interpreter that normally runs under an apache
web server and you reference those files by having your browser fetch those
files through a URL that maps to your PHP files, beginning with something
like http://hostname.com/program.php. If you opened the files directly wi
Hello,
I need to compile sqlanywhere module.
http://www.sybase.com/detail/1,6904,1019698,00.html
Theyr documentation says that i need to compile the whole php source tree. That is not
an easy task on gentoo with ebuilds. Well i managed to do that.
But maybe there is an easier way? To compile se
/* Select User's First Name From Table */
$sql = "SELECT UserFirstName FROM RegisteredMembers WHERE
UserID='$_POST[TXT_UserID]'";
$result5 = mysql_query($sql) or die ("couldn't select UserID from
database");
$num = mysql_num_rows($result);
/* Welcome Registsred Member */
echo "welcome to th
Jason, et al --
...and then Jason Barnett said...
%
% >Is there any way I can tell the web browser to start trickling the data
% >onto the page?
%
% As Torsten so kindly pointed out to me before, your friend is the
% flush() function:
% http://www.php.net/flush
Aha! It looks like it's just my
Hi All.
What would cause all the tables in all the databases to be deleted all at
once?
TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know, I know. Simple stuff to you guys, but I am learning more every day
and believe me - I won't be recommending Bill's software for web development
from now on :)
/* Select User's First Name From Table */
$sql = "SELECT UserFirstName FROM RegisteredMembers WHERE
UserID='$_POST[TXT_UserID]'";
"Harlequin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Another day another problem. This time it appears that users are able to
> enter their details but I get a query execution error with the following
> section of code:
>
> /* Verify Login */
> $sql = "SELECT UserFirstName,Us
Or if you wanted it to be pretty...
define('MY_DATABASE_USER', 'user');
define('MY_DATABASE_PASS', 'pass');
mysql_connect('localhost',MY_DATABASE_USER,MY_DATABASE_PASS);
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "Michael Collins" <[EMAIL PROTECTED]>
Cc: <[EMAIL
Martin John is right.
I have used this facility with VB, VBA and VBS but not in PHP. However, the
principle is the same. Disable anonymous logins and use the code John is
suggesting and it should work a treat.
I'd recommend outputting this data to a TXT file or MySQL dbase also.
--
Another day another problem. This time it appears that users are able to
enter their details but I get a query execution error with the following
section of code:
/* Verify Login */
$sql = "SELECT UserFirstName,UserID,UserPassword FROM RegisteredMembers
WHERE UserID='$_POST[TXT_UserID]'";
$r
every script. For performance reasons it would be much better if certain
values or code could be cached, as is the case with the ASP global.asa
file. If the files and scope was limited to an application, or Web site,
then a certain level of security should be possible.
Well if you're looking fo
At 2:57 AM -0400 7/4/04, John W. Holmes wrote:
Michael Collins wrote:
I am relatively new at PHP and wondering why there is no mechanism
to create user-defined superglobals? For example in ASP.Net I can
setup a global.asa to define database connections or any named
value I want to be available a
About the only user-defined superglobals are constants. If you really
want to get the value of a global variable while inside of a function,
you could just use GLOBAL. Or if you REALLY wanted to, you could store
the variables in the $_SESSION superglobal array. But I'm curious, why
do you wa
30 matches
Mail list logo