[PHP] Compiling PHP with INFORMIX howto?

2002-07-01 Thread Emile Bosch

Does someone have a good guide on installing php with informix support? also
i wish to know wheter it
is possible to compile php with this version.

ISQL 7.20
Embedded sql for C. 9.14
4GL 7.30
4GL runtime 7.20
Dynamic server 7.30
Java API1.05

Thanks in advance,
Emile Bosch



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how to read posted data?

2001-12-31 Thread Emile Bosch

USE
$HTTP_RAW_POST_DATA
or something like that

i'll look it up for you
"Zhiqiang He" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> i have resolved this problem, use $HTTP_RAW_POST_DATA.
>
> On Thu, 11 Oct 2001 13:12:54 GMT, [EMAIL PROTECTED] (Zhiqiang He) wrote:
>
> >problem like this:
> >
> >The data in HTML form POSTs is packaged into name value pairs. But
> >when IE 5 exports its favorites file to a server (an HTML file), it
> >sends a raw HTTP POST of the data (there are no names and values, just
> >a raw text stream.
> >
> >On Thu, 11 Oct 2001 12:58:09 +0300, [EMAIL PROTECTED]
> >(=?Iso-8859-1?Q?Niklas_lamp=E9n?=) wrote:
> >
> >>Use $FieldName or $HTTP_POST_VARS.
> >>
> >>
> >>Niklas
> >>
> >>-Original Message-
> >>From: ZhiQiang He [mailto:[EMAIL PROTECTED]]
> >>Sent: 11. lokakuuta 2001 12:54
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP] how to read posted data?
> >>
> >>
> >>we want to use post data in php, how can we read it?
> >>note, this post data is not sent by form.
> >>thanks in advance, ^_^
> >>
> >>--
> >>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] Internal working of function()

2002-01-02 Thread Emile Bosch

If you have lots (let's say 100 or 200) of functions() in PHP does this
slow everything down a lot? How is the interal working of a function?

Warm regards,
Emile Bosch



-- 
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] XSLT in PHP

2002-01-02 Thread Emile Bosch

Hi List, XSLT seems to be such an hot topic these days now i tried it
out and i find it cool too. But is there anyway how i can make
XSLT less strict? When i make a stylesheet XSLT is too picky..I can't
make an XSLT stylesheet very fast because you have to close everything
correct etc..

When i design a template i cannot do..


tralala  <= ERROR has to be 


And so are there a numerous things that have to be done.. Is there someway
how
i can turn that strictness thingie of?

Warm regards,
EMile Bosch




-- 
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: Including files & variables ...

2002-01-02 Thread Emile Bosch

what everyone is trying to say is that it goes automatically..

ie
.
>test.php
--
$blah=10;
include "whatever.php";


>whatever.php
-
echo "The value of blah is: {$blah}";


It just keeps the variable since it's global..

When ur using a function. It can be different, since you have to
import these variables.

Warm regards,
EMile Bosch

"Evansville Scene" <[EMAIL PROTECTED]> wrote in message
001001c1a870$353b3240$6401a8c0@amd">news:001001c1a870$353b3240$6401a8c0@amd...
I'm having problems passing variables into included PHP files.  How can I do
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] PHP XML with Dynamic Content

2002-01-03 Thread Emile Bosch

Hi a lot of todays proffesional content management systems use XML, now
i was wondering how it's possible to mix XML with Dynamic Content, or
content which is change sensitive, IE A shop, or an auction,
let's say you have a shop with 1000 products, how am i gonna mix this in
the XML?

Does anyone know how this is solved, because i don't think that you are
gonna write hundreds of XML files for each article, can someone please help
me out here?

Warm regards,
Emile Bosch



-- 
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: array_multisort?

2002-01-03 Thread Emile Bosch

waah! You hijacked my topic! :-)

"Sebastiaan Timmers - Bean It" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi List,
>
> I'm having a problem sorting the following array:
>
> $product = array($id, $title, $price);
> $shop[] = $product;
>
>
> I want the array 'shop' to be sorted by the 'title' in array 'product'. I
> tried  the function 'array_multisort()', but that did not do the trick.
>
> Does anyone know how to fix this?
>
> Best regards,
>
> Sebastiaan Timmers
>
>



-- 
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 XML with Dynamic Content

2002-01-05 Thread Emile Bosch

