php-general Digest 31 Mar 2001 20:02:27 -0000 Issue 600

Topics (messages 46438 through 46466):

$PHP_SELF
        46438 by: Steve Haemelinck
        46439 by: elias

Re: PostgreSQL users
        46440 by: Yasuo Ohgaki

Problems with files!!!!!
        46441 by: Ales Kunst

GD/PHP Image Creation - combining GIFs
        46442 by: John Portwin

Re: sanity check please
        46443 by: Felix Kronlage

Date difference
        46444 by: ravi.nls.ac.in
        46447 by: bill
        46452 by: Mark Maggelet

Re: MS SQL error handling...
        46445 by: Christian Dechery

Re: Catagory list
        46446 by: Joe Stump

Re: PHP SITE REDESIGN - What happened to older source files?
        46448 by: Rouvas Stathis

Quick RegEx Question
        46449 by: Jeff Oien
        46451 by: Jon Jacob
        46454 by: Jon Jacob
        46459 by: Jack Dempsey

Executing a PHP file to write an html file
        46450 by: PHP User

Compiling under RH7
        46453 by: Jon Jacob

Re: duplicate tables
        46455 by: McShen

C and PHP
        46456 by: Ft Karras
        46457 by: Mukul Sabharwal

something of interest on the GTK front
        46458 by: Joe Stump

A message to [EMAIL PROTECTED]
        46460 by: lucy.aol.com

problem loading extension
        46461 by: Christian Dechery
        46463 by: Jack Dempsey
        46464 by: Christian Dechery
        46465 by: Jack Dempsey

Re: php...]
        46462 by: George Schlossnagle

Check your regex here
        46466 by: Jörg Krause

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]


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


Anybody got an idea why $PHP_SELF isn't working with me?

I think because I have set my register_globals to off, but how can I get the
value of  $PHP_SELF an another way ?





please try this:

<pre>
<?

/*
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie,
Server) variables as global variables. You may want to turn this off if you
don't want to clutter your scripts' global scope with user data. This makes
the most sense when coupled with track_vars - in which case you can access
all of the EGPCS variables through the $HTTP_ENV_VARS, $HTTP_GET_VARS,
$HTTP_POST_VARS, $HTTP_COOKIE_VARS, and $HTTP_SERVER_VARS arrays in the
global scope.
*/

  var_dump($HTTP_ENV_VARS);
?>
</pre>
<br>
<?
  echo $HTTP_ENV_VARS["SCRIPT_NAME"];
?>
<br>

""Steve Haemelinck"" <[EMAIL PROTECTED]> wrote in message
000401c0b9bb$4aaa1fa0$0200a8c0@shaemeli">news:000401c0b9bb$4aaa1fa0$0200a8c0@shaemeli...
> Anybody got an idea why $PHP_SELF isn't working with me?
>
> I think because I have set my register_globals to off, but how can I get
the
> value of  $PHP_SELF an another way ?
>
>
> --
> 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]
>






