Re: [PHP-WIN] Object declaration

2004-10-08 Thread Cory D. Wiles
The reason why that you get the error is because you didn't call the class. How I do my sql/class manipulation would be something like this: class User { var $dbRecords = array();//array that will hold db records function User() { ...constructor }// }//end class $sql = "SELECT * FROM user WHERE u

Re: [PHP-WIN] Mail functions?

2004-08-12 Thread Cory D. Wiles
What happens when you try to use the mail function. Did you put your correct smpt-server in the php.ini? Anne Shroeder wrote: Alas, I cannot use the mail() function on Windows. Someone told me about this: http://www.phpguru.org/static/mime.mail.html but attempts to get it to work have been futi

[PHP-WIN] mail error

2004-06-23 Thread Cory D. Wiles
I just upgraded to PHP5RC3 and for some reason the mail() function is throwing an error. *Warning*: mail() [function.mail ]: "sendmail_from" not set in php.ini or custom "From:" header missing in *C:\Program Files\Apache Group\Apache2\htdoc

Re: [PHP-WIN] i need help

2004-05-18 Thread Cory D. Wiles
Assuming you are doing just one string at a time: $regex = "/(\[i:)(\w+)(\])/i"; preg_match($regex, $str, $matches); print $str;//original string print substr($matches[2], 1, 3);//trimmed string ?> Gryffyn, Trevor wrote: If the format is consistantly the same, try this: $somedata = "[i:aslkdfj]";

Re: [PHP-WIN] How do you do....

2004-05-18 Thread Cory D. Wiles
There are a few ways of doing it. The way that I always append it is by doing the following: Link to page Daniel Anderson wrote: Hi, 1: can anyone tell me how to do a session ID in the URL? so you could have something

Re: [PHP-WIN] Session troubles

2004-05-17 Thread Cory D. Wiles
Though i can not verify this at the moment. I had a similar problem, but not with sessions and the notice steams from not having a var declared. To get rid of the error you have to turn e_notice off. Something like this: error_reporting = E_ALL & ~E_NOTICE Here is a good explanation of what was