$temp = "myvar";
$$temp = "My value";
echo $myvar;
output:
My value
- James
> -Original Message-
> From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> Sent: July 6, 2001 1:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Creating a Variable with the Name of a string
>
>
> I know this ha
That code will work for the Oracle 8.0 but for Oracle 8i you'll want to use
the OCI funcitons
http://www.php.net/manual/en/ref.oci8.php
Using OCI is a little easier to understand then the ORA function (IMO).
You'll need to compile PHP with the --with-oci8 switch, and you'll need the
Oracle clien
I'm in the same boat, I've tried eval() but it dosan't like mixing PHP and
HTML code...
I've tried the suggestions listed in the php.net manual too to no avail...
- James
> -Original Message-
> From: Lenar Lõhmus [mailto:[EMAIL PROTECTED]]
> Sent: June 20, 2001 3:01 PM
> To: [EMAIL PRO
http://www.phpbb.com
:)
- James
> -Original Message-
> From: Thomas Deliduka [mailto:[EMAIL PROTECTED]]
> Sent: May 22, 2001 12:10 PM
> To: PHP List
> Subject: [PHP] Discussion board
>
>
> Is there a good PHP alternative for a discussion board or something else
> that allows for moderat
I would suggest some sort of Templating solution. Take a look at Smarty,
PHPLib, or FastTemplates.
- James
> -Original Message-
> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: May 14, 2001 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] need better solution...
>
>
> In most
http://www.phpbb.com
:D
- James
> -Original Message-
> From: Matt Williams [mailto:[EMAIL PROTECTED]]
> Sent: May 10, 2001 3:14 AM
> To: Kian On; [EMAIL PROTECTED]
> Subject: RE: [PHP] bulletin board or forum
>
>
> phorum.org
>
> M@
>
>
> --
> PHP General Mailing List (http://www.
> Is there an equivalent to in
> PHP? And
> will it work in version 3.0.16. I've gone through the online manual but
> found nothing that would help in this situation.
include("filename.inc");
or
require("filename.inc");
http://www.php.net/include
http://www.php.net/require
Enjoy,
James
Or create a phpinfo file containing
And that will tell you the location of php.ini.
- James
> -Original Message-
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: March 28, 2001 3:13 PM
> To: Zhu George-CZZ010; [EMAIL PROTECTED]
> Subject: RE: [PHP] No php.ini?
>
>
> look
OK say you old table is this
create table old_table (
id int auto_increment,
name varchar(100),
address varchar(200),
comments text);
and you new table is:
create table new_table (
id int auto_increment,
name varchar(200),
address varchar(200));
To populate new_table from old_table you can give
files?
>
> - Richard
>
>
> ""Yoshi Melrose"" <[EMAIL PROTECTED]> wrote in message
> 032601c0b192$1eaed610$0214a8c0@enterprise">news:032601c0b192$1eaed610$0214a8c0@enterprise...
> > Ahh... that's right, my bad. =)
> >
> > -
Anyone who wants a threaded discussion board won't be satisfied with phpBB.
It dosan't contain a threaded view and probably never will :)
- James Atkinson
Lead Developer, phpBB
> You could also check out phpBB:
>
> http://www.phpbb.com
> > > > Just keep track o
> > > Hi,
> > Is there a way to do an array_pop with php3?
Here's some PHP 3 compatable code that works the same as array_pop:
function _array_pop(&$stack) {
$arrSize = count($stack);
$x = 1;
while(list($key, $val) = each($stack)) {
if($x < count($stack)) {
$tmpArr[] = $
> Hello!!!
>
> Please, assume I have the following mysql query:
>
> function get_products() {
>
> $result = mysql_query("select * from products");
> while ($row = mysql_fetch_array($result)) {
> $prod_id = $row["prod_id"];
> $prod_name = $row["prod_name
Err...where the heck do I download this from?
The download page on that site just gives me a Javascript popup about
version 2.0 being out on March 15th. It looks like an interesting editor but
I'd like to try it out...
- James
> -Original Message-
> From: Dan Cleveland [mailto:[EMAIL PR
function sql_numrows($query_id = 0) {
if(!$query_id)
$query_id = $this->query_result;
if($query_id) {
unset($this->rowset);
$result = OCIFetchStatement($query_id, $this->rowset);
return $result;
}
else {
return false;
}
}
I'm
> Hello,
>
> I have the array $array[x][y];
>
> if I want to know the x I use count($array);
>
> Now, How can I count the y??
for($x = 0; $x <= count($array); $x++) {
echo "Number of elements at $x: " . count($array[$x]) . "";
}
Thats assumeing that y is an array...
- James
--
PHP Gener
I've run into this befor run base64_encode() on the string befor you pass it
around then base64_decode() after you get it where its going.
- James
> Hello,
>
> What is the best way to encrypt/decrypt strings when passing between php
> pages?
>
> I am using md5 and currently get strings that prod
The only way to keep a password secure between the client and server is to
use a Secure Socket Layer (SSL) to create an encrypted channel of
communication between the client and server. You can see this in practice
over at Sourceforge.net. They use PHP over an SSL connection to handle user
logins.
you live in the Vancouver area, or want to move here, check the site in my
sig or email me.)
Thanks for any input you can give,
-------
James Atkinson 100world.com Inc.
Senior Developer 512 - 1529
Did you seed your random number generator?
ie: srand ((double) microtime() * 100);
- James
> -Original Message-
> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: January 10, 2000 2:24 PM
> To: PHP User Group
> Subject: [PHP] rand is not random for me :(
>
>
> When I use ra
20 matches
Mail list logo