Writing it on the fly would be kinda redundant.. I think.. :(
from mysql data to xml to data.. .. would slow things down a bit i
think.. :(

"Brian Clark" <[EMAIL PROTECTED]> wrote in message
20020105030550.GD17616@ganymede">news:20020105030550.GD17616@ganymede...
> * Emile Bosch ([EMAIL PROTECTED]) [Jan 03. 2002 15:38]:
>
> > Hi a lot of todays proffesional content management systems use XML, now
> > i was wondering how it's possible to mix XML with Dynamic Content, or
> > content which is change sensitive, IE A shop, or an auction,
> > let's say you have a shop with 1000 products, how am i gonna mix this in
> > the XML?
>
> > Does anyone know how this is solved, because i don't think that you are
> > gonna write hundreds of XML files for each article, can someone please
help
> > me out here?
>
> I understand the first paragraph up to "how am i gonna mix this in the
> XML?"
>
> Why couldn't you store information in a database and write the XML files
> on the fly when you need XML? Or update the XML file when something
> changes? Or, why use XML at all? Do you _really_ need it? *confused*
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> Sex is the most fun you can have without laughing.
>



-- 
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] XML based content management system.

2002-01-05 Thread Emile Bosch

Does anyone know an opensource XML based content management system? Written
in PHP?

Warm regards,
Emile Bosch



-- 
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] XML and CMS

2002-01-10 Thread Emile Bosch

Hmm. has someone exeperience with building an CMS which uses XML for it's
objects and page elemnts??

Warm regards,
Emile Bosch



-- 
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] Is DOMXML reliable??

2002-01-12 Thread Emile Bosch

Hi list,
It seems like domxml is kinda unreliable to build an CMS with because
in lotta versions the syntax is different :(

Is DOMXML reliable??

Or should i use an alternative, does anyone know an
alternative??

Warm regards,

Emile Bosch



-- 
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] Setting up an XML platform/website

2002-01-13 Thread Emile Bosch

Is anyone interested in setting up an XML platform for PHP, where the use of
XML is explained, with sample PHP/XML applications and in-depth real live
tutorials? Since lot's of people underestimate the power of XML. Maybe, it's
nice to be ready when Microsoft's dotNet crashes in and launches an new XML
era.

Anyone wants to help building such an platform/website?

Sincerly,
Emile



-- 
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: Include inside a function?

2002-01-20 Thread Emile Bosch

try out first before u post...

what does work is..

mail(implode(false,file("blah.txt")));

"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible to use include inside the mail function?
eg

mail(include("blah.txt")) ???


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666






-- 
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/XML gap?

2002-01-20 Thread Emile Bosch

Why does it seem that when spoken about XML, PHP is almost always left out?
And why does it seem that every XML based CMS is build in a non-php
language? Are there any XMLCMS OpenSource Classes/Projects available?

Warm regards,

Emile Bosch




-- 
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: 'include' & anchors

2002-01-20 Thread Emile Bosch

eh..
if i am not mistaken, that's clientside, and
that's more of an javascript thing than a php thing


"Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want a script to go to an anchor in an html page
>
> This doesn't seem to work
>
> include "blah.htm#anchor";
>
> how is this possible
>
> Thanks!
> Phil in baltimore
>
> P.S. Pittsburgh sucks Bill Gates' balls.
>



-- 
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: mailing list manager

2002-01-20 Thread Emile Bosch

check @ www.hotscripts.com

php / scripts and programs / mailing list managers

duh :-)


"Nu Webmaster" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> i need a mailing list manager in php, with which i can send html email and
> store my subscribers in a mysql database
>
> anyone knows where i can get one?
>
> thanks, Christophe
>
>
>



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

2002-01-22 Thread Emile Bosch

it's kinda impossible since HTTP is a STATELESS PROTOCOL


"Nuno Mariz" <[EMAIL PROTECTED]> wrote in message
1011695546.3467.5.camel@sputnik">news:1011695546.3467.5.camel@sputnik...
> I need to build a php-chat (online support system), but in realtime.
> I've develope a system that refresh in browser client in 5 seconds. But
> i need a system that works in realtime, what i meen is when a client or
> the server send a message, the browser refresh when a message was sent.
> All this without JAVA.
>
> thanx
>



-- 
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 is a Bloated Kludge, discuss!

