php-general Digest 3 Feb 2001 02:10:42 -0000 Issue 489

Topics (messages 37828 through 37928):

Re: PHP configure commandline
        37828 by: Alain Fontaine
        37829 by: Alain Fontaine

Zend Debug Server
        37830 by: Milan Mlynarcik
        37840 by: Steve Haemelinck

Future plans (4.1) ?
        37831 by: Robert Mena
        37832 by: Rasmus Lerdorf
        37852 by: Christian Reiniger
        37920 by: Toby Butzon

pg_Exec:  Warning: 1 is not a valid PostgreSQL link resource.
        37833 by: Evelio Martinez

Re: Apache won't start after installing php4
        37834 by: Rasmus Lerdorf

Re: Why?? SPRINTF("SELECT sequence,prodnum,childdesc....);
        37835 by: Christian Reiniger

ini_get() vs. get_cfg_var()
        37836 by: Teodor Cimpoesu
        37837 by: Zeev Suraski
        37838 by: Zeev Suraski
        37841 by: Teodor Cimpoesu

Re: Retrieve HTML page
        37839 by: Shaun Thomas

Do you know what Inter process communication (IPC) is?
        37842 by: Paul K Egell-Johnsen

Chopping up a comand line return.
        37843 by: stankusn
        37850 by: Juan
        37857 by: johnny p.
        37869 by: stankusn

Re: Re:What version of Linux?
        37844 by: Christian Reiniger

Apache Directory Browsing OT
        37845 by: Matt Williams
        37854 by: John Huggins

Gzip compression
        37846 by: David VanHorn
        37851 by: David VanHorn
        37858 by: Dimitar Tsolov

duplicate entries in mysql column
        37847 by: Pascal Romain

Re: configuring headers in mail() ...
        37848 by: Christian Reiniger

Re: Tab character
        37849 by: Christian Reiniger

array VS object?
        37853 by: Larry Hotchkiss
        37873 by: Nathan Crause

What In the WORLD???
        37855 by: Ben Ocean
        37866 by: Ben Ocean

Performance question
        37856 by: Matthew Mundy
        37867 by: Steve Werby

Probem with headers. HELP ME!!!
        37859 by: Securez

Problem with headers, HELP ME!!!!!
        37860 by: Securez

Mysql Question...
        37861 by: Giancarlo

Re: Pricing for PHP programming???
        37862 by: Siim Einfeldt aka Itpunk
        37865 by: johnny p.
        37868 by: Steve Werby
        37870 by: Wade D
        37872 by: Jeff Oien
        37884 by: szii.sziisoft.com
        37885 by: stankusn
        37890 by: johnny p.
        37891 by: johnny p.
        37896 by: Siim Einfeldt aka Itpunk
        37897 by: szii.sziisoft.com
        37922 by: Dave VanAuken

Re: contracting & consulting [Open Letter On The Situation]
        37863 by: DELAP, SCOTT F (SBCSI)

fucntion if not working bug error
        37864 by: Conover, Ryan

Just installed and getting errors
        37871 by: John Halladay

Re: Files only available via HTTPS
        37874 by: Nathan Crause
        37901 by: Ayan R. Kayal

Listbox Data Entry
        37875 by: iGuru
        37876 by: Sam Masiello

Data Entry From Listbox
        37877 by: iGuru

Re: INAPPROPRIATE IOCTL ERROR
        37878 by: Nathan Crause

PHP/FI  what FI?
        37879 by: Brandon Orther
        37882 by: Philip Olson
        37886 by: Robin Vickery
        37910 by: Boaz Yahav

Problems With Fopen
        37880 by: Joe
        37883 by: Brandon Orther

Re: Could PHP connect to Perl Program
        37881 by: Jamie Alessio

XML - XSL with PHP
        37887 by: Nicolas Peralta

sample contract
        37888 by: bill

how to specify the sender email address in the mail() function?
        37889 by: david klein
        37893 by: Brian Paulson
        37894 by: John Huggins

getting STDIO
        37892 by: Martin A. Marques
        37919 by: Steve Werby
        37924 by: Joe Stump

Windows Time modification 12/31/1969???
        37895 by: Joe
        37898 by: John Huggins

CSS with  PHP
        37899 by: Brandon Orther
        37900 by: stankusn

Calendar help
        37902 by: Fang Li
        37904 by: Joe Stump

Change Password script
        37903 by: enthalpy
        37905 by: Joe Stump
        37906 by: enthalpy
        37907 by: Joe Stump
        37909 by: Mark Maggelet
        37918 by: enthalpy

Re: File Download Completion
        37908 by: Boaz Yahav

Re: [PHP-WIN] For My Information
        37911 by: Boaz Yahav

"Trim" an array?
        37912 by: Thomas Deliduka
        37913 by: Mark Maggelet
        37916 by: Thomas Deliduka

Re: [PHP-WIN] RE: [PHP] Re: [PHP-WIN] For My Information
        37914 by: phobo

Off Subject, but can't find any info elsewhere
        37915 by: Toby Miller

Semi-review of Zend-IDE 1.0
        37917 by: Ed Finkler

exec() won't start SAS job
        37921 by: Curt Seeliger

performing tasks with a user's rights
        37923 by: Nathaniel Hekman
        37926 by: Steve Werby

PHP on PWS
        37925 by: Patrick L.
        37927 by: Dan Lowe

PHP evaluates an expression function?
        37928 by: ¹æÃ¢Çö

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Hi,

How about creating a small phpinfo.php file that calls phpinfo(), and run it
from the command line ?

""indrek siitan"" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hi,
>
> is there a way to find out what configure command-line was used to
> compile the PHP module, if the apache is not running? if it was
> running, phpinfo() would show that.
>
> but currently the case is to try to re-compile the PHP with same
> settings and see if it would start working. :)
>
>
> Rgds,
>   Tfr
>
>   --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--
>
> --
> 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]
>






Hi again,

Sorry. I just found out that my answer doesn't make any sense at all.

""Alain Fontaine"" <[EMAIL PROTECTED]> a écrit dans le message news:
95eb5v$p77$[EMAIL PROTECTED]
> Hi,
>
> How about creating a small phpinfo.php file that calls phpinfo(), and run
it
> from the command line ?
>
> ""indrek siitan"" <[EMAIL PROTECTED]> a écrit dans le message news:
> [EMAIL PROTECTED]
> > Hi,
> >
> > is there a way to find out what configure command-line was used to
> > compile the PHP module, if the apache is not running? if it was
> > running, phpinfo() would show that.
> >
> > but currently the case is to try to re-compile the PHP with same
> > settings and see if it would start working. :)
> >
> >
> > Rgds,
> >   Tfr
> >
> >   --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--
> >
> > --
> > 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 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]
>






Does anybody know how should I recognise if Zend Debug Server is running ???

    Milan Mlynarcik




With the following standard script:

<?php phpinfo(); ?>

You can find it there



 -----Original Message-----
From:   Milan Mlynarcik [mailto:[EMAIL PROTECTED]]
Sent:   vrijdag 2 februari 2001 14:03
To:     PHP mail list General
Subject:        [PHP] Zend Debug Server

Does anybody know how should I recognise if Zend Debug Server is running ???

    Milan Mlynarcik





Hi,

I've been following this list and php's development
for a while (since php2-beta) and even tough php has
(IMHO) tons of useful features there are a couple that
seems to be "lacking" (and constantly asked in this
list) :

- better object orientation support
- built-in template system

I know OO is not the answer for all our problems but I
has nice features (like visibility) speacially if you
want to couple php with a UML modelling tool.

We may have a dozen of template implementations but
the performance hit (or lack of features) kept me away
from sticking with one.  Perhaps a built-in template
system (or even a PEAR class) would ease this...

So If possible I'd like to hear from the developers if
they have a TODO that includes such things for a 4.X
release?

thanks.

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/




> I've been following this list and php's development
> for a while (since php2-beta) and even tough php has
> (IMHO) tons of useful features there are a couple that
> seems to be "lacking" (and constantly asked in this
> list) :
>
> - better object orientation support
> - built-in template system
>
> I know OO is not the answer for all our problems but I
> has nice features (like visibility) speacially if you
> want to couple php with a UML modelling tool.
>
> We may have a dozen of template implementations but
> the performance hit (or lack of features) kept me away
> from sticking with one.  Perhaps a built-in template
> system (or even a PEAR class) would ease this...
>
> So If possible I'd like to hear from the developers if
> they have a TODO that includes such things for a 4.X
> release?

For a fast templating system, see Smarty.
http://www.phpinsider.com/php/code/Smarty/

As for better OO.  I think many of the things people ask for, like
visibility (public,private,protected) class properties, aren't actually
features that add functionality, but more just convenience features that
could be implemented in user space.

For example, you could establish a convention that said that any class
property that starts with an _underscore should be considered a private
property, and one would hope that your UML tool could be configured to
understand that.

To answer your direct question, no, the current TODO does not include any
OO visibility changes.

-Rasmus





On Friday 02 February 2001 14:47, Rasmus Lerdorf wrote:

> > So If possible I'd like to hear from the developers if
> > they have a TODO that includes such things for a 4.X
> > release?

> As for better OO.  I think many of the things people ask for, like
> visibility (public,private,protected) class properties, aren't actually
> features that add functionality, but more just convenience features
> that could be implemented in user space.

I disagree. Just as with strong typing (which I hope will be added to 
PHP5 (optional - see how it's planned for Perl6)), language-enforced OO 
visibility makes it possible that the *compiler* (interpreter) 
immediately catches a bug that could hide for ages otherwise.
Errare humanum est - conventions can't prevent mistakes.

> For example, you could establish a convention that said that any class
> property that starts with an _underscore should be considered a private
> property, and one would hope that your UML tool could be configured to
> understand that.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e




> > As for better OO.  I think many of the things people ask for, like
> > visibility (public,private,protected) class properties, aren't actually
> > features that add functionality, but more just convenience features
> > that could be implemented in user space.
> 
> I disagree. Just as with strong typing (which I hope will be added to
> PHP5 (optional - see how it's planned for Perl6)), language-enforced OO
> visibility makes it possible that the *compiler* (interpreter)
> immediately catches a bug that could hide for ages otherwise.
> Errare humanum est - conventions can't prevent mistakes.
> 

This is something I've been waiting for, as well. Public, private, and
protected are definately important features as far as I'm concerned.

For instance: If a team develops a complex web application with PHP,
being careful to use naming conventions and such to resolve
public/private namespace conflicts, fine. But what happens when the team
completes their job and their contract is up; maybe in a year the
company who had the thing written wants to add some functionality, so
they once again hire a team or maybe just one programmer. However, the
programmer isn't so knowledgable about the system and before he knows it
he's got all kinds of problems with using object data that SHOULD be
protected (preceded by an _), but isn't.

I know this may not sound important, but it is. On top of that, if it
wasn't important, why would C/C++, Java, etc. all have it and stress
that it should be used instead of making everything "public"?

It's not a matter of preference; it's a matter of making classes truely
abstract types (using member functions to manipulate special data) and
not semi-abstract (you can use the functions or you can mess things up
by not using them).

Just my .02 -

--Toby




Hi!

We have a host (host A) with PostgreSQL 7.0.3. and PHP 4.0.4 under Red Hat

We have another host (host B) with PHP 4.0.3pl1  under Debian

We are having an incomprehensible error with this code when the content of $sql is

and "update"

...

$resultado=pg_Exec($conexion,$sql);

...

1) The php code from host A works ok.

2) The same php code from host B accessing postgresql database on host A

   does not work with "update", but it works with "select", "insert", and "delete".

3) If I try from host B:   psql -h hostA -d database -u

    update fam set nom='xxxxxx' where id='23'

   it works ok.

4) So, where is the problem?  php4 libraries under Debian distribution?

Any ideas?

--
Evelio Martínez
Testanet. Dept. desarrollo software.
Av. Reino de Valencia, 15 - 5
46005 Valencia (Spain)
Tel: +34 96 395 90 00
Fax: +34 96 316 23 19






--with-oracle *and* --with-oci8 ?  Pick one, don't use both of these.  You
probably want --with-oci8

Also, if your oci libs are linked against libpthreads (check with ldd) and
you are using glibc-2.1.x then you will have to recompile your Apache to
be linked against libpthreads or it just won't work.  Edit the Apache
Makefile and add -lpthreads to the LIBS line.

-Rasmus

On Fri, 2 Feb 2001, Frank Passek wrote:

> Hi all,
>
> I just downloaded php4.0.4 and tried to get it running on my linux-box
> (SUSE6.3 Distribution).
> Configuring with  ./configure --with-mysql --with-apxs --with-oracle
> --with-oci8 --with-gd
> and then making and installing worked fine, but whenever I restart
> apache with the php4-module enabled,
> it crashes with a segmentation fault.
>
> Any Ideas about this?
> Please let me know if you need further information.
>
> Thanks a lot
> Frank
>
> --
> 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]
>





On Thursday 01 February 2001 23:40, Karl J. Stubsjoen wrote:
> What is the purpose of the SPRINTF in this instance?
>
>
> SPRINTF("SELECT
> equence,prodnum,childdesc,onhand,openorders,avlallocate,bakorder,webpri
>cing FROM prodaval");

There isn't any. Remove it.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov




What's the difference between these two functions?
from the manual I couldn't figure any:

get_cfg_var -- Get the value of a PHP configuration option. 
ini_get     -- Get the value of a configuration option

is ini_get just an alias to get_cfg_var() or vice versa somehow?
dunno :)

TIA

-- teodor




At 16:10 2/2/2001, Teodor Cimpoesu wrote:
>What's the difference between these two functions?
>from the manual I couldn't figure any:
>
>get_cfg_var -- Get the value of a PHP configuration option.
>ini_get     -- Get the value of a configuration option
>
>is ini_get just an alias to get_cfg_var() or vice versa somehow?
>dunno :)
>
>TIA
>
>-- teodor
>
>--
>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]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/





get_cfg_var() is an old PHP 3.0 era function, that returns the value for a 
directive in the php.ini file.  This value may be valid or invalid, 
depending on whether it was overwritten by other configuration methods 
(e.g., httpd.conf or .htaccess).  This function will always return the 
value that was typed in php.ini, if any.

