[PHP] PHP error tracking on new server

2005-08-07 Thread Terry Romine
My hosting service recently switched to a newer server and in transporting the websites (many) over, they set up php different (vers 4.3.10). I know it's not nice to show errors on a published website, but I don't have a testing server, and I need to debug scripts once in a while. The

RE: [PHP] 404 Not Found - refresh to directory

2005-07-15 Thread Terry Romine
An interesting idea. I'll work on this next week and see how it goes. Can I ask: why two versions of $uriparams? Terry -Original Message- From: Andras Kende [EMAIL PROTECTED] Sent: Jul 14, 2005 9:53 PM To: 'Terry Romine' [EMAIL PROTECTED], 'php' php-general@lists.php.net

[PHP] 404 Not Found - refresh to directory

2005-07-14 Thread Terry Romine
I have a website that has several hundred agents in a mysql database. The client wants to be able to enter the domain.com/agentname and be redirected to a standard page where we show the agent information. An example would be an agent named John Smith whose agentname would be jsmith. So the

Re: [PHP] Re: iPowerWeb ISP Are they good?

2005-07-08 Thread Terry Romine
I had a client hosted on Powweb and I dropped that service pretty fast. Now I host primarily on eHostPros.com (past 2-3 years). I've had a few problems, but they work pretty close with the clients to handle issues. Maybe a 90-95% satisfaction rate for me. The nice thing is their billing system;

Re: [PHP] Register globals and ini_set

2005-07-08 Thread Terry Romine
I'm having a serious pain with globals.. maybe someone can help. My major client moved her service from one server to another, and with it, PHP went from 4.1 to 4.2+. Register Globals was turned off, and when everything failed to work, tech support turned them back on via .htaccess. I'm

Re: [PHP] Register globals and ini_set

2005-07-08 Thread Terry Romine
I was setting the $_SESSION by: $_SESSION['var_name'] = this; or $my_local = this; $_SESSION['var_name'] = $my_local; I had stopped using session_register() some time back. Sporatically meaning that some of my variables are working fine, while others seem to become empty when referenced by a

[PHP] reg split address

2004-02-24 Thread Terry Romine
I have a submit field that may have an address formatted like: 1234 main st or may just be the street name: main I need to split the number off if present so I can test against database fields. I need a eregi, split or preg_split that could do that. I've tried a few and either

[PHP] set global working??

2004-02-21 Thread Terry Romine
Not quite a mystery, but I wondered if anyone could throw a couple of suggestions my way. My client's websites were moved last year from an old php server to a newer one. At that time, I had to upgrade all her scripts because set_globals were off on the new server, and so I went to using

[PHP] Assist with session persistance

2003-12-23 Thread Terry Romine
I have a site that is using $_SESSION['variablename'] for many variables that are loaded when the user first enters the site (index.php), and then referenced on each page (display.php): ex: index.php session_start(); $agencyID=9; $agencyName=fremont;

[PHP] Re: [PHP-DB] Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Terry Romine
On Thursday, March 29, 2001, at 08:32 AM, Nick Davies wrote: Doesn't the command return 1 or 0 in success or failure? You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } What I understand is that the return from the query only tells you

Re: [PHP] passing variables

2001-03-03 Thread Terry Romine
I do this kind of thing all the time. Consider using hidden for the various values you are passing, and name the buttons "doAction" and set the values to "Add", "Delete", "View" ... Then the php file can do: switch($doAction) { case "Add": // your code break; case