[PHP] PGP

2001-02-02 Thread Martin Thoma

Hello !

I want to send a PGP-encrypted EMail out of a php-script. I'm a very
newbee in PGP and actual know nothing. Could someone please give me some
hints how to do it ?

Regards

Martin





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

2001-02-02 Thread Giancarlo

Can i know the date of the last table update in a Mysql database?
Thank you!!



Re: [PHP] PGP

2001-02-02 Thread Adrian Teasdale

You should find this useful :) 

http://www.phpuk.org/code.php

All the best

Ade

---  i n o v i c a . c o m  
e: [EMAIL PROTECTED]
w: http://www.inovica.com

Web Apps, virtual communities and vertical portals
Hosting and dedicated servers just around the corner
Contact us for low-cost domain name registration




- Original Message - 
From: "Martin Thoma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 8:43 AM
Subject: [PHP] PGP


> Hello !
> 
> I want to send a PGP-encrypted EMail out of a php-script. I'm a very
> newbee in PGP and actual know nothing. Could someone please give me some
> hints how to do it ?
> 
> Regards
> 
> Martin
> 
> 
> 
> 
> 
> -- 
> 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]




Re: [PHP] Automatic incoming mail notification

2001-02-02 Thread Nicolas Windpassinger - Sun

Hi guys,

ok I have had the same problem,
what you need to do, If i correctly understood,
is go in the /etc/mail/aliases file,
then write there:


you: "| /path/to/your/script.php"

and your script will begin by:


#!/path/to/php/as/a/shell  




How this works is: send an email to [EMAIL PROTECTED]
then this mail will be piped into your script.php

et voila !!

take care,
have fun,
take php,

nicolas.

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




RE: [PHP] Recommended Job Posting sites? Need to hire someone w/ PHP exp.

2001-02-02 Thread Boaz Yahav

http://www.weberdev.com

-Original Message-
From: Brian Tully [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 12:19 AM
To: PHP
Subject: [PHP] Recommended Job Posting sites? Need to hire someone w/ PHP
exp.


Hey there - 

I was wondering what the recommended sites are to post/find jobs related to
web development - especially PHP.  The sites I've visited list mostly ASP
and Java related jobs so I'm wondering where do the PHP folks go to find
opportunities. While I'm not looking for a PHP expert, I'm looking for
someone with good web skills and has at least some PHP experience (as well
as the desire to learn more!). I'd appreciate any recommendations/advice.

Thanks in advance,
brian


-- 
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] Apache won't start after installing php4

2001-02-02 Thread Frank Passek

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]




[PHP] Zend IDE

2001-02-02 Thread Alain Fontaine

Hi,

Does anyone know how I can 'tell' the Zend IDE to actually use Swiss-French
keyboard layout instead of french? I know it's related to Java thinking as
I'm living in Belgium, I must have a french keyboard layout. Yet, I don't,
and I can't type correctly now :)

Oh, by the way... Zend IDE for Windows is written in Java. Microsoft is
dumping Java completely. Find the mistake.

Thanks for helping me out.



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




Re: [PHP] reload help!!!

2001-02-02 Thread Wen Ni Leong

Can you please explain more detail because I'm new in Javascript and
PHP?  How should I write my coding in order to target the parent
window?  I am trying so many ways but I'm still can't manage to do it.

Please help me again.

This is in Parent window.  The delete buttons are looping buttons.

 Delete button in parent window
  print "\n";
  


#
In child window have two delete buttons:

###
function delopt()
###
{
global $h,$newbutton,$doc_var,$count,$doc_no,$doc_rev,$flow_no;

$db = mysql_select_db("tkenet_db");

print "
 
PMP Document Approval
 
 \n";
  print " \n";
 print "function confirm_del()
   {
 if(confirm('Are you sure you want to delete!'))
   {self.location.href=\"URL\"}
   else
 {return false;}
 
}\n";
print "\n";

print" 
 
 Delete Option
 
 
   Delete Link = Delete the document number in the textbox
   Delete All = Delete the document number in all tables
 
 
 
 
 
 
   
   
 
   


\n";
}




John Luxford wrote:
> 
> Could you not just set the target in the new window form to the name of
> the parent window, and use an onsubmit="window.close ()" to lose the
> popup as well?
> 
> Lux
> 
> Wen Ni Leong wrote:
> 
> > I am not sure whether this is related to PHP.  I'm using PHP and
> >
> > Javascript to do my program.
> >
> > I have some problem with my reloading parent window.
> >
> >
> >
> > In my program, I have a delete button which will pop up a child window
> >
> > once the user clicked the button.  In the child window will have two
> >
> > option of delete buttons.
> >
> > Once the user clicked either one button, i want the child window to be
> >
> > close and at the same time the parent window will reload.  How should I
> >
> > do this.
> >
> > Please give some advise or tips to me.
> >
> >
> >
> > 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]




[PHP] passing parameters

2001-02-02 Thread Stinie Steinbach

does anyone know what's wrong with this files?
i want to pass the parameter $module_id from one file tot the next so
that i can extract all records from my tables in the mysql database that
have this parameter... the queries that i used are tested and are
working correctly... at this moment i cant see waht i do wrong.. does
anyone know an answer tot my problem? if you need tot know more about
the result look at my url.. please help me

http://stuwww.kub.nl/~s695645/TIAS/

file test_blok_array.php3



 BLOK
0$module_nummer | ";
}
?>

file test_list.php3






 
 
  submodule
  onderdeel
  docent
  datum
  dagdeel
  edit
  delete
 


 $submodule_nummer
 $submodule_naam
 $docent_naam
 $datum
 $dagdeel
   edit

  delete

 \n";
}



Re: [PHP] passing parameters

2001-02-02 Thread Alain Fontaine

Rule #1:
Do not post your database credentials into newsgroups.
Rule #2:
See Rule #1