ini_get() is a new PHP 4.0 function, that uses the new INI subsystem 
introduced in 4.0.  It will always return the active value, and not 
necessarily the value that was in the php.ini.  Generally, unless you're 
writing a script that actually deals with the php.ini file, you should 
always use this function and not get_cfg_var().

Zeev

At 16:10 2/2/2001, Teodor Cimpoesu wrote:
>What's the difference between these two functions?
>from the manual I couldn't figure any:
>
>get_cfg_var -- Get the value of a PHP configuration option.
>ini_get     -- Get the value of a configuration option
>
>is ini_get just an alias to get_cfg_var() or vice versa somehow?
>dunno :)
>
>TIA
>
>-- teodor
>
>--
>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]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/





Hi Zeev!
On Fri, 02 Feb 2001, Zeev Suraski wrote:

> get_cfg_var() is an old PHP 3.0 era function, that returns the value for a 
> directive in the php.ini file.  This value may be valid or invalid, 
> depending on whether it was overwritten by other configuration methods 
> (e.g., httpd.conf or .htaccess).  This function will always return the 
> value that was typed in php.ini, if any.
> 
> ini_get() is a new PHP 4.0 function, that uses the new INI subsystem 
> introduced in 4.0.  It will always return the active value, and not 
> necessarily the value that was in the php.ini.  Generally, unless you're 
> writing a script that actually deals with the php.ini file, you should 
> always use this function and not get_cfg_var().
> 
That was also my guess, thank you very much for clarifing on it :)
I was mislead by the ini prefix, and though it refers only to the php.ini
file. So the ini_get() will return the `local' value not the `master' one.

Good to know.

-- teodor




On Thu, 1 Feb 2001, Jared Howard wrote:

> I need to know if there is a way to get a specified HTML page (as if you
> were to go to the page by typing in the url in your browser) and either
> turn it into a string or array or something that I would be able to cut up
> and use the information that I need.  This way PHP does the work instead of
> going to the page yourself.

We did this on a project once.  Some of our PHP pages were written to be a
back end, so needed to be called *by* other php pages, not included in
them.  This was so our designers could do with as little php as possible.
It also allowed us to standardize on an XML abstraction layer between all
pieces of the project.

I'd suggest looking into fsockopen.  If you know how, you can set it up to
poke through any corporate firewall you may be using, and if you know the
HTTP spec, you can send anything through the connection, not just HTML.
This technique is often employed by "page strippers" that take info from
other sites, re-parse it for useful information, and make it part of the
current page.

We also used fsockopen to directly connect to pop3 and ftp servers before
the functionality was added in php4.

You'd be amazed what you can learn from an RFC.

-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. Thomas                INN Database Programmer              |
| Phone: (309) 743-0812          Fax  : (309) 743-0830                |
| Email: [EMAIL PROTECTED]    AIM  : trifthen                      |
| Web  : hamster.lee.net                                              |
|                                                                     |
|     "Most of our lives are about proving something, either to       |
|     "ourselves or to someone else."                                 |
|                                           -- Anonymous              |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+






If you don't Luis Argerich has written an article about this at zez.org:
about code (http://zez.org/). The article is a couple of pages long and
contain everything you need to get started with shared memory and
semaphores in your PHP projects. Read the full story:
http://zez.org/article/articleview/46/
-- 
Paul K Egell-Johnsen
Developer/PR Manager
eZ systems as
http://ez.no/




Here is my problem,

  I want to read the contents of a dir, on a linux machine, in proper order
according to date (ie. from newest to oldest). My problem is I know how to
do it in perl....but not in php. I tried what I use is perl and it doesn't
work. Here is what I have that does work.

$stuff = `ls -C1t /your/dir/to/read/from/$author/`;  ---works

now I want to parse up $stuff to get the 10 or so files names so I can link
to them. I just
cannot figure out how to do it in php.

This is how I would do it in perl/CGI

@stuff = same as above
foreach $filename (@stuff){
    next if $filename !~ /(inc$/i;
    print = "<a href=\"$author/$filename\">$filename</a>";
}

I need something pretty much the same in php...I just don't know why it
isn't working quite the same......

thanks for your time in advance.,

nixter

-----------------------------------------------------------
Nick.Stankus
Software Engineer
Logicon/Sterling Federal
402-232-7870
-----------------------------------------------------------
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein






Try this :

<?php
 $fp = popen ("/bin/ls ", "r");
 while(!feof($fp))
 {$buffer = fgets($fp,4096);
  echo "\n<br><li>&nbsp;<a href=".chr(34).$buffer.chr(34).">".$buffer."</a>";}
 pclose($fp)
?>

s> Here is my problem,

s>   I want to read the contents of a dir, on a linux machine, in proper order
s> according to date (ie. from newest to oldest). My problem is I know how to
s> do it in perl....but not in php. I tried what I use is perl and it doesn't
s> work. Here is what I have that does work.

s> $stuff = `ls -C1t /your/dir/to/read/from/$author/`;  ---works

s> now I want to parse up $stuff to get the 10 or so files names so I can link
s> to them. I just
s> cannot figure out how to do it in php.

s> This is how I would do it in perl/CGI

s> @stuff = same as above
s> foreach $filename (@stuff){
s>     next if $filename !~ /(inc$/i;
s>     print = "<a href=\"$author/$filename\">$filename</a>";
s> }

s> I need something pretty much the same in php...I just don't know why it
s> isn't working quite the same......

s> thanks for your time in advance.,

s> nixter

s> -----------------------------------------------------------
s> Nick.Stankus
s> Software Engineer
s> Logicon/Sterling Federal
s> 402-232-7870
s> -----------------------------------------------------------
s> "There are two things that are infinite; Human stupidity and the
s> universe. And I'm not sure about the universe." - Albert Einstein
_______________________________________
Massuelles Jean-Baptiste([EMAIL PROTECTED])
Société A Comme...
Tel : 03 80 700 702






Well, I could update your perl code a bit, and try to help with your php
question at the same time...

first of all, i would use he following in perl to avoid the `ls` system
call:

**************************************************************
$some_dir = "/your/dir/to/read/from/$author";
opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
# sorts last modified time, most recent first, and only returns files in
the directory
@files = sort {(stat("$some_dir/$a"))[9] < (stat("$some_dir/$b"))[9]}
grep { -f "$some_dir/$_" } readdir(DIR);
closedir(DIR);
**************************************************************

so, given the perl version...  here's the php version:

**************************************************************
$some_dir = "/your/dir/to/read/from/" . $author;
$DIR = opendir($some_dir) || die "can't opendir $some_dir: $!";
while (false!==($file = readdir($DIR))) {
        if (filetype($some_dir . "/" . $file) == "file") {
                $mtime = filemtime ($some_dir . "/" . $file);
                $files[$some_dir."/".$file] = $mtime;
        }
}
closedir($DIR);

asort ($files);
reset ($files);
**************************************************************

PHP's filemtime is equivalent to perl's (stat(<file>))[9], which returns
the modification time of a file.
PHP's filetype($file) is equivalent to the grep check in Perl for file
type of file.
All the others are identical.

enjoy,

johnny p.



> -----Original Message-----
> From: stankusn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Chopping up a comand line return.
>
>
> Here is my problem,
>
>   I want to read the contents of a dir, on a linux machine,
> in proper order
> according to date (ie. from newest to oldest). My problem is
> I know how to
> do it in perl....but not in php. I tried what I use is perl
> and it doesn't
> work. Here is what I have that does work.
>
> $stuff = `ls -C1t /your/dir/to/read/from/$author/`;  ---works
>
> now I want to parse up $stuff to get the 10 or so files names
> so I can link
> to them. I just
> cannot figure out how to do it in php.
>
> This is how I would do it in perl/CGI
>
> @stuff = same as above
> foreach $filename (@stuff){
>     next if $filename !~ /(inc$/i;
>     print = "<a href=\"$author/$filename\">$filename</a>";
> }
>
> I need something pretty much the same in php...I just don't
> know why it
> isn't working quite the same......
>
> thanks for your time in advance.,
>
> nixter
>
> -----------------------------------------------------------
> Nick.Stankus
> Software Engineer
> Logicon/Sterling Federal
> 402-232-7870
> -----------------------------------------------------------
> "There are two things that are infinite; Human stupidity and the
> universe. And I'm not sure about the universe." - Albert Einstein
>
>
>
> --
> 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]
>
>





So then would this work in php?
given the previus example.

foreach $filename ($files){
     print = "<a href=\"$author/$filename\">$filename</a>";
}


thanks for the help,
nixter

-----------------------------------------------------------
Nick.Stankus
Software Engineer
Logicon/Sterling Federal
402-232-7870
-----------------------------------------------------------
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein

----- Original Message ----- 
From: "johnny p." <[EMAIL PROTECTED]>
To: "stankusn" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 9:50 AM
Subject: RE: [PHP] Chopping up a comand line return.


| Well, I could update your perl code a bit, and try to help with your php
| question at the same time...
| 
| first of all, i would use he following in perl to avoid the `ls` system
| call:
| 
| **************************************************************
| $some_dir = "/your/dir/to/read/from/$author";
| opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
| # sorts last modified time, most recent first, and only returns files in
| the directory
| @files = sort {(stat("$some_dir/$a"))[9] < (stat("$some_dir/$b"))[9]}
| grep { -f "$some_dir/$_" } readdir(DIR);
| closedir(DIR);
| **************************************************************
| 
| so, given the perl version...  here's the php version:
| 
| **************************************************************
| $some_dir = "/your/dir/to/read/from/" . $author;
| $DIR = opendir($some_dir) || die "can't opendir $some_dir: $!";
| while (false!==($file = readdir($DIR))) {
| if (filetype($some_dir . "/" . $file) == "file") {
| $mtime = filemtime ($some_dir . "/" . $file);
| $files[$some_dir."/".$file] = $mtime;
| }
| }
| closedir($DIR);
| 
| asort ($files);
| reset ($files);
| **************************************************************
| 
| PHP's filemtime is equivalent to perl's (stat(<file>))[9], which returns
| the modification time of a file.
| PHP's filetype($file) is equivalent to the grep check in Perl for file
| type of file.
| All the others are identical.
| 
| enjoy,
| 
| johnny p.
| 
| 
| 
| > -----Original Message-----
| > From: stankusn [mailto:[EMAIL PROTECTED]]
| > Sent: Friday, February 02, 2001 9:02 AM
| > To: [EMAIL PROTECTED]
| > Subject: [PHP] Chopping up a comand line return.
| >
| >
| > Here is my problem,
| >
| >   I want to read the contents of a dir, on a linux machine,
| > in proper order
| > according to date (ie. from newest to oldest). My problem is
| > I know how to
| > do it in perl....but not in php. I tried what I use is perl
| > and it doesn't
| > work. Here is what I have that does work.
| >
| > $stuff = `ls -C1t /your/dir/to/read/from/$author/`;  ---works
| >
| > now I want to parse up $stuff to get the 10 or so files names
| > so I can link
| > to them. I just
| > cannot figure out how to do it in php.
| >
| > This is how I would do it in perl/CGI
| >
| > @stuff = same as above
| > foreach $filename (@stuff){
| >     next if $filename !~ /(inc$/i;
| >     print = "<a href=\"$author/$filename\">$filename</a>";
| > }
| >
| > I need something pretty much the same in php...I just don't
| > know why it
| > isn't working quite the same......
| >
| > thanks for your time in advance.,
| >
| > nixter
| >
| > -----------------------------------------------------------
| > Nick.Stankus
| > Software Engineer
| > Logicon/Sterling Federal
| > 402-232-7870
| > -----------------------------------------------------------
| > "There are two things that are infinite; Human stupidity and the
| > universe. And I'm not sure about the universe." - Albert Einstein
| >
| >
| >
| > --
| > 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]
| >
| >






On Friday 02 February 2001 05:32, John Hinsley wrote:

> > I want to install my personal server on a old Intel 486 machine, 36
> > Mb RAM, 2 Gb HardDisk, VGA, to develop in PHP. What version of Linux
> > do I need to install?

> But I'm unsure of what you "really" intend using this machine for. Do
> you really want a home network (in which case conventional wisdom
> suggests that the server should be the most powerful box on site) or

Well, you'll have great trouble getting several 100k hits per day on a 
home server, so a small machine completely suffices :)

The most important thing here should be to *not* install a GUI, simply 
because nobody will sit at that machine anyway and running GUIs consume 
too much of your precious RAM.
SuSE, Debian or perhaps Red Hat should be fine for this.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e




Hi

Could someone please tell me how I can disable Directory Browsing with
Apache

I've been trawling the apache docs all afternoon with no success

TIA

M@





http://httpd.apache.org/docs/mod/core.html#options

The directive:

  Options Indexes

must not be defined or you will get a listing of the directory IF there is
no index file.

> -----Original Message-----
> From: Matt Williams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 10:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Apache Directory Browsing OT
>
>
> Hi
>
> Could someone please tell me how I can disable Directory Browsing with
> Apache
>
> I've been trawling the apache docs all afternoon with no success
>
> TIA
>
> M@
>
>
> --
> 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]
>






I'm looking at implementing Gzip compression and output buffering.
I think I have it working, but for some reason, the page isn't displayed 
for 8-10 seconds.
It seems that the compressed page is sent immediately, but the browser 
hangs on to it for some reason.


http://www.dvanhorn.org/Test/Index.php  Compressed
http://www.dvanhorn.org/Test/Index2.php Not compressed

Here's the top level page code:

<?
  ob_start();
  include('gzdoc.php');
?>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="description" content="Web Page Status">
<meta name="GENERATOR" content="Notepad">
<? include("../headmeta.inc")?>
<title>Current status.</title>
<? include ("Header.inc")?>
</head>
<body>
<BODY BACKGROUND="../../Graphics/b_m.gif">
<? include("Index.inc") ?>
<? include("../footer.inc") ?>
<? include("../do_webtrends.php") ?>
</body>
</html>
<?
gzdocout();
?>

There are NO chars before, or after, the PHP flags.


Here is the contents of gzdoc.php.

<?
ob_start();
flush();
$debug="1";
$Level="4";

function CheckCanGzip(){
     $ret = "0";
     global $HTTP_ENCODING;
     if (headers_sent() || connection_timeout() || connection_aborted()) 
$ret = "0";
     if (strpos($HTTP_ENCODING,'x-gzip') != false) $ret = "x-gzip";
     if (strpos($HTTP_ENCODING,'gzip'  ) != false) $ret = "gzip";
     return $ret;
     }

function GzDocOut($Level,$debug){
     $ENCODING = CheckCanGzip();
     if ($ENCODING){
         print "\n<!-- Use compress $ENCODING -->\n";
         $Contents = ob_get_contents();
         ob_end_clean();

         $Size = strlen($Contents);
         $Crc = crc32($Contents);
         $CContents = gzcompress($Contents,$level);
         $CContents = substr($CContents, 0, strlen($CContents) - 4);

         Header('Content-Encoding: '.$ENCODING);
         Header('Content-Length: ' . strlen($CContents));
         Header('Content-Length: ' . strlen(ob_get_length));
         echo $CContents;
         echo pack('V',$Crc) . pack('V',$Size);
         exit;
     }else{
         ob_end_flush();
         exit;
     }
}
?>
--
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9






At 04:24 PM 2/2/01 +0100, Dimitar Tsolov wrote:
>May be the reason is somewhere in your browser?
>
>I can see both pages /compressed and another one/ and I'm using Netscape
>4.75 with Linux?

They both get there, (I'm running latest MSIE) but I can't seem to work out 
why the delay between when the data stops coming in, and the page pops up.

It may be that I'm not sending everything exactly the way the browser 
wants, but where it THAT documented?
--
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9






Actually you are right,

I just try it with MSIE 5.0 and there is a delay? But on Netscape 4.75 is ok.
May be the way of unziping the page is different? I donno?!

David VanHorn wrote:

> At 04:24 PM 2/2/01 +0100, Dimitar Tsolov wrote:
> >May be the reason is somewhere in your browser?
> >
> >I can see both pages /compressed and another one/ and I'm using Netscape
> >4.75 with Linux?
>
> They both get there, (I'm running latest MSIE) but I can't seem to work out
> why the delay between when the data stops coming in, and the page pops up.
>
> It may be that I'm not sending everything exactly the way the browser
> wants, but where it THAT documented?
> --
> Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9





Hi all,
i am new in the list and I would like to ask you a question.
I am using Mysql-3.23.30 and php 4.0 to develop a recruitment
application.
I have a table where I store candidate details and one of the fields is
the candidate_name. The Id of each candidate is unique but it appends
that some candidates have the same name because they have been inserted
by different users.
My problem is that I need to find a way to check all the candidate_name
before printing them on the screen and add a flag to the ones which
occure more than once. 
I have looked to the array functions in php (which can remove doublons
like array_unique), to the different ways to use mysql_fetch_array and
to the regular expressions facilities such as ereg and ereg_replace but
I haven't find a way to do what I need to do.
Thanks in advance for any help
I go back to the code :-))
Pascal
[EMAIL PROTECTED]




On Friday 02 February 2001 08:20, Maxim Maletsky wrote:

> FROM: "J-Door Newsletter" < [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> >

(1) Better write "From:" , not "FROM:". It shouldn't matter, but some 
clients may assume the Firstletteriscap form


(2) An email address may take one of the following forms:
"Real name" <[EMAIL PROTECTED]>
[EMAIL PROTECTED] (Real Name)
[EMAIL PROTECTED]

Nesting, as you do it, is not allowed.

>  $from = '"' . $POSTED['from_name'] . '" <' . $POSTED['from_email'] . 
>'>';

Your problem here is that $POSTED['from_email'] is
"[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>" instead of
"[EMAIL PROTECTED]"


Also note that "mailto:" is a HTML-ism and has no place in mail headers!

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e




On Friday 02 February 2001 12:24, Martin A. Marques wrote:

[\t is tab?]
> > > yes (depending)
> >
> > On what?
>
> It depends on the charset you use.

No. the return value of ord('\t') may differ depending on the charset, 
but '\t' itself always is a tab character :)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.

- http://www.google.com/search?q=e




Ok, I am trying to use some functions that return objects. Its my
understanding,
limited as it is, that an object is basically the same as an array,
except that an object can only be accessed by field names where as an
array can be accessed by both field names and offsets. Is there any way
to determine the field names in an object so that they can be called?

-- 
Larry Hotchkiss




Are you perhaps refering to arrays and hashtables?



"Larry Hotchkiss" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, I am trying to use some functions that return objects. Its my
> understanding,
> limited as it is, that an object is basically the same as an array,
> except that an object can only be accessed by field names where as an
> array can be accessed by both field names and offsets. Is there any way
> to determine the field names in an object so that they can be called?
>
> --
> Larry Hotchkiss
>
> --
> 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]
>