2002-01-25 Thread Emile Bosch

Don't feed the troll..

"Php" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On a conceptual level, I for one am a great fan of the kludge.
>
> Every piece of software is a trade off between performance and speed of
> development.
>
> You can have the fastest app in the world for $1,000,000 in development
time
> OR
> you can write up a in-elegant solution in 5minutes ($50) and if its slow
buy
> a bigger
> server for < $5000.
>
> You choose.
>
> Taken in relation to PHP. I would rather have the developers of it release
> new code
> that is not optimized, then have 1 release every two years, full of very
> pretty blocks
> of code designed to make the hardcore OOP textbook fanatic orgasm.
>
>  Check out mozilla.org if you want to see what elegant programmers can do.
> - 2 years later a web browser intended to be small and fast, can know take
> out your trash,
>  wash your car - and guess what?
> no release 1.0 yet.
>
>
> Sean
>
>
>
>
>
>
>



-- 
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] is create_function slow?

2002-01-29 Thread Emile Bosch

Hi, is create function slow? Or has it a very significant slowdown compared
to an include?

i might want to create functions on the fly if it isn't tooo slow..

warm regards,
Emile Bosch



-- 
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] odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch

odbc_fetch_array not working in php 4.2.1 for win?

Here it says undefined function :(
How can i solve it, do i have an old version or something??

Warm regards
Emile Bosch



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: odbc_fetch_array not working in php 4.2.1 for win?

2002-05-16 Thread Emile Bosch

does'n't matter anyway i rule so i solved it already :D
a nice workaround i made :D /me is sleepy nighty nighty

"Emile Bosch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> odbc_fetch_array not working in php 4.2.1 for win?
>
> Here it says undefined function :(
> How can i solve it, do i have an old version or something??
>
> Warm regards
> Emile Bosch
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Multiple LEFT JOIN SQL syntax in msaccess

2002-05-24 Thread Emile Bosch

Yes, i know i am offtopic but i just don't want to that scary M$newsgroups
so can please tell me how i can
have 2 left joins in a queryresult?

this doesn;t work in msaccess

$q="SELECT * FROM salad a
  LEFT JOIN salam g ON (a.adgrpnum = g.amgrpnum),
  LEFT JOIN salmk m ON (a.admrknum = m.mkmrknum)
  WHERE a.adartnum=$adartnum";

this neither:

$q="SELECT * FROM salad a
  LEFT JOIN salam g ON a.adgrpnum = g.amgrpnum,
  LEFT JOIN salmk m ON(a.admrknum = m.mkmrknum
  WHERE a.adartnum=$adartnum"

so does someone know how i do a good left join

Thx mate!

Mielz




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Multiple LEFT JOIN SQL syntax in msaccess

2002-05-24 Thread Emile Bosch

OMG i solved it already!

$q="SELECT * FROM ((salad a
  LEFT JOIN salam g ON a.adgrpnum = g.amgrpnum)
  LEFT JOIN salmk m ON a.admrknum = m.mkmrknum)
  WHERE a.adartnum=$adartnum"

Tadaaa!
Thx pong for giving me the tip about the ( 's !!



"Emile Bosch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes, i know i am offtopic but i just don't want to that scary M$newsgroups
> so can please tell me how i can
> have 2 left joins in a queryresult?
>
> this doesn;t work in msaccess
>
> $q="SELECT * FROM salad a
>   LEFT JOIN salam g ON (a.adgrpnum = g.amgrpnum),
>   LEFT JOIN salmk m ON (a.admrknum = m.mkmrknum)
>   WHERE a.adartnum=$adartnum";
>
> this neither:
>
> $q="SELECT * FROM salad a
>   LEFT JOIN salam g ON a.adgrpnum = g.amgrpnum,
>   LEFT JOIN salmk m ON(a.admrknum = m.mkmrknum
>   WHERE a.adartnum=$adartnum"
>
> so does someone know how i do a good left join
>
> Thx mate!
>
> Mielz
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Wicked, Array add problem!

2001-10-22 Thread Emile Bosch

I was wondering if someone could help me with the following problem
I want to add values to an array, overwriting the existing ones and keeping
the original intact.

array 1 looks like:
text
posted = Posted by
source = Bron

array 1 looks like:
text
posted = Posted by1

Now i would like to have the following result:

text
posted = Posted by1
source = Bron

Like an OVerlay  array 2 over array 1 function or something..

Please can someone help me?
Warm regards,

Emile Bosch


";
 $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron"));
 $array2 = array("text"=>array("posted"=>"Posted by1"));

 print_r($array1);
 print_r($array2);

 print_r(array_merge($array1,$array2));

 /*
I was hoping that this below would turn out but that is not the issue
what function must i use to get this result??
  Array
  (
  [text] => Array
  (
  [posted] => Posted by1
  [source] => Bron
  )

  )
 */
 echo "";
?>



-- 
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: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch

Uhm found a solution for my own problem somewere else on this list..
credits go2 Andrey Hristov

";
 $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron"));
 $array2 = array("text"=>array("posted"=>"Posted by1"));

 print_r($array1);
 print_r($array2);

 function array_overlay(&$ar1,&$ar2){
   foreach ($ar2 as $k=>$v){
 if (isset($ar1[$k]) && is_array($ar1[$k]) && is_array($ar2[$k]) )
   array_overlay($ar1[$k],$ar2[$k]);
 elseif (!isset($ar1[$k]))
   $ar1[$k]=$v;
   }
 }

 print_r(array_overlay($array2,$array1));

 echo print_r($array2);
 echo "";
?>
"Emile Bosch" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I was wondering if someone could help me with the following problem
> I want to add values to an array, overwriting the existing ones and
keeping
> the original intact.
>
> array 1 looks like:
> text
> posted = Posted by
> source = Bron
>
> array 1 looks like:
> text
> posted = Posted by1
>
> Now i would like to have the following result:
>
> text
> posted = Posted by1
> source = Bron
>
> Like an OVerlay  array 2 over array 1 function or something..
>
> Please can someone help me?
> Warm regards,
>
> Emile Bosch
>
>
>   echo "";
>  $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron"));
>  $array2 = array("text"=>array("posted"=>"Posted by1"));
>
>  print_r($array1);
>  print_r($array2);
>
>  print_r(array_merge($array1,$array2));
>
>  /*
> I was hoping that this below would turn out but that is not the issue
> what function must i use to get this result??
>   Array
>   (
>   [text] => Array
>   (
>   [posted] => Posted by1
>   [source] => Bron
>   )
>
>   )
>  */
>  echo "";
> ?>
>
>



-- 
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: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch

I was wondering if someone could help me with the following problem
I want to add values to an array, overwriting the existing ones and keeping
the original intact.

array 1 looks like:
text
posted = Posted by
source = Bron

array 1 looks like:
text
posted = Posted by1

Now i would like to have the following result:

text
posted = Posted by1
source = Bron

Like an OVerlay  array 2 over array 1 function or something..

Please can someone help me?
Warm regards,

Emile Bosch


";
 $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron"));
 $array2 = array("text"=>array("posted"=>"Posted by1"));

 print_r($array1);
 print_r($array2);

 print_r(array_merge($array1,$array2));

 /*
I was hoping that this below would turn out but that is not the issue
what function must i use to get this result??
  Array
  (
  [text] => Array
  (
      [posted] => Posted by1
  [source] => Bron
  )

  )
 */
 echo "";
?>

"Emile Bosch" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I was wondering if someone could help me with the following problem
> I want to add values to an array, overwriting the existing ones and
keeping
> the original intact.
>
> array 1 looks like:
> text
> posted = Posted by
> source = Bron
>
> array 1 looks like:
> text
> posted = Posted by1
>
> Now i would like to have the following result:
>
> text
> posted = Posted by1
> source = Bron
>
> Like an OVerlay  array 2 over array 1 function or something..
>
> Please can someone help me?
> Warm regards,
>
> Emile Bosch
>
>
>   echo "";
>  $array1 = array("text"=>array("posted"=>"Posted by","source"=>"Bron"));
>  $array2 = array("text"=>array("posted"=>"Posted by1"));
>
>  print_r($array1);
>  print_r($array2);
>
>  print_r(array_merge($array1,$array2));
>
>  /*
> I was hoping that this below would turn out but that is not the issue
> what function must i use to get this result??
>   Array
>   (
>   [text] => Array
>   (
>   [posted] => Posted by1
>   [source] => Bron
>   )
>
>   )
>  */
>  echo "";
> ?>
>
>



-- 
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] Speeding up program

2001-10-29 Thread Emile Bosch

wrote some code..

";
 return 4;
}


echo "DOING THE FIRST TEST";
for ($i = 0; $i < test('first'); $i++) {
 //doStuff
};
echo "";
echo "DOING THE SECOND EMILE COMPACT BLAH TEST";
for ($i = 0; $i < ($num?$num:($num = test('second')));  $i++) {
 //doStuff
};

//for ($i = 0; $i < ($num?$num:($num = mysql_num_rows($Results))); $i++) {

//};
?>

tralalal good luck


"David Robley" <[EMAIL PROTECTED]> schreef in bericht
01091910452903.15278@www">news:01091910452903.15278@www...
> On Tue, 18 Sep 2001 20:56, Niklas Lampén wrote:
> > How big difference does it make in speed in these:
> >
> >  > for ($i = 0; $i < mysql_num_rows($Results); $i++) {
> > blah
> > };
> > ?>
> >
> > or
> >
> >  > $n = mysql_num_rows($Results);
> > for ($i = 0; $i < $n; $i++) {
> > blah
> > };
> > ?>
> >
> > So actually I'm asking how much more/less it takes time to do the
> > comparing against mysql_num_rows() insted of comparing against a
> > variable.
> >
> >
> > Niklas
>
> Will deppend on the environment in which you are running it. to test it
> on your environment, try running each say ten thousand times in a loop,
> and use a timer like microtime to check how long it takes.\
>
> Then you can let us all know the answer.
>
> --
> David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
> CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
>
>Why can't we just spell it orderves?



-- 
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] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch

Dear list,
Does anyone know how the internals of create function works?


$test = create_function('blah','$arg,$arg2',$code);

Does it really create the function in $test; or creates it a global function
and references it to $test

And further more,
is it very SLOW?

Warm regards,
Emile Bosch



-- 
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] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch

Thank you for you interest,

I need to know this because  am building an CMS package..
and create function create functions on the fly which can come in handy very
much..

My questions was wheter create_function the PHP tag, slow is or not... hope
someone can
help me out here..

Warm regards,
Emile Bosch

"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why do you need this? To my knowledge you get the same behaviour with
>
>  function create_function()
> {
>   [body]
> }
>
> $test="create_function";
>
> $test;
> ?>
>
> Bogdan
>
> Emile Bosch wrote:
>
> > Dear list,
> > Does anyone know how the internals of create function works?
> >
> > $test = create_function('blah','$arg,$arg2',$code);
> >
> > Does it really create the function in $test; or creates it a global
function
> > and references it to $test
> >
> > And further more,
> > is it very SLOW?
> >
> > Warm regards,
> > Emile Bosch
> >
> > --
> > 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] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch

thx for al the help but i need some help of a php developer i guess cuz i am
misunderstood here..


"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Or, to actually prove your point in the original e-mail (I checked it and
> you're right):
>function echotest()
>   {
> echo("Testing");
>   }
>
>   $test="echotest";
> ?>
>
> If you now try  it won't do anything -- as you said,  ?> is the proper code.
>
> Something worth mentioning is that even if you do 
> the former version won't work.
>
> Bogdan
>
> >  > $test='htmlspecialchars';
> > echo $test('');
> > ?>
> >
> > Produces :
> >
> > 
> >
> > Regards,
> > Andrey
> >
> > - Original Message -
> > From: "Alexander Skwar" <[EMAIL PROTECTED]>
> > To: "Andrey Hristov" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 5:35 PM
> > Subject: Re: [PHP] Question about CREATE_FUNCTION
> >
> > So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 :
> > > Nope
> > > $test();
> >
> > Please explain!
> >
> > Alexander Skwar



