[PHP] Re: Questions about php.ini

2001-11-02 Thread Jason Wood

I host with iServer (now ViaVerio) and we dont have a php.ini file (that we
can get to, anyways) either.   I run phpinfo() and it says that the ini file
is in /usr/local/lib but nuthin's there.

What exactly do you want to use different ini files for anyways?


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com


"Jennyw" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've signed up with a dedicated Web host that has PHP installed. The weird
> thing is that there is no php.ini anywhere. Is the file optional?
Everything
> seems to be behaving okay.
>
> I have several Web sites that I'm setting up. Is it possible to use
> different php.ini files for each Web site? I'm using apache with mod-php.
I
> see that PHP will search for php.ini in the working directory first. Does
> this mean that the way to accomplish what I want is to put a php.ini file
in
> each directory that has .php files? It would be better if there was a way
to
> have a php.ini file affect all files in a site, instead of putting php.ini
> files in all subdirectories of the site where there are .php files.
>
> Thanks!
>
> Jen
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Jason Wood

Check out UltraEdit for Windows it's great.  Text highlighting for
around 10 programming languages, auto-tabbing for brackets, all kinda
things.  www.ultraedit.com  it's even got built in FTP functions so you can
open a file from a server, and when you save it automatically uploads.
great proggie :)


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com


"Td - Sales International Holland B.V." <[EMAIL PROTECTED]> wrote in message
01110122020108.00569@linux-testbank">news:01110122020108.00569@linux-testbank...
> Hey there,
>
> I looked on the site for this but couldn't find anything about it. I'd
like a
> list of your favorite text editors (preferable for Linux/XFree) with
> highlighting. I'm using beaver now, I tried cooledit but it's not me...
too
> much functions and looks like it came from an old 386 :-). I have kde
2.1.2
> which has kwrite, but it's kwrite does not yet support PHP, kde 2.2.1 does
> but i don't wanna download the entire kde package. Besides i think it's
still
> in development I tried in on my laptop at home but it just makes things
bold
> instead of all kinds of different colors. also beaver colors for in plain
> html and has some problems with correctly indentifying /* */ comments if
you
> use more of em. i'm also interested in windows though and i think more
people
> are interested so maybe somebody of the site might also want to keep track
of
> the list so it can be put online
>
> regards



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-26 Thread Jason Wood

I had the same type of problem. ( i think)

I had one main page (say index.php) that had a bare bones html page.  No
functions or anything.
Then i had separate pages that would be included only if i was using them
(like, say, a category.php for displaying categories, then products.php for
showing products.)

I had a function called printlist();  that would create a drop down menu
with categories/subcategories;  this was in both category.php and
products.php.  Niether of those files were included at the same time though,
and it'd give me the redeclare error... what i did was rename the function
in each file (like for category.php, rename it to printlist1(); and then in
products.php rename it to printlist2();... this is a quick fix).  Let me
know if this was any help :)


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com



"Patrick Dunford" <[EMAIL PROTECTED]> wrote in message
001501c15e27$1a738b80$bd84a7cb@patricks">news:001501c15e27$1a738b80$bd84a7cb@patricks...
> I have a script (let's call it a.php3) that brings in another script
b.php3
> with the include or require call.
>
> In script b.php3 there is an include or require call to bring in script
> c.php3.
>
> Script a.php3 after making one and only one include (the include is not
> repeated anywhere in a.php3) then calls a function x which is defined in
> script b.php3.
>
> The first time the function is called it executes without any problems.
The
> second time in which it is called, in exactly the same way, with the same
> parameters, it errors with the message
> Can't redeclare already declared function in c.php3 at line  of the first function declaration in c.php3>
>
> The function is not actually named in the error message. This is the code
> block in c.php3 which the error occurs:
>
> 
> 
>  function getDirNames($sourceDir,$includeBase)
>  {
>   global $pathList;
>
>   function findAllDirsInDir($sourceDir)
>   {
>global $pathList;
>$dirHandle=opendir($sourceDir);
>while (($subDir=readdir($dirHandle))!=false)
>{
> if (is_dir($sourceDir."/".$subDir))
> {
>  if ($subDir != "." && $subDir != "..")
>  {
>   $dirList[] = $sourceDir."/".$subDir;
>   $pathList[] = $sourceDir."/".$subDir;
>  }
> }
>}
>closedir($dirHandle);
>return $dirList;
>   }; <>
>
>   function buildDirList($sourceDir,$recurse)
>   {
>$subDirList=findAllDirsInDir($sourceDir);
>if (count($subDirList) != 0)
> $recurse=true;
>else
> $recurse=false;
>for($i=0; $i{
> $currentSubDir=$subDirList[$i];
> if ($recurse==true)
>  buildDirList($currentSubDir,$recurse);
>}
>   }
>
>   buildDirList($sourceDir,true);
>   if ($includeBase == TRUE)
>$pathList[] = $sourceDir;
>   return $pathList;
>  }
>
> There are no multiple calls to include or require:
>
> * a.php3 which is the script that calls the function several times to
output
> data, contains only one call to include() that is not inside any kind of
> loop. It is called once just before the first function call.
>
> *b.php3 which is the script that is included by a.php3. It includes c.php3
> ONCE ONLY, NOT IN A LOOP.
>
> *c.php3 which is the script in which the error is occurring.
>
> Debugging b.php3 shows that the error message is thrown when execution
> reaches the line in which the function from c.php3 is called. Therefore I
> surmise that the error message is ambiguous.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jason Wood

I'm not sure if you can...  What I usually do is do a query to see if
there's already an entry there, and display an error message if there is.
Another thing to you can do is allow duplicate entries, and use the DISTINCT
option in the SELECT statement.  This wouldnt be as efficient, so i'd try
the query check first.  If there is a way to disallow duplicates, i'd love
to know.

Jason


"Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know how to set a column in a MySQL table to disallow any
> duplicate entries.
>
> I've already got a PRIMARY KEY defined for this table.  I tried setting
the
> other field to a MUL KEY, hoping that it would not permit duplicates, but
> it does.
>
> I've searched the MySQL docs without success. I wish their site was a good
> as PHP.net.
>
> Later,
> Jeff Ganaway
> ___
>
> Save 15% on 2002 Calendars and Holiday Cards!
>
> http://www.AvantGifts.com
> Discount Code: hopper22ct
> Offer Good Through October 31, 2001
> ___
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP usage(s)

2001-10-23 Thread Jason Wood

PHP is getting HUGE!!  look at the stats on http://www.php.net/usage.php

Speaks for itself...

A)  I dont use any templates... i reuse my own code sometimes, but i mostly
do it all by hand.
B) I dont even know what FastTemplates is, hehe =P
C)  ??
D)  haha, keep it competitive?  It's pretty much replaced PERL, and it's
so much faster that microsoft's crappy ASP.
E)  not sure....


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com



"Dennis Gearon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I love PHP/Apache/Linux/(and all its all the new apps, YEAH)/etc.
>
> But my provider now advertised, "ASP NOW available!" I really don't plan
on
> helping [EMAIL PROTECTED]
>
> However, I had a question for all of you here, or should I say several?
>
> Anyone noticed more or less PHP usage in customers/providers?
>
> How many of you, who write in PHP;
> A/ Use templates at all.
> B/ Use Fast templates or an equivilent.
> C/ Use a development environment made from PHP like Zope, Midgard, et. al.
> D/ Can share with us a new direction in PHP that will keep it
> competitive?
> E/ Know where there is a place that has pointers to, "The best 100
> PHP generated pages/applications!"
> F/ Want to contribute suggestions to 'E' above? If php.net doesn't want to
> host it, I will.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]