Some users in PHP General list may be interested in. Tom Lane has posted patch for pg_dump to PostgreSQL Admin List. He said it works with 7.0 (and he said it may work for 6.5 - not tested) This means you can backup/restore large object w/o upgrading to 7.1. Check out the PostgreSQL Admin List if you need it. (There is news server for the list, too. news://news.postgresql.org ) Regards, -- Yasuo Ohgaki



Hi,

I have a strange kind of a problem. I'm cannot write to files on a server
(i'm having virtual host) where i got my domain name.
The server is running Apache 1.3.x and is having php3.0.8 installed.
The code looks like this:

<html>
<body>
<?php
    $fcontents = "something";
    $fp = fopen("tmp/some.dat", "w");  // trying to open file in my
directory tmp/ (i think)
    fwrite($fp, $fcontents);
    fclose($fp);
?>
</body>
</html>

I cannot write to directory tmp.I get an error from Netscape that "document
contains no data" (i changed the directory mode to 777 (tmp/)). The
strangest part is that this script works fine when i am running it at home.
At home i tried to run the script under Windows 98 and Linux Mandrake both
with Apache 1.3.x with php 4.0.x installed (i don't think this code should
have any compatibility problems). On Linux i have put the script to a user
directory, just the kind on the server is, and it worked just fine. I think
maybe it's the Apache configuration (on the server) which is causing my
problem. I would very appreciate any help on this matter (clues what could
be wrong).

Ales!






Hi All,

I need to automatically create a large GIF image made up of numerous smaller
GIF/JPG files.

The list of images (either GIF or JPG) is taken off a MySQL database and at
the moment, I create a HTML table (5 columns, up to 20 rows), view it in my
browser, manually dump it to the screen and then edit it in a image program
to the right size. Then I save it as a transparent GIF and use a server-side
image map to extract the right filename when a user clicks on it. (I'm not
willing to move to a system where each individual image is loaded
individually!)

This is getting a little too time-consuming, so I want PHP to do it for me
;-) I only need it to generate the new images when they are added, so speed
is not an issue. Has anyone created something like this, or does anyone have
any tips on how to do it?

I'm looking into ImageMagick right now (looking through the archives). The
only thing is, I need to do this on my Win98 system..

Thanks in advance,
John

--







On Fri, Mar 30, 2001 at 06:45:21PM -0500, ..s.c.o.t.t.. [gts] wrote:

> i dont see how a surfer could get your PHP source code
> via the webserver.

what happens if the webserver once gets started without the php-interpreter
being there? You get to see the raw-files (if they are in the document-root).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 





Dear Friends,

I am accessing a MySQL database through PHP.

I have to calculate the difference between todays date and the date obtained 
from MySQL database.

The Database string is in the form of \"yyyy-mm-dd\".

I have to convert the above string into unix timestamp so that i can calcualte 
the difference between the two time stamps.

Please help me in this regard.

Thanking you,

B. Raveendra Reddy
National Law School of India University




Lots of ways to do it, here's one.

Convert them both to unix timestamps and subtract.

$nowstamp=mktime() ;

$result=mysql_query(SELECT UNIX_TIMESTAMP(mydatefield)  AS dbdate FROM
mydatabase);

$row=mysql_fetch_array($result);

$dbdate=$row["dbdate"];

$thedifference=$nowstamp - $dbdate;

//above gives you the difference in seconds.

$daydifference = intval($thedifference / 86400);

// 86400 is number of seconds in a day
// intval because I don't want partial days, just number of days
// $daydifference above gives you the difference in days

kind regards,

bill


[EMAIL PROTECTED] wrote:

> Dear Friends,
>
> I am accessing a MySQL database through PHP.
>
> I have to calculate the difference between todays date and the date obtained
> from MySQL database.
>
> The Database string is in the form of \"yyyy-mm-dd\".
>
> I have to convert the above string into unix timestamp so that i can calcualte
> the difference between the two time stamps.
>
> Please help me in this regard.
>
> Thanking you,
>
> B. Raveendra Reddy
> National Law School of India University
>
> --
> 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 Sat, 31 Mar 2001 20:07:10 +0600,  ([EMAIL PROTECTED]) wrote:
>Dear Friends,
>
>I am accessing a MySQL database through PHP.
>
>I have to calculate the difference between todays date and the date
>obtained
>from MySQL database.

select to_days(curdate())-to_days(datefield) from table;

- Mark





At 11:58 30/3/2001 -0500, you wrote:
>Hope it helps.
>Let me know if it works for you.

well... it was in fact a great idea... but it didn't work... for some 
reason... ob_*() functions do not grab warnings and error messages 
generated by PHP... so warnings AND the error messages were lost...

maybe I didn't implement it the best way... I don't know... but I really 
tried every way I can possibly imagine, and it didn't work.


thanks anyway...
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer





This is what I'd do:

  $sql = "SELECT disinct category FROM article ORDER BY category";
  $r = mysql_query($sql);
  while($cat = mysql_fetch_array($r))
  {
    $id = $cat['id'];
        $sql = "SELECT * FROM article WHERE category='$id'";
        $x = mysql_query($sql);
        while($row = mysql_fetch_array($x))
        {
          // echo articles here
        }
  }

The permanent solution is to make a separate table called "categories" and then
do a join on the categoryID from the two tables.

--Joe

On Fri, Mar 30, 2001 at 10:33:11PM +1000, Mark Bayfield wrote:
> I am trying to make a catagory list that displays a distinct catagory, and
> then listing titles under that catagory.
> Unfortunatly all the data is in one table, and the catagory field is not set
> catagories, so there is duplicates in that field.
> The code so far is (but I am probably going about it the wrong way, if you
> can see whats wrong with my code plase help, or point me in some direction),
> 
>  $query = mysql_query("SELECT DISTINCT catagory from article order by
> catagory");
>  $query2 = mysql_query ("SELECT * from article ORDER BY catagory");
> 
>  for ($index = 0; $index < mysql_num_rows($query); $index++) {
>   $Catagory = mysql_fetch_row ($query) or die (mysql_error());
>   $name1 =  mysql_fetch_row ($query2) or die (mysql_error());
>   $x = $name1;
>   $result1 = array_unique($Catagory);
>   $result = array_merge($Catagory, $name1);
> 
>    print ("$result1[0]<BR>");
>    for ($x=0; $x == $result1[0]; $x++) {
>    print ("&nbsp;&nbsp;&nbsp;&nbsp;<a
> href='update.php?passed=$name1[0]'>$name1[2]</a><br>\n");
>    }
>      }
> 
> I am trying everything to get it do just print the following:
> 
> Catagory
>     title1
>     title2
> Catagory1
>     title3
>     title4
> 
> Please help me out....
> 
> 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]


/******************************************************************************\
 *                    Joe Stump - PHP/SQL/HTML Developer                      *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\******************************************************************************/




I keep a copy of php.4.0.3.pl1 at
<URL:http://glaykos.mm.di.uoa.gr/~rouvas/tmp/inet/linux/php/>
Both the original version I downloaded as well as a version with the
bc-lib and conf files for SuSE exist.
-Stathis.

James Moore wrote:
> 
> >       I need an older version of PHP because my pam_auth won't build with
> > php-4.0.4pl1?  With the redesign of the php site, I think they
> > removed older
> > source files.  Can anyone confirm this, or does anyone know where
> > I can get
> > php-4.0.0 - 4.0.4 source files?
> 
> The files are no longer avaible form the site but are still avalible via cvs
> (cvs.php.net) just checkout the files you want from the distributions
> directory. I wouldnt advise using anything less recent than 4.0.4pl1 though
> due to security issues in previous versions.
> 
> James
> --
> James Moore
> [EMAIL PROTECTED]
> PHP Web Scripting: http://www.php.net/
> PHP QA Team: http://qa.php.net/
> PHP-GTK: http://gtk.php.net/
> VL-SRM: http://www.vl-srm.net/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




I want to check if a variable contains a price, like
$19.99
It definitely would be a dollar sign, two integers a dot and
two integers. Here is what I tried which doesn't work.

if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
or
if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))