"Stinie Steinbach" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> does anyone know what's wrong with this files?
> i want to pass the parameter $module_id from one file tot the next so
> that i can extract all records from my tables in the mysql database that
> have this parameter... the queries that i used are tested and are
> working correctly... at this moment i cant see waht i do wrong.. does
> anyone know an answer tot my problem? if you need tot know more about
> the result look at my url.. please help me
>
> http://stuwww.kub.nl/~s695645/TIAS/
>
> file test_blok_array.php3
>
> 
>
>  $result = mysql_query ("select m.module_id,m.module_nummer
>from module m, leergang l where m.leergang_afkorting =
> l.leergang_afkorting
>and m.leergang_afkorting = 'EDP16' order by m.module_nummer");
> while (list ($module_id,$module_nummer) = mysql_fetch_row ($result)) {
>
>  echo " BLOK
> 0$module_nummer | ";
> }
> ?>
>
> file test_list.php3
>
> 
>
> 
> 
>
>  
>  
>   submodule
>   onderdeel
>   docent
>   datum
>   dagdeel
>   edit
>   delete
>  
>
>  mysql_connect ("kubstu.kub.nl","s695645","BikHuis");
> mysql_select_db ("s695645");
> $result = mysql_query ("SELECT
>
u.module_id,u.submodule_nummer,u.submodule_naam,d.docent_naam,s.dagdeel,s.da
tum,u.submodule_id,u.submodule_id
>
>FROM submodule u, sessie s, docent d, module m
>WHERE u.module_id = '$module_id'
>AND d.docent_nummer = s.docent_nummer
>AND u.submodule_id = s.submodule_id
>AND m.module_id = u.module_id
>AND m.leergang_afkorting = 'EDP16'
>ORDER BY s.datum, u.submodule_nummer");
> while (list ($module_id, $submodule_nummer, $submodule_naam,
> $docent_naam, $dagdeel, $datum, $submodule_id, $submodule_id) =
> mysql_fetch_row ($result)) {
> echo   " 
>  $submodule_nummer
>  $submodule_naam
>  $docent_naam
>  $datum
>  $dagdeel
>edit
> 
>   href=\"delete.php3?submodule_id=$submodule_id\"> delete
> 
>  \n";
> }
>



-- 
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] Could PHP connect to Perl Program

2001-02-02 Thread kn4279

Dear Sir,
  Would you mind solving my problem?
  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?

Thank you very much,
Kevin


===
·s®ö§K¶O¹q¤l¶l½c http://sinamail.sina.com.hk 


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




Re: [PHP] [Q] Domxml: unlink() method?

2001-02-02 Thread Peter Sabaini

On Thu, Feb 01, 2001 at 09:13:34PM +0200, Teodor Cimpoesu wrote:
> 
> 
> Peter Sabaini wrote:
> > 
> > hello,
> > 
> > i am rather desperately trying to figure out how to delete a node
> > object from the DOM.
> > 
> > say i have a node $node by manually traversing the DOM tree or by an
> > xpath_eval() function call. i can access the children
> > ($node->children()) or the parent ($node->parent()) or add a sub-node
> > ($node->new_child()) but there seems to be no $node->unlink() or
> > something like that to remove $node from my DOM tree.
> > 
> > in libxml which the php domxml extension is built upon there's a
> > function xmlUnlinkNode() which seems to do just that, but there is no
> > binding for this function in php (or i didn't find it. i looked in
> > ext/domxml/php_domxml.c).
> > 
> > any solutions / workarounds / patches anyone? or am i being plain
> > dumb -- i am pretty a php novice so chances are i overlooked the very
> > very obvious.
> > 
> I've been playing w/ DOM XML extension for my documentation catalog 
> (docs.digiro.net still work in progress ;), and my first shot would be
> to unset the node from the children list of its parent. I also dig for
> what
> methods a DomNode, DomAttribute etc. have and figured out some. I would
> like 
> to see them documented somewhere ...
> 
> -- teodor

hi teodor && all, 

thanks but i am not sure how to accomplish this. 

eg. if i do:

$kids = $parent->children();
$node_to_delete = $kids[0];
unset($node_to_delete);

 -- this won't cut it because i would just unset $node_to_delete,
right?

i am not entirely sure what the children() method returns but i guess
it is a reference into the tree and unset()ting the reference wont buy
me anything. as far as i understand php and references, that is. this
would only work if children() would return a true pointer, i think.

any further suggestions? i really need this; if i wasnt such a poor c
programmer i'd implement it myself...

tia,
peter. 

-- 
Peter Sabaini [EMAIL PROTECTED]
NETCONOMY Onlineberatungs- und -management Gmbh & Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081.



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




Re: [PHP] Zend IDE

2001-02-02 Thread Andi Gutmans

Alain,

Have you tried changing your keyboard layout in the Windows Control-Panel 
to Swiss-French?
As far as I know, Java uses your systems keyboard layout.

Java will be supported by other vendors such as Sun & IBM on Windows so I 
wouldn't worry about it ;)
And of course our aim is to support UNIX platforms such as Linux which also 
have Java support.

Andi

At 10:43 AM 2/2/2001 +0100, Alain Fontaine wrote:
>Hi,
>
>Does anyone know how I can 'tell' the Zend IDE to actually use Swiss-French
>keyboard layout instead of french? I know it's related to Java thinking as
>I'm living in Belgium, I must have a french keyboard layout. Yet, I don't,
>and I can't type correctly now :)
>
>Oh, by the way... Zend IDE for Windows is written in Java. Microsoft is
>dumping Java completely. Find the mistake.
>
>Thanks for helping me out.
>
>
>
>--
>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] JavaScript, PHP and HTML

2001-02-02 Thread Augusto Cesar Castoldi

I have a .html page, that is "called" (openfile)  by .php script. I did
that to the designer have more freedon.

But know I want to but an JavaScript to verify if a date/hour is a valid
format for MySQL.

Where should I put the JavaScript? In .php or .html?

Or I should check the date and hour on .php script?

thanks,

Augusto Cesar Castoldi


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




RE: [PHP] Zend IDE

2001-02-02 Thread Alain Fontaine

Hi Andi,

Yes, of course my keyboard layout is set to swiss-french in Windows, or I
couldn't use my keyboard at all. The problem only applies to Java software,
actually, and not only to Zend IDE as far as I can see. Fact is, however,
that my "Regional Settings" are set to "French". I guess the JRE is looking
for that setting and deducts the keyboard layout from it, instead of
actually using the "keyboard layout" setting, which -is- set to SF.

Maybe there is some config file or so that allows me to manually set the
keyboard layout to be used by the Java runtime environment ?

> -Message d'origine-
> De : Andi Gutmans [mailto:[EMAIL PROTECTED]]
> Envoye : vendredi 2 fevrier 2001 12:08
> A : Alain Fontaine; [EMAIL PROTECTED]
> Objet : Re: [PHP] Zend IDE
>
>
> Alain,
>
> Have you tried changing your keyboard layout in the Windows Control-Panel
> to Swiss-French?
> As far as I know, Java uses your systems keyboard layout.
>
> Java will be supported by other vendors such as Sun & IBM on Windows so I
> wouldn't worry about it ;)
> And of course our aim is to support UNIX platforms such as Linux
> which also
> have Java support.
>
> Andi
>
> At 10:43 AM 2/2/2001 +0100, Alain Fontaine wrote:
> >Hi,
> >
> >Does anyone know how I can 'tell' the Zend IDE to actually use
> Swiss-French
> >keyboard layout instead of french? I know it's related to Java
> thinking as
> >I'm living in Belgium, I must have a french keyboard layout.
> Yet, I don't,
> >and I can't type correctly now :)
> >
> >Oh, by the way... Zend IDE for Windows is written in Java. Microsoft is
> >dumping Java completely. Find the mistake.
> >
> >Thanks for helping me out.
> >
> >
> >
> >--
> >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]




Re: [PHP] Tab character

2001-02-02 Thread Martin A. Marques

