Re: [PHP] PHP vs. ColdFusion

2005-06-26 Thread Jonathan Villa
ge and SugarCRM also have paid support options as well. -Jonathan Villa On Mon, 2005-06-27 at 00:14 +0200, Jochem Maas wrote: > Rick Emery wrote: > > My employer has (finally) decided to take full advantage of our > > intranet, and wants to move from client-server applications

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
ah yes thanks both worked... I had written a function to this... I knew there had to be a much easier way!!! > > On Sunday, November 14, 2004, at 08:36PM, Jonathan Villa <[EMAIL PROTECTED]> > wrote: > >>> >>> On Sunday, November 14, 2004, at 08:24PM,

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
> > On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa <[EMAIL PROTECTED]> > wrote: >> >>$modules = simplexml_load_file(MODULES); >> > > Are you certain that MODULES has been defined()? And what do you get when > you print_r($modules)? > > -rya

Re: [PHP] unable to use vars in foreach [updated question]

2004-11-14 Thread Jonathan Villa
So, searching php.net (I swear I did before...) I found this at http://us2.php.net/language.types.array " You cannot use arrays or objects as keys. Doing so will result in a warning: Illegal offset type." Neverthought that my var was an object, just thought maybe a string. My new question is, h

[PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
I'm using PHP 5.0.2 Here is a snippet of my code $post=$_POST;//this is actually happening in an include somewhere else and autoprepended. Works just fine. $modules = simplexml_load_file(MODULES); foreach ($modules->module as $mod) { echo $mod->postName.''; if (isset($post[$mod->postNa

RE: [PHP] new connection with pg_pconnect

2004-10-19 Thread Jonathan Villa
> [snip] > I then have the page main.php which has > > global $sys_dbhost,$sys_dbuser,$sys_dbpasswd; > $dbconn = pg_connect("user=$sys_dbuser dbname=bisprojects > host=$sys_dbhost password=$sys_dbpasswd"); echo '->'.$dbconn.'<-'; ?> > > the scripts just dies whenever I include the pg_connect funct

RE: [PHP] new connection with pg_pconnect

2004-10-14 Thread Jonathan Villa
> [snip] > I'm trying to add some new features to an existing project. The project > uses pg_pconnect and sets it into a global var... > > What I'm trying to do is to create a new database class which connects > to a different database on the same server. By the time my code gets > reached, the p

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
*typo > Jonathan Villa wrote: >> $referrer = $_SERVER['REFFERER']; > > Will return nothing. > > $_SERVER['HTTP_REFERER'] > > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] > > -- > PH

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
Can't be put any more plainly than that, thanks... > Ben wrote: >> I am trying to set up a script that will do different things based on >> the >> reffering page, without having to include the information in the URL. >> Does >> PHP have a built in variable or function that would tell the rest o

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
>> I am trying to set up a script that will do different things based on >> the >> reffering page, without having to include the information in the URL. >> Does >> PHP have a built in variable or function that would tell the rest of the >> script what page the user came from? Any help is much appr

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
$referrer = $_SERVER['REFFERER']; something like that... then you can do something like if ($referrer == 'whatever') $sdaf = "whatever"; I usually do something like if (strpos($referrer,'pagename.php')) //execute code > I am trying to set up a script that will do different things based

[PHP] new connection with pg_pconnect

2004-10-14 Thread Jonathan Villa
I'm trying to add some new features to an existing project. The project uses pg_pconnect and sets it into a global var... What I'm trying to do is to create a new database class which connects to a different database on the same server. By the time my code gets reached, the pg_pconnect global va

[PHP] exec works with some, but not all commands

2004-07-24 Thread Jonathan Villa
why would exec("touch /var/www/testfile.txt") work but not exec("/usr/bin/gpg --homedir /home/testuser/.gnupg blah blah blah") the dir used in homedir has mode 777 just for testing this is the actual command I'm trying to run... exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --outpu

Re: [PHP] Re: Array Losing value

2004-07-20 Thread Jonathan Villa
nevermind, I found a work around for it... I still would like to know why the value is lost. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Array Losing value