-- 
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] Question about CREATE_FUNCTION

2001-12-22 Thread Emile Bosch

since you CAN'T create functions runtime, unles you are using an eval
expression
but that's even slower that create_function..

function bla() {
}

$test = "bla";
$test();

Is not solving the problem since, it doesn't create a function at RUNTIME it
only references a function..
(it references $test to the function pointer blä)

create_function <= Php command

creates a function runtime.
But thanks for all your time anyway!

Warm regards,
Emile


"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why do you draw the conclusion you're misunderstood? We are unable to
answer
> your question about speed -- so aren't we allowed to have a separate
discussion
> derrivated from your question?
>
> Bogdan
>
> Emile Bosch wrote:
>
> > thx for al the help but i need some help of a php developer i guess cuz
i am
> > misunderstood here..
>



-- 
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] Merry christmas!

2001-12-23 Thread Emile Bosch

Yeah i know it's offtopic =)

Anyway, i wish you all the best!

Cu in the next year!
Warm regards,
Emile



-- 
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] Protecting variables and functions? Like C#

2001-09-19 Thread Emile Bosch

I am a huge fan of php but i am kinda scared by c# i really like it's
ability to make functions and variable not accessible and therefore force
the user to use a function instead of accessing it indirectly. I am talking
here about

class talk {
private function bla() {
}
}