El Jue 01 Feb 2001 13:49, Alexander Skwar escribió:
> So sprach Martin A. Marques am Thu, Feb 01, 2001 at 12:20:54PM -0300:
> > yes (depending)
>
> On what?

It depends on the charset you use.

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 - Argentinahttp://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]




Re: [PHP] JavaScript, PHP and HTML

2001-02-02 Thread Juan

ACC> But know I want to but an JavaScript to verify if a date/hour is a valid
ACC> format for MySQL.
ACC> Where should I put the JavaScript? In .php or .html?
Well you could actually put it in both, although it is easier to put
it the html since it avoids too much embeding.

ACC> Or I should check the date and hour on .php script?
It also depends.
The good thing about checking it with javascript is
that you are on the client side, therefore there are no query sent to
your server. If you use Javascript that also means the user doesn't
get sent to a page checking validity.
If you check it with Php that means the information is submitted to
the page and you treat it afterwards.

___
Massuelles Jean-Baptiste([EMAIL PROTECTED])
Société A Comme...
Tel : 03 80 700 702



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




Re: [PHP] Zend IDE

2001-02-02 Thread Zeev Suraski

At 11:43 2/2/2001, Alain Fontaine wrote:
>Oh, by the way... Zend IDE for Windows is written in Java. Microsoft is
>dumping Java completely. Find the mistake.

The Zend IDE is written in Java, period;  You may consider this a mistake 
if you're not fond of Java, but this has nothing to do with Microsoft 
dumping Java (and switching to a Java clone called C#) for marketing and 
courtroom reasons.

The same binaries are used for the Windows version and the Linux version, 
and it actually delivers Java's promise of platform independence.

Zeev


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




RE: [PHP] Zend IDE

2001-02-02 Thread Alain Fontaine

Hi again,


I just checked the Sun "bugParade", and this is a known bug (for over three
releases now). Swing components don't get the correct keyboard layout; they
assume that the keyboard layout matches the locale setting, which is,
obviously, utter nonsense.

I guess this means that the Zend IDE is not useable by anyone who uses a
keyboard layout that is a bit "special", e.g.:

* Luxembourg: most of them use french locale, but swiss-french or german
keyboard layout
* Belgium: some use french locale, some use dutch locale, some with french
layout, some with american layout, even some with UK layout.
* etc.

"Java - write once, run anywhere". Shouldn't this rather be: "Java - be sure
to use an US keyboard!" ? ;)

> -Message d'origine-
> De : Andi Gutmans [mailto:[EMAIL PROTECTED]]
> Envoye : vendredi 2 fevrier 2001 12:08
> A : Alain Fontaine; [EMAIL PROTECTED]
> Objet : Re: [PHP] Zend IDE
>
>
> Alain,
>
> Have you tried changing your keyboard layout in the Windows Control-Panel
> to Swiss-French?
> As far as I know, Java uses your systems keyboard layout.
>
> Java will be supported by other vendors such as Sun & IBM on Windows so I
> wouldn't worry about it ;)
> And of course our aim is to support UNIX platforms such as Linux
> which also
> have Java support.
>
> Andi
>
> At 10:43 AM 2/2/2001 +0100, Alain Fontaine wrote:
> >Hi,
> >
> >Does anyone know how I can 'tell' the Zend IDE to actually use
> Swiss-French
> >keyboard layout instead of french? I know it's related to Java
> thinking as
> >I'm living in Belgium, I must have a french keyboard layout.
> Yet, I don't,
> >and I can't type correctly now :)
> >
> >Oh, by the way... Zend IDE for Windows is written in Java. Microsoft is
> >dumping Java completely. Find the mistake.
> >
> >Thanks for helping me out.
> >
> >
> >
> >--
> >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]




Re: [PHP] Include " quotes inside textbox

2001-02-02 Thread Christian Reiniger

On Thursday 01 February 2001 19:07, Karl J. Stubsjoen wrote:

> I'm trying to pass back a link to the user in a textbox (so they can
> copy and paste it elsewhere), however my textbox is being parsed
> incorrectly by the browser because of the " quotes which happen in the
> link I'm passing - basically the HTML for the text box is getting
> parsed together with the HTML for the passed link and  the results
> are messed up.

I think you want to use htmlentities ():

echo "" . 
  htmlentities ($Content) . "";

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

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




Re: [PHP] JavaScript, PHP and HTML

2001-02-02 Thread kaab kaoutar


hi!
if u wanna use javascript the code should be added in html!
but it's better to use php for checking date and hour !
As long  as u use php technologie get rid of these client side stuff till 
it's necessary!

cheers

>From: Augusto Cesar Castoldi <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] JavaScript, PHP and HTML
>Date: Fri, 2 Feb 2001 09:16:00 -0200 (EDT)
>
>I have a .html page, that is "called" (openfile)  by .php script. I did
>that to the designer have more freedon.
>
>But know I want to but an JavaScript to verify if a date/hour is a valid
>format for MySQL.
>
>Where should I put the JavaScript? In .php or .html?
>
>Or I should check the date and hour on .php script?
>
>thanks,
>
>Augusto Cesar Castoldi
>
>
>--
>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]
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] PHP configure commandline

2001-02-02 Thread indrek siitan

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]




Re: [PHP] How do I get last inserted ID?

2001-02-02 Thread Andrew Golovin

Hello, Sandeep!

Friday, February 02, 2001, 08:43:41, you wrote:

SH> just a quick question. Say my script is inserting values into a
SH> database, which has an autoincremental id. Now I usually send out a
SH> mail also with the contents of the inserted stuff. The only problem
SH> is that of the ID field. How can I get the script to determine what
SH> id number was given to that row?
for mysql there is a function called mysql_insert_id(). that
function returns the ID generated for an AUTO_INCREMENT column by
the previous INSERT query.

try to dig documentation if you using another db.

Best regards!
Andrew Golovin
PGP Fingertip 24FD A0CD 667C 1FC7 C2F7  A2EA 9742 D484 FD3C 598D
http://exper.ural.ru/ 



-- 
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] For My Information

2001-02-02 Thread Dan Malcolm

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]




RE: [PHP] For My Information

2001-02-02 Thread Jon Haworth

Over 60% of websites use Apache. Many people using MySQL and PHP also run
Apache for the complete open source solution. This is cheap to set up, and
easy to get support for (there's even a mailing list called AMP -
Apache/MySQL/PHP). And, IIRC, those on NT 4.0 Workstation don't *have* IIS.

It's easy to configure and maintain, is constantly being upgraded and
bug-fixed, and has tons of support and reference online.

Just my 0.02 euros, obviously.

Cheers
Jon


-Original Message-
From: Dan Malcolm [mailto:[EMAIL PROTECTED]]
Sent: 02 February 2001 11:49
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] For My Information


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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [PHP-WIN] For My Information

2001-02-02 Thread Tom Mathews

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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] Re: [PHP-WIN] For My Information

2001-02-02 Thread Dan Malcolm

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]




Re: [PHP] contracting & consulting (was "[PHP] Pricing for PHP programming???")

