[PHP] who is online?

2007-02-05 Thread benifactor
i have built a function to tell me how many users are on my site at any given time... this fuction works fine, however, i want to know if what i am about to ask is possible. the problem i have is, this function assumes that after five minutes if the user has not refreshed the page, or gone on

[PHP] XPath question

2007-02-05 Thread Eli
Hi, I need to retrieve a list of all the INNER nodes (not the root i=0 node), that do not have an ancestor of any node but the root node. In other words: get a

Re: [PHP] include file identifier

2007-02-05 Thread Eli
Richard Lynch wrote: > On Sat, February 3, 2007 7:05 pm, Eli wrote: >> Does any included file in PHP have a unique identifier? (like a stack >> of >> includes identifier). > > Down in the guts of PHP source, there may be some kind of file handler > which is unique... Actually, that's what I need.

Re: [PHP] who is online?

2007-02-05 Thread Stut
benifactor wrote: i have built a function to tell me how many users are on my site at any given time... mins $whoTime = time(); $whoTime = $whoTime - 300; mysql_query("Delete FROM bc_who where expire < $whoTime") or die(mysql_error()); //here we difine the variables needed to preform the check

[PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
I have a string with an n with a tilde. mb_detect_encoding says it's UTF-8. I set the http encoding to UTF-8 and also the internal encoding. However, I cannot produce proper output with echo $varwithtilde. echo $returnArray[$i]->address1.' has '.mb_detect_encoding($returnArray[$i]->address1) d

Re: [PHP] who is online?

2007-02-05 Thread benifactor
sorry if you misunderstood, i just wanted to know if it could be done with php alone. - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "benifactor" <[EMAIL PROTECTED]> Cc: Sent: Monday, February 05, 2007 5:18 AM Subject: Re: [PHP] who is online? benifactor wrote: i have bui

[PHP] Re: XPath question

2007-02-05 Thread Eli
Eli wrote: Hi, I need to retrieve a list of all the INNER nodes (not the root i=0 node), that do not have an ancestor of any node but the root node. In other words: get all nodes with i in {1,2}. Solved. :-) $XPat

Re: [PHP] who is online?

2007-02-05 Thread Stut
benifactor wrote: sorry if you misunderstood, i just wanted to know if it could be done with php alone. It can't, and this should be fairly obvious. If the client-side makes no contact with the server for a period of time, how do you expect it to know that the user hasn't moved to another pag

Re: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread Jürgen Wind
>> How can I know if a web browser is cookies enables? >Send them ONE cookie and see if you get it back on the next page. yep >Actually, just use session_start() and see if it works or not is even easier. having sessions working is not dependent on cookies. -- View this message in context: http

Re: [PHP] who is online?

2007-02-05 Thread benifactor
hmm it was obvious to me, tis why i asked. just had to be sure. thank you for your help. - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "benifactor" <[EMAIL PROTECTED]> Cc: Sent: Monday, February 05, 2007 5:30 AM Subject: Re: [PHP] who is online? benifactor wrote: sorry

Re: [PHP] Encoding problem

2007-02-05 Thread Jon Anderson
Guus Ellenkamp wrote: I have a string with an n with a tilde. mb_detect_encoding says it's UTF-8. I set the http encoding to UTF-8 and also the internal encoding. However, I cannot produce proper output with echo $varwithtilde. echo $returnArray[$i]->address1.' has '.mb_detect_encoding($retu

RE: [PHP] who is online?

2007-02-05 Thread bruce
hey. for my $0.02 worth.. these kinds of questions are not exactly only php. however, i still see them as being valuable, and belonging to the php list, as they get into areas the php developers of sites might grapple with. i'm of the opinion more, rather than less. so if you have more intelligen

Re: [PHP] Amortization calculator

2007-02-05 Thread Ray Hauge
Dan Harrington wrote: Hello, I am looking for a 365-day (as opposed to 360) amortization calculator. Does anyone know of one written in PHP that could be used to calculate payments, P&I, etc on loans with the various variables changeable like this? http://ray.met.fsu.edu/cgi-bin/amortize Thank