2004-07-20 Thread Jonathan Villa
>> >> if I die(sizeof($objDBI->Fetch_Array($objDBI->getResultID( within >> the >> DBI method, it return the correct value, however if I do >> >> $retval = $objDBI->Fetch_Array($objDBI->getResultID()); >> die(sizeof($retVal)); > > $retval != $retVal > > -- > PHP General Mailing List (http://www.

[PHP] Array Losing value

2004-07-19 Thread Jonathan Villa
I have a class called DBI which handles all of my database calls. One method called Fetch_Array simply has return mysql_fetch_assoc($resultID) It's losing it's value when I try to pass the val to another var example class BaseItem { function getBaseItems() { return $objDBI

[PHP] Yahoo and PHP

2004-05-14 Thread Jonathan Villa
I was reading the following article http://www.linux.com/article.pl?sid=04/05/12/1327217 and it says "Yahoo, of course, makes heavy use of MySQL, and not only do Yahoo developers code in PHP, they even hired PHP's creator, Rasmus Lerdorf. " I was wondering if anyone had some information to fur

Re: [PHP] Mail sending from nobody to nobody...

2004-04-05 Thread Jonathan Villa
g list."; if(mail("[EMAIL PROTECTED]","Added To Mailing List",stripslashes($message),$from) == false) die('failed'); On Mon, 2004-04-05 at 02:13, hitek wrote: > Details? > How are you calling the mail function? > > At 11:59 PM 4/4/2004, Jonathan Villa wr

[PHP] Mail sending from nobody to nobody...

2004-04-05 Thread Jonathan Villa
For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] Retain form values...

2004-03-18 Thread Jonathan Villa
I want to be able to submit the page to another page vs PHP_SELF. On that page I want to be able to validate the form, and if it fails, return the user to the previous page. Now that's easy, but the catch is that I want to retain/repopulate their field values. I was thinking of forcing a histo

Re: [PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
I ended up using a hidden field to pass the value of the form. Thanks for the replies. On Thu, 2004-03-18 at 12:21, Robert Cummings wrote: > On Thu, 2004-03-18 at 12:24, Jonathan Villa wrote: > > Is there a way to get the name of the form once it's submitted > > > &g

[PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
Is there a way to get the name of the form once it's submitted like $_POST['form1'] or something. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Dumb

2004-03-11 Thread Jonathan Villa
Go to rpmfind.net and see if you find one... Or see if you uninstall all the mysql RPMs and use the ones from mysql.com/downloads. They also have an RPM client. -Original Message- From: PHP [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:32 PM To: php Subject: [PHP] Dumb

[PHP] Passing array from class to class produces more than one result...

2004-03-10 Thread Jonathan Villa
I'm writing a DBI class with the following function function Select($sql) { $this->setResultID(@mysql_query($sql,$this->getDBConn())); if ($this->getResultID() == false) Error::fatalError(__FILE__.' ('.__LINE__.') : Unable to run query : '.mysql_error().'('.mysql_er

[PHP] Segmentation Fault in Apache b/cuz of PHP

2004-02-04 Thread Jonathan Villa
Looks like PHP is causing a segmentation fault in Apache. Why do I think this? Well because it only happens with the PHP pages and my httpd error logs only show entries when PHP page are accessed.. I have RPM installations of Apache (1.3.27) and PHP (4.1.2) on a RedHat 7.1 server. Any ideas on

RE: [PHP] PHP on a Domino Web Server

2003-12-05 Thread Jonathan Villa
wrote: > Jonathan Villa wrote: > > Where can I find information on installing/configuring PHP for Domino? > > http://www.alise.lv/ALISE/technolog.nsf/0/b2dc72112f3df625c2256dad002e40 > c5?OpenDocument > > It's called Google man. Use it and love it. -- PHP General Mai

[PHP] PHP on a Domino Web Server

2003-12-05 Thread Jonathan Villa
Where can I find information on installing/configuring PHP for Domino? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what ever happened to http referrer

2003-11-18 Thread Jonathan Villa
nevermind... doh! On Tue, 2003-11-18 at 14:44, Jonathan Villa wrote: > I'm running php 4.3.4 and do not see any mention of HTTP_REFERRER. I > tried $_SERVER['HTTP_REFERRER'] which is what I thought it was but to no > avail. > > Any comments on the location/st

[PHP] what ever happened to http referrer

2003-11-18 Thread Jonathan Villa
I'm running php 4.3.4 and do not see any mention of HTTP_REFERRER. I tried $_SERVER['HTTP_REFERRER'] which is what I thought it was but to no avail. Any comments on the location/status of this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto_prepend/append in htaccess....

2003-11-18 Thread Jonathan Villa
easy enough, thanks! On Mon, 2003-11-17 at 19:47, Jason Wong wrote: > On Tuesday 18 November 2003 06:46, Jonathan Villa wrote: > > Thanks for the info, but I was hoping on getting some information as to > > why the code configuration I posted is not working. > > Becaus

Re: [PHP] auto_prepend/append in htaccess....

2003-11-17 Thread Jonathan Villa
Thanks for the info, but I was hoping on getting some information as to why the code configuration I posted is not working. On Fri, 2003-11-14 at 03:06, Eugene Lee wrote: > On Thu, Nov 13, 2003 at 11:32:34AM -0600, Jonathan Villa wrote: > : > : I want to prepend a configuration file

Re: [PHP] auto_prepend/append in htaccess....

2003-11-13 Thread Jonathan Villa
Anyone have any ideas on this? On Thu, 2003-11-13 at 11:32, Jonathan Villa wrote: > I want to prepend a configuration file which is located outside of my > document root into my scripts. I can use auto_prepend_file, but I'm not > sure how do it with an htaccess file or a virtual

[PHP] auto_prepend/append in htaccess....

2003-11-13 Thread Jonathan Villa
I want to prepend a configuration file which is located outside of my document root into my scripts. I can use auto_prepend_file, but I'm not sure how do it with an htaccess file or a virtual host entry.. I would prefer VHost. Anyway, this is what I am trying/assuming... ServerAdmin [EM

Re: [PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
Thanks, I'll look into that. On Thu, 2003-11-06 at 14:31, CPT John W. Holmes wrote: > From: "Jonathan Villa" <[EMAIL PROTECTED]> > > > I would like submit a form to a page, do some processing on that page, > > then if need be, return to the referrer but

Re: [PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
A7%3A%22asdfsad%22%3Bs%3A5%3A%22login%22%3Bs%3A5%3A%22login%22%3B%7D after it's been urlencoded...and it still displays the values of the fields... On Thu, 2003-11-06 at 14:17, Chris Shiflett wrote: > --- Jonathan Villa <[EMAIL PROTECTED]> wrote: > > I would like submit

[PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
I would like submit a form to a page, do some processing on that page, then if need be, return to the referrer but also send the submitted data along with it... and data is coming from a POST form, not a GET. I tried header('location:'.$referrer.'?data'.$_POST); or something to that effect...

[PHP] IRC

2003-10-31 Thread Jonathan Villa
Are there any PHP IRC that anyone is aware of? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSIONMANAGEMENT -- gute php mailing list / gute leute

2003-10-29 Thread Jonathan Villa
Wenn Sie nicht Plätzchen benutzen möchten, können Sie es in die Frage Zeichenkette mit einschließen... Das PHP Handbuch gibt Beispiele von diesem... zum Beispiel, PHPSESSID/SID etwas wie das. Ideal was Sie tun möchten, soll diese alle möglichen Formdaten oder -verbindungen in Ihrer Anwendung vorans

Re: [PHP] install questions

2003-10-24 Thread Jonathan Villa
What is your platform? Not that it mattes a whole lot... Make sure the httpd.conf file has #LoadModule php4_modulemodules/libphp4.so LoadModule php5_modulemodules/libphp5.so (whichever is the one you need, probably 4) AddType application/x-httpd-source .phps AddType application

RE: [PHP] prepend file to all scripts...

2003-10-24 Thread Jonathan Villa
ection. > > You might also want to use auto_append_file > > Wouter > > -Original Message- > From: Jonathan Villa [mailto:[EMAIL PROTECTED] > Sent: Friday 24 October 2003 22:00 > To: [EMAIL PROTECTED] > Subject: [PHP] prepend file to all scripts... > >

[PHP] prepend file to all scripts...

2003-10-24 Thread Jonathan Villa
I thought I read that this was possible once, but I can't find anything to substantiate/refute it... Is it possible to prepend a configuration file to my pages? For example, I have a app.config.inc file which contains an application specific include path as well as includes the classes my appli

Re: [PHP] New line characters and carriage returns

2003-10-24 Thread Jonathan Villa
ok, I see, I have to use double quotes around it... why is that? On Fri, 2003-10-24 at 11:57, Jonathan Villa wrote: > Ok, don't know what I am doing wrong here...but for some reason I cannot > get new line or carriage return characters to work correctly... > > For example,

[PHP] New line characters and carriage returns

2003-10-24 Thread Jonathan Villa
Ok, don't know what I am doing wrong here...but for some reason I cannot get new line or carriage return characters to work correctly... For example, When I send some emails, I try $msg .= "From: [EMAIL PROTECTED] Content-Type: text/plain\r\n" And it doesn't work correctly... the Conte

RE: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Jonathan Villa
Cool, this means that don't have to keep a directory of every post in this mailing list or the php-db mailing list in order to search through. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:00 PM To: Marek Kilimajer; Marco Tabini Cc: PH

[PHP] PHP 5 in a live application

2003-10-15 Thread Jonathan Villa
All, I understand that PHP 5 in only in beta, and that it would be bad practice (please correct me if I'm wrong) to implement a beta release into production (although phpmvc does it), has anyone attempted this? I read the post about pidget and thought that perhaps I could begin to develop using

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Jonathan Villa
What's the matter? No one likes Zend Studio? On Mon, 2003-10-13 at 12:00, Chris Boget wrote: > > I currently use EditPlus - and like it -- is there anything else out there > > that is better and still reasonably priced. > > I am not sure what you would consider reasonably priced, but the best >

Re: [PHP] Help understanding code...

2003-09-25 Thread Jonathan Villa
! means not, for example $yes != $no Regarding the (xxx) ? x : x; Your assumption is correct I use it alot, but sometimes it's still better to use if/else statements On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote: > I've just picked up a more advanced book on PHP and it has a lot of > example co

[PHP] PHPMVC

2003-09-08 Thread Jonathan Villa
has anyone used PHPMVC (from phpmvc.net) and if so, what is your experience with it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Jonathan Villa
Great, thanks!! On Thu, 2003-08-21 at 22:20, Tom Rogers wrote: > Hi, > > Friday, August 22, 2003, 12:55:37 PM, you wrote: > JV> I want to create a function with an optional argument/parameter but have > JV> never read a concrete answer on how to do it. > > JV> This is what I am assuming > > JV>

[PHP] How to make an argument optional...confirmation...

2003-08-21 Thread Jonathan Villa
I want to create a function with an optional argument/parameter but have never read a concrete answer on how to do it. This is what I am assuming function test(arg1,arg2,arg3 = null) { arg3 will be optional } is this correct? -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Re: error when using $this

2003-08-21 Thread Jonathan Villa
ass > then there's no $this... however, if you are in a class, you just found a > bug or a typo in your script... > > -- > // DvDmanDT > MSN: [EMAIL PROTECTED] > Mail: [EMAIL PROTECTED] > "Jonathan Villa" <[EMAIL PROTECTED]> skrev i meddelandet >

[PHP] error when using $this

2003-08-21 Thread Jonathan Villa
First of all, let me say that I am using PHP 5, but not including any new php5 features, just installed it. Anyway, this is the offending code.. $retVal = true; $this->setDBConn(mysql_connect('localhost',$this->_dbuser,$this->_dbpwd)); if ($this->getDBConn() == false) $retVal = false;

[PHP] Question on syntax...

2003-08-20 Thread Jonathan Villa
I've seen this a few times in some code examples... XXX::XXX What do the 2 colons signify? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Jonathan Villa
> tarball, and compile it yourself > > > > On Monday 28 July 2003 07:13 pm, Jonathan Villa wrote: > > My current setup is httpd 2.0.47 on a Red Hat 8. > > > > When I try to configure php I do > > > > ./configure --with-apxs2=/etc/httpd/bin/apxs

[PHP] Unable to configure PHP5 on Linux

2003-07-28 Thread Jonathan Villa
My current setup is httpd 2.0.47 on a Red Hat 8. When I try to configure php I do ./configure --with-apxs2=/etc/httpd/bin/apxs --disable-cgi it runs for a while until I get configure: error: libxml2 version 2.5.1 or greater required. but yet, when I do an rpm search for libxml2 rpm -q libxml2

[PHP] Has anyone successfully installed PHP 5?

2003-07-23 Thread Jonathan Villa
Has anyone installed PHP 5 on Windows or Linux using Apache 2?

RE: [PHP] PHP5?

2003-07-23 Thread Jonathan Villa
] PHP5? the latest stable version of PHP works just fine with Apache 2.0.47. tyler - Original Message - From: "Jonathan Villa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 11:47 AM Subject: [PHP] PHP5? > Has anyone installed PHP

[PHP] PHP5?

2003-07-23 Thread Jonathan Villa
Has anyone installed PHP 5 on Apache 2.0.47? What version of Apache 2 works best with PHP 5? On both Windows and Linux?

RE: [PHP] a good PHP free forum?

2003-07-21 Thread Jonathan Villa
www.phpbb.com -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] a good PHP free forum? Hello friends. Can someone suggest a very good and easy to customise forum? Thanks Denis -- PHP General

RE: [PHP] How unsafe is register_globals?

2003-07-16 Thread Jonathan Villa
This is only my stubborn opinion... I would turn it on for now with a warning that it will be turned off soon... I work for a company which is strictly Microsoft/Domino Technology and until I arrived, many have not heard of PHP and for the few that did, well let's just say that sloppy, unstable,

Re: [PHP] Couple of questions form a PHP newbie

2003-07-11 Thread Jonathan Villa
1. Text file or DB My answer -> Learn how to use a database, it will make things much easier 2. Checkbox Try this: then after submission, you could do the dump, or foreach ($_POST["sports"] as $val) echo $val; On Fri, 2003-07-11 at 20:10, Jason Giangrande wrote: > First question

[PHP] What's this talk about ASP to PHP?

2003-07-10 Thread Jonathan Villa
I've read somewhere about some asptophp convertor/tool/methodology...?? Don't know what it is, that's why I'm asking. I've been asked to help out on a project which might include some already developed basic ASP code. I would rather do it in PHP. -- PHP General Mailing List (http://www.php.ne

RE: [PHP] Email troubles

2003-07-01 Thread Jonathan Villa
Looks like your SMTP server needs for your to authenticate first. -->Jonathan I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me...

[PHP] define("DOC_HOME_PATH", "what goes here")

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this Click Here **do I need to echo? **not everything goes to "stuff" Right now I have define ("DOC_HOME_PATH", "d:/is/projects/killerspin/web/store/"); define ("IMG_HOME_PATH", "d:/is/projects/kil

[PHP] define("DOC_HOME_PATH", "what goes here")

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this Click Here **do I need to echo? **not everything goes to "stuff" Right now I have define ("DOC_HOME_PATH", "d:/is/projects/killerspin/web/store/"); define ("IMG_HOME_PATH", "d:/is/projects/kil

RE: [PHP] get insert_id in odbc

2003-02-19 Thread Jonathan Villa
45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] get insert_id in odbc At 21:28 19.02.2003, Jonathan Villa spoke out and said: [snip] >Using MySQL, one can use mysql_insert_id to get the value of an >auto_increment column. > >How w

[PHP] get insert_id in odbc

2003-02-19 Thread Jonathan Villa
Using MySQL, one can use mysql_insert_id to get the value of an auto_increment column. How would I do this using ODBC and Access? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP form help

2003-02-19 Thread Jonathan Villa
How is the information being kept? Sessions? You'll either want to store them in a session or create hidden fields on the confirmation page, then when they click on confirm, you'll have access to the fields on the new page, (the page where your processing script is) ---> Jonathan -O

[PHP] define("DOC_HOME_PATH", "what goes here")

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this Click Here **do I need to echo? **not everything goes to "stuff" Right now I have define ("DOC_HOME_PATH", "d:/is/projects/killerspin/web/store/"); define ("IMG_HOME_PATH", "d:/is/projects/kil