2001-02-02 Thread Robin Vickery

> "SW" == "Steve Werby" <[EMAIL PROTECTED]> writes:
 > "Benjamin Munoz" <[EMAIL PROTECTED]> wrote:
 >> Great thread. When I was changing jobs in April of 2000, a
 >> recruiter told  me
 >> that PHP is "cool and all", but there is zero demand for
 >> developers of PHP web apps (in Los Angeles).

 > Interesting.  We're located in [not very large, but high
 > tech/internet concentration] Charlottesville, Virginia and there's
 > a pretty significant demand for PHP-based apps and websites.

 >> A search today
 >> on monster.com for ASP in LA yields 142 listings, Java yields 262,
 >> JSP yields 32, Perl yields 105, PHP yields 16, cold fusion yields
 >> 16.

 > Odd.  My search on monster.com for "php" turned up 324 listings.  I
 > *wish* there were less - we have listings 135 and 136 and have not
 > found the right candidate yet.

OK, a quick search on jobserve.com (mainly UK based jobs) threw up
52 contract and 282 permanent job postings mentioning PHP within the
last five days.

I've not noticed any problem at all in getting PHP jobs in London.
Although I've not tried contracting yet.

ContractorUK (http://www.contractoruk.co.uk/data-web.html) has a
table of contractor rates which ranks PHP at number 15 in order
of earning power at 44.31 GBP/hour (approx $65). Perl is number 6
at 52.66 GBP/hour (approx $78), just below Java at 54.32 GBP/hour.

Talking to the Perl and PHP Contractors that I know, they tell me
these rates are at the lower/middle end of the range. And speaking
from personal experience, previous companies I've worked for have
regularly charged out my time at over double those rates (not that
I see anything near that money myself). London rates tend to be
higher than in civilized places, as with all things.

(Brief history: 
 I learnt various fun, but not particularly commercial languages at Uni. 
 Picked up Perl while working in a Sysadmin role, then PHP/FI when roped 
 into developing a website. I converted to PHP3 with some relief as soon 
 as it came out and now most of my work is in PHP4 and Perl.)


-robin

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




Re: [PHP] Win2000 TCP/IP failure

2001-02-02 Thread Alain Fontaine

Hi,

This looks rather like a problem with your TCP/IP stack. Any changes made to
the w2k network configuration recently?


"Toby Butzon" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Greetings,
>
> I've run into a problem on my Win2k computer running IIS5 and PHP
> 404pl1. I've got a page set up to pull a page from CNN.com, parse it for
> headlines, and print the results in an organized table of links.
> Everything's been working fine since the beginning of January, but
> suddenly it dies with a PHP warning and my die() message:
>
> 
> Warning: fopen("http://www.cnn.com/desktop/content.html","r") - No error
> in _file_extract.php on line 5
> 
> Unable to open http://www.cnn.com/desktop/content.html
>
> The line that's generating the error looks like this:
> $file = fopen($url, "r") or die("Unable to open $url");
>
> So I figured maybe something was up with my fopen()... but apparently
> not. I also have the same page connecting to the mysql server on
> localhost to request a list of my reminders & tasks that need to be
> done. However, connecting to the db server (on localhost) also dies with
> the following:
>
> 
> Warning: MySQL Connection Failed: Can't create TCP/IP socket (10091) in
> basic_functions.php on line 9
> 
> Error: basic_functions.php:9
>
> Unable to connect to database
>
> So now I'm completely stumped. I haven't changed anything as far as the
> scripting on the page goes. I've tried rebooting (seems a likely
> solution for windows, but it didn't work :/), I upgraded to the latest
> PHP (I had been running 403), and even using the ISAPI module instead of
> the CGI...
>
> My apologies if it's obvious and I'm just not seeing it. Any ideas?
>
> --Toby Butzon
>
> --
> 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 Digest 2 Feb 2001 13:01:55 -0000 Issue 488

2001-02-02 Thread php-general-digest-help


php-general Digest 2 Feb 2001 13:01:55 - Issue 488

Topics (messages 37764 through 37827):

Re: What version of Linux?
37764 by: Michael Hall

Re: encode string with spaces
37765 by: David Robley
37768 by: David Robley

Win2000 TCP/IP failure
37766 by: Toby Butzon
37827 by: Alain Fontaine

Re: C++ integration with PHP
37767 by: Toby Butzon

Re: contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")
37769 by: Dave VanAuken
37770 by: Ben Peter
37771 by: Maxim Maletsky
37775 by: Steve Werby
37826 by: Robin Vickery

Re: Java variables - PHP varialbles
37772 by: Nold, Mark

Php Database
37773 by: Vinicius Garcia Mommensohn

Re: Why?? SPRINTF("SELECT sequence,prodnum,childdesc);
37774 by: Steve Werby

Re: PHP a lightweight language?
37776 by: Nold, Mark
37783 by: John Hinsley
37784 by: Josh G

How do I get last inserted ID?
3 by: Sandeep Hundal
37778 by: Maxim Maletsky
37779 by: David Robley
37821 by: Andrew Golovin

Re: Pricing for PHP programming???
37780 by: Steve Werby
37781 by: Josh G
37786 by: Josh G
37797 by: Angus Mann

Re:What version of Linux?
37782 by: John Hinsley

Re: Message status - undeliverable
37785 by: Josh G

OT mod_rewrite says goodbye to POST vars (but interesting)
37787 by: Matt Friedman

Re: 404 error checker
37788 by: Louis LeBlanc

Automatic incoming mail notification
37789 by: Ankur Verma
37790 by: Josh G
37791 by: David Robley
37792 by: Ankur Verma
37793 by: Steve Werby
37802 by: Nicolas Windpassinger - Sun

how do I subscribe?
37794 by: David VanHorn
37795 by: Maxim Maletsky

Re: Variables within functions, out?
37796 by: Steve Werby

configuring headers in mail() ...
37798 by: Maxim Maletsky

PGP
37799 by: Martin Thoma
37801 by: Adrian Teasdale

Mysql Question
37800 by: Giancarlo

Re: Recommended Job Posting sites? Need to hire someone w/ PHP exp.
37803 by: Boaz Yahav

Apache won't start after installing php4
37804 by: Frank Passek

Zend IDE
37805 by: Alain Fontaine
37811 by: Andi Gutmans
37813 by: Alain Fontaine
37816 by: Zeev Suraski
37817 by: Alain Fontaine

Re: reload help!!!
37806 by: Wen Ni Leong

passing parameters
37807 by: Stinie Steinbach
37808 by: Alain Fontaine

Could PHP connect to Perl Program
37809 by: kn4279

Re: [Q] Domxml: unlink() method?
37810 by: Peter Sabaini

JavaScript, PHP and HTML
37812 by: Augusto Cesar Castoldi
37815 by: Juan
37819 by: kaab kaoutar

Re: Tab character
37814 by: Martin A. Marques

Re: Include " quotes inside textbox
37818 by: Christian Reiniger

PHP configure commandline
37820 by: indrek siitan

For My Information
37822 by: Dan Malcolm
37823 by: Jon Haworth

Re: [PHP-WIN] For My Information
37824 by: Tom Mathews
37825 by: Dan Malcolm

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]


--




Almost any distribution should work OK. I use Red Hat on one of my old
486 machines ... it is slow but it works. Given the machine
you're  working with, the main issue is I think optimising or customising
whatever distribution you do use to improve performance.

Mick

On Thu, 1 Feb 2001, Andrés de la Varga 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?
> 
> Andrés de la Varga.
> 
> 
> 
> -- 
> 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 Fri,  2 Feb 2001 11:22, Kevin McCarthy wrote:
> All -
>
> Any easy way to take a string and fill the spaces in it? Say like a
> URLencoding:
>
> This is my dog, Jack
> becomes
> This%20is%20my%20dog,%20Jack
>
> I ask this as I would like to send a string to a perl function that can
> parse the string and create a hash from it based on delimiters I define.
> But if there are spaces in the string in between defined fields, it is
> thrown off.
>
> BTW, I tried both ereg_replace() and str_replace() with no luck as below:
>
> $my_string = "This is my dog, Jack";
> str_replace(" ", "%20", $my_string);
>
> $my_string remains with spaces, not %20s.
>
> Thanks.
>
>
>
> Kevin McCarthy

rawurlencode seems to be what you want if you want %20; or see urlencode 
which uses + for space char

Re: [PHP] PHP configure commandline

2001-02-02 Thread Alain Fontaine

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]




