RE: [PHP] Creating a Variable with the Name of a string

2001-07-06 Thread James Atkinson
$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

RE: [PHP] Oracle and PHP

2001-06-26 Thread James Atkinson
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

RE: [PHP] Parse PHP inside a variable

2001-06-21 Thread James Atkinson
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

RE: [PHP] Discussion board

2001-05-22 Thread James Atkinson
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

RE: [PHP] need better solution...

2001-05-14 Thread James Atkinson
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

RE: [PHP] bulletin board or forum

2001-05-10 Thread James Atkinson
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.

RE: [PHP] include files with PHP 3.0.16

2001-04-16 Thread James Atkinson
> 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

RE: [PHP] No php.ini?

2001-03-28 Thread James Atkinson
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

RE: [PHP] Move data from one MySql table to another?

2001-03-22 Thread James Atkinson
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

RE: [PHP] Create a Bulletin Board

2001-03-20 Thread James Atkinson
files? > > - Richard > > > ""Yoshi Melrose"" <[EMAIL PROTECTED]> wrote in message > 032601c0b192$1eaed610$0214a8c0@enterprise">news:032601c0b192$1eaed610$0214a8c0@enterprise... > > Ahh... that's right, my bad. =) > > > > -

RE: [PHP] Create a Bulletin Board

2001-03-20 Thread James Atkinson
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

RE: [PHP] Array help

2001-03-14 Thread James Atkinson
> > > 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[] = $

RE: [PHP] array

2001-03-12 Thread James Atkinson
> 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

RE: [PHP] PHP Studio Website

2001-03-09 Thread James Atkinson
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

[PHP] Oracle + Classes strangeness...

2001-02-15 Thread James Atkinson
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

RE: [PHP] Count columns in array

2001-02-15 Thread James Atkinson
> 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

RE: [PHP] MD5 / crypt

2001-02-06 Thread James Atkinson
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

RE: [PHP] password protection

2001-01-25 Thread James Atkinson
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.

[PHP] Migrating from PHP3 to PHP4 issues

2001-01-19 Thread James Atkinson
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

RE: [PHP] rand is not random for me :(

2001-01-10 Thread James Atkinson
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