Thanks.
Jeff Oien




Jeff Oien wrote:

> I want to check if a variable contains a price, like
> $19.99
> It definitely would be a dollar sign, two integers a dot and
> two integers. Here is what I tried which doesn't work.
>
> if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> or
> if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
>
> Thanks.
> Jeff Oien
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

I am not an expert on PHP but I have been programming in Perl for four
years so I can tell you what I would use in Perl and you can see if that
works in PHP.  (I am almost sure they would be the same...)

/\$\d\d\.\d\d\.d/

It looks to me like you are forgetting to escape your period making the
interpreter think it is "any character" rather than a literal period.  I am
not sure what the {2} is because I have never used that.  Does that part of
it really work that way?

Good luck, hope that helps.


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





Jon Jacob wrote:

> Jeff Oien wrote:
>
> > I want to check if a variable contains a price, like
> > $19.99
> > It definitely would be a dollar sign, two integers a dot and
> > two integers. Here is what I tried which doesn't work.
> >
> > if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> > or
> > if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
> >
> > Thanks.
> > Jeff Oien
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> I am not an expert on PHP but I have been programming in Perl for four
> years so I can tell you what I would use in Perl and you can see if that
> works in PHP.  (I am almost sure they would be the same...)
>
> /\$\d\d\.\d\d\.d/
>
> It looks to me like you are forgetting to escape your period making the
> interpreter think it is "any character" rather than a literal period.  I am
> not sure what the {2} is because I have never used that.  Does that part of
> it really work that way?
>
> Good luck, hope that helps.
>
> _________________________________________________________
> 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]