Re: [PHP] PHP configure commandline

2001-02-02 Thread Alain Fontaine

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



-- 
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-CVS] cvs: php4 /ext/mnogosearch README php_mnogo.c test.php

2001-02-02 Thread Sergey Kartashoff

gluke   Fri Feb  2 04:54:15 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   README php_mnogo.c test.php 
  Log:
  Added new UDM_PARAM_STOPTABLE and UDM_PARAM_STOPFILE parameters
  for Udm_Set_Agent_Params mnoGoSearch module. Now it can use stopwords
  stored either in database or in the plain text files. Added php warnings.
  Test example updated.
  @- Added new UDM_PARAM_STOPTABLE and UDM_PARAM_STOPFILE parameters
  @  for Udm_Set_Agent_Params mnoGoSearch module. Now it can use stopwords
  @  stored either in database or in the plain text files. Added php warnings.
  @  Test example updated. (gluke)
  
  

Index: php4/ext/mnogosearch/README
diff -u php4/ext/mnogosearch/README:1.2 php4/ext/mnogosearch/README:1.3
--- php4/ext/mnogosearch/README:1.2 Wed Jan 31 06:04:29 2001
+++ php4/ext/mnogosearch/README Fri Feb  2 04:54:14 2001
@@ -1,7 +1,7 @@
 $Source: /local/repository/php4/ext/mnogosearch/README,v $
-$Id: README,v 1.2 2001/01/31 14:04:29 gluke Exp $
+$Id: README,v 1.3 2001/02/02 12:54:14 gluke Exp $
 
-mnoGoSearch extension module version 0.3 for PHP4.
+mnoGoSearch extension module for PHP4.
 Basic mnoGoSearch function implementation.
 
 If used with mysql you should not use bundled mysql library 
@@ -12,8 +12,7 @@
   TODO
   
 
-1. Implement more UdmSearch functions. Only basic minimal functions
-set is implemented for now.
+1. Implement more UdmSearch functions.
 
 2. Fix  config.m4 to detect whether UdmSearch is actually installed.
 Currently there is no any checking. ./configure just trust that UdmSearch
@@ -24,6 +23,3 @@
   Actually it should work fine with other supported database.
 
 4. Write PHP interface documentation.
-
-5. Add nice warnings when unknown parameters are passed to PHP functions.
-Those places are marked with FIXME is php_udm.c
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.3 php4/ext/mnogosearch/php_mnogo.c:1.4
--- php4/ext/mnogosearch/php_mnogo.c:1.3Thu Feb  1 05:06:25 2001
+++ php4/ext/mnogosearch/php_mnogo.cFri Feb  2 04:54:14 2001
@@ -1,5 +1,5 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.3 2001/02/01 13:06:25 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.4 2001/02/02 12:54:14 gluke Exp $ */
 
 /*
+--+
@@ -48,6 +48,8 @@
 #define UDM_PARAM_CACHE_MODE   4
 #define UDM_PARAM_TRACK_MODE   5
 #define UDM_PARAM_CHARSET  6
+#define UDM_PARAM_STOPTABLE7
+#define UDM_PARAM_STOPFILE 8
 
 #define UDM_TRACK_ENABLED  1
 #define UDM_TRACK_DISABLED 0
@@ -128,6 +130,8 @@
REGISTER_LONG_CONSTANT("UDM_PARAM_CACHE_MODE",UDM_PARAM_CACHE_MODE,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_TRACK_MODE",UDM_PARAM_TRACK_MODE,CONST_CS | 
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_CHARSET",UDM_PARAM_CHARSET,CONST_CS | 
CONST_PERSISTENT);  
+   REGISTER_LONG_CONSTANT("UDM_PARAM_STOPTABLE",UDM_PARAM_STOPTABLE,CONST_CS | 
+CONST_PERSISTENT);  
+   REGISTER_LONG_CONSTANT("UDM_PARAM_STOPFILE",UDM_PARAM_STOPFILE,CONST_CS | 
+CONST_PERSISTENT);

/* udm_get_res_param constants */
REGISTER_LONG_CONSTANT("UDM_PARAM_FOUND",UDM_PARAM_FOUND,CONST_CS | 
CONST_PERSISTENT);
@@ -285,7 +289,8 @@
break;

default:
-   RETURN_STRING("",1);
+   
+php_error(E_WARNING,"Udm_Set_Agent_Param: Unknown search mode");
+   RETURN_FALSE;
break;
}

@@ -303,7 +308,8 @@

default:
Agent->cache_mode=UDM_CACHE_DISABLED;
-   RETURN_STRING("",1);
+   php_error(E_WARNING,"Udm_Set_Agent_Param: 
+Unknown cache mode");
+   RETURN_FALSE;
break;
}

@@ -320,7 +326,8 @@
break;

default:
-   RETURN_STRING("",1);
+   php_error(E_WARNING,"Udm_Set_Agent_Param: 
+Unknown track mode");
+   RETURN_FALSE;
break;
}

@@ -332,34 +339,26 @@
 
break;

-   default:
-   RETURN_STRING("",1);
- 

[PHP] Zend Debug Server

2001-02-02 Thread Milan Mlynarcik

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

Milan Mlynarcik



[PHP] Future plans (4.1) ?

2001-02-02 Thread Robert Mena

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/

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




Re: [PHP] Future plans (4.1) ?

2001-02-02 Thread Rasmus Lerdorf

> 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


-- 
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-CVS] cvs: php4 /ext/standard string.c