Hi;
Can someone please explain the logic of why this is happening? I moved my 
server to a different co-location. As a consequence a certain PHP3 script 
quit working (?). Same server, same config, just quit. Now I'm 
trouble-shooting it and I've traced the problem thus:

 >>>
$xxxx = "";
// had to remove this line: if ( $k == "id" && $v != "0" ) {
if ( $seatingz == "9" ||  $aa == $seatingz ) {
if ( $colorz == "9" || ( $cc == $colorz || $dd == $colorz || $ee == $colorz 
)) {
if ( $typez == "9" || $gg == $typez ) {
if ( $xxxx != $yy ) {  // to keep from repeating each table twice
        $xxxx = $yy;
<<<

Prior to all of this is a loop defining an array of values from a MySQL 
table; after it is a loop printing those values in a table. Variables 
ending in *z* are obtained from the client through a *POST* statement. The 
value of *9* is a default, meaning the client has not entered a value. As 
an example, *$aa* is the specific value for *seating* in the table which is 
called by the MySQL statements for a specific row of data. The line I had 
to remove was necessary before moving the server for reasons that were and 
are beyond me. But when I moved the server, that line prevented anything 
from printing. I removed it, then I discovered that all values established 
*prior to* the first variable the client inputs (which changes the *z* 
variables) printed, while those after it didn't. In other words, if the 
client input a value for *type*, which would correspond to *$gg*, then 
*$aa* through *gg* printed, but all the values after that didn't! Now, for 
*some reason* before I moved the server this loop wanted to print two 
copies of everything, so I put in this $xxxx value stuff in the last *if* 
statement. That stopped it and it worked fine (i.e., printed just one copy 
of everything like it was supposed to). While I was trouble-shooting this 
sucker, I slapped in the declaration of *$xxxx = "";* and I'll be a 
son-of-a-gun, suddenly the darn thing prints out an ungodly number of the 
same loop (I currently only have one row in the table as I test it), and 
after about 20 iterations it starts tossing in the extra values that it had 
been skipping (e.g., those beyond $gg in the above example), so that after 
about 100 iterations I have the complete package! What the he*$^%) is going 
on???
BenO





I figured out a work-around...

 >>>
// had to remove this line: if ( $k == "id" && $v != "0" ) {
if ( $seatingz == "9" ||  $aa == $seatingz ) {
if ( $colorz == "9" || ( $cc == $colorz || $dd == $colorz || $ee == $colorz 
)) {
if ( $typez == "9" || $gg == $typez ) {
if ( $xxxx != $ffff ) {  // to keep from repeating each table twice
         $xxxx = $ffff;
<<<

where $ffff is the last value to be harvested in the array. Why this works 
I have no idea...
BenO

At 07:43 AM 2/2/2001 -0800, you wrote:
>Hi;
>Can someone please explain the logic of why this is happening? I moved my 
>server to a different co-location. As a consequence a certain PHP3 script 
>quit working (?). Same server, same config, just quit. Now I'm 
>trouble-shooting it and I've traced the problem thus:
>
> >>>
>$xxxx = "";
>// had to remove this line: if ( $k == "id" && $v != "0" ) {
>if ( $seatingz == "9" ||  $aa == $seatingz ) {
>if ( $colorz == "9" || ( $cc == $colorz || $dd == $colorz || $ee == 
>$colorz )) {
>if ( $typez == "9" || $gg == $typez ) {
>if ( $xxxx != $yy ) {  // to keep from repeating each table twice
>         $xxxx = $yy;
><<<
>
>Prior to all of this is a loop defining an array of values from a MySQL 
>table; after it is a loop printing those values in a table. Variables 
>ending in *z* are obtained from the client through a *POST* statement. The 
>value of *9* is a default, meaning the client has not entered a value. As 
>an example, *$aa* is the specific value for *seating* in the table which 
>is called by the MySQL statements for a specific row of data. The line I 
>had to remove was necessary before moving the server for reasons that were 
>and are beyond me. But when I moved the server, that line prevented 
>anything from printing. I removed it, then I discovered that all values 
>established *prior to* the first variable the client inputs (which changes 
>the *z* variables) printed, while those after it didn't. In other words, 
>if the client input a value for *type*, which would correspond to *$gg*, 
>then *$aa* through *gg* printed, but all the values after that didn't! 
>Now, for *some reason* before I moved the server this loop wanted to print 
>two copies of everything, so I put in this $xxxx value stuff in the last 
>*if* statement. That stopped it and it worked fine (i.e., printed just one 
>copy of everything like it was supposed to). While I was trouble-shooting 
>this sucker, I slapped in the declaration of *$xxxx = "";* and I'll be a 
>son-of-a-gun, suddenly the darn thing prints out an ungodly number of the 
>same loop (I currently only have one row in the table as I test it), and 
>after about 20 iterations it starts tossing in the extra values that it 
>had been skipping (e.g., those beyond $gg in the above example), so that 
>after about 100 iterations I have the complete package! What the he*$^%) 
>is going on???
>BenO
>
>
>--
>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]





Hello all.
I was wondering.  What kind of performance reduction is there in including
files or using the auto prepended one for a file less than, say, 10 line?
Specifically, I would think that the file IO would be a detriment to such
a small file.  Without the includes, code would be repeated, but in PHP,
IMHO, speed is a much more important factor than code size.  Anyways, what
would be the performance factors in deciding what goes in an include vs
inline code?
---Matt





"Matthew Mundy" <[EMAIL PROTECTED]> wrote:
> I was wondering.  What kind of performance reduction is there in including
> files or using the auto prepended one for a file less than, say, 10 line?
> Specifically, I would think that the file IO would be a detriment to such
> a small file.  Without the includes, code would be repeated, but in PHP,
> IMHO, speed is a much more important factor than code size.  Anyways, what
> would be the performance factors in deciding what goes in an include vs
> inline code?

I don't think you'll find a noticable difference in speed.  To me the
benefit of a modular design outweighs the effect on speed.  As a rule of
thumb, I take any code that will be used in multiple files and store in a
separate file, but development speed is my most critical constraint.
Reduced file size is a nice side effect, but storage space is so cheap that
really doesn't matter.  And if you want to increase the speed from the user
perspective you may want to look at a combination of caching and sending
gzipped data to browsers that support it.  There was a tutorial on
phpbuilder.com recently about this strategy and with the exception of a few
obstacles it works nicely depending on what your output is like.  You might
want to benchmark including the code inline versus using include() or auto
prepending it by writing a program to simulate expected (or heavy) usage of
the script in question and using something similar to the code below to
track the time that the script took to run.  On small simple programs the
results will be skewed by the time it takes to actually run the code below,
but on longer, more complex scripts that will be neglible when comparing
your test cases.

<?php
// Set start time of script.
$time_start = microtime();
$time_start = explode( " ", $time_start );
$time_start = $time_start[1] + $time_start[0];


// Set end time of script.
$time_end = microtime();
$time_end = explode( " ", $time_end );
$time_end = $time_end[1] + $time_end[0];

// Measure script run time.
$time_run = $time_end - $time_start;

// Write output to file.
// Left as user exercise.
?>

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/





I want to make a php script that outputs a file in a secure dir (outside of
web root), this scripts checks the permisions of the user to download the
file, i use phplib, and my probmem is when i call it from a browser the
filename to save is set always to test.php, can i send a header to specify
the name of file to save, or other form to make this.






I want to make a php script that outputs a file in a secure dir (outside of
web root), this scripts checks the permisions of the user to download the
file, i use phplib, and my probmem is when i call it from a browser the
filename to save is set always to test.php, can i send a header to specify
the name of file to save, or other form to make this.






Is it possible know the date and the time of the last update of a table in a MYSQL 
Database?

Bye!






>As a PHP programmer and COO of a development and consulting shop, the
>emphasis on hourly rate is something that really amazes me.  Not all
>programmers are created equal.  A lot of clients don't recognize
that.  Some
>mistakenly believe that a $120/hr. programmer is 20% more productive than
a
>$100/hr. programmer.  Yet others think that a $200/hr. programmer must be
>twice as good as a $100/hr. programmer.  

Yes, you`re right about that, you can´t take it that literally. That`s not
the way to decide who you should hire. Even one programmer could make
things for a quite different price for different clients. I know it, I`m
pretty much working this way right now. I`m doing some project based work
for one firm (continuing stuff) and then for separate firms I just set the
price that seems to be acceptable to both of us. 

>I find that there is *no*
>correlation between hourly rate and the quality, productivity and value
of a
>programmer.

But here I have to disagree with you. Yes, some guys who charge only $10/h
might sometimes be better than $200/h, but you can´t say that there is
*no* corralation between rates and quality. Sometimes there actually
is. First, when you start with something, let it be php or something else
and when you start then selling your services, you know you`re new, you
just give your hours away for smaller money, you`re productivity is a bit
lower, etc. In the other hand, an experienced guy already knows how much
work it actually takes, he knows he can do it well and because of that, he
charges more. Yes, it`s not always so, but still. 

>We've talked to a number of prospective clients who were
>charged $100,000+ for projects we could have done for $5,000.  I couldn't
>sleep at night if we gouged clients like that and in the long run I think
>gouging clients will come back to bite you.  We try to emphasize the
total
>cost to the client along with the benefits of our proposed solutions.  We
>try to state these benefits in terms of time savings, exposure,
value-added
>capabilities, revenue and process improvement.  When you can put what you
>can bring to the table in these terms the hourly rate becomes less
critical
>and it makes it easier to compete with inferior competitors that compete
on
>price alone.

I usually don´t charge for hour either, rather per project, but your
example of $5000 and $100,000. Well, what is the purpose of your
doings? Many of us like what we do, but the second reason (if not the
first) for doing it, is money, you can say whatever you want, but this is
true for mosy of the peops. I just read somewhere (maybe from this list
itself), that when setting the price, first think of your own needs, how
much work would it take and how much would you charge for it and then
think about the value of it to your customer (who may sometimes think
bigger is better), what would he be ready to pay for it and then ask the
higher amount. You say you couldn´t sleep at night, but the price you set,
it actually pretty much depends on the country, area, where  you live, so
maybe the ones who asked $200/h just had to ask it (probably not, but just
think of the idea for a moment). I could afford making something for
30$/h, maybe even cheaper, lets say you do it for $50 - you can`t say you
charge too much because I charge less and neiter vice versa.

And lets talk about clients just a bit more. A decent firm, before it
starts buying something, it looks on more than one direction, they make
their job on getting to know the prices and services that are being
offered to decide where to order something. Now, the ball is in their
side, it`s totally their choice who,which firm they choose to do the job,
so why should you worry, if your customer feedback was the best, your
marketing guys made great job, why should you worry about charging
$100,000 instead of $5000? You shouldn´t. In some other fields you could
say that they just didn`t have any other candidates to choose from, but
when talking about programming and php, well, you just can`t say it, can
you? Most of the projects can be done even over the internet, no problems. 


But yes, when talking about starting, then it might seem quite hard to
find work at first, I was in this situation 6 months ago myself, but right
now I could soon probably give work to a whole team. At first, you
shouldn`t count on all the jobsites available in the internet, rather word
of mouth, this is the best way. Maybe, for some contract work, go to some
company for which you think you could really do something and convince
them as well. And then don´t worry, it might take time, but if try hard,
there`s a green light in the end of the year.


Siim Einfeldt
[EMAIL PROTECTED]






Ok, I just started my own company and finished work for my first client
(shameless plug here: http://www.alamosawinecellars.com).  The problem I
had wasn't in pricing my work by what it's worth and how much time I put
in it, but pricing it in a way that would work for my client.  I ended
up making roughly $10/hr., maybe less, for the effort, but I ended up
with an extra $1000 in the bank.  If I wanted to charge more, I would
have had to take a walk and look for another client.  My price wasn't
based on an hourly rate, but on the project and my client's company size
and ability to come up with enough to cover my time.  The part of the
project that took all my time is in a backend admin tool that allows the
client to update their pages whenever they need.  The data is all stored
in a mysql db.  Anyways, I have noticed that for some clients, like my
first, charging too much will lose them.  For other clients, like medium
sized companies, charging too little will send them hunting for someone
else.  Very bizarre environment to work in, but my suggestion is to
judge your prices based on the client's perspective.  Interview the
client and try to get an idea of what they're looking for.  Look at what
the client thinks they're getting.  Use anything you can to find out
what the client's price range is and then set your prices in the middle.
And also, everything can be negotiated.

my 2 cents...

johnny p.

> -----Original Message-----
> From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 10:23 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
>
>
> >As a PHP programmer and COO of a development and consulting shop, the
> >emphasis on hourly rate is something that really amazes me.  Not all
> >programmers are created equal.  A lot of clients don't recognize
> that.  Some
> >mistakenly believe that a $120/hr. programmer is 20% more
> productive than
> a
> >$100/hr. programmer.  Yet others think that a $200/hr.
> programmer must be
> >twice as good as a $100/hr. programmer.
>





"Siim Einfeldt aka Itpunk" <[EMAIL PROTECTED]> wrote:
> But here I have to disagree with you. Yes, some guys who charge only $10/h
> might sometimes be better than $200/h, but you can´t say that there is
> *no* corralation between rates and quality. Sometimes there actually
> is.

$10 versus $200 is a little extreme, but I agree that there is sometimes a
correlation between rates and quality if we're talking about programmers or
firms that deal with larger, better educated (in terms of software
development) clients.  If we're talking about individual programmers that
deal with smaller clients I don't find this to be the case.  Because smaller
clients tend to understand the technology and the process less and often
can't recognize the difference between a guru and a hack.

> I usually don´t charge for hour either, rather per project, but your
> example of $5000 and $100,000. Well, what is the purpose of your
> doings? Many of us like what we do, but the second reason (if not the
> first) for doing it, is money, you can say whatever you want, but this is
> true for mosy of the peops.

Obviously I want to be profitable.  But my primary motivation is to be doing
challenging work, to enjoy what I'm doing and to build software that makes
my clients happy.  Sure, we could be like this other company and charge
$100,000 for a project that's worth $5,000 but we won't do that.  Why?
Because it will inevitably come back to haunt us.  In this business you have
little more than your knowledge and your reputation and a tarnished
reputation won't get you far.  YMMV.

> And lets talk about clients just a bit more. A decent firm, before it
> starts buying something, it looks on more than one direction, they make
> their job on getting to know the prices and services that are being
> offered to decide where to order something.

Again, I think we're talking about different kinds of clients.  A large
corporate client looking for someone to fulfill a large project will spend a
lot of time doing research, soliciting quotes and in general will be well
educated in terms of what's involved and what it should cost.  A small brick
and mortar company or shoestring budget startup headed by a non-technical
person might not have that luxury and generally doesn't have the time,
energy or expertise to make a qualified decision.  My experience is that a
lot of these type of clients only speak to 1 to 3 firms.  And these other
firms are often not qualified - they don't understand the business world or
don't even do programming.  In fact, last week I spoke to the head of a
small internet startup that was soliciting bids for a search engine for his
site.  His site consisted *entirely* of hundreds of identically formatted
static pages that were created by combining text and images in Photoshop.
He got bids from 2 other firms before me about building a search engine for
the site.  We were the only firm that informed him that no search engine can
search text from within an image (meaning the other firms had no clue) and
that if we built him a database driven site with an admin interface to
upload images, create records and modify text he could save 15 minutes per
page built for the site and modify the entire look of the site in under an
hour.  Based on his projection this would save him about 300 hours a year.
These are the type of clients we typically deal with 80% of the time.  We're
comfortable doing it, but we don't rip them off just because they're
uneducated.

> $100,000 instead of $5000? You shouldn´t. In some other fields you could
> say that they just didn`t have any other candidates to choose from, but
> when talking about programming and php, well, you just can`t say it, can
> you? Most of the projects can be done even over the internet, no problems.

My reality is different than your reality.  I don't know if I want to trade
places or not.  <grin>

> shouldn`t count on all the jobsites available in the internet, rather word
> of mouth, this is the best way.

Amen.  If you do good work for a fair price and make the experience
pleasurable for your clients the work will come.  It's like any business.
People want to work with people they like and if your customers like you
they'll mention you to others.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/





So how do you know what to charge when youre independent and just starting?


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





johnny this is great to start out but if you keep doing it you will find
that you will get a lot of bad clients who don't value your work and
expect you to do a lot of extra stuff for free or request endless 
changes. That's typical of clients who look for extremely low cost
work. Be sure to set limits on what you will do and make sure
they value your work and trust you. Otherwise you will be driven
to insanity in time. Nice site BTW.
Jeff Oien

> Ok, I just started my own company and finished work for my first client
> (shameless plug here: http://www.alamosawinecellars.com).  The problem I
> had wasn't in pricing my work by what it's worth and how much time I put
> in it, but pricing it in a way that would work for my client.  I ended
> up making roughly $10/hr., maybe less, for the effort, but I ended up
> with an extra $1000 in the bank.  If I wanted to charge more, I would
> have had to take a walk and look for another client.  My price wasn't
> based on an hourly rate, but on the project and my client's company size
> and ability to come up with enough to cover my time.  The part of the
> project that took all my time is in a backend admin tool that allows the
> client to update their pages whenever they need.  The data is all stored
> in a mysql db.  Anyways, I have noticed that for some clients, like my
> first, charging too much will lose them.  For other clients, like medium
> sized companies, charging too little will send them hunting for someone
> else.  Very bizarre environment to work in, but my suggestion is to
> judge your prices based on the client's perspective.  Interview the
> client and try to get an idea of what they're looking for.  Look at what
> the client thinks they're getting.  Use anything you can to find out
> what the client's price range is and then set your prices in the middle.
> And also, everything can be negotiated.
> 
> my 2 cents...
> 
> johnny p. 




When in doubt, go low - esp when you're just starting out.  If you're a good
coder, start at USD$20.  You may go from there once you're more comfortable
with the process, have a small list of clientele, and have refined your 
working environment (it's a little different than working for a company.)
If you start too high, you risk prematurely damaging your reputation, as well
as having difficulty finding clients.  Some places, like here in
California, you
need to stay within the "going rate" which is all over the place for a coder.
You'll have to evaluate it on a job-by-job basis.  If you're starting out,
I wouldn't
go above $60/hr, but it's entirely up to you.  If you don't contract on a
per project
basis, and stick to an hourly rate you have the option of raising that rate
at a 
later time.  If you do it on a per project basis, you can simply raise the
rate
between projects.  If you're too high, and have to come down it looks bad.
Tactfully done, it can give the subtle illusion that they're getting a
"good deal"
on you.  It's all about image at the negotiating table, and -percieved- value.
After that it's up to you to make it happen. 

Above all, watch them taxes.  Independent Contractors get hit (in the US)
with a business tax as well as the expected income tax.  1099-MISC 
income (ie, independent contract work) can really be a nasty shock if 
you don't account for the extra tax.  When I was first starting out, my first
year, I didn't know about it and ended up approx $10k in debt, as well as
being penalized for not making quarterly tax payments.  Not a big debt,
but it was definately an unwelcome shock come April 15th.

In this field your reputation is EVERYTHING.  The customer is always right,
and you should do everything you can to make them FEEL good.  Even if
thing's aren't going okay, as soon as they start doubting your skill, your
decisions, they may doubt using you. If they like you they'll return, 
and often times will refer you to other companies.  It's all about great code
and a "warm fuzzy" for the client.

'Luck

-Szii

At 11:23 AM 2/2/2001 -0600, you wrote:
>So how do you know what to charge when youre independent and just starting?
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>-- 
>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]
>




Ok.....I want to start doing outside (extra) contract work...independantly.
I have had only
one client....they loved the work.....and I am having problems finding
more...I think I am just not looking in the right spot....where would be a
good spot to drum up bussiness....doesn't have to be a place online....but
how did everyone get so many customers? Where do you get them?

nick
-----------------------------------------------------------
Nick.Stankus
Software Engineer
Logicon/Sterling Federal
402-232-7870
-----------------------------------------------------------
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Wade D" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 12:51 PM
Subject: Re: [PHP] Pricing for PHP programming???


| When in doubt, go low - esp when you're just starting out.  If you're a
good
| coder, start at USD$20.  You may go from there once you're more
comfortable
| with the process, have a small list of clientele, and have refined your
| working environment (it's a little different than working for a company.)
| If you start too high, you risk prematurely damaging your reputation, as
well
| as having difficulty finding clients.  Some places, like here in
| California, you
| need to stay within the "going rate" which is all over the place for a
coder.
| You'll have to evaluate it on a job-by-job basis.  If you're starting out,
| I wouldn't
| go above $60/hr, but it's entirely up to you.  If you don't contract on a
| per project
| basis, and stick to an hourly rate you have the option of raising that
rate
| at a
| later time.  If you do it on a per project basis, you can simply raise the
| rate
| between projects.  If you're too high, and have to come down it looks bad.
| Tactfully done, it can give the subtle illusion that they're getting a
| "good deal"
| on you.  It's all about image at the negotiating table, and -percieved-
value.
| After that it's up to you to make it happen.
|
| Above all, watch them taxes.  Independent Contractors get hit (in the US)
| with a business tax as well as the expected income tax.  1099-MISC
| income (ie, independent contract work) can really be a nasty shock if
| you don't account for the extra tax.  When I was first starting out, my
first
| year, I didn't know about it and ended up approx $10k in debt, as well as
| being penalized for not making quarterly tax payments.  Not a big debt,
| but it was definately an unwelcome shock come April 15th.
|
| In this field your reputation is EVERYTHING.  The customer is always
right,
| and you should do everything you can to make them FEEL good.  Even if
| thing's aren't going okay, as soon as they start doubting your skill, your
| decisions, they may doubt using you. If they like you they'll return,
| and often times will refer you to other companies.  It's all about great
code
| and a "warm fuzzy" for the client.
|
| 'Luck
|
| -Szii
|
| At 11:23 AM 2/2/2001 -0600, you wrote:
| >So how do you know what to charge when youre independent and just
starting?
| >
| >
| >_________________________________________________________
| >Do You Yahoo!?
| >Get your free @yahoo.com address at http://mail.yahoo.com
| >
| >
| >--
| >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 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]





I agree.  I have a separate maintenance agreement for additional changes
and updates and charge them a pre-specified hourly rate.

thanks for the advice... been bit a couple times before, tho.  good for
others to read.

johnny p.

> -----Original Message-----
> From: Jeff Oien [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Pricing for PHP programming???
>
>
> johnny this is great to start out but if you keep doing it
> you will find
> that you will get a lot of bad clients who don't value your work and
> expect you to do a lot of extra stuff for free or request endless
> changes. That's typical of clients who look for extremely low cost
> work. Be sure to set limits on what you will do and make sure
> they value your work and trust you. Otherwise you will be driven
> to insanity in time. Nice site BTW.
> Jeff Oien
>
> > Ok, I just started my own company and finished work for my
> first client
> > (shameless plug here: http://www.alamosawinecellars.com).
> The problem I
> > had wasn't in pricing my work by what it's worth and how
> much time I put
> > in it, but pricing it in a way that would work for my
> client.  I ended
> > up making roughly $10/hr., maybe less, for the effort, but
> I ended up
> > with an extra $1000 in the bank.  If I wanted to charge
> more, I would
> > have had to take a walk and look for another client.  My
> price wasn't
> > based on an hourly rate, but on the project and my client's
> company size
> > and ability to come up with enough to cover my time.  The
> part of the
> > project that took all my time is in a backend admin tool
> that allows the
> > client to update their pages whenever they need.  The data
> is all stored
> > in a mysql db.  Anyways, I have noticed that for some
> clients, like my
> > first, charging too much will lose them.  For other
> clients, like medium
> > sized companies, charging too little will send them hunting
> for someone
> > else.  Very bizarre environment to work in, but my suggestion is to
> > judge your prices based on the client's perspective.  Interview the
> > client and try to get an idea of what they're looking for.
> Look at what
> > the client thinks they're getting.  Use anything you can to find out
> > what the client's price range is and then set your prices
> in the middle.
> > And also, everything can be negotiated.
> >
> > my 2 cents...
> >
> > johnny p.
>
> --
> 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]
>
>





Hah!  My wife has a formal education in graphics design.  My web sites
would look like crap without her extensive layout skills.  :) I'm so
lucky...

johnny p.

> -----Original Message-----
> From: Jerry Lake [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 12:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Pricing for PHP programming???
>
>
> Yep, ain't it grand...
> I got hired on as a designer
> and somebody got the bright idea
> that I must be a programmer as well
> funny I don't remember that on my resume.
>
> Jerry Lake            - [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online           - http://www.pacifier.com
>
>
> -----Original Message-----
> From: Robin Vickery [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 3:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
> >>>>> "JG" == "Josh G" <[EMAIL PROTECTED]> writes:
>
>  > I hear you. Another thing that's hard to find, is somebody who is a
>  > good programmer, and a good graphic designer.
>
> I've never quite understood why employers seem to expect that a
> php/perl programmer should also be doing graphic design. They're
> quite unrelated activities using completely different skills. It's
> not something that's generally expected from other professions
> (when was the last time you saw an advert for an accountant that
> required they be proficient with Photoshop?) so why programmers?
>
>
>       -robin (who can't draw for toffee)
>
>
> --
> Robin Vickery.................................................
> BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
>
> --
> 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 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]
>
>






> Obviously I want to be profitable.  But my primary motivation is to be doing
> challenging work, to enjoy what I'm doing and to build software that makes
> my clients happy.  Sure, we could be like this other company and charge
> $100,000 for a project that's worth $5,000 but we won't do that.  Why?
> Because it will inevitably come back to haunt us.  In this business you have
> little more than your knowledge and your reputation and a tarnished
> reputation won't get you far.  YMMV.

  Well, I`m actually no ripper either, the $100,000 and $5000 example is
actually a little extreme as well. But what i just wanted to say is that
we shouldn`t accept the minimum, but rather add just a bit to the
sum. This is probably mainly just because I unfortunately do not do enough
planning work, but for me most of the works kind of get to go bigger than
they were ment to be. I`m not talking about new features (though these
may come too, but that`s already another story), but rather just something
that you thought will be easy to handle and then it turns out to be much
bigger problem, but then it`s already a bit bigger problem to get the
client pay more. 

  Yes, I admit, probably that`s mainly my problem, but usually I get
*little* jobs, which take week or a few and well, if I wanted to prepare
it real well, then it would be +day or more. And there`s usually just not
enough time, though I`m seriously considering doing it differently,
better.

  Just some time ago (2 months to be exact), I was asked if I would be
ready to take a small little one week project. At the time I was just
staring to make money with php+mysql, so I trusted the web design firm
which gave me the job. But it came out that it`s really, really big
project actually. I`m still working on it and hope to get it ready in some
days. 

  Anyway, what am I saying here...it`s probably something to myself, start
writing project descriptions!

  And as to talking about this one. Could you tell me how you usually
prepare for projects, how long do your projects take on the average?

> Again, I think we're talking about different kinds of clients.  

  Well, I just brought an example.

> energy or expertise to make a qualified decision.  My experience is that a
> lot of these type of clients only speak to 1 to 3 firms.  And these other
> firms are often not qualified - they don't understand the business world or
> don't even do programming.  In fact, last week I spoke to the head of a
  
  You`re probably right about that, got to agree with you on this one.  

> > when talking about programming and php, well, you just can`t say it, can
> > you? Most of the projects can be done even over the internet, no problems.
> 
> My reality is different than your reality.  I don't know if I want to trade
> places or not.  <grin>
   
  Well, if you`re talking about telecommuting, then this is actually quite
good way of working, for both parties. Firms get to pay a bit lower wages,
no extra offices needed, etc and programmer, he can do it wherever he
wants to. I`m working myself this way and I must say there`s nothing wrong
with it. For firms it might be a bit frightening thought at first, but I
know some pretty successful companies who`s programmers, almost all of
them work out of office. 
 
  And about that 5000 and 100000 again, as i said, this difference is a
bit too big to talk about. And actually I was talking about it just
theoretically, I don`t charge my clients amounts that make them go broke,
not at all, just few days ago made an offer to one real estate company, I
once made them a cheap site, just in html, poor desig, etc and now, a year 
they wanted to improve it, make a total redesign and make the adding of
houses, etc easier (keyword is database+php)+some more features. I made
them a offer which I wasn`t sure about whether it would be too much or
not. And they said yes withou thinking at all. Then I started
thinking...if they would have gone to some firm, instead of talking to me
(freelancer), they would have paid probably 3times more. So I`m not saying
that we should take all we can get, but rather we should take the amount
that we are ready to work for+some extra, which can be cut off, if the
client doesn`t agree with the first offer. 

> Amen.  If you do good work for a fair price and make the experience
> pleasurable for your clients the work will come.  It's like any business.
> People want to work with people they like and if your customers like you
> they'll mention you to others.

  Exactly

Siim Einfeldt
[EMAIL PROTECTED]





Ask the first client if they know of anyone who could utilize your skills.
As an IC, you are more than just a coder; you are the marketing,
sales, finance, and programming departments.  Look online, post
your resume, apply for jobs.  In your application cover letter,
state that you are fully qualified for the position (if you are) and
let them know that you're available for contract work if that is
acceptable to them.  Go ahead and apply for the "full time"
or "permanent" positions.  Sometimes just getting your name out
there and recognized can be invaluable.

Not recommended for everyone, but it's worked for me a fair bit -
develop a "hook."  Something that sticks, something different,
something.....memorable.  I started early, and "szii" was an intentionally
hard name to type to pkill on a MUD (unless you type correctly, which
many didn't.)  *laugh*  There's too many "Mike Oxford" types running
around, and "Szii" seems to stick pretty well...so I use it. *shrug*

-Szii/Mike


----- Original Message -----
From: stankusn <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 10:56 AM
Subject: Re: [PHP] Pricing for PHP programming???


> Ok.....I want to start doing outside (extra) contract
work...independantly.
> I have had only
> one client....they loved the work.....and I am having problems finding
> more...I think I am just not looking in the right spot....where would be a
> good spot to drum up bussiness....doesn't have to be a place online....but
> how did everyone get so many customers? Where do you get them?
>
> nick
> -----------------------------------------------------------
> Nick.Stankus
> Software Engineer
> Logicon/Sterling Federal
> 402-232-7870
> -----------------------------------------------------------
> "There are two things that are infinite; Human stupidity and the
> universe. And I'm not sure about the universe." - Albert Einstein
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: "Wade D" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, February 02, 2001 12:51 PM
> Subject: Re: [PHP] Pricing for PHP programming???
>
>
> | When in doubt, go low - esp when you're just starting out.  If you're a
> good
> | coder, start at USD$20.  You may go from there once you're more
> comfortable
> | with the process, have a small list of clientele, and have refined your
> | working environment (it's a little different than working for a
company.)
> | If you start too high, you risk prematurely damaging your reputation, as
> well
> | as having difficulty finding clients.  Some places, like here in
> | California, you
> | need to stay within the "going rate" which is all over the place for a
> coder.
> | You'll have to evaluate it on a job-by-job basis.  If you're starting
out,
> | I wouldn't
> | go above $60/hr, but it's entirely up to you.  If you don't contract on
a
> | per project
> | basis, and stick to an hourly rate you have the option of raising that
> rate
> | at a
> | later time.  If you do it on a per project basis, you can simply raise
the
> | rate
> | between projects.  If you're too high, and have to come down it looks
bad.
> | Tactfully done, it can give the subtle illusion that they're getting a
> | "good deal"
> | on you.  It's all about image at the negotiating table, and -percieved-
> value.
> | After that it's up to you to make it happen.
> |
> | Above all, watch them taxes.  Independent Contractors get hit (in the
US)
> | with a business tax as well as the expected income tax.  1099-MISC
> | income (ie, independent contract work) can really be a nasty shock if
> | you don't account for the extra tax.  When I was first starting out, my
> first
> | year, I didn't know about it and ended up approx $10k in debt, as well
as
> | being penalized for not making quarterly tax payments.  Not a big debt,
> | but it was definately an unwelcome shock come April 15th.
> |
> | In this field your reputation is EVERYTHING.  The customer is always
> right,
> | and you should do everything you can to make them FEEL good.  Even if
> | thing's aren't going okay, as soon as they start doubting your skill,
your
> | decisions, they may doubt using you. If they like you they'll return,
> | and often times will refer you to other companies.  It's all about great
> code
> | and a "warm fuzzy" for the client.
> |
> | 'Luck
> |
> | -Szii
> |
> | At 11:23 AM 2/2/2001 -0600, you wrote:
> | >So how do you know what to charge when youre independent and just
> starting?
> | >
> | >
> | >_________________________________________________________
> | >Do You Yahoo!?
> | >Get your free @yahoo.com address at http://mail.yahoo.com
> | >
> | >
> | >--
> | >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 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 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]





1) talk to the customer,  in person if at all possible - get a CLEAR
picture of exactly what they want.
2) write down every aspect of what they want
3) take each element of the site and estimate how many hours it will
take you to accomplish it.
4) double the amount (your customer will cause that)
5) take those hours (for example 40 hours) and estimate how much of
that time will account for your required monthly revenue.
6) bill that amount (divide by the number of hours if you want to use
an hourly rate).

that will do you untill you start hiring a number of people.

As you go along you will be able to narrow down the estimated time
involved.

Make sure the customer knows exactly what you are providing for the
amount they are paying.



Another thing to consider in this whole discussion...  the longer you
code, the faster you produce and the less error catching (or tracking)
you have to do...  thus what takes a new programmer/developer 10 hours
to accomplish may only take a seasoned developer with a handful of
code snippets 3 hours.

so while mr junior programmer may charge $25 per hour and $250 for a
quick code change, the more experienced programmer can charge $80 per
hour and bill the same total...  comparing apples and oranges.

Dave


-----Original Message-----
From: Wade D [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Pricing for PHP programming???


So how do you know what to charge when youre independent and just
starting?

<clipped>





Looks like there have been quite a few comments on this since I left work
yesterday.  I applaud everyone's efforts with their job sites.  However,
that is part of the problem.  Right now there about probably 10 or 15 job
posting sites that people have put up just for PHP.  They all have a few
listings most of which are out of date and most of which don't overlap.
This fragmentation doesn't do anyone any good.  The clients I have gotten
over the net all mention that they don't like having to go a hundred
different places and browsing through hundreds of php programmers that most
can't tell apart.  They all say the like to be able to post a job and let
interested parties come to them.  That is why I haven't already put up a
jobs site.  Just adding another one to the list won't help.  The PHP
community pulls together to help people with coding problems, and the
develop the actual php source.  They need to do the same for a jobs site and
then just have various sites link to it.  I agree that maybe jobs.php.net
would be the best bet.  I don't think any of the current jobs sites on other
peoples sites are there because they want to make $$ off of them directly.
Everyone seems to have the same good intentions of helping the community
overall.  I'm the same way.  I'll be honest that I'm hoping to get some
extra business of such a venture comes to pass but I'm also far sighted
enough to realize that I'll benefit more from a community effort that helps
everyone than just another personal job site.  

With my rant being said, would anyone be interesting in putting together a
panel or committee to research putting together such an effort?  Things I'm
thinking right now that would be interesting to know
 would be exact metrics about:

*how many different jobs sites are out there directed to php jobs
(eliminating portals like monster)
*the total number of jobs spread out between them

 It would also be interesting to know about what features everyone would
like in a new php jobs site:

*resumes
*places to post job listings
*email notification of new posts
*etc

Scott Delap
SBC Services, Inc.
[EMAIL PROTECTED]
314-235-6216





I think I found a bug with the pdf_open_image_file() function. I am running
php4.0.4 pl1 with pdflib 3.03.
I cannot open any .gif or .tif files.

Ryan Conover




I have just put PHP on my Windows 2000 machine and have configured it to
IIS, but when I try to test a .php page I get this error.

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are: 
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)

What can I do to resolve this?

John Halladay




I think your best bet would be to use cookies tagged as secure. My
understanding is that if a cookie is tagged as secure, then the web server
should not give any scripting language access to it (i.e. if you have a
secure cookie LOGGEDIN, then PHP would NOT have $LOGGEDIN set [use isset] if
the user tries to use HTTP instead of HTTPS).


"Michael Conley" <[EMAIL PROTECTED]> wrote in message
2102328FD2ECD411879E00609737BFD11C83@FATBOY">news:2102328FD2ECD411879E00609737BFD11C83@FATBOY...
> I have several PHP files that I only want users to be able to access via
> HTTPS.  How can I control that on an Apache 1.3.14 server running on
RedHat
> 7?  I have openssl and mod_ssl working fine.  Currently, I can access all
of
> the files on my site via either http or https.  I want to keep certain
files
> (with interesting information) from being accessed via http.  I realize
this
> isn't really a PHP question, but I have no idea how to do this.
>
> Thanks.
>
>


----------------------------------------------------------------------------
----


> --
> 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]






Add this to httpd.conf:

<Directory "[directory path here]">
SSLRequireSSL   
</Directory>

O-                         ~ARK
CFO, Hmedicine.com, Inc.

> -----Original Message-----
> From: Michael Conley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 7:29 PM
> 
> I have several PHP files that I only want users to be able to access via
> HTTPS.  How can I control that on an Apache 1.3.14 server running 
> on RedHat
> 7?  I have openssl and mod_ssl working fine.  Currently, I can 
> access all of
> the files on my site via either http or https.  I want to keep 
> certain files
> (with interesting information) from being accessed via http.  I 
> realize this
> isn't really a PHP question, but I have no idea how to do this.




Hello

I have a little problem. I have a listbox (multiline combo box) on my web
page. When I sellect multiple items from the list box and submit the for to
enter the values of the listbox items in the database, then only last
selected item of the listbox is entered in the MySQL database.

Does anyone know what to do?

Thanks in advance,

Tahir







You need to be sure that you are defining the select list similar to this:

<SELECT NAME="mylist[]" SIZE="3" MULTIPLE>

The size field can be whatever you want to show, but you need to use the
brackets in the NAME attribute to indicate an array, then treat the data
submitted as an array after the form is posted.

HTH

Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

 -----Original Message-----
From:   iGuru [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, January 10, 2001 9:56 AM
To:     [EMAIL PROTECTED]
Subject:        [PHP] Listbox Data Entry

Hello

I have a little problem. I have a listbox (multiline combo box) on my web
page. When I sellect multiple items from the list box and submit the for to
enter the values of the listbox items in the database, then only last
selected item of the listbox is entered in the MySQL database.

Does anyone know what to do?

Thanks in advance,

Tahir



--
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]





Hello

I have a little problem. I have a listbox (multiline combo box) on my web
page. When I sellect multiple items from the list box and submit the form to
enter the values of the listbox items in the database, then only last
selected item of the listbox is entered in the MySQL database.

Does anyone know what to do?

Thanks in advance,

Tahir






An IOCTL (Input/Ouput Control) is an OS's internal mechanism for dealing
with ANYTHING pertaining to Input and Output (in your case a URL). I'm not
100% sure of this, but you may simply be suffering from a typing error.
Perhaps "cgi-win" should read "cgi-bin"




""Kif"" <[EMAIL PROTECTED]> wrote in message
004701c08c4c$04003720$6634de3e@angus">news:004701c08c4c$04003720$6634de3e@angus...
> help...
> ok, now this looks quite straightforward...
>
>
$filename="http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&Proper
> tyCode=1050003/SAPHI/14665/3";
> $file=fopen($filename,"r") or die("cant open $filename");
> while(!feof($file)){
> $line=fgets($file,4096);
> echo $line;
> }
>
> but when i run it i get an error
>
>
fopen("http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&PropertyCo
> de=1050003/SAPHI/14665/3","r") -
> Inappropriate ioctl for device in /home/httpd/docs/test.php on line 6
>
> So can someone please tell me, what the blazes an ioctl is and why do i
have
> an inappropriate one?
>
> The remote file is fine,
>
> Thanks
>
> Kif
>
>
>
> --
> 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]
>






I have been using PHP for a while now and never knew what FI is, can someone
enlighten me.


Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------





Hi Brandon, according to :

    http://www.php.net/manual/phpfi2.html

It states :

"At the same time I started playing with databases and wrote a tool to
easily embed SQL queries into web pages. It was basically another CGI
wrapper that parsed SQL queries and made it easy to create forms and
tables based on these queries. This tool was named FI (Form Interpreter)."

and

"Throughout this documentation any references to PHP, FI or PHP/FI all 
refer to the same thing. The difference between PHP and FI is only a
conceptual one. Both are built from the same source distribution. When I
build the package without any access logging or access restriction
support, I call my binary FI. When I build with these options, I call it
PHP."


Regards,

Philip Olson
http://www.cornado.com/

On Fri, 2 Feb 2001, Brandon Orther wrote:

> I have been using PHP for a while now and never knew what FI is, can someone
> enlighten me.
> 
> 
> Thank you,
> 
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
> 
> 
> -- 
> 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]
> 





>>>>> "BO" == Brandon Orther <[EMAIL PROTECTED]> writes:

 > I have been using PHP for a while now and never knew what FI is,
 > can someone enlighten me.

First there was PHP (Personal Home Pages) and FI (Form Interpreter)
Then they were combined into PHP/FI Version 2. After which there
was PHP3 and now PHP4.

PHP/FI had a few quirks... the syntax for function definitions
for example:

function functionname $param1 $param2 (
  statement1;
  statement2;
  ...
);

PHP3 was a definite improvement.

-- 
Robin Vickery.................................................
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE




Check this out :

http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1785

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 8:14 PM
To: PHP User Group
Subject: [PHP] PHP/FI what FI?


I have been using PHP for a while now and never knew what FI is, can someone
enlighten me.


Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------


-- 
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]




I cannot open files outside of the directory which my script is in.
I'm not sure how to fix this on my server. It is a Windows NT Netscape 
server. If anyone knows how to fix this help would be appreciated.


Here is the error code that I keep getting.

Warning: fopen("d:/www/www/ome/faid/newsitems/news.txt","r") - No 
such process in d:/www/ome/faid/new.php on line 67

Thanks again

--Joe
http://www.koston.net










Have you tried replacing the "/" with "\" like:

d:\www\www\ome\faid\newsitems\news.txt

I am pretty sure it should work now.

Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
-------------------------------------------- 

-----Original Message-----
From: Joe [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Problems With Fopen


I cannot open files outside of the directory which my script is in.
I'm not sure how to fix this on my server. It is a Windows NT Netscape 
server. If anyone knows how to fix this help would be appreciated.


Here is the error code that I keep getting.

Warning: fopen("d:/www/www/ome/faid/newsitems/news.txt","r") - No 
such process in d:/www/ome/faid/new.php on line 67

Thanks again

--Joe
http://www.koston.net







-- 
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]





>   I would like to use a Perl Program to call PHP to do sth. Could I do that?
>   Also, could I use PHP program to call a Perl Program?
>
You could just run the command using the system() function.

http://www.php.net/manual/en/function.system.php

- Jamie





Hi everyone!
I have a little problem ...
I installed the expat library for PHP3. it supplies to PHP a XML parser.
My next step was try to install Sablot library. This library supposedly
provide to PHP the power of XSL stylesheet but it ins't work!...why? because
I have PHP3! and Sablot library work with PHP4>=4.0.3


My question:

Is there any way of to use PHP3 with XSL?
can anyone help me?

thanks!

Nicolas.





Anybody have a sample contract they could share that could be tweaked to
be used between a PHP developer and a business client?

Not looking for a non-disclosure contract, I have one of those.  Just
looking for a "I'll do this and you'll do that, I'll get this and you'll
get that" type of contract.

Posting it might be helpful for others on the list too.

TIA

kind regards,

bill





It seems that mail($recipient, $subject, $content) has no place to specify 
the sender's email address. Does anyone know how to specify the sender's 
email address?

Thanks,
David
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





Try this

mail($recipient,"subject","

$content

","From: $sender\nReply-To: $sender\nX-Mailer: PHP/" . phpversion());

Hope this helps

Thank you
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.com
1-800-269-6397

-----Original Message-----
From: david klein [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 12:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how to specify the sender email address in the mail()
function?


It seems that mail($recipient, $subject, $content) has no place to specify 
the sender's email address. Does anyone know how to specify the sender's 
email address?

Thanks,
David
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
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]







You specify that in the additional headers field.

http://www.php.net/manual/en/function.mail.php

John

> -----Original Message-----
> From: david klein [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] how to specify the sender email address in the mail()
> function?
> 
> 
> It seems that mail($recipient, $subject, $content) has no place 
> to specify 
> the sender's email address. Does anyone know how to specify the sender's 
> email address?
> 
> Thanks,
> David
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> -- 
> 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]
> 




I want to use PHP to build a script that would run from the comand line. Now 
me problem is how do I make PHP interpretate a chunk of text that is piped to 
it?
Lets say my script is named script1.php and I do:

$ less file1 | script1.php

just like if I send variables with info with a put in the apache module 
version.
How do I get that output?

Saludos... :-)

-- 
System Administration: It's a dirty job, 
but someone told I had to do it.
-----------------------------------------------------------------
Martín Marqués                  email:  [EMAIL PROTECTED]
Santa Fe - Argentina            http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------




"Martin A. Marques" <[EMAIL PROTECTED]> wrote:
> Lets say my script is named script1.php and I do:
> 
> $ less file1 | script1.php

$fp = fopen( 'php://stdin', 'r' );

Then use the standard file handling functions to access the piped data.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/ 





  #!/path/to/php -q
  <?

  $fp = fopen('/dev/stdin','r');

  if($fp)
  {
    while(!feof($fp))
    {
      $line = trim(fgets($fp,4096));
    }
  }

  ?>

  chmod +x script.php


--Joe

On Fri, Feb 02, 2001 at 04:36:48PM -0300, Martin A. Marques wrote:
> I want to use PHP to build a script that would run from the comand line. Now 
> me problem is how do I make PHP interpretate a chunk of text that is piped to 
> it?
> Lets say my script is named script1.php and I do:
> 
> $ less file1 | script1.php
> 
> just like if I send variables with info with a put in the apache module 
> version.
> How do I get that output?
> 
> Saludos... :-)
> 
> -- 
> System Administration: It's a dirty job, 
> but someone told I had to do it.
> -----------------------------------------------------------------
> Martín Marqués                        email:  [EMAIL PROTECTED]
> Santa Fe - Argentina          http://math.unl.edu.ar/~martin/
> Administrador de sistemas en math.unl.edu.ar
> -----------------------------------------------------------------
> 
> -- 
> 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]

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------





I'm opening the files in a directory, and trying to find the most 
recent modification date. The problem is that I'm getting the date 
of 12/31/1969 for all my files, and when I try to print out the modification 

timestamp from filemtime directly I get nothing.

If you look at the code you can see. Nothing is printed out at print 
$fileDate. 
It is a windows NT system could this be the problem. Having troubles 
with the UNIX timestamp?

while (false!=($file = readdir($handle))) { // read all files in dir 
        
        if ($file != "." && $file != "..") { // only if file is not . or .. 
                $fileDate = filemtime($file); // get date from file 
                $newDate = filemtime($newFile); // get date from newFile 

                print $fileDate;
                
                if ($newDate < $fileDate) { // if file is newer 
                        $newFile = $file; // replace newFile with newer file 
                } 
        } 
}










Not sure, but I think NT may not report the last modified data resulting in
a unixtime of 0 which would be 12/31/1969 I believe.

> -----Original Message-----
> From: Joe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Windows Time modification 12/31/1969???
>
>
> I'm opening the files in a directory, and trying to find the most
> recent modification date. The problem is that I'm getting the date
> of 12/31/1969 for all my files, and when I try to print out the
> modification
>
> timestamp from filemtime directly I get nothing.
>
> If you look at the code you can see. Nothing is printed out at print
> $fileDate.
> It is a windows NT system could this be the problem. Having troubles
> with the UNIX timestamp?
>
> while (false!=($file = readdir($handle))) { // read all files in dir
>
>       if ($file != "." && $file != "..") { // only if file is not . or ..
>               $fileDate = filemtime($file); // get date from file
>               $newDate = filemtime($newFile); // get date from newFile
>
>               print $fileDate;
>
>               if ($newDate < $fileDate) { // if file is newer
>                       $newFile = $file; // replace newFile with
> newer file
>               }
>       }
> }
>
>
>
>
>
>
>
> --
> 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]
>





Hello

Sorry if this is a little off subject, but I am working on a php script that
changes the CSS of all the pages in a web site.  I was wondering if in CSS
you could make a CSS that made all text a certain color and size. not
including links and form objects

Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------





Yes....

just include this tag in the head of you HTML
<LINK HREF="style.css" type="text/css" rel="stylesheet">


then call this style.css
A:link { color: #660000; font-size: 9pt; font-family: Verdana, Helvetica,
Arial; }
A:active { color: black; font-size: 9pt; font-family: Verdana, Helvetica,
Arial; }
A:visited { color: #660000; font-size: 9pt; font-family: Verdana, Helvetica,
Arial; }
A:hover { color: black; font-size: 9pt; font-family: Verdana, Helvetica,
Arial; }

DIV.topright { color: #000000; font-size: 9pt; face: Verdana, Helvetica,
Arial; }
P.main { text-indent: 1em; color: #660000; font-size: 9pt; face: Verdana,
Helvetica, Arial; }
P.titlebar { text-indent: 2em; color: #660000; font-size: 9pt; face:
Verdana, Helvetica, Arial; }

BODY { background: #660000; font-size: 9pt; font-family: Verdana, Arial,
Helvetica, sans-serif; font-color="#660000";  }
FONT.titlebar { color: #660000; font-weight: 700; font-size: 45pt;
font-family: Garamond, Verdana, Helvetica;}
I { color: #660000; font-size: 20pt; font-family: times new roman,
Helvetica;  }
B { color: #660000; font-size: 20pt; font-family: times new roman, Arial,
Verdana, Helvetica, Arial;}

this is a sample from one of my sites...it changes everything in the body
tag and the links will change too....the FONT.titlebar will change anything
that has a class="titlebar" tag in the HTML (eg. <font class="titlebar"> )

hope this helps....here is an example of changing the link color based on
story.
http://konversion.thekult.org
mouse around a little. you'll see what I mean...

nixter
-----------------------------------------------------------
Nick.Stankus
Software Engineer
Logicon/Sterling Federal
402-232-7870
-----------------------------------------------------------
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein

----- Original Message -----
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 2:37 PM
Subject: [PHP] CSS with PHP


| Hello
|
| Sorry if this is a little off subject, but I am working on a php script
that
| changes the CSS of all the pages in a web site.  I was wondering if in CSS
| you could make a CSS that made all text a certain color and size. not
| including links and form objects
|
| Thank you,
|
| --------------------------------------------
| Brandon Orther
| WebIntellects Design/Development Manager
| [EMAIL PROTECTED]
| 800-994-6364
| www.webintellects.com
| --------------------------------------------
|
|
| --
| 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]





Hello

Has anyone coded a calendar using PHP? when click a date in the calendar,it
will sotre the date in a database.
Thanks.

Fang





Search for "php calendar" on freshmeat.net

--Joe

On Fri, Feb 02, 2001 at 04:28:37PM -0500, Fang Li wrote:
> Hello
> 
> Has anyone coded a calendar using PHP? when click a date in the calendar,it
> will sotre the date in a database.
> Thanks.
> 
> Fang
> 
> 
> -- 
> 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]

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------






anyone have example code of a change password script in php?

<-----CoreComm-Internet-Services--http://core.com/----->
(Jon Marshall                 CoreComm Services Chicago)
([EMAIL PROTECTED]         Systems Engineer II)
([EMAIL PROTECTED]                   Network Operations)
<-----Enthalpy.org------------http://enthalpy.org/----->
([EMAIL PROTECTED]             The World of Nothing)
<------------------------------------------------------>





DB password or unix password?

--Joe

On Fri, Feb 02, 2001 at 03:38:15PM -0600, enthalpy wrote:
> 
> anyone have example code of a change password script in php?
> 
> <-----CoreComm-Internet-Services--http://core.com/----->
> (Jon Marshall                 CoreComm Services Chicago)
> ([EMAIL PROTECTED]         Systems Engineer II)
> ([EMAIL PROTECTED]                   Network Operations)
> <-----Enthalpy.org------------http://enthalpy.org/----->
> ([EMAIL PROTECTED]             The World of Nothing)
> <------------------------------------------------------>
> 
> 
> -- 
> 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]

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------






sorry for the generalization. im looking to change a unix password.

<-----CoreComm-Internet-Services--http://core.com/----->
(Jon Marshall                 CoreComm Services Chicago)
([EMAIL PROTECTED]         Systems Engineer II)
([EMAIL PROTECTED]                   Network Operations)
<-----Enthalpy.org------------http://enthalpy.org/----->
([EMAIL PROTECTED]             The World of Nothing)
<------------------------------------------------------>

On Fri, 2 Feb 2001, Joe Stump wrote:

> DB password or unix password?
> 
> --Joe
> 
> On Fri, Feb 02, 2001 at 03:38:15PM -0600, enthalpy wrote:
> > 
> > anyone have example code of a change password script in php?
> > 
> > <-----CoreComm-Internet-Services--http://core.com/----->
> > (Jon Marshall                 CoreComm Services Chicago)
> > ([EMAIL PROTECTED]         Systems Engineer II)
> > ([EMAIL PROTECTED]                   Network Operations)
> > <-----Enthalpy.org------------http://enthalpy.org/----->
> > ([EMAIL PROTECTED]             The World of Nothing)
> > <------------------------------------------------------>
> > 
> > 
> > -- 
> > 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]
> 
> -- 
> 
> -------------------------------------------------------------------------------
> Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
> http://www.miester.org http://www.care2.com                                 /\\
> "It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
> -------------------------------------------------------------------------------
> 
> 
> -- 
> 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]
> 
> 





Not unless passwd takes stdin (which i don't think it does)

--Joe

On Fri, Feb 02, 2001 at 04:07:47PM -0600, enthalpy wrote:
> 
> sorry for the generalization. im looking to change a unix password.
> 
> <-----CoreComm-Internet-Services--http://core.com/----->
> (Jon Marshall                 CoreComm Services Chicago)
> ([EMAIL PROTECTED]         Systems Engineer II)
> ([EMAIL PROTECTED]                   Network Operations)
> <-----Enthalpy.org------------http://enthalpy.org/----->
> ([EMAIL PROTECTED]             The World of Nothing)
> <------------------------------------------------------>
> 
> On Fri, 2 Feb 2001, Joe Stump wrote:
> 
> > DB password or unix password?
> > 
> > --Joe
> > 
> > On Fri, Feb 02, 2001 at 03:38:15PM -0600, enthalpy wrote:
> > > 
> > > anyone have example code of a change password script in php?
> > > 
> > > <-----CoreComm-Internet-Services--http://core.com/----->
> > > (Jon Marshall                 CoreComm Services Chicago)
> > > ([EMAIL PROTECTED]         Systems Engineer II)
> > > ([EMAIL PROTECTED]                   Network Operations)
> > > <-----Enthalpy.org------------http://enthalpy.org/----->
> > > ([EMAIL PROTECTED]             The World of Nothing)
> > > <------------------------------------------------------>
> > > 
> > > 
> > > -- 
> > > 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]
> > 
> > -- 
> > 
> > -------------------------------------------------------------------------------
> > Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
> > http://www.miester.org http://www.care2.com                                 /\\
> > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
> > -------------------------------------------------------------------------------
> > 
> > 
> > -- 
> > 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]
> > 
> > 
> 

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------





On Fri, 2 Feb 2001 14:13:50 -0800, Joe Stump
([EMAIL PROTECTED]) wrote:
>Not unless passwd takes stdin (which i don't think it does)

It does, but php would have to be running as root, which is a bad
idea.

>--Joe
>
>On Fri, Feb 02, 2001 at 04:07:47PM -0600, enthalpy wrote:
>>
>> sorry for the generalization. im looking to change a unix
password.
>>
>> <-----CoreComm-Internet-Services--http://core.com/----->
>> (Jon Marshall                 CoreComm Services Chicago)
>> ([EMAIL PROTECTED]         Systems Engineer II)
>> ([EMAIL PROTECTED]                   Network Operations)
>> <-----Enthalpy.org------------http://enthalpy.org/----->
>> ([EMAIL PROTECTED]             The World of Nothing)
>> <------------------------------------------------------>
>>
>> On Fri, 2 Feb 2001, Joe Stump wrote:
>>
>> > DB password or unix password?
>> >
>> > --Joe
>> >
>> > On Fri, Feb 02, 2001 at 03:38:15PM -0600, enthalpy wrote:
>> > >
>> > > anyone have example code of a change password script in php?
>> > >
>> > > <-----CoreComm-Internet-Services--http://core.com/----->
>> > > (Jon Marshall                 CoreComm Services Chicago)
>> > > ([EMAIL PROTECTED]         Systems Engineer II)
>> > > ([EMAIL PROTECTED]                   Network Operations)
>> > > <-----Enthalpy.org------------http://enthalpy.org/----->
>> > > ([EMAIL PROTECTED]             The World of Nothing)
>> > > <------------------------------------------------------>
>> > >
>> > >
>> > > --
>> > > 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: php-list-
>>[EMAIL PROTECTED]
>> >
>> > --
>> >
>> >
-----------------------------------------------------------------
>>--------------
>> > Joe Stump, PHP Hacker, [EMAIL PROTECTED]                 
>>           -o)
>> > http://www.miester.org http://www.care2.com                 
>>           /\\
>> > "It's not enough to succeed. Everyone else must fail" -- Larry
>>Ellison     _\_V
>> >
-----------------------------------------------------------------
>>--------------
>> >
>> >
>> > --
>> > 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: php-list-
>>[EMAIL PROTECTED]
>> >
>> >
>>
>
>--
>
>---------------------------------------------------------------------

>----------
>Joe Stump, PHP Hacker, [EMAIL PROTECTED]                     
>       -o)
>http://www.miester.org http://www.care2.com                     
>       /\\
>"It's not enough to succeed. Everyone else must fail" -- Larry
>Ellison     _\_V
>---------------------------------------------------------------------

>----------
>
>
>--
>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: php-list-
>[EMAIL PROTECTED]







yea thats what i was thiking is there anyway to use soemting like suexec?

<-----CoreComm-Internet-Services--http://core.com/----->
(Jon Marshall                 CoreComm Services Chicago)
([EMAIL PROTECTED]         Systems Engineer II)
([EMAIL PROTECTED]                   Network Operations)
<-----Enthalpy.org------------http://enthalpy.org/----->
([EMAIL PROTECTED]             The World of Nothing)
<------------------------------------------------------>

On Fri, 2 Feb 2001, Mark Maggelet wrote:

> On Fri, 2 Feb 2001 14:13:50 -0800, Joe Stump 
> ([EMAIL PROTECTED]) wrote:
> >Not unless passwd takes stdin (which i don't think it does)
> 
> It does, but php would have to be running as root, which is a bad 
> idea.
> 
> >--Joe
> >
> >On Fri, Feb 02, 2001 at 04:07:47PM -0600, enthalpy wrote:
> >> 
> >> sorry for the generalization. im looking to change a unix 
> password.
> >> 
> >> <-----CoreComm-Internet-Services--http://core.com/----->
> >> (Jon Marshall                 CoreComm Services Chicago)
> >> ([EMAIL PROTECTED]         Systems Engineer II)
> >> ([EMAIL PROTECTED]                   Network Operations)
> >> <-----Enthalpy.org------------http://enthalpy.org/----->
> >> ([EMAIL PROTECTED]             The World of Nothing)
> >> <------------------------------------------------------>
> >> 
> >> On Fri, 2 Feb 2001, Joe Stump wrote:
> >> 
> >> > DB password or unix password?
> >> > 
> >> > --Joe
> >> > 
> >> > On Fri, Feb 02, 2001 at 03:38:15PM -0600, enthalpy wrote:
> >> > > 
> >> > > anyone have example code of a change password script in php?
> >> > > 
> >> > > <-----CoreComm-Internet-Services--http://core.com/----->
> >> > > (Jon Marshall                 CoreComm Services Chicago)
> >> > > ([EMAIL PROTECTED]         Systems Engineer II)
> >> > > ([EMAIL PROTECTED]                   Network Operations)
> >> > > <-----Enthalpy.org------------http://enthalpy.org/----->
> >> > > ([EMAIL PROTECTED]             The World of Nothing)
> >> > > <------------------------------------------------------>
> >> > > 
> >> > > 
> >> > > -- 
> >> > > 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: php-list-
> >>[EMAIL PROTECTED]
> >> > 
> >> > -- 
> >> > 
> >> > 
> -----------------------------------------------------------------
> >>--------------
> >> > Joe Stump, PHP Hacker, [EMAIL PROTECTED]                     
> >>           -o)
> >> > http://www.miester.org http://www.care2.com                     
> >>           /\\
> >> > "It's not enough to succeed. Everyone else must fail" -- Larry 
> >>Ellison     _\_V
> >> > 
> -----------------------------------------------------------------
> >>--------------
> >> > 
> >> > 
> >> > -- 
> >> > 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: php-list-
> >>[EMAIL PROTECTED]
> >> > 
> >> > 
> >> 
> >
> >-- 
> >
> >---------------------------------------------------------------------
> 
> >----------
> >Joe Stump, PHP Hacker, [EMAIL PROTECTED]                         
> >       -o)
> >http://www.miester.org http://www.care2.com                         
> >       /\\
> >"It's not enough to succeed. Everyone else must fail" -- Larry 
> >Ellison     _\_V
> >---------------------------------------------------------------------
> 
> >----------
> >
> >
> >-- 
> >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: php-list-
> >[EMAIL PROTECTED]
> 
> 
> 





While we are on the subject,
I made some tests with Apache logs and it seems that Apache writes the size
of the file that you are DL to the log file at the beginning of the
transfer. So if you 
are DL a 1MB file apache will write that you have DL a 1MB file and it
doesn't
reflect weather you stopped the DL in the middle. From it's point of view
you asked
for a 1MB file and you got it... so checking the log file will not work.

berber

-----Original Message-----
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 12:44 PM
To: Php-General
Subject: [PHP] File Download Completion


Is it possible to find out if a client finished to DL a file?

Suppose i put a link to a file and people start to DL the file.
Some people can stop the DL in the middle. I need to know
how many people completed the DL.

Any simple ideas how to do this?

thanks

berber

-- 
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]




Guys,

I don't believe that there is any question today that IIS5 on win2K
is the best webserver $$$ can buy.

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Dan Malcolm [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 2:32 PM
To: Tom Mathews
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Re: [PHP-WIN] For My Information


Tom,
Thanks.  I believe myaccess2000_1_4 is one of the ones I've tried.  I'll try
again to make sure I didn't miss anything. I used dbtools to do the dBase
conversion.


Agree that the older versions of IIS were crap, but newer one (version 3 and
4) seems to be pretty good.

Dan
----- Original Message -----
From: "Tom Mathews" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 6:09 AM
Subject: Re: [PHP-WIN] For My Information


> 1) I think that people use Apache as old versions of IIS were crap. In
addition, it is about the widest used server out there in the commercial
world (Linux running Apache with PHP3 is I believe the most common config at
the moment) so if you're developing something to put on such a site, it's
more likely to work if you develop with something close to that setup (note
probs with case sensititivity and so on on with Apache that won't necesarily
be exposed on IIS)
>
> 2) Check out the MySQL (www.mysql.com) site and look to download
myaccess2000_1_4.zip, this is an Access plug-in that someone has kindly
written to convert data and structure from Access 2000 MDB to MySQL (I've
not tried them, but I think it also allows dbase conversion and a few
others).
>
> Tom
>
> Dan Malcolm wrote:
>
> > I see in the posts, that a lot of people are using Apache on NT instead
of the built in IIS.  Is there a reason?  I have PHP up and running with
dBase tables converted to MySQL and ODBC connected to Access 2000, on an NT
4 box with IIS 4 and it runs very well.  Performance is great.  My only
problem is automating the conversion to update tables in MySQL.  I would
like like to convert the Access 2000 tables also but the converters either
don't seem to work with Access 2k, or not much at all, or are not such that
a timed batch file can be generated using them.  I just looked at what I've
written and it's a little jumbled.  Mega-Sigh.  Let me summarize.
> >
> >   1.. Why Apache on NT 4.0?
> >   2.. Is there a good way to automatically convert Access 2000 to MySQL
to keep MySQL data up to date?  The data needs to be updated several times a
week.  No I can't just switch everything over and not have to convert again.
> >   3.. A way to do #2 for dBase would be good too, but less critical
because the data only gets updated every couple months.
> > Thanks in advance.
> >
> > Dan Malcolm
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
>
>


----------------------------------------------------------------------------
----


> --
> PHP Windows 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 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]




I looked through the archives and couldn't find anything on this.

I have a web form which takes 9 values to create a definition for a table
that would have up to 9 columns.

I made the table so that each form field is submitted as an array so that I
can simply step through each value and create the table definition, so:

<input type=text name="tblcol[]">  (duplicated 9 times)

Now, when I submit the form the resulting array always has 9 elements and
some of those will be empty.

I would like to do error checking in case people didn't fill anything at all
so I thought using if (!count($tblcol)) {.... But that doesn't work since it
always has 9 elements.

Is there a way to find out if an array contains no values even though it has
elements?  Sort of like a trim() function on an array to destroy the
elements in the array that are empty.

Is it possible?
-- 

Thomas Deliduka
IT Manager
     -------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/






On Fri, 02 Feb 2001 17:31:43 -0500, Thomas Deliduka
([EMAIL PROTECTED]) wrote:
>I looked through the archives and couldn't find anything on this.
>
>I have a web form which takes 9 values to create a definition for a
>table
>that would have up to 9 columns.
>
>I made the table so that each form field is submitted as an array so
>that I
>can simply step through each value and create the table definition,
>so:
>
><input type=text name="tblcol[]">  (duplicated 9 times)
>
>Now, when I submit the form the resulting array always has 9
>elements and
>some of those will be empty.
>
>I would like to do error checking in case people didn't fill
>anything at all
>so I thought using if (!count($tblcol)) {.... But that doesn't work
>since it
>always has 9 elements.
>
>Is there a way to find out if an array contains no values even
>though it has
>elements?  Sort of like a trim() function on an array to destroy the
>elements in the array that are empty.
>
>Is it possible?

while(list($key,$value)=each($array)){
        if(empty($value)) unset $array[$key];
}





On 2/2/01 5:34 PM this was written:

> while(list($key,$value)=each($array)){
> if(empty($value)) unset $array[$key];
> }

Sweet! Thanks, that was easy.
-- 

Thomas Deliduka
IT Manager
     -------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/






Lets just say I'm glad you posted that on a Windows list :P

I personally find Apache more stable, less mem hogging, and as its what is
used on linux machines, I know that my PHP code CAN work on any platform ;)
And ... yuo say 'best that money can buy' ... I hope you know the price of
Apache? www.apache.org ....

Sure, it doesn't have a nice wee GUI, but after 20 mins reading a FAQ sheet
you can do anything that IIS can, plus more.

BUT, you're entitled to your own opinion, as is everyone :)

Siggy

----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "'Dan Malcolm'" <[EMAIL PROTECTED]>; "Tom Mathews"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 03, 2001 11:23 AM
Subject: [PHP-WIN] RE: [PHP] Re: [PHP-WIN] For My Information


> Guys,
>
> I don't believe that there is any question today that IIS5 on win2K
> is the best webserver $$$ can buy.
>
> Sincerely
>
>       berber
>
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
>
>
> -----Original Message-----
> From: Dan Malcolm [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 2:32 PM
> To: Tom Mathews
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Re: [PHP-WIN] For My Information
>
>
> Tom,
> Thanks.  I believe myaccess2000_1_4 is one of the ones I've tried.  I'll
try
> again to make sure I didn't miss anything. I used dbtools to do the dBase
> conversion.
>
>
> Agree that the older versions of IIS were crap, but newer one (version 3
and
> 4) seems to be pretty good.
>
> Dan
> ----- Original Message -----
> From: "Tom Mathews" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, February 02, 2001 6:09 AM
> Subject: Re: [PHP-WIN] For My Information
>
>
> > 1) I think that people use Apache as old versions of IIS were crap. In
> addition, it is about the widest used server out there in the commercial
> world (Linux running Apache with PHP3 is I believe the most common config
at
> the moment) so if you're developing something to put on such a site, it's
> more likely to work if you develop with something close to that setup
(note
> probs with case sensititivity and so on on with Apache that won't
necesarily
> be exposed on IIS)
> >
> > 2) Check out the MySQL (www.mysql.com) site and look to download
> myaccess2000_1_4.zip, this is an Access plug-in that someone has kindly
> written to convert data and structure from Access 2000 MDB to MySQL (I've
> not tried them, but I think it also allows dbase conversion and a few
> others).
> >
> > Tom
> >
> > Dan Malcolm wrote:
> >
> > > I see in the posts, that a lot of people are using Apache on NT
instead
> of the built in IIS.  Is there a reason?  I have PHP up and running with
> dBase tables converted to MySQL and ODBC connected to Access 2000, on an
NT
> 4 box with IIS 4 and it runs very well.  Performance is great.  My only
> problem is automating the conversion to update tables in MySQL.  I would
> like like to convert the Access 2000 tables also but the converters either
> don't seem to work with Access 2k, or not much at all, or are not such
that
> a timed batch file can be generated using them.  I just looked at what
I've
> written and it's a little jumbled.  Mega-Sigh.  Let me summarize.
> > >
> > >   1.. Why Apache on NT 4.0?
> > >   2.. Is there a good way to automatically convert Access 2000 to
MySQL
> to keep MySQL data up to date?  The data needs to be updated several times
a
> week.  No I can't just switch everything over and not have to convert
again.
> > >   3.. A way to do #2 for dBase would be good too, but less critical
> because the data only gets updated every couple months.
> > > Thanks in advance.
> > >
> > > Dan Malcolm
> > > [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > PHP Windows 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 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 Windows 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]
>
>





Web Developers,

I know this has nothing to do with PHP, but some bright minds out there might have run 
across it. It's about Netscape 6 mouseovers.

I've read elsewhere that Netscape 6 has problems with preloading images. I have 
confirmed this time and time again, but have not been able to come to any viable 
solutions. Nor have I been able to find a posted solution or a documented workaround 
anywhere on the web. Has anyone here found a workaround for this bug that will prevent 
Netscape from causing mouseover images (which were preloaded) to stop disappearing 
from the screen when you roll over them too quickly. They aren't just made invisible, 
they are actually gone.

I'm fine with the new DOM as it makes sense to start complying to the standards, it 
needs to be done. However, mouseovers are one of the most basic features of JavaScript 
that every site on the web uses so there really should be a way to successfully code 
mouseovers into a web page without worrying about them disappearing. Talk about a web 
site navigation nightmare.

I have like mostly everything about Netscape 6 except this little "feature" and I'm 
about to give up on the browser because of it. If anyone has found a way around this I 
would really appreciate knowing how you dealt with it.

Thanks,
Toby





I was really pleased to see that Zend had taken the new approach with
pricing and availability of the Zend IDE, and that they were offering a demo
version of the product.  I downloaded it right away and took it for a spin.

To be honest, I was pretty disappointed with the product.  While the
debugging features look great, otherwise I think the Zend IDE barely
qualifies as an Integrated Development Environment.  Aside from the debugger
and color coding, there's little offered here that I couldn't get in the
most basic of text editors.

The product I'm comparing the Zend IDE most to is Allaire's Homesite, which
we use as our primary code development tool.  From an editor standpoint,
Homesite is simply a superior product.

Here are the major areas that I feel the Zend IDE falls short:

1) No FTP integration
    This is a major blow to useability for me.  Homesite offers nearly
seamless integration with FTP servers so they appear identical to local
files.  Zend IDE doesn't appear to have any options for this at all.

2) No HTML or PHP shortcuts; lack of customizability?
    Why can't I just highlight some text and hit CTRL+B to wrap <B> tags
around my selection?  What about CTRL+P to  insert a print ""; statement?
Or F5 to insert my own code snippet?  Homesite allows us to assign any
keystroke to any tag, IDE command, or code snippet. We were able to dump
every single PHP fuction into Homesite as a code snippet, and can assign
common ones to whatever key strokes we desire.   Zend IDE doesn't seem to
offer any such feature.  This was a real disappointment.

3) No intergrated documentation (not even PHP documentation)
    Homesite allows us to add our own HTML-formatted documentation.  It
comes with extensive HTML and CFM documentation, and at least one kind
fellow converted an older set of the PHP docs to work with the Homesite help
system.  To be honest, I was *shocked* that the Zend IDE didn't offer any
sort of integrated PHP documentation, let alone the ability to roll your
own.

4) No regular expression searching/replacing.
    I use this feature frequently in Homesite, even when I'm not actually
doing development work.  Not having it means I have to jump out of the IDE
to do certain kinds of search and replace work, which sorta defeats the
whole "Integrated" part of being an IDE.

5) Very little customization ability
    I touched on this before, but want to reiterate it as its own issue.
Some basic keystroke and color coding customization is available, but all in
all the Zend IDE really compares poorly to Homesite - and from what I know,
most other popular text editors - in terms of customization.

6) Database accessSQL Query analyzer
    This is something available in projects like KphpDev, and looks really,
really useful.  I'm surprised this didn't make it into the Zend IDE, as so
much PHP development uses databases.

7) Price
    Given the small featureset, I have trouble with the cost of the Zend
IDE -- over $100 for a client license.  The debugger is great, but it's
nearly useless to me without a proper supporting set of tools.  I might be
willing to pay $25 for this per client license.

Frankly, I don't think the Zend IDE is an IDE at all -- it's basically a
simple text editor with color coding that has an integrated debugger.  I was
really expecting a lot more, given Zend's role in bringing PHP into the
"real world" of e-business.

I would like to say that I really admire what Zend is doing.  I think you
guys are on the right track.  We need the kinds of things you're
developing... but in terms of the IDE, we need a lot more to be convinced to
drop our current editors.

---------------
Ed Finkler
Supervisor of Web Development
Golden Dome Media
[EMAIL PROTECTED]
219-631-1107






Folks,

I'm unable to get exec() to start a small SAS job on my RH 6.2 box. 
(I've got file permissions set correctly)  The code:

      $command="sas -noterminal -log $SASProgDir$JobName.log ".
        " -print $SASProgDir$JobName.lst $SASProgDir$JobName.sas";
     print("Spawning '$command'<BR>\n");   // DEBUG STUFF!!!!
      $ret=exec($command, $reply);
      print("ret is '$ret'<BR>\n");   // DEBUG STUFF !!!
      if($ret) {
          print("<BR>Ouch.  There was a system error spawning the program.");
          print("<BR><B>   '$prog'</B><BR>\n");
          //print("$ret<BR>\n");
          print("<pre>\n");
          for ($i=0; $reply[$i]; $i++) {
              print("$reply[$i]\n");
          }
          print("\n</pre>\n");
          niceErrorMessage();
          exit();
      }              

Results in the following SAS error:

   ERROR: User does not have appropriate authorization level for library
   SASUSER.  
   FATAL: Unable to initialize the options subsystem.
   (SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED.
   UNABLE TO INITIALIZE THE SAS KERNEL

The command above: 
  'sas -noterminal -log /usr/local/bin/apache/cgi-bin/sas/remotejob.log
   -print /usr/local/bin/apache/cgi-bin/sas/remotejob.lst
  /usr/local/bin/apache/cgi-bin/sas/remotejob.sas'

Can be executed without error in a command shell.  Any clues as to why
PHP is choking my SAS job would be appreciated.

cur

-- 
Curt Seeliger
OAO Corporation, EPA/WED contractor
541/754-4638
[EMAIL PROTECTED]   




Is there any way for a php script to perform some task as a particular user?
Here's what I'm trying to do in particular:

I have a Linux box with a handful of users.  These users do not have shell
access, but they do have ftp (for file uploads to their web sites), pop,
imap, etc.  I'd like to provide an easy way for them to change their
passwords (at least, and possibly also edit some files like their aliases
file (virtual mail hosting) and so on).  To do this through a web interface,
I want first of all to authenticate them, then to get their new password,
say, from a form submittal, and run passwd.

Any suggestions?  Do I have to run apache as root?  (Shudder!)  Are there
packages out there that do this already, or that I could use as an example?

TIA.


Nate




"Nathaniel Hekman" <[EMAIL PROTECTED]> wrote:
> Is there any way for a php script to perform some task as a particular
user?

Install PHP as a CGI (this is actually the default install method).  When
run as a CGI, a particular PHP script will run with the permissions of the
user who owns the file.  You most likely have PHP installed as an Apache
module.  You can have it installed as both an Apache module and CGI
simultaneously.  If you want to run the CGI PHP scripts via the web you'll
need to assign a different file extension than the extensions you have
assigned for the Apache module version.  ".phpc" is what I typically use.

> I'd like to provide an easy way for them to change their passwords (at
> least, and possibly also edit some files like their aliases file (virtual
mail
> hosting) and so on).

Another alternative would be to insert the user input into a database or a
text file and then run a cron job [as frequently as you need] as root to
check the db or file for changes and then update the necessary files.

--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/





When I installed activestate perl from a cdrom,  it was an automatic install,  did all 
the
reg entries, etc.

I am somewhat of a newbie and am deathly afraid of going into the registry to install 
PHP.

I do have remote access to unix servers with php, but having it on my pc would be 
nice, too.

Is there anyone with an auto install program for win32 pws on php,  which has advanced 
beyond beta?

TIA,

Patrick L.
www.choozart.com







These directions worked for me using PWS 4 on Win98SE:

  http://www.php.net/manual/install-windows95-nt.php

Previously, Patrick L. said:
> When I installed activestate perl from a cdrom,  it was an automatic
> install,  did all the reg entries, etc.
> 
> I am somewhat of a newbie and am deathly afraid of going into the
> registry to install PHP.
> 
> I do have remote access to unix servers with php, but having it on my pc
> would be nice, too.
> 
> Is there anyone with an auto install program for win32 pws on php,  which
> has advanced beyond beta?

-- 
Dan Lowe <[EMAIL PROTECTED]>                 http://tangledhelix.com/
  
Before they invented drawing boards, what did they go back to?
                                        -George Carlin




Hi.

I working convert from VBSCRIPT source to PHP.
I found VBSCRIPT eval() same function in PHP.

example.

VBSCRIPT running...

$a = "1+2+3+4"
$b = eval ($a)

$b retunr is number 10.

What function or same method in PHP.

Thank!

E-mail: [EMAIL PROTECTED]
PHONE: +83-2-3411-4196
FAX: +83-2-3411-4009
M.PHONE; +83-16-380-6107



Reply via email to