Re: [PHP] Hello list

2007-02-05 Thread tedd
At 4:27 PM -0700 2/4/07, PHP Fusebox wrote: I've tried subscribing 3 times now. This is a test. For the third time -- we didn't get this. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread tedd
At 11:36 PM -0500 2/4/07, Mauricio Muriel wrote: Hello. How can I know if a web browser is cookies enables? Regards Mauricio M. Give it a glass of milk and watch what happens. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] who is online?

2007-02-05 Thread benifactor
I agree. hey. for my $0.02 worth.. these kinds of questions are not exactly only php. however, i still see them as being valuable, and belonging to the php list, as they get into areas the php developers of sites might grapple with. i'm of the opinion more, rather than less. so if you have m

Re: [PHP] include file identifier

2007-02-05 Thread Craige Leeder
On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: If you want to avoid the overhead of include_once, it's a pretty common practice (borrowed from C .h files) to do: Just out of curiosity, how much additional overhead are we talking about? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread tedd
At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: Demonstrating good English writing skills and having published good book reviews in the past gets me preference. "gets me preference" ??? Me get any money for this? tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] who is online?

2007-02-05 Thread Craige Leeder
Ditto. There's really no reason it can't go here. - Craige On 2/5/07, benifactor <[EMAIL PROTECTED]> wrote: I agree. > hey. > > for my $0.02 worth.. these kinds of questions are not exactly only php. > however, i still see them as being valuable, and belonging to the php > list, > as they get

[PHP] Re: Amortization calculator

2007-02-05 Thread Tony Marston
Try this: http://www.tonymarston.net/php-mysql/amortise.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Dan Harrington"" <[EMAIL PROTECTED]> wrote in message news:!~!UENERkVCMDkAAQACABgA0GQuLQQZMkSIxO1FcYz7L8KQVmQdtX3Lb0SRpx9/[EMAIL PRO

Re: [PHP] Hello list

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 11:01 -0500, tedd wrote: > At 4:27 PM -0700 2/4/07, PHP Fusebox wrote: > >I've tried subscribing 3 times now. > >This is a test. > > For the third time -- we didn't get this. Didn't get what? :B Cheers, Rob. -- .

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 11:09 -0500, tedd wrote: > At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: > >Demonstrating good English writing skills and having published good book > >reviews in the past gets me preference. > > "gets me preference" ??? > > Me get any money for this? No money you get! Tingl

RE: [PHP] PHP book reviewers wanted

2007-02-05 Thread Tim
> -Message d'origine- > De : tedd [mailto:[EMAIL PROTECTED] > Envoyé : lundi 5 février 2007 17:10 > À : Manuel Lemos; php-general@lists.php.net > Objet : Re: [PHP] PHP book reviewers wanted > > At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: > >Demonstrating good English writing skills and

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread tedd
At 12:06 AM -0500 2/5/07, Craige Leeder wrote: Eric, PHP is fine for commercial environments. Many people are just afraid of it due to the fact it is known to break some poorly written PHP 4 scripts, and the fact that many people don't think it's new features are "necessary". It is perfectly fin

Re: [PHP] Billing client for studying documentation

2007-02-05 Thread Craige Leeder
Mike, Talk to the client, and explain the situation. I'm sure that you will be able to work out some sort of agreement. It may not be for all the hours, but that's not unreasonable considering the fact that this was not explained before you went ahead with your research. If nothing else, you com

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Craige Leeder
How many book reviews do you suppose Manuel has written in his life time? - Craige On 2/5/07, Tim <[EMAIL PROTECTED]> wrote: > -Message d'origine- > De: tedd [mailto:[EMAIL PROTECTED] > Envoyé: lundi 5 février 2007 17:10 > À: Manuel Lemos; php-general@lists.php.net > Objet: Re: [PHP]

Re: [PHP] is there socket.so file?