2001-02-02 Thread Rasmus Lerdorf

rasmus  Fri Feb  2 05:47:02 2001 EDT

  Modified files:  
/php4/ext/standard  string.c 
  Log:
  Fix strip_tags to not strip a lone > character
  @ Fix strip_tags to not strip a lone > character (Rasmus)
  
  
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.186 php4/ext/standard/string.c:1.187
--- php4/ext/standard/string.c:1.186Mon Jan 22 13:39:55 2001
+++ php4/ext/standard/string.c  Fri Feb  2 05:47:02 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: string.c,v 1.186 2001/01/22 21:39:55 andrei Exp $ */
+/* $Id: string.c,v 1.187 2001/02/02 13:47:02 rasmus Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -2800,6 +2800,8 @@
state = 0;
tp = tbuf;
}
+   } else {
+   *(rp++) = c;
}
break;
 



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




Re: [PHP] Apache won't start after installing php4

2001-02-02 Thread Rasmus Lerdorf

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


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




Re: [PHP] Why?? SPRINTF("SELECT sequence,prodnum,childdesc....);

2001-02-02 Thread Christian Reiniger

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

--
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] pg_Exec: Warning: 1 is not a valid PostgreSQL link resource.

2001-02-02 Thread Evelio Martinez

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='xx' 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





[PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu

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]




Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Zeev Suraski

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/


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




Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Zeev Suraski

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/


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




Re: [PHP] Retrieve HTML page

2001-02-02 Thread Shaun Thomas

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. ThomasINN 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  |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



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




RE: [PHP] Zend Debug Server

2001-02-02 Thread Steve Haemelinck

With the following standard script:



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


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




Re: [PHP] ini_get() vs. get_cfg_var()

2001-02-02 Thread Teodor Cimpoesu

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

-- 
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] Do you know what Inter process communication (IPC) is?

2001-02-02 Thread Paul K Egell-Johnsen

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/

-- 
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] Chopping up a comand line return.

2001-02-02 Thread stankusn

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 perlbut 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 = "$filename";
}

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]




Re: [PHP] Re:What version of Linux?

2001-02-02 Thread Christian Reiniger

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

--
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] Apache Directory Browsing OT

2001-02-02 Thread Matt Williams

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]




[PHP-CVS] cvs: php4 /ext/com typedef_VARIANT.c

2001-02-02 Thread Harald Radi

phanto  Fri Feb  2 07:01:48 2001 EDT

  Modified files:  
/php4/ext/com   typedef_VARIANT.c 
  Log:
  correct phpinfo() output
  
Index: php4/ext/com/typedef_VARIANT.c
diff -u php4/ext/com/typedef_VARIANT.c:1.3 php4/ext/com/typedef_VARIANT.c:1.4
--- php4/ext/com/typedef_VARIANT.c:1.3  Mon Jan 29 18:09:38 2001
+++ php4/ext/com/typedef_VARIANT.c  Fri Feb  2 07:01:48 2001
@@ -50,7 +50,9 @@
 
 static PHP_MINFO_FUNCTION(VARIANT)
 {
-   DISPLAY_INI_ENTRIES();
+   php_info_print_table_start();
+   php_info_print_table_row(2, "VARIANT support", "enabled");
+   php_info_print_table_end();
 }
 
 zend_module_entry VARIANT_module_entry = {



-- 
PHP CVS 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] Gzip compression

2001-02-02 Thread David VanHorn


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:








Current status.











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


Here is the contents of gzdoc.php.

\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



-- 
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] duplicate entries in mysql column

2001-02-02 Thread Pascal Romain

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]

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




Re: [PHP] configuring headers in mail() ...

2001-02-02 Thread Christian Reiniger

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

> FROM: "J-Door Newsletter" < [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] " 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

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




Re: [PHP] Tab character

2001-02-02 Thread Christian Reiniger

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

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




Re: [PHP] Chopping up a comand line return.

2001-02-02 Thread Juan

Try this :

 ".$buffer."";}
 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 perlbut 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 = "$filename";
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



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




Re: [PHP] Gzip compression

2001-02-02 Thread David VanHorn

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



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




Re: [PHP] Future plans (4.1) ?

2001-02-02 Thread Christian Reiniger

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

--
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-CVS] cvs: php4 /ext/dotnet dotnet.cpp

2001-02-02 Thread Harald Radi

phanto  Fri Feb  2 07:02:05 2001 EDT

  Modified files:  
/php4/ext/dotnetdotnet.cpp 
  Log:
  correct phpinfo() output
  
Index: php4/ext/dotnet/dotnet.cpp
diff -u php4/ext/dotnet/dotnet.cpp:1.3 php4/ext/dotnet/dotnet.cpp:1.4
--- php4/ext/dotnet/dotnet.cpp:1.3  Mon Jan 29 13:54:45 2001
+++ php4/ext/dotnet/dotnet.cpp  Fri Feb  2 07:02:04 2001
@@ -37,7 +37,7 @@
 extern "C" {  /* this should be included in the includes itself !! */
 
 #include "php.h"
-#include "php_ini.h"
+#include "ext/standard/info.h"
 
 }
 
@@ -179,15 +179,13 @@
{NULL, NULL, NULL}
 };
 
-
 static PHP_MINFO_FUNCTION(DOTNET)
 {
-   DISPLAY_INI_ENTRIES();
+   php_info_print_table_start();
+   php_info_print_table_row(2, "DOTNET support", "enabled");
+   php_info_print_table_end();
 }
 
-PHP_INI_BEGIN()
-PHP_INI_END()
-
 PHP_MINIT_FUNCTION(DOTNET)
 {
 
@@ -197,7 +195,6 @@
if (FAILED(hr)) return hr;
 
php_register_DOTNET_class();
-   REGISTER_INI_ENTRIES();
return SUCCESS;
 }
 
@@ -206,7 +203,6 @@
 {
dotnet_term();
CoUninitialize();
-   UNREGISTER_INI_ENTRIES();
return SUCCESS;
 }
 



-- 
PHP CVS 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] array VS object?

2001-02-02 Thread Larry Hotchkiss

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]




[PHP-CVS] cvs: php4 /ext/iisfunc .cvsignore setup.c

2001-02-02 Thread Harald Radi

phanto  Fri Feb  2 07:03:32 2001 EDT

  Modified files:  
/php4/ext/iisfunc   setup.c .cvsignore 
  Log:
  correct phpinfo() output
  
Index: php4/ext/iisfunc/setup.c
diff -u php4/ext/iisfunc/setup.c:1.1 php4/ext/iisfunc/setup.c:1.2
--- php4/ext/iisfunc/setup.c:1.1Sun Oct 22 16:06:05 2000
+++ php4/ext/iisfunc/setup.cFri Feb  2 07:03:32 2001
@@ -15,7 +15,7 @@
| Authors: Frank M. Kromann <[EMAIL PROTECTED]>  |
+--+
 */
