Re: [PHP] need session_start() to recall session data.

2005-12-03 Thread Matt Monaco
PROTECTED] > On Sat, Dec 03, 2005 at 01:28:21PM -0500, Matt Monaco wrote: >> I have the following two methods as part of a class I'm using to >> transport >> data between pages. >> >> static function pack($object) >> { >> if (sessio

[PHP] need session_start() to recall session data.

2005-12-03 Thread Matt Monaco
I have the following two methods as part of a class I'm using to transport data between pages. static function pack($object) { if (session_id() == "") { session_start(); } $class = get_class($object); $_SESSION["cmsSessionArray"][$class] = seri

Re: [PHP] Determine object type

2005-12-02 Thread Matt Monaco
Hah, I was looking in the object aggregation functions, that really deserved a RTFM "Ray Hauge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That would be get_class( [obj] ); > > http://us3.php.net/manual/en/function.get-class.php > > Matt Monaco

[PHP] Determine object type

2005-12-02 Thread Matt Monaco
Is there a function or method to determine the class an object was defined from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit Form Values To Parent

2005-12-02 Thread Matt Monaco
is valid just as with any other link. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I get the form values submitted from an iframe where the target is > the parent window? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] weird error, cookies??

2005-12-01 Thread Matt Monaco
Check your http access file to verify what david and jochem have said, you should see lines upon lines of access for the pages in question. "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Angelo Zanetti wrote: >> Hi guys. >> >> Been working on my site and then been tr

[PHP] Re: $_POST won't work for me

2005-12-01 Thread Matt Monaco
As I learned recently, register_globals should always be off, you do not need it to enable GET and POST variables. I believe enabling it will do something like set $_POST["name"] to $name automatically (of course there's always the 90% chance that I'm absolutely wrong). You might want to see i

[PHP] Re: checkboxes

2005-11-29 Thread Matt Monaco
Well if your keys are a straight sequence of numbers instead of a foreach you can do a for loop and for those whose value is not one, set to zero. Matt "blackwater dev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a form where I am dynamically building a bunch of checkbox

Re: [PHP] help avoid multiple login

2005-11-28 Thread Matt Monaco
nclude the file using require_once("Login.class.php"); Matt ""mail.pmpa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >De: Matt Monaco [mailto:[EMAIL PROTECTED] >Create an object with the functionality of your choosing, in the destructor

[PHP] Re: help avoid multiple login

2005-11-28 Thread Matt Monaco
Create an object with the functionality of your choosing, in the destructor perform your cleanup operations. ""mail.pmpa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings > > I'm having some trouble on a members online script. > I use a php script to track member login t

[PHP] Re: A basic question

2005-11-27 Thread Matt Monaco
In your server configuration file (httpd.conf for apache) you specify which extensions are parsed by the php module. It is perfectly acceptable for you to specify .html in addition to .php as a parsed extension. "Oil Pine" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I

[PHP] Re: When to make a class

2005-11-26 Thread Matt Monaco
There's really no reason making classes for those (unless you'd like to write an entire HTML class and its children - I'd be happy to use it!). Matt "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My background is in Object Oriented Pascal (Delphi), however I am having

[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter. Then use the pearl regular expressions functions to replace with the elements you'd like. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create my own CMS. To being with I wa

[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter. Then use the pearl regular expressions functions to replace with the elements you'd like. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create my own CMS. To being with I wa

Re: [PHP] mysqli unclonable object

2005-11-25 Thread Matt Monaco
In outlook express by default the headers are displayed as some icons and then subject, from, sent, size. For some people From is displayed in double quotes, and others not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
turned on. Matt "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Monaco wrote: >> I apologize, but I've never been able to access $_POST and $_GET in any >> context whatsoever without first turning on the register globals.

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
I apologize, but I've never been able to access $_POST and $_GET in any context whatsoever without first turning on the register globals. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Monaco wrote: >> Somewhat, but its what you n

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
erties into a MySQL or other database? Then on a page that you need the properties you pull them from the table? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > I mean the object itself, not the class (the file containing the class > definition is included on all necessary pag

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
hecked for things like quotes and other characters that will alter your SQL statement before you actually INSERT that value into your table. "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Doesn't that cause security problems? On 11/25/05

Re: [PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
"Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Do you mean passing the class statement or the vars? couldn't you format the vars into mysql and pull them? On 11/25/05, Matt Monaco <[EMAIL PROTECTED]> wrote: > > What is the best way

[PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Matt Monaco
In php.ini (most likely located in your windows directory) look for the globals section and turn register_globals = on Matt "Unknown Unknown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and $_POST arrays do not

[PHP] Re: swaping numerical index for keys

2005-11-25 Thread Matt Monaco
function addAssoc($ary_stat) { $ls_statfields = array(.); while ($assoc = each($ls_statfields)) { $ary_stat[$assoc['key']] = $ary_stat[$assoc['value']]; } return $ary_stat; } This should do what you want. I'm not sure if you want to remove the numeric keys entirely,

[PHP] Re: array woes

2005-11-25 Thread Matt Monaco
Within grabQuotes(); if you do a var_dump($arg); (where $arg is $res[id]) is your vehicle name displayed? If it is, and you're using it correctly, make sure you're returning the value you'd like correctly. It might help to post your grabQuotes function as well as the code that displays $cars[]

[PHP] Passing objects between pages

2005-11-25 Thread Matt Monaco
What is the best way to pass an object between pages? Currently I am first serializing, then doing a base64_encode, this doesn't seem entirely efficient. (Especially the encode). I am however using the encode because I have the serialized object as the value of a hidden form element. I can only

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, Nov 23, 2005 at 06:48:50PM -0500, Matt Monaco wrote: >> Thanks for your attention Curt, but unfortunatly that is not the issue. >> Compatibility mode is not on. > > What does this say just

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
. Thanks, Matt "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, Nov 23, 2005 at 01:13:22AM -0500, Matt Monaco wrote: >> On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an >> instance of a mys

[PHP] mysqli unclonable object

2005-11-22 Thread Matt Monaco
On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an instance of a mysqli extension. class Data extends mysqli { function __construct($host, $user, $password, $db = null) { @parent::__construct($host, $user, $password, $db) or printf("There was an error

[PHP] Unclonable objects

2005-11-22 Thread Matt Monaco
What situation would make a mysqli object unclonable? This is a problem that occurs only on a linux machine with mysql4. I am simply trying to declare a link resource and I get an error "Trying to clone unclonable object of type mysqli" If I declare the link using a reference however, the co