2007-02-05 Thread Craige Leeder
Yeni, On Linux, it is necessary to compile php with the --enable-sockets flag to be able to use php's socket functions. Hope this helps, - Craige On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sat, February 3, 2007 10:18 am, Yeni Setiawan wrote: > Hi there, > I'm currently writing an I

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread tedd
At 11:14 AM -0500 2/5/07, Robert Cummings wrote: On Mon, 2007-02-05 at 11:09 -0500, tedd wrote: At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: >Demonstrating good English writing skills and having published good book >reviews in the past gets me preference. "gets me preference" ??? Me get a

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Manuel Lemos
Hello, on 02/05/2007 02:09 PM tedd said the following: > At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: >> Demonstrating good English writing skills and having published good book >> reviews in the past gets me preference. > > "gets me preference" ??? > > Me get any money for this? Good catch! ;-

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Stut
tedd wrote: At 12:06 AM -0500 2/5/07, Craige Leeder wrote: PHP is fine for commercial environments. Many people are just afraid of it due to the fact it is known to break some poorly written PHP 4 scripts, and the fact that many people don't think it's new features are "necessary". It is perfect

Re: [PHP] Sending secure mail

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 00:22:57 +: > I need to send a large number of emails (not spam!) through an external > SMTP server that requires TLS and a username/password. I have some > control over the SMTP server but very little over the web server where > the scripts reside. How do I con

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Manuel Lemos
Hello, on 02/05/2007 02:14 PM Robert Cummings said the following: >>> Demonstrating good English writing skills and having published good book >>> reviews in the past gets me preference. >> "gets me preference" ??? >> >> Me get any money for this? > > No money you get! Tingly feeling of goodwill

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-04 13:26:39 +0100: > Hello, > > actually i am workinh with the ldap functions of php5. > Reading the docs i found the constants > > GSLC_SSL_NO_AUTH > GSLC_SSL_ONEWAY_AUTH > GSLC_SSL_TWOWAY_AUTH > > They are simply documented, but i can't find any docs about t

[PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga
Hey list! :) I've got a problem trying to calculate a string width using an X font with some Y font size to use in an svg-to-pdf conversion. This is what I try to do: 1. Create a dummy image. 2. Set the text there using font X and the font size Y (it seems that when I create the image it rend

Re[2]: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread Ed Grigoryan
Hello tedd, Monday, February 5, 2007, 7:04:34 PM, you wrote: > At 11:36 PM -0500 2/4/07, Mauricio Muriel wrote: >>Hello. >> >>How can I know if a web browser is cookies enables? >> >>Regards >> >>Mauricio M. > Give it a glass of milk and watch what happens. > tedd > -- > --- > http://sperl

[PHP] Server Stall

2007-02-05 Thread Sancar Saran
Hi, One of my scripts are using wget to get external xml data $fp = popen ("wget -O - '".$dst."' | cat","r"); Some time $dst host responds very slowly. And that time if I open another connection to same server the second request waits to complete wget operation. I'm very noobie about this fil

Re: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread Ed Grigoryan
Also try: http://www.aspfaqs.com/webtech/082400-1.shtml What would we do without search engines? :)) Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans
Hey all, I installed a new FreeBSD 6.0 server here in the office with PHP5. I moved over several sites we developed under PHP4, and all of those seem to be functioning perfectly, but I am getting an error on to sites, on PostNuke based and our dotProject system. Both errors are the same, a

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Jochem Maas
Juan Felipe Alvarez Saldarriaga wrote: > Hey list! :) my name's not list but what the heck: take a look at these function, they should light the way: http://php.net/manual/en/function.imageftbbox.php http://php.net/manual/en/function.imagepsbbox.php http://php.net/manual/en/function.imagettfbbox

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Jochem Maas
Skip Evans wrote: > Hey all, > > I installed a new FreeBSD 6.0 server here in the office with PHP5. I > moved over several sites we developed under PHP4, and all of those seem > to be functioning perfectly, but I am getting an error on to sites, on > PostNuke based and our dotProject system. > >

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga
Jochem Maas wrote: Juan Felipe Alvarez Saldarriaga wrote: Hey list! :) my name's not list but what the heck: take a look at these function, they should light the way: http://php.net/manual/en/function.imageftbbox.php http://php.net/manual/en/function.imagepsbbox.php http://php.net/ma

[PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Matt Carlson
Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\\'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' => array('Addons' => array('' => )));). We came up with a very ugly hack to do it

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans
Jochem Maas wrote: the problem is not with $q but with $db. $db is not an object, why that is so I don't know - more bug hunting for you I'm afraid. Woops! I sure read that one wrong. Thanks, I will dig deeper. Does anyone have any experience running dotProject under PHP5? Skip Evans Big

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Sancar Saran
Hi, It look like your system cannot init adodb library. It may SQL setup problem... On Monday 05 February 2007 19:58, Skip Evans wrote: > Hey all, > > I installed a new FreeBSD 6.0 server here in the > office with PHP5. I moved over several sites we > developed under PHP4, and all of those seem t

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Jochem Maas
Matt Carlson wrote: > Over the weekend, I was tasked with taking a string representation of a > directory ('\Interface\Addons\\'), which can vary in > length (no set number of depths) to a multi-dimensional array (i.e. > array('Interface' => array('Addons' => array('' => )));). > > > We cam

RE: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Tim
Hi, > -Message d'origine- > De : Skip Evans [mailto:[EMAIL PROTECTED] > Envoyé : lundi 5 février 2007 19:31 > Cc : PHP-General > Objet : Re: [PHP] PHP4 to PHP5 issue > > Jochem Maas wrote: > > > > the problem is not with $q but with $db. $db is not an object, > > why that is so I don't kn

Re: [PHP] Server Stall

2007-02-05 Thread Matt Carlson
If you have cURL installed, you could use Curl to get the file, and manipulate the contents that way. Here is the standard function I use for grabbing a remote page. function doRequest($method, $url, $vars = '', $headers = '0') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans
Tim wrote: Yes, our company used it for three months before dumping it regarding PHP5 incompatibility and some other "mistakes".. I ended up having to fix/hack too many things (sessions doing weird things, broken forum, translations all messed up, user roles not working quite right, admin system

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread setcookie
pdf_stringwidth() may help you regards fra* > >> Hey list! :) > >> > > > > my name's not list but what the heck: > > > > take a look at these function, they should light the way: > > > > http://php.net/manual/en/function.imageftbbox.php > > http://php.net/manual/en/function.imagepsbbox.php > > h

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga
setcookie wrote: pdf_stringwidth() may help you regards fra* Yea I saw that too but you know, pdflib is not free. Hey list! :) my name's not list but what the heck: take a look at these function, they should light the way: http://php.net/manual/en/function.imageftbbox.php h

[PHP] _GET('name') truncates