-/* $Id: setup.c,v 1.1 2000/10/22 23:06:05 fmk Exp $ */
+/* $Id: setup.c,v 1.2 2001/02/02 15:03:32 phanto Exp $ */
 
 #ifdef COMPILE_DL_IISFUNC
 #define HAVE_IISFUNC 1
@@ -93,7 +93,7 @@
 PHP_MINFO_FUNCTION(iisfunc)
 {
php_info_print_table_start();
-   php_info_print_table_header(2, "IIS Admin Functions support", "enabled");
+   php_info_print_table_row(2, "IIS Admin Functions support", "enabled");
 
php_info_print_table_end();
 }
Index: php4/ext/iisfunc/.cvsignore
diff -u php4/ext/iisfunc/.cvsignore:1.2 php4/ext/iisfunc/.cvsignore:1.3
--- php4/ext/iisfunc/.cvsignore:1.2 Tue Nov 14 06:32:58 2000
+++ php4/ext/iisfunc/.cvsignore Fri Feb  2 07:03:32 2001
@@ -3,9 +3,9 @@
 *.la
 .libs
 *.plg
-Release
-Release_TS
-Debug
-Debug_TS
+IISfunc_Release
+IISfunc_Release_TS
+IISfunc_Debug
+IISfunc_Debug_TS
 .deps
-libs.mk
+libs.mk
\ No newline at end of file



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




RE: [PHP] Apache Directory Browsing OT

2001-02-02 Thread John Huggins

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


-- 
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] What In the WORLD???

2001-02-02 Thread Ben Ocean

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:

 >>>
$ = "";
// 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 ( $ != $yy ) {  // to keep from repeating each table twice
$ = $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 $ 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 *$ = "";* 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]




[PHP] Performance question

2001-02-02 Thread Matthew Mundy

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


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




RE: [PHP] Chopping up a comand line return.

2001-02-02 Thread johnny p.

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())[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 perlbut 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 = "$filename";
> }
>
> 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]
>
>


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




Re: [PHP] Gzip compression

2001-02-02 Thread Dimitar Tsolov

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


-- 
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] Probem with headers. HELP ME!!!

2001-02-02 Thread Securez

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.



-- 
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] Problem with headers, HELP ME!!!!!

2001-02-02 Thread Securez

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.



-- 
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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c

2001-02-02 Thread Egon Schmid

eschmid Fri Feb  2 07:49:59 2001 EDT

  Modified files:  
/php4/ext/mnogosearch   php_mnogo.c 
  Log:
  Fixed protos.
  
Index: php4/ext/mnogosearch/php_mnogo.c
diff -u php4/ext/mnogosearch/php_mnogo.c:1.4 php4/ext/mnogosearch/php_mnogo.c:1.5
--- php4/ext/mnogosearch/php_mnogo.c:1.4Fri Feb  2 04:54:14 2001
+++ php4/ext/mnogosearch/php_mnogo.cFri Feb  2 07:49:58 2001
@@ -1,11 +1,11 @@
 /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.4 2001/02/02 12:54:14 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.5 2001/02/02 15:49:58 eschmid Exp $ */
 
 /*
+--+
| PHP version 4.0  |
+--+
-   | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group   |
+   | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
+--+
| This source file is subject to version 2.02 of the PHP license,  |
| that is bundled with this package in the file LICENSE, and is|
@@ -233,7 +233,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_set_agent_param(agent,var,val)
+/* {{{ proto int udm_set_agent_param(string agent, int var, string val)
Set mnoGoSearch agent session parameters */
 DLEXPORT PHP_FUNCTION(udm_set_agent_param)
 {
@@ -363,8 +363,8 @@
 /* }}} */
 
 
-/* {{{ proto int udm_find(int agent_identifier,string query)
-   perform search */
+/* {{{ proto int udm_find(int agent_identifier, string query)
+   Perform search */
 DLEXPORT PHP_FUNCTION(udm_find)
 {
pval ** yyquery, ** yyagent;
@@ -391,7 +391,7 @@
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_field(int res_identifier,int row_num,const int 
field_name)
+/* {{{ proto int udm_get_res_field(int res_identifier, int row_num, int field_name)
Fetch mnoGoSearch result field */
 DLEXPORT PHP_FUNCTION(udm_get_res_field){
pval **yyres, **yyrow_num, **yyfield_name;
@@ -440,8 +440,8 @@
 /* }}} */
 
 
-/* {{{ proto int udm_get_res_param(int res_identifier, const int param_id)
-mnoGoSearch result parameters */
+/* {{{ proto int udm_get_res_param(int res_identifier, int param_id)
+   mnoGoSearch result parameters */
 DLEXPORT PHP_FUNCTION(udm_get_res_param)
 {
pval ** yyres, ** yyparam;
@@ -474,7 +474,7 @@
 
 
 /* {{{ proto int udm_free_res(int res_identifier)
-mnoGoSearch free result */
+   mnoGoSearch free result */
 DLEXPORT PHP_FUNCTION(udm_free_res)
 {
pval ** yyres;
@@ -498,7 +498,7 @@
 
 
 /* {{{ proto int udm_errno(int agent_identifier)
-mnoGoSearch error number */
+   mnoGoSearch error number */
 DLEXPORT PHP_FUNCTION(udm_errno)
 {
pval ** yyagent;
@@ -521,7 +521,7 @@
 
 
 /* {{{ proto int udm_error(int agent_identifier)
-mnoGoSearch error message */
+   mnoGoSearch error message */
 DLEXPORT PHP_FUNCTION(udm_error)
 {
pval ** yyagent;



-- 
PHP CVS 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] Mysql Question...

2001-02-02 Thread Giancarlo

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

Bye!



Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread Siim Einfeldt aka Itpunk



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



-- 
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-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-02 Thread Rasmus Lerdorf

rasmus  Fri Feb  2 08:31:33 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Doc account for Kontra Gergely
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.70 CVSROOT/avail:1.71
--- CVSROOT/avail:1.70  Wed Jan 31 23:30:16 2001
+++ CVSROOT/avail   Fri Feb  2 08:31:32 2001
@@ -7,7 +7,7 @@
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin|qaweb
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin|phpdoc
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely|phpdoc
 avail|andrei|php-gtk
 avail|rasmus|php4/ext/aspell
 avail|andi|php4/ext/bcmath
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.200 CVSROOT/cvsusers:1.201
--- CVSROOT/cvsusers:1.200  Wed Jan 31 23:30:16 2001
+++ CVSROOT/cvsusersFri Feb  2 08:31:32 2001
@@ -249,3 +249,4 @@
 svanegmondStephen van Egmond  [EMAIL PROTECTED] BeOS 
support
 hellekin  Hellekin O. Wolf[EMAIL PROTECTED] QA
 rjs   Rainer Schaaf   [EMAIL PROTECTED]  pdflib
+kgergely  Kontra Gergely  [EMAIL PROTECTED]   
+Hungarian translation
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.71 CVSROOT/gen_acl_file.m4:1.72
--- CVSROOT/gen_acl_file.m4:1.71Wed Jan 31 23:30:16 2001
+++ CVSROOT/gen_acl_file.m4 Fri Feb  2 08:31:32 2001
@@ -3,7 +3,7 @@
 dnl PHP Developers (full access to the source trees)
 define(`php_dev', 
`php_group,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs')
 dnl PHP Documentation Group
-define(`php_doc', 
`chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin')dnl
+define(`php_doc', 
+`chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugi

Re: [PHP] contracting & consulting [Open Letter On The Situation]

2001-02-02 Thread DELAP, SCOTT F (SBCSI)

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


-- 
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] fucntion if not working bug error

2001-02-02 Thread Conover, Ryan

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

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




RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread johnny p.

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


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




Re: [PHP] What In the WORLD???

2001-02-02 Thread Ben Ocean

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 ( $ != $ ) {  // to keep from repeating each table twice
 $ = $;
<<<

where $ 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:
>
> >>>
>$ = "";
>// 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 ( $ != $yy ) {  // to keep from repeating each table twice
> $ = $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 $ 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 *$ = "";* 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]


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




Re: [PHP] Performance question

2001-02-02 Thread Steve Werby

"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.



--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.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]




Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread Steve Werby

"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.  

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


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




Re: [PHP] Chopping up a comand line return.

2001-02-02 Thread stankusn

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

foreach $filename ($files){
 print = "$filename";
}


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())[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 perlbut 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 = "$filename";
| > }
| >
| > 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]
| >
| >





Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread Wade D

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] Just installed and getting errors

2001-02-02 Thread John Halladay

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

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




RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread Jeff Oien

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]




Re: [PHP] array VS object?

2001-02-02 Thread Nathan Crause

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



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




Re: [PHP] Files only available via HTTPS

2001-02-02 Thread Nathan Crause

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]



-- 
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] Listbox Data Entry

2001-02-02 Thread iGuru

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]




