php-windows Digest 16 Oct 2002 19:48:02 -0000 Issue 1391
Topics (messages 16393 through 16409):
mssql unable to load dynamic library error
16393 by: Alex
Re: Does anyone know the status of PHPDoc
16394 by: Matt Kynaston
No TrueType support in php_gd2.dll ?
16395 by: Alexander Winkler
reg expression for stripping Java scrips off HTML?
16396 by: yy_73.ukr.net
16397 by: Ignatius Reilly
History in IE
16398 by: A. Mikkelsen
16399 by: David Elliott
PHP-WIN : DCOM CALLING
16400 by: Khor Eng Poh
PHP-WIN: Handle DCOM BSTR return value
16401 by: Khor Eng Poh
printer_ functions...
16402 by: Brian McGarvie
PHP IIS Iclude
16403 by: Craig Blanzy
PHP jobs
16404 by: RS Herhuth
16405 by: Rasmus Lerdorf
16406 by: Mihail Bota
16407 by: Angie Tollerson
16408 by: Rasmus Lerdorf
16409 by: Negretti, John (CCI-San Diego)
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]
----------------------------------------------------------------------
--- Begin Message ---
Hello all!
as writen in the topic...
it cant load the php_mssql.dll
and i have no clue left what i did wrong
its PHP 4.2.3 with IIS on NT5
Thanks in advance!
Alex
--- End Message ---
--- Begin Message ---
> but http://www.callowayprints.com/phpdoc/ says they are at 2.3.5?
Interesting... I'll add that to my list of phpdocs. Since the download's a
.jar, I'd guess it's written in Java.
www.phpdoc.de - apparantly used by PEAR, scattered documentation
http://phpdocu.sourceforge.net - lots more documentation, what I'm currently
using
http://www.ez.no/article/articlestatic/35/1/42/ - eZ phpdoc, from the people
who make the eZ CMS. Looks like a proprietary syntax.
I'm interested in hearing from anyone who uses these - how widely are they
used/supported, how buggy, how well do they follow JavaDoc?
Matt
--- End Message ---
--- Begin Message ---
When using the Windows and the php_gd2.dll that comes with php 4.2.3 all
truetype function
seaze to function... can this be correct?
Has anyone gotten them to work with this dll or is there another one and if
so.. where can I get it?
Thanx for your help,
Alexander
--- End Message ---
--- Begin Message ---
Can anyone please provide me with the regular expression (Perl compatible
or posix extended, whatever), that i can use to strip off the Java script
tags and code of the HTML page. i have it 2 types:
1) <script language="javascript" src="***.js"> </script>
and
2) <script>
----------code-------- \r\n
----------code-------- \r\n
</script>
i am using preg_replace("/(?s)<script[^>]{0,}script[*\s]{0,}>/iU",
"--stripped--", $myHTMLstring) but this doesnt work properly.
respects,
YY.
--- End Message ---
--- Begin Message ---
Try:
preg_replace( "/<script.*>((.|[[:space:]])*)<\/script>/", "\\1",
$myHTMLstring )
seems to work here - applies to both cases
HTH
Ignatius
____________________________________________
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 11:44 AM
Subject: [PHP-WIN] reg expression for stripping Java scrips off HTML?
> Can anyone please provide me with the regular expression (Perl compatible
> or posix extended, whatever), that i can use to strip off the Java script
> tags and code of the HTML page. i have it 2 types:
>
> 1) <script language="javascript" src="***.js"> </script>
> and
> 2) <script>
> ----------code-------- \r\n
> ----------code-------- \r\n
> </script>
>
> i am using preg_replace("/(?s)<script[^>]{0,}script[*\s]{0,}>/iU",
> "--stripped--", $myHTMLstring) but this doesnt work properly.
>
> respects,
> YY.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi
I'm having problems vith the history in IE.
I need to go 1 back.
history.go(-1)
is there an easy way to do this in PHP ????
Anders
--- End Message ---
--- Begin Message ---
Hail A.
On 16 October 2002 at 14:38:18 +0200 (which was 13:38 where I live) A.
Mikkelsen wrote and made these points
> I'm having problems vith the history in IE.
> I need to go 1 back.
> history.go(-1)
> is there an easy way to do this in PHP ????
In short no. However you could try using the value of HTTP_REFERER
--
HAND, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| A lack of knowledge is a dangerous thing. |
--- End Message ---
--- Begin Message ---
Hi,
I hope someone could help me with this
How could I get a return value from DCOM server defined as follow
[propget, id(0x00000002)]
HRESULT _stdcall About([out, retval] BSTR * Value );
In PHP, I defined
$objApp = new COM("ComSer.Common") or die("Unable to instantiate DCOM
server");
$vVar = $objApp->About;
echo $vVar;
but it was giving me memory can't be written error.
But say if I create
$word = new COM("Word.Application");
echo $word->Version; // This works. Why?
Thanks, I'd like to appreciate your reply in advance.
Regards,
Khor
--- End Message ---
--- Begin Message ---
Hi,
I hope someone could help me with this. I have tried confirming my email addr with
php.windows newsgroup but still...ko.
How could I get a return value from DCOM server defined as follow
[propget, id(0x00000002)]
HRESULT _stdcall About([out, retval] BSTR * Value );
In PHP, I defined
$objApp = new COM("ComSer.Common") or die("Unable to instantiate DCOM server");
$vVar = $objApp->About;
echo $vVar;
but it was giving me memory can't be written error.
But say if I create
$word = new COM("Word.Application");
echo $word->Version; // This works. Why?
Thanks, I'd like to appreciate your reply in advance.
Regards,
Khor
--- End Message ---
--- Begin Message ---
I have a specific problem ;)
I have been asked if it is possible to write a 'simple' application that
will print onto Bank Cheques - they will be supplied on a continuous roll
aparently, so it'll be one cheque followed by another etc perferated
inbetween...
So my question is has anyone ever tried this or similar? or even if you
have'nt has anyone got any pointers to start me off?
Alternativley is there any software already out there?
I have been looking but can only find things like Sage, which ha all the
stock controll etc etc which is not required, the application will simple be
to take a series name's & ammount's and print the cheques...
Thanks in advance...
--- End Message ---
--- Begin Message ---
I have PHP4 running on IIS 4/NT 4.0, for the most part everythign seems ok, until i
try to use an include statment. This is a form that is suppose to call up missing.inc
when a required field is blank. Right now it doesn't display the include file it just
refreshes the index.php file.
snipit of code from index.php
<?php
if($form == "yes") {
if($FirstName == "") {include("inc\missing.inc"); exit; }
if($MiddleName == "") { $missing = "Middle Name"; include("inc\missing.inc"); exit; }
if($LastName == "") { $missing = "Last Name"; include("inc\missing.inc"); exit; }
if($CurrentStreetAddress == "") { $missing = "Current Street Address";
include("inc\missing.inc"); exit; }
if($CurrentCity == "") { $missing = "Current City"; include("inc\missing.inc"); exit;
}
if($CurrentState == "") { $missing = "Current State"; include("inc\missing.inc");
exit; }
if($CurrentZip == "") { $missing = "Current Zip"; include("inc\missing.inc"); exit; }
if($CurrentPhoneNumber == "") { $missing = "Current Phone Number";
include("inc\missing.inc"); exit; }
if($CurrentEMailAddress == "") { $missing = "Current E-mail Address";
include("inc\missing.inc"); exit; }
if($CurrentLandlordName == "") { $missing = "Current Landlord Name";
include("inc\missing.inc"); exit; }
if($CurrentLandlordPhone == "") { $missing = "Current Landlord Phone";
include("inc\missing.inc"); exit; }
if($PreviousStreetAddress == "") { $missing = "Previous Street Address";
include("inc\missing.inc"); exit; }
if($PreviousCity == "") { $missing = "Previous City"; include("inc\missing.inc");
exit; }
if($PreviousState == "") { $missing = "Previous State"; include("inc\missing.inc");
exit; }
if($PreviousZip == "") { $missing = "Previous Zip"; include("inc\missing.inc"); exit;
}
if($PreviousLandlordName == "") { $missing = "Previous Landlord Name";
include("inc\missing.inc"); exit; }
if($PreviousLandlordPhone == "") { $missing = "Previous Landlord Phone";
include("inc\missing.inc"); exit; }
if($SocialSecurityNumber == "") { $missing = "Social Security Number";
include("inc\missing.inc"); exit; }
if($MonthofBirth == "") { $missing = "Month of Birth"; include("inc\missing.inc");
exit; }
if($DayofBirth == "") { $missing = "Day of Birth"; include("inc\missing.inc"); exit; }
if($YearofBirth == "") { $missing = "Year of Birth"; include("inc\missing.inc");
exit; }
if($DriversLicenseNumber == "") { $missing = "Drivers License Number";
include("inc\missing.inc"); exit; }
if($DriversLicenseState == "") { $missing = "Drivers License State";
include("inc\missing.inc"); exit; }
Include file
<?php
echo("<center><font color='#000000' face='verdana'
size='7'><b>Oops!<br><br></font><font color='#000000' face='verdana' size='4'
class='ninept'>The $missing field was not filled out.<br><br></b></font>\n");
echo("<font color='#000000' face='verdana' size='4' class='ninept'><b>Please go <A
HREF='../creditapp.php'>back to the form</A> and fill out the $missing field. Thank
you.</b></font></center>\n");
?>
I am a total newb...this was not writen by me but i am the one responsible for getting
php working properly on this nt server...any help would be greatly appreciated.
--- End Message ---
--- Begin Message ---
I hear from a lot of different sources that PHP is the next "Big" thing. I
have been using PHP myself for some pretty serious web application
development for my current job for well over a year now. But my question is
in searching for potential PHP related employment there isn't much of
anything out there. So who is using PHP and why aren't they hiring?
R
--- End Message ---
--- Begin Message ---
They are, but personally when I hire a "PHP" programmer I don't look for
PHP skills. I look for other skills that show that the person is bright.
I can teach a moderately intelligent monkey to use PHP.
I think most people look at things too much from a tool perspective. You
don't hire a newspaper writer because his resume says he knows how to
type. You look at what he has written. He may not be able to type at
all.
-Rasmus
On Wed, 16 Oct 2002, RS Herhuth wrote:
>
> I hear from a lot of different sources that PHP is the next "Big" thing. I
> have been using PHP myself for some pretty serious web application
> development for my current job for well over a year now. But my question is
> in searching for potential PHP related employment there isn't much of
> anything out there. So who is using PHP and why aren't they hiring?
>
> R
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Nevertheless, there are two interesting points:
1. Many job ads are emphasizing the knowledge of specific
scripting/programming languages, as if the person should have unique
capabilities, as Rasmus pointed out. If the person who is applying for a
job did not
work with a specific language or he/she does not have enough experience,
his/her application may go to the trash bin immediately.
2. Are there some serious statements, documents, analyses, that show that
PHP might be the new "Big" thing, or this is just like a rumour?
Rasmus, just wondering, any species requirements from that moneky to learn
PHP? It would be interesting to see a gorrila and a lemur coding in
PHP, side by side :)
On Wed, 16 Oct 2002, Rasmus Lerdorf wrote:
> They are, but personally when I hire a "PHP" programmer I don't look for
> PHP skills. I look for other skills that show that the person is bright.
> I can teach a moderately intelligent monkey to use PHP.
>
> I think most people look at things too much from a tool perspective. You
> don't hire a newspaper writer because his resume says he knows how to
> type. You look at what he has written. He may not be able to type at
> all.
>
> -Rasmus
>
> On Wed, 16 Oct 2002, RS Herhuth wrote:
>
> >
> > I hear from a lot of different sources that PHP is the next "Big" thing. I
> > have been using PHP myself for some pretty serious web application
> > development for my current job for well over a year now. But my question is
> > in searching for potential PHP related employment there isn't much of
> > anything out there. So who is using PHP and why aren't they hiring?
> >
> > R
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--- End Message ---
--- Begin Message ---
The Major drawback I and my company has seen is this: When you acquire a
client that has heard a buzzword like "JSP" or "ASP" or "Oracle" and
they get that stuck in their head..if you can't redirect them you lose
their business. Since the market is tough right now, a company will take
what they can get. Even if that means forcing their PHPers to do a
project in VB or ASP simply because the client thinks that's what they
want. You have to be truly diversified as a programmer these days.
Especially when your company gets clients where a project has been
started by someone else but they want you to finish it. Or to fix it.
If you are lucky enough to get to have say in what a project will be
done in, by all means PHP all the way! But if you aren't, and your
client assumes anything that is free isn't stable (argh) then you are
stuck accomodating.
Last thing you wanted to know is "Learn em all!" ? HUH?
Angie Tollerson
Alliance Technologies Web Programmer
(515) 245-7628
[EMAIL PROTECTED]
>>> Mihail Bota <[EMAIL PROTECTED]> 10/16/02 01:22PM >>>
Nevertheless, there are two interesting points:
1. Many job ads are emphasizing the knowledge of specific
scripting/programming languages, as if the person should have unique
capabilities, as Rasmus pointed out. If the person who is applying for
a
job did not
work with a specific language or he/she does not have enough
experience,
his/her application may go to the trash bin immediately.
2. Are there some serious statements, documents, analyses, that show
that
PHP might be the new "Big" thing, or this is just like a rumour?
Rasmus, just wondering, any species requirements from that moneky to
learn
PHP? It would be interesting to see a gorrila and a lemur coding in
PHP, side by side :)
On Wed, 16 Oct 2002, Rasmus Lerdorf wrote:
> They are, but personally when I hire a "PHP" programmer I don't look
for
> PHP skills. I look for other skills that show that the person is
bright.
> I can teach a moderately intelligent monkey to use PHP.
>
> I think most people look at things too much from a tool perspective.
You
> don't hire a newspaper writer because his resume says he knows how
to
> type. You look at what he has written. He may not be able to type
at
> all.
>
> -Rasmus
>
> On Wed, 16 Oct 2002, RS Herhuth wrote:
>
> >
> > I hear from a lot of different sources that PHP is the next "Big"
thing. I
> > have been using PHP myself for some pretty serious web application
> > development for my current job for well over a year now. But my
question is
> > in searching for potential PHP related employment there isn't much
of
> > anything out there. So who is using PHP and why aren't they
hiring?
> >
> > R
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> Rasmus, just wondering, any species requirements from that moneky to learn
> PHP? It would be interesting to see a gorrila and a lemur coding in
> PHP, side by side :)
First, it is a given the person has significant experience with C, C++ or
Java, Perl or Python or Ruby, Apache, and XML. If the resume doesn't hit
those basic points, toss it. Next I look for interesting project
experience and pick out the people who have done things along the lines of
what my current requirements are.
-Rasmus
> On Wed, 16 Oct 2002, Rasmus Lerdorf wrote:
>
> > They are, but personally when I hire a "PHP" programmer I don't look for
> > PHP skills. I look for other skills that show that the person is bright.
> > I can teach a moderately intelligent monkey to use PHP.
> >
> > I think most people look at things too much from a tool perspective. You
> > don't hire a newspaper writer because his resume says he knows how to
> > type. You look at what he has written. He may not be able to type at
> > all.
> >
> > -Rasmus
> >
> > On Wed, 16 Oct 2002, RS Herhuth wrote:
> >
> > >
> > > I hear from a lot of different sources that PHP is the next "Big" thing. I
> > > have been using PHP myself for some pretty serious web application
> > > development for my current job for well over a year now. But my question is
> > > in searching for potential PHP related employment there isn't much of
> > > anything out there. So who is using PHP and why aren't they hiring?
> > >
> > > R
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
All,
Let me throw in my two-cents.
I have just recently switched my primary scripting language to PHP. :-) For
the past 4 years I have been dabbling with different scripting languages. I was
primarily ColdFusion then I started getting into "Miva Script". I liked the language
so much, I got a software development job at the company that actually made the
language, (Miva Corporation, www.miva.com). I was with Miva Corp. for over 2 years.
Just about every major webhost offers Miva Script. I thought Miva Script was going to
be the next BIG thing. I opposed anyone who though PHP or ColdFusion or ASP was
better. I was known as the "Miva Script Evangelist". I was young and naive. :-P
Here are the reasons why it did NOT do good, and still does not.
1. Too complicated to install on a server.
2. Not cheap.
3. Too many restrictions with the license.
4. No marketing campaigns.
5. No good resources/tutorials.
After exhaustive research to find a NEW primary scripting language, I found PHP. I
even changed my personal website (www.ideablue.com) from Miva Script to PHP. There
may not be a vast amount of PHP jobs, but there will be soon. Here's why...
1. PHP is free.
2. PHP is easy to learn.
3. Lots of resources.
Many companies are switching to PHP mostly because it's free and works so well with a
FREE database (MySQL). At large corporations there is LOTS of red tape to get through
for an approval of a "paid" software. Since PHP is free, IT managers can install PHP
without any hassles or complaints form "corporate". The internet is still young and
growing and so is the need for more "web developers" who can do more than just plain
HTML.
To all those who develop PHP, I THANK YOU ALL, for your hard work and effort to make
such a powerful language.
John Negretti
Web Applications Developer
Cox Communications www.cox.com
(619) 266-5565
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 16, 2002 11:38 AM
> To: Mihail Bota
> Cc: RS Herhuth; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP jobs
>
>
> > Rasmus, just wondering, any species requirements from that
> moneky to learn
> > PHP? It would be interesting to see a gorrila and a lemur coding in
> > PHP, side by side :)
>
> First, it is a given the person has significant experience
> with C, C++ or
> Java, Perl or Python or Ruby, Apache, and XML. If the resume
> doesn't hit
> those basic points, toss it. Next I look for interesting project
> experience and pick out the people who have done things along
> the lines of
> what my current requirements are.
>
> -Rasmus
>
> > On Wed, 16 Oct 2002, Rasmus Lerdorf wrote:
> >
> > > They are, but personally when I hire a "PHP" programmer I
> don't look for
> > > PHP skills. I look for other skills that show that the
> person is bright.
> > > I can teach a moderately intelligent monkey to use PHP.
> > >
> > > I think most people look at things too much from a tool
> perspective. You
> > > don't hire a newspaper writer because his resume says he
> knows how to
> > > type. You look at what he has written. He may not be
> able to type at
> > > all.
> > >
> > > -Rasmus
> > >
> > > On Wed, 16 Oct 2002, RS Herhuth wrote:
> > >
> > > >
> > > > I hear from a lot of different sources that PHP is the
> next "Big" thing. I
> > > > have been using PHP myself for some pretty serious web
> application
> > > > development for my current job for well over a year
> now. But my question is
> > > > in searching for potential PHP related employment there
> isn't much of
> > > > anything out there. So who is using PHP and why aren't
> they hiring?
> > > >
> > > > R
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---