2007-02-05 Thread Ramon
Hi all, I've written a php script, called test.php, consisting of the following statements: Using the script with 'small' values for the parameter sql works fine. Although, using the script with the sql query as specified below http://localhost/test.php?sql="SELECT orders_id, customers_id, c

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Jochem Maas
Skip Evans wrote: > Tim wrote: >> Yes, our company used it for three months before dumping it regarding >> PHP5 >> incompatibility and some other "mistakes".. I ended up having to fix/hack >> too many things (sessions doing weird things, broken forum, >> translations all >> messed up, user roles no

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Stut
Ramon wrote: I've written a php script, called test.php, consisting of the following statements: Using the script with 'small' values for the parameter sql works fine. Although, using the script with the sql query as specified below I do not understand why the value of the sql parameter is

Re: [PHP] _GET('name') truncates

2007-02-05 Thread tg-php
I'll let everyone else do the "why the hell are you doing this? security blah blah! bad practice blah blah!" type stuff.. I'm sure there will be plenty. One reason this may be happening is, depending on your browser, there's a limit to the number of characters you can have in a URL. That seem

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Jürgen Wind
Ramon-15 wrote: > > Hi all, > > I've written a php script, called test.php, consisting of the following > statements: > > error_reporting(E_ALL); > $query = $_GET['sql']; > echo $query; > ?> > Using the script with 'small' values for the parameter sql works fine. > Although, using the scri

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Oscar Gosdinski
When you send GET all the parameters are sent in the HTTP header and this header has a limited length. If you want to send large parameters in a form you have to use POST which send this data on the HTTP body and it has no limit. On 2/5/07, Ramon <[EMAIL PROTECTED]> wrote: Hi all, I've written

RE: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Tim
> -Message d'origine- > De : Jochem Maas [mailto:[EMAIL PROTECTED] > Envoyé : lundi 5 février 2007 21:00 > À : Skip Evans > Cc : 'PHP-General' > Objet : Re: [PHP] PHP4 to PHP5 issue > > Skip Evans wrote: > > Tim wrote: > >> Yes, our company used it for three months before dumping it rega

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread tedd
At 2:54 PM -0500 2/5/07, Juan Felipe Alvarez Saldarriaga wrote: setcookie wrote: pdf_stringwidth() may help you regards fra* Yea I saw that too but you know, pdflib is not free. Yes, but there's a free version -- Google fpdf. tedd -- --- http://sperling.com http://ancientstones.com

Re[2]: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread tedd
At 9:28 PM +0300 2/5/07, Ed Grigoryan wrote: Hello tedd, Monday, February 5, 2007, 7:04:34 PM, you wrote: At 11:36 PM -0500 2/4/07, Mauricio Muriel wrote: Hello. How can I know if a web browser is cookies enables? Regards Mauricio M. Give it a glass of milk and watch what happens.

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Keryx Web
Eric Gorr skrev: I haven't tracked this particular issue, but I know when PHP5 was first released is wasn't recommended in a commercial/production environment. However, a lot of time has passed and we're at v5.2 now...have things changed? Have Google&Yahoo, for example, moved to PHP5? Or is PHP

[PHP] Regular Expression

2007-02-05 Thread H.T
Do you know good regular expression editor or something simialar? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _GET('name') truncates

2007-02-05 Thread tedd
At 3:11 PM -0500 2/5/07, <[EMAIL PROTECTED]> wrote: That seems to be cutting off around 900 characters. That's a lot to put into a URL. That figure varies. I did some testing on one of my servers and the cut off was somewhere around 7000 characters. However, I don't recommend the practice.

Fw: [PHP] Regular Expression

2007-02-05 Thread Satyam
- Original Message - From: "H.T" <[EMAIL PROTECTED]> To: Sent: Monday, February 05, 2007 10:12 PM Subject: [PHP] Regular Expression Do you know good regular expression editor or something simialar? This goes into the 'something similar' category: From the documentation: The Re

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Petric Frank
Hello Roman, On Monday 05 February 2007 17:12, Roman Neuhauser wrote: > > actually i am workinh with the ldap functions of php5. > > Reading the docs i found the constants > > > > GSLC_SSL_NO_AUTH > > GSLC_SSL_ONEWAY_AUTH > > GSLC_SSL_TWOWAY_AUTH > > > > They are simply documented, but i can

[PHP] Image upload

2007-02-05 Thread Robert Fitzpatrick
I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot seem to find. The file is posted as a file fields in a multipart/f

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 22:00 +0100, Keryx Web wrote: > Eric Gorr skrev: > > I haven't tracked this particular issue, but I know when PHP5 was first > > released is wasn't recommended in a commercial/production environment. > > However, a lot of time has passed and we're at v5.2 now...have things

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Jochem Maas
Stut wrote: > tedd wrote: >> At 12:06 AM -0500 2/5/07, Craige Leeder wrote: >>> PHP is fine for commercial environments. Many people are just afraid >>> of it due to the fact it is known to break some poorly written PHP 4 >>> scripts, and the fact that many people don't think it's new features >>>

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Jochem Maas
Robert Cummings wrote: > On Mon, 2007-02-05 at 22:00 +0100, Keryx Web wrote: >> Eric Gorr skrev: >>> I haven't tracked this particular issue, but I know when PHP5 was first >>> released is wasn't recommended in a commercial/production environment. >>> However, a lot of time has passed and we're a

Re: [PHP] Image upload

2007-02-05 Thread Jochem Maas
Robert Fitzpatrick wrote: > I have a small application that ran on one server and now gives me a > problem with uploading images on a new server. I am running PHP 4.4.4 > now on this server and hoping it is just something that needs adjusted > in php.ini, but cannot seem to find. The file is posted

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 23:03:41 +0100: > On Monday 05 February 2007 17:12, Roman Neuhauser wrote: > > > actually i am workinh with the ldap functions of php5. > > > Reading the docs i found the constants > > > > > > GSLC_SSL_NO_AUTH > > > GSLC_SSL_ONEWAY_AUTH > > > GSLC_SSL_TWOWAY_A

Re: [PHP] Image upload

2007-02-05 Thread Robert Fitzpatrick
Jochem Maas wrote: Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot seem to find. T

Re: [PHP] Image upload

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 4:29 pm, Robert Fitzpatrick wrote: > I have a small application that ran on one server and now gives me a > problem with uploading images on a new server. I am running PHP 4.4.4 > now on this server and hoping it is just something that needs adjusted > in php.ini, but canno

Re: [PHP] Image upload

2007-02-05 Thread Richard Lynch
PS I forgot that the $_FILES array also has an 'error' field in it. Check that! On Mon, February 5, 2007 4:29 pm, Robert Fitzpatrick wrote: > I have a small application that ran on one server and now gives me a > problem with uploading images on a new server. I am running PHP 4.4.4 > now on thi

Re: [PHP] Regular Expression

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 3:12 pm, H.T wrote: > Do you know good regular expression editor or something simialar? "The Regex Coach" Helps you figure things out piece by piece with fancy color highlighting of what matches what, and a tree graph and everything. -- Some people have a "gift" link he

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
GET args can be truncated at some number, if the server does not want to allow longer args. I believe the minimum compliant limit is 1024 bytes. You also REALLY ought to be using http://php.net/urlencode on the GET args. And if you are spitting that URL out to a browser, you should then use http

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 2:11 pm, [EMAIL PROTECTED] wrote: > If you're really intent on setting up a PHP powered web page to test > SQL statements, I might recommend using a web form either using input > type=text or textarea form elements and a POST method instead of GET. I belive the minimum com

Re: [PHP] Server Stall

2007-02-05 Thread Sancar Saran
Hi, Matt Thanks for answer, I try your solution and use it. And interestingly I found this, If my request coming from second tab of firefox it will wait util first request done. I think php does not open second thread for same session... Anyway thanks for answer. It was very useful.. Regards

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 12:27 pm, Matt Carlson wrote: > Over the weekend, I was tasked with taking a string representation of > a directory ('\Interface\Addons\\'), which can > vary in length (no set number of depths) to a multi-dimensional array > (i.e. array('Interface' => array('Addons' => arr

Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Richard Lynch
Your problem is the $db is NOT an Object. $q is fine as-is. Figure out why $db isn't getting be an object -- Probably because the username/password and/or permissions to connect to the DB aren't set up correctly. Or you didn't copy over the DB tables PostNuke and dotProject need. On Mon, Februa

Re: [PHP] Server Stall

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 11:42 am, Sancar Saran wrote: > Hi, > > One of my scripts are using wget to get external xml data > > $fp = popen ("wget -O - '".$dst."' | cat","r"); > > Some time $dst host responds very slowly. And that time if I open > another > connection to same server the second reque

Re: [PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
The document IS UTF-8. The character does not seem to be. It comes from a mySQL database. However, also the database settings are also UTF-8. The field was entered into the database with phpMyAdmin. I tried it now local on my test-system and remote, so the database itself does not seem to be the

Re: [PHP] Encoding problem

2007-02-05 Thread Guus Ellenkamp
Found it. Have to use: mysql_query("SET CHARACTER SET 'utf8'", $link); ""Guus Ellenkamp"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The document IS UTF-8. The character does not seem to be. It comes from a > mySQL database. However, also the database settings are also UTF-8.

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 2:36 pm, Oscar Gosdinski wrote: > When you send GET all the parameters are sent in the HTTP header and > this header has a limited length. If you want to send large parameters > in a form you have to use POST which send this data on the HTTP body > and it has no limit. Las

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 11:22 am, Juan Felipe Alvarez Saldarriaga wrote: > 1. Create a dummy image. > 2. Set the text there using font X and the font size Y (it seems that > when I create the image it renders it at 72dpi so I need to reduce it > at > 300dpi) When I did a 300-dpi PDF thingie, I de

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 12:04 pm, Jochem Maas wrote: > there is no dpi - your screen & printer has a certain dpi and that > determine > how big the image displays on either. This is true, but ultimately, if you want the dang thing to print out at 300 DPI, then you want enough pixels to make that

Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 1:54 pm, Juan Felipe Alvarez Saldarriaga wrote: > setcookie wrote: >> pdf_stringwidth() may help you >> >> regards fra* >> >> >> > > Yea I saw that too but you know, pdflib is not free. Depends on your usage and if you need the PDI part or not... PDI == Smush two PDF toge

Re: [PHP] is there socket.so file?

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:30 am, Craige Leeder wrote: > On Linux, it is necessary to compile php with the --enable-sockets > flag to be able to use php's socket functions. Unless it's PHP 4, and it's already in, or PHP 5 and it's in PECL or... It's just not that simple. Sorry. -- Some people

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:55 am, Stut wrote: > tedd wrote: >> At 12:06 AM -0500 2/5/07, Craige Leeder wrote: >>> PHP is fine for commercial environments. Many people are just >>> afraid >>> of it due to the fact it is known to break some poorly written PHP >>> 4 >>> scripts, and the fact that

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:09 am, tedd wrote: > At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: >>Demonstrating good English writing skills and having published good >> book >>reviews in the past gets me preference. > > "gets me preference" ??? > > Me get any money for this? Hey, go easy on the non-

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:56 am, Manuel Lemos wrote: > Often writing books is also not worth the effort. Many authors that > try > it, only write one book and then give up because the books do not sell > enough and they realize they can make more doing something else like > consulting. If writin

[PHP] Writting a simple proxy in PHP

2007-02-05 Thread Alessandro Vernet
I would like to forward on the server side (also called "proxy" or "server-side redirect") some queries that get to my PHP script. A naive approach is to do: print(implode("", file("http://localhost:8090"; . $REQUEST_URI))); Where http://localhost:8090 is the address I want to proxy to. But of c

Re: [PHP] include file identifier

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 10:09 am, Craige Leeder wrote: > On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> If you want to avoid the overhead of include_once, it's a pretty >> common practice (borrowed from C .h files) to do: > > Just out of curiosity, how much additional overhead are we talki

Re: [PHP] who is online?

2007-02-05 Thread Richard Lynch
If you use http://php.net/session_start, I guess you could declare that your session timeout *IS* the definition of current users... But, really, even at 5 minutes, you may be counting a lot of people who have LEFT your site. There is no "real" number for this. Do whatever you want. On Mon, Feb

Re: [PHP] is there socket.so file?

2007-02-05 Thread Craige Leeder
On 2/5/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Unless it's PHP 4, and it's already in, or PHP 5 and it's in PECL or... It's just not that simple. Sorry. Ah, I didn't realize they stopped bundling it with PHP as of PHP 5.3.0. That sucks. It used to be that simple. - Craige -- PHP Genera

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Manuel Lemos
Hello, on 02/06/2007 12:43 AM Richard Lynch said the following: >> Often writing books is also not worth the effort. Many authors that >> try >> it, only write one book and then give up because the books do not sell >> enough and they realize they can make more doing something else like >> consult

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Manuel Lemos
Hello, on 02/06/2007 12:39 AM Richard Lynch said the following: >>> Demonstrating good English writing skills and having published good >>> book >>> reviews in the past gets me preference. >> "gets me preference" ??? >> >> Me get any money for this? > > Hey, go easy on the non-native speakers...

Re: [PHP] Regular Expression

2007-02-05 Thread Frank Arensmeier
5 feb 2007 kl. 22.12 skrev H.T: Do you know good regular expression editor or something simialar? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Regex online: www.regextester.com //frank -- PHP General Mailing List (http://www.php.net/)