$t = new talk();
$t->bla(); /* Produces an error cuz of calling a private function */

Is something like that gonna be implemented in the future? And maybe with a
setting or somethgin, PHP strict=true? i don't know..

Warm regards,
Emile Bosch



-- 
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] ODBC connect w/ connectstr instead of DSN

2001-09-19 Thread Emile Bosch

Is it possible to connect with odbc_connect with an connectstring instead of
an DSN?

Warm regards,
Emile Bosch



-- 
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 vs M$.NET C#?

2001-09-19 Thread Emile Bosch

Could please tell me how PHP is gonna react against the release of MS C#?
Stupid enough C# looks interresting..

Warm regards,
Emile Bosch



-- 
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] Protecting variables and functions? Like C#

2001-09-19 Thread Emile Bosch

thanks tim, but do you know wheter they are gonna implement such a feature
cuz that's somethgin that the language actually must have to become really
professional or somethign, i wish i could do cprogramming myself cuz then i
would have implemented it a long time ago :-)

Seen ur site by the way, looks a promising template system!
Warm regards,
Emile Bosch


Tim <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> This would certainly be a nice feature to have, especially if you've
> done any development with Java or C++ in the past.
>
> Many PHP class authors adopt a convention that variables or functions
> that start or end in an underscore ("_") should be treated as private
> and used at your own risk, i.e. they may change in a future release of
> the class or not work properly/safely when accessed directly.
>
> - Tim
>   http://www.phptemplates.org
>
> On Wed, 2001-09-19 at 09:00, Emile Bosch wrote:
> > I am a huge fan of php but i am kinda scared by c# i really like it's
> > ability to make functions and variable not accessible and therefore
force
> > the user to use a function instead of accessing it indirectly.
>



-- 
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: Returning a specific 'record' from an XML file

2001-09-19 Thread Emile Bosch

uhm i think XMLSLT sabletron thingie is the solution, it makes it possible
to get records as u so call it from an XML file. It works pretty good as far
as i know..!

Good luck!
Emile Bosch

Stefen Lars <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> Hello all
>
> I am looking for a PHP example or tutorial that shows how it is possible
to
> return one particular record (is that the correct terminology for an XML
> file?) from an XML file. For example, consider this very simple XML file:
>
> 
>
> 
> 
> Hannibal
> Thomas Harris
> Suspense
> 564
> 8.99
> 4
> 
> 
> Run
> Douglas E. Winter
> Thriller
> 390
> 7.49
> 5
> 
> 
> Hannibal - the return
> Thomas Harris
> Suspense
> 586
> 21.12
> 10
> 
> 
>
> I would like to be able to say, give me all the data from books written by
> author 'Thomas Harris'. In this case, I would be returned with the first
and
> last 'record' from the above file. It would then be possible to loop
through
> the resulting array like one can do with mysql_fetch_array and co.
>
> I know that to perform such a query in MySQL is a piece of cake, but I am
> currently interested in learning a little more about XML handling.
>
> If someone could point me in the correct direction to learn how do this, I
> would be very grateful.
>
> Also, if anyone thinks that using XML for such an application is
completely
> wrong, please also say that.
>
> Thank you in advance
>
> /S
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>



-- 
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] odbc_connect w/connectstring instead of DSN

2001-09-19 Thread Emile Bosch

Is it possible to connect with odbc_connect with an connectstring instead of
an DSN?

Warm regards,
Emile Bosch





-- 
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] Protecting variables and functions? Like C#

2001-09-19 Thread Emile Bosch

thanks for the info! :-)