Opps.  I mistyped that.  It should be:

/\$\d\d\.\d\d/

Drop the last d.


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





<?

$price = "$19.99";

if(ereg("\\$[0-9]{2}\.[0-9]{2}",$price)){
        echo "this is a price";
}
else{
        echo "not a price";
}

In eregs, if you want to use the $, you have to escape it twice...the
first escape tells php to look for a variable whose name is after the
$...the second \ tells it, look for this character...

-jack


Jeff Oien wrote:
> 
> I want to check if a variable contains a price, like
> $19.99
> It definitely would be a dollar sign, two integers a dot and
> two integers. Here is what I tried which doesn't work.
> 
> if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
> or
> if (ereg("\$([0-9]{2})\.([0-9]{2})", $Price))
> 
> Thanks.
> Jeff Oien
> 
> --
> 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]




Here is my problem.
I have a file, static.php
static.php writes to index.html by way of...
$filename = "/web/h16/docs/index.html";
$fp = fopen("$filename","w");
fwrite($fp, "<table width=\"230\">\n");
etc......

If I hit static.php from the command line, index.html gets written just fine. 
static.php does it's job.

If I try to exec(), or  system() static.php from a browser the browser just hangs. eg. 

I add:
system ('/usr/local/bin/php web/h16/docs/index.html);
or
exec ('/usr/local/bin/php web/h16/docs/index.html);
To a file and get nothing. I tried with and without the absolute paths in the 
commands.

What I want to be able to do is every time I update a Db, at the same time I want the 
index page to be rewritten to reflect the changes in the Db. And I don't want to have 
to go to the command line everytime I want to rewrite the index page. So I would just 
hit "SAve" in the update.php page, it would save to the Db, which it does now, and at 
the same time it hits static.php and therefore rewrites index.html

I also tried header() but that was no good due to echo in the pages, gives that header 
already sent error.

Is there a funtion I am missing somehwere that does the job?

It's a Unix box running php 4.03, and the Db is MySQL

Thanks Much!!

-

*****************************************************************
Sign up for these FREE offers and have the chance to win money and prizes!
Click Here http://winwith.chek.com/promotions.php3?partnerid=7"
*****************************************************************




I am still  only getting the source of the php file.  Has anybody
successfully compiled Apache 1.3.x (1.3.19 in my case) and PHP
(4.0.4pl1) under RH7?  My httpd.conf has the proper AddType line and the
php4 module is installed according to httpd -l.

If you have done this successfully, please let me know.  I have been
racking my brain for three straight days trying to get this to work.

Thanks.


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





that didn't work. I tried that.
"CC Zona" <[EMAIL PROTECTED]> wrote in message
9a3hk3$bn7$[EMAIL PROTECTED]">news:9a3hk3$bn7$[EMAIL PROTECTED]...
> In article <9a3fme$4hg$[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] ("McShen") wrote:
>
> > i have a table named "refer"
> > I wanna duplicate a table name "refer2" so that i can mess around with
it.
>
> Have you checked the manual for your DBMS?  Something like "create table
> refer2 select * from refer" should work with MySQL (assuming that were
your
> DBMS).
>
> --
> CC
>
> --
> 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]
>






Somebody knows if it is possible to link C and PHP?

I have a C library and need to 'include' with PHP code, as it does PERL, 
is it possible?