RE: [PHP] Listbox Data Entry

2001-02-02 Thread Sam Masiello


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



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]


-- 
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] Data Entry From Listbox

2001-02-02 Thread iGuru

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



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




Re: [PHP] INAPPROPRIATE IOCTL ERROR

2001-02-02 Thread Nathan Crause

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



-- 
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-CVS] cvs: php4 /pear DB.php

2001-02-02 Thread Colin Viebrock

cmv Fri Feb  2 09:59:31 2001 EDT

  Modified files:  
/php4/pear  DB.php 
  Log:
  I think this should've been changed as well, right?
  
  
  
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.46 php4/pear/DB.php:1.47
--- php4/pear/DB.php:1.46   Thu Feb  1 21:24:31 2001
+++ php4/pear/DB.phpFri Feb  2 09:59:30 2001
@@ -17,7 +17,7 @@
 // |  |
 // +--+
 //
-// $Id: DB.php,v 1.46 2001/02/02 05:24:31 chagenbu Exp $
+// $Id: DB.php,v 1.47 2001/02/02 17:59:30 cmv Exp $
 //
 // Database independent query interface.
 //
@@ -218,14 +218,14 @@
 }
 
 if (is_array($options)) {
-foreach ($persistent as $option => $value) {
+foreach ($options as $option => $value) {
 $test = $obj->setOption($option, $value);
 if (DB::isError($test)) {
 return $test;
 }
 }
 } else {
-$obj->setOption('persistent', $persistent);
+$obj->setOption('persistent', $options);
 }
 $err = $obj->connect($dsninfo, $obj->getOption('persistent'));
 



-- 
PHP CVS 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] PHP/FI what FI?

2001-02-02 Thread Brandon Orther

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]




[PHP] Problems With Fopen

2001-02-02 Thread Joe

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]




Re: [PHP] Could PHP connect to Perl Program

2001-02-02 Thread Jamie Alessio

>   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


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




Re: [PHP] PHP/FI what FI?

2001-02-02 Thread Philip Olson

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


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




RE: [PHP] Problems With Fopen

2001-02-02 Thread Brandon Orther

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]


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




Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread szii

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-CVS] cvs: php4 /ext/dotnet dotnet.cpp

2001-02-02 Thread Harald Radi

phanto  Fri Feb  2 10:11:39 2001 EDT

  Modified files:  
/php4/ext/dotnetdotnet.cpp 
  Log:
  correct phpinfo() output
  
Index: php4/ext/dotnet/dotnet.cpp
diff -u php4/ext/dotnet/dotnet.cpp:1.4 php4/ext/dotnet/dotnet.cpp:1.5
--- php4/ext/dotnet/dotnet.cpp:1.4  Fri Feb  2 07:02:04 2001
+++ php4/ext/dotnet/dotnet.cpp  Fri Feb  2 10:11:38 2001
@@ -182,7 +182,7 @@
 static PHP_MINFO_FUNCTION(DOTNET)
 {
php_info_print_table_start();
-   php_info_print_table_row(2, "DOTNET support", "enabled");
+   php_info_print_table_row(2, ".NET support", "enabled");
php_info_print_table_end();
 }
 



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




Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread stankusn

Ok.I want to start doing outside (extra) contract work...independantly.
I have had only
one clientthey loved the work.and I am having problems finding
more...I think I am just not looking in the right spotwhere would be a
good spot to drum up bussinessdoesn't have to be a place onlinebut
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]




Re: [PHP] PHP/FI what FI?

2001-02-02 Thread Robin Vickery

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

-- 
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-CVS] cvs: php4 /ext/pspell pspell.c

2001-02-02 Thread Rasmus Lerdorf

rasmus  Fri Feb  2 10:28:48 2001 EDT

  Modified files:  
/php4/ext/pspellpspell.c 
  Log:
  pspell .12 fix
  @ pspell .12 fix (Hugh Jones)
  
  
Index: php4/ext/pspell/pspell.c
diff -u php4/ext/pspell/pspell.c:1.12 php4/ext/pspell/pspell.c:1.13
--- php4/ext/pspell/pspell.c:1.12   Wed Oct 25 10:43:59 2000
+++ php4/ext/pspell/pspell.cFri Feb  2 10:28:48 2001
@@ -16,7 +16,7 @@
+--+
 */
 
-/* $Id: pspell.c,v 1.12 2000/10/25 17:43:59 andrei Exp $ */
+/* $Id: pspell.c,v 1.13 2001/02/02 18:28:48 rasmus Exp $ */
 
 #define IS_EXT_MODULE
 
@@ -37,6 +37,7 @@
 #define PSPELL_BAD_SPELLERS 3L
 #define PSPELL_SPEED_MASK_INTERNAL 3L
 #define PSPELL_RUN_TOGETHER 8L
+#define USE_ORIGINAL_MANAGER_FUNCS 1L
 
 function_entry pspell_functions[] = {
PHP_FE(pspell_new,  NULL)



-- 
PHP CVS 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] XML - XSL with PHP

2001-02-02 Thread Nicolas Peralta

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.


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