Neil Kimber <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> Private variables will be included in Zend 2.0 (99% likely)
> From what I've seen private functions will not be included.
>
> Protected (ala Java/C#) variables and functions aren't being considered
yet.
>
> > -Original Message-
> > From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
> > Sent: 19 September 2001 15:13
> > To: Emile Bosch
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Protecting variables and functions? Like C#
> >
> >
> > On Wed, Sep 19, 2001 at 03:24:31PM +0200, Emile Bosch wrote:
> > > thanks tim, but do you know wheter they are gonna implement
> > such a feature
> > > cuz that's somethgin that the language actually must have to
> > become really
> > > professional or somethign.
> >
> > The language is already quite professional.  Yes a feature like that
> > would be nice in the eyes of many people, but saying it is a must and is
> > needed to make the language professional is quite a joke.
> >
> > --
> > Jason Stechschulte
> > [EMAIL PROTECTED]
> > --
> > 'Course, that doesn't work when 'a' contains parentheses.
> >  -- Larry Wall in <[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] Re: odbc_connect w/connectstring instead of DSN

2001-09-19 Thread Emile Bosch

thank you! !! =)

"John Lim" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes it is. See http://php.weblogs.com/odbc
>
> Bye, John
>
> "Emile Bosch" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Is it possible to connect with odbc_connect with an connectstring
instead
> of
> > an DSN?
> >
> > Warm regards,
> > Emile Bosch
> >
> >
> >
> >
>
>



-- 
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: Re[2]: [PHP] Please help!!! Trying to write some chat script!

2001-09-19 Thread Emile Bosch

for the interaction and performance of a chat room i would choose for java,
php is stateless and therefore it's not easy to see when a user is logged in
or  out or anything like that..
with the help of JAVA it's possible to build fairly easy an client and a
server class which does the communication for you.. PHP is not really the
thing to build chat appplications in..

"Diadon" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Please, tell me how to secure chat system, using login and password
>  in the hidden input of frame or using sessions?
>
>
> > There actually isn't much technology in a chat room.  It is a fairly
simple
> > program.
>
> > Basically you have a webpage which checks  retrieves all
> > the messages from  and prints them, then provides a place
> > for the user to enter stuff into .
>
> >  can be any number of things such as a flat file, or a MySQL
> > database table.  Basically anywhere you can stick stuff and anyone can
> > retrieve it.
>
> > The only thing left, then, is to update the page with new entries from
time
> > to
> > time.  While Netscape makes this easy with server push, you are probably
> > going to want something like a Meta Refresh so the IE people can use the
> > chat too.
>
> > You probably also want to put the form for entering new messages in its
own
> > frame so that someone isn't halfway through writing a message when the
whole
> > thing refreshes.
>
> > That's pretty much it.  If you have any specific questions let me know.
>
> > Sheridan Saint-Michel
> > Website Administrator
> > FoxJet, an ITW Company
> > www.foxjet.com
>
>
> > - Original Message -
> > From: "Diadon" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 19, 2001 10:54 AM
> > Subject: [PHP] Please help!!! Trying to write some chat script!
>
>
> >> Hi!
> >> Where are can read some information (not examples scripts) about chat
> >> technologies?
> >>
> >>
> >>
> >> --
> >> 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] Re: simple question...

2001-09-20 Thread Emile Bosch

Checkdate is the solution for that:
checkdate (int month, int day, int year)

Ker Ruben Ramos <[EMAIL PROTECTED]> schreef in berichtnieuws
00f801c14251$5aa288b0$[EMAIL PROTECTED]
> ey guys.. how do i check if the postdata is a valid time format? something
> like '2001-09-15'
> I hate it when they'll be entering garbage in it...
>



-- 
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: where did my cookie go?

2001-09-21 Thread Emile Bosch

hmm, usually it uses session cookies and then no cookie is set.. its then
kept in memory for as far as i know :-)

gl,
Emile Bosch

Peter <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> Hi,
>
> I am new to learning PHP and I have experimenting with setting cookies.
> Basically, I wrote a very basic script like this:
>
>  setcookie("username", "peter");
> ?>
>
> I even set my Internet Explorer to prompt me about cookies before allowing
> page to come through and it worked IE did prompt me.
>
> However, when I checked the /Windows/cookies directory, I could not find
> my name amount the .txt files.
>
> Am I looking for the cookie at the right place?
>
> Thanks.
>
> Peter
>
>



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