Thanks




you can use shared memory functions to ineract between
C and PHP.


--- Ft Karras <[EMAIL PROTECTED]> wrote:
> Somebody knows if it is possible to link C and PHP?
> 
> I have a C library and need to 'include' with PHP
> code, as it does PERL, 
> is it possible?
> 
> 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]
> 


=====
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




I've just finished a proof of concept tutorial about how to create a GTK app
to be your backend on a dynamic PHP site. It steps you through makeing the API,
the GTK app, and the frontend. You can check it out at:

http://gtk.php-coder.net/docs/joe2001_03_31.4.html

For you GTK users it also has a pretty comprehensive example of GtkText(), which
seemed to be lacking.

--Joe

/******************************************************************************\
 *                    Joe Stump - PHP/SQL/HTML Developer                      *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\******************************************************************************/




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
       Are you bored and want some excitement?
   Las Vegas Has Just Showed Up In Your Neigbourhood!
  In fact, you wont even have to leave your computer!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Queensclub Online Casino Advantages:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

* Play in your pyjamas
* Play for fun option (without gambling money)
* Free money to play with!
* Confidential and safe
* No travel headaches
* No hotel bill suprises
* Take your time playing!
* Play with your creditcard
* Get advice as you play!
* Almost 98% payout!

+------------------------------------------------+
|  This could be your lucky day! Give us a try!  |
+------------------------------------------------+
 http://www.bluelineca.com/casino/

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
What do our satisfied visitors think about us?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

PAULM, A ,460 Jackpot winner from Georgia:
"That's when I decided to throw caution to the wind.
I just put the whole wad into the machine and on my tenth
try -- BINGO! almost 150,000 dollars!" 

BOSSMAN48, A Jackpot winner from Michigan:
"After throwing out  bets for 20 minutes or so at the
JacksOrBetter game, my one big bet made me a richer man.
I pulled down a royal flush!!!!!!!" 

5666777, A Jackpot winner from New Jersey:
"After four or five unsuccessful bets I gave it a rest and
went to pick up a sandwich from the fridge. Then, after
couple of bites and couple of pulls on the slot machine,
it happened!!! I HIT THE JACKPOT!" 

RIVER, ,878 jackpot winner from Canada:
"I couldn't believe it as the money suddenly showed in my
account! We both jumped so quickly, we almost knocked
the PC off the table." 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


+------------------------------------------------+
| This could be your lucky day! Give us a try!  |
+-------------------------------------------+
 http://www.bluelineca.com/casino/

This message was sent to [EMAIL PROTECTED] If you do not wish to receive more 
emails from me, just
click on the link below.
http://www.kiatou.com/cgi-bin/remove.cgi




I posted a message a while ago about having trouble loading php_mssql.dll 
extension.
It gave me that error: 'can't find ...'. So I was stuppid enough to realize 
I didn't have MS SQL 7 installed here.

Somone here told me to download a proggie called Dependency Walker, that 
lists all the dependencies of a DLL.
So I did it, and it really was missing a DLL (MS SQL).

So I installed MS SQL 7 here, and now Dependency Walker doesn't give me any 
error, but PHP still gives me the message and still does not load 
php_mssql.dll. Why? MSSQL is started, working perfectly, PHP is working fine...

what may be wrong?
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer





restart apache/php?

-jack

Christian Dechery wrote:
> 
> I posted a message a while ago about having trouble loading php_mssql.dll
> extension.
> It gave me that error: 'can't find ...'. So I was stuppid enough to realize
> I didn't have MS SQL 7 installed here.
> 
> Somone here told me to download a proggie called Dependency Walker, that
> lists all the dependencies of a DLL.
> So I did it, and it really was missing a DLL (MS SQL).
> 
> So I installed MS SQL 7 here, and now Dependency Walker doesn't give me any
> error, but PHP still gives me the message and still does not load
> php_mssql.dll. Why? MSSQL is started, working perfectly, PHP is working fine...
> 
> what may be wrong?
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
> 
> --
> 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]




of course...
it's while loading apache that the error message appears...

>restart apache/php?
>
>-jack
>
>Christian Dechery wrote:
> >
> > I posted a message a while ago about having trouble loading php_mssql.dll
> > extension.
> > It gave me that error: 'can't find ...'. So I was stuppid enough to realize
> > I didn't have MS SQL 7 installed here.
> >
> > Somone here told me to download a proggie called Dependency Walker, that
> > lists all the dependencies of a DLL.
> > So I did it, and it really was missing a DLL (MS SQL).
> >
> > So I installed MS SQL 7 here, and now Dependency Walker doesn't give me any
> > error, but PHP still gives me the message and still does not load
> > php_mssql.dll. Why? MSSQL is started, working perfectly, PHP is working 
> fine...
> >
> > what may be wrong?
> > ____________________________
> > . Christian Dechery (lemming)
> > . http://www.tanamesa.com.br
> > . Gaita-L Owner / Web Developer
> >
> > --
> > 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]

____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer





ahh, ok, misread your post...don't know what it could be..don't have
experience with php and dlls...
best of luck!
-jack

Christian Dechery wrote:
> 
> of course...
> it's while loading apache that the error message appears...
> 
> >restart apache/php?
> >
> >-jack
> >
> >Christian Dechery wrote:
> > >
> > > I posted a message a while ago about having trouble loading php_mssql.dll
> > > extension.
> > > It gave me that error: 'can't find ...'. So I was stuppid enough to realize
> > > I didn't have MS SQL 7 installed here.
> > >
> > > Somone here told me to download a proggie called Dependency Walker, that
> > > lists all the dependencies of a DLL.
> > > So I did it, and it really was missing a DLL (MS SQL).
> > >
> > > So I installed MS SQL 7 here, and now Dependency Walker doesn't give me any
> > > error, but PHP still gives me the message and still does not load
> > > php_mssql.dll. Why? MSSQL is started, working perfectly, PHP is working
> > fine...
> > >
> > > what may be wrong?
> > > ____________________________
> > > . Christian Dechery (lemming)
> > > . http://www.tanamesa.com.br
> > > . Gaita-L Owner / Web Developer
> > >
> > > --
> > > 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]
> 
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer





-- 
$_ = 'George Schlossnagle';
s#.#(ord$')-(ord$&)+((index($_,$')-$&)?1002:0)#ego;s#-#((substr($],4,1)-6)?67:$-[0])#eog;$:=$_;print
join('',(map chr$_,reverse
map{substr($:,(3*$_),3)+(11,-109,-14,94,-894,-28,-61,-202,-417,83,-20,-678,53,96,4,-494,82,-869,-826,24,16,-684,-450,-27)[$_]}(0...length($_)/3)),chr(length($_)/2+ord$/),$/);


I'm sure you appreciate the importance of transitive equality in programming
languages (especially they all aspire to be pseudo-mathematical), which is
why I think you'll appreciate this.

<?php

$a = "0";
$b = 0;
$c = "";
$d = "       ";

$a == $b  // T
$b == $c  // T
$a == $c  // F!!

$b == $c  // T
$b == $d  // T
$c == $d  // F!!

?>

Perl, of course, outputs the expected values: $a, $b, $c and $d are equal
under '==', and only $a and $b are equal under 'eq'. PHP's '===' operator
(its equivalent to 'eq') says that $a, $b, $c and $d are all different.

Doesn't that seem like a fundamental flaw? How can equality NOT be
transitive?? How can anyone be expected to write programs in such an
environment?

D








Hi there,

sometimes I test a new regular expression.
So I've created a test site, which works with
ereg, eregi, preg_match on PHP 4.0.4. Some options
allowed and a benchmarks shows how effective an
expression is.
You're invited to take a look here:

http://www.php.comzept.de/rexpr/

Please send me a private email what do you think about this.

Joerg Krause
*****************************
E-Mail:  [EMAIL PROTECTED]
*****************************


Reply via email to