Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-02 Thread Tom Rogers
Hi, Saturday, September 3, 2005, 9:19:11 AM, you wrote: MS> hello, MS> I'm writing a socket approach to send email directly via an SMTP server MS> (since some hosts block sendmail trough php due to abuse). Now, I have MS> the code, attached below: MS> I have cut it down slightly so it would still

[PHP] SoundEx in swedish?

2005-09-02 Thread Gustav Wiberg
Hi there! Soundex works with diffrent kind of pronounciation... but does it work with Swedish language? Anyone have experience of this??? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FreeBSD php{4,5} w/ LDAP + SSL/TLS ldap_start_tls()

2005-09-02 Thread Rasmus Lerdorf
Brian A. Seklecki wrote: > Firstly, sorry if this is the wrong list. There are thousands of forums > and PHP5 related MLs, but nothing FBSD specific. > > Second, I wouldn't post if this wasn't happening on two completely > different FBSD boxes. > > For whatever reason, the php4 and php5 from Fre

Re: [PHP] problem with the session and global variable

2005-09-02 Thread Gustav Wiberg
Hi there! I don't quite understand what you're trying to do here. Please send more code, then I might be able to help you... :-) /G @varupiraten.se - Original Message - From: "Tomás Rodriguez Orta" <[EMAIL PROTECTED]> To: Sent: Saturday, September 03, 2005 4:46 AM Subject: [PHP] pr

[PHP] FreeBSD php{4,5} w/ LDAP + SSL/TLS ldap_start_tls()

2005-09-02 Thread Brian A. Seklecki
All: Firstly, sorry if this is the wrong list. There are thousands of forums and PHP5 related MLs, but nothing FBSD specific. Second, I wouldn't post if this wasn't happening on two completely different FBSD boxes. For whatever reason, the php4 and php5 from FreeBSD ports refuses to prop

[PHP] problem with the session and global variable

2005-09-02 Thread Tomás Rodriguez Orta
Hello people. I have an problem very very complicate for me. I have some template in my web sitie, and a car buy, I want to show to the user what count of the books have in your car buy, but when I enter a new page in the other tampletae the variable take 1, why? In ache page I write the followin

[PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-02 Thread M. Sokolewicz
hello, I'm writing a socket approach to send email directly via an SMTP server (since some hosts block sendmail trough php due to abuse). Now, I have the code, attached below: I have cut it down slightly so it would still be readable though. I'm very sure that none of the stuff I removed actua

[PHP] PHP4.4.0 not recognizing pdflib installtion

2005-09-02 Thread Young
Hi, I'm trying to install PHP 4.4.0 with pdf support in CentOS 4.1 Should I compile PHP with --with-pdflib first and install pdflib using pear command (pear install pdflib)? or compile PHP with no --with-pdflib and then install pdflib using pear command (pear install pdflib)? I already installe

Re: [PHP] need information on sending email using php

2005-09-02 Thread Stephen Johnson
http://www.php.net/mail On 9/2/05 12:40 PM, "Paul Goepfert" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new to php. I am going to be setting up a page that has a form > on it. When the user clicks on submit an email should be sent with > the contents of the form. My question is How do I do

Re: [PHP] need information on sending email using php

2005-09-02 Thread Philip Hallstrom
I am new to php. I am going to be setting up a page that has a form on it. When the user clicks on submit an email should be sent with the contents of the form. My question is How do I do that? the webserver that I will be placing this page on has php ver 4.4.0 on it. Any help would be appre

[PHP] need information on sending email using php

2005-09-02 Thread Paul Goepfert
Hi all, I am new to php. I am going to be setting up a page that has a form on it. When the user clicks on submit an email should be sent with the contents of the form. My question is How do I do that? the webserver that I will be placing this page on has php ver 4.4.0 on it. Any help would

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: > Chris Shiflett wrote: > >>Rasmus Lerdorf wrote: >> >> >>>Why modify my test? >> >> >>Because it has less delay. Thus, it's more difficult to tell if the >>browser is requesting the new URL before or after receiving the entire >>response. My script is essentially the same th

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: > Rasmus Lerdorf wrote: > >> Why modify my test? > > > Because it has less delay. Thus, it's more difficult to tell if the > browser is requesting the new URL before or after receiving the entire > response. My script is essentially the same thing, but the script takes > 30

Re: [PHP] intval() vs. (int)

2005-09-02 Thread Robert Cummings
On Fri, 2005-09-02 at 14:47, Rory Browne wrote: > (int) seems to be faster, but not by an awful lot. Personally however > if its a case of typing five characters (int) and saving a little exec > time, or typing 8 and losing a little, then I'd perfer to go with the > five an save the exec time. (in

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script takes 30 seconds to execute. It makes the dis

Re: [PHP] intval() vs. (int)

2005-09-02 Thread Rory Browne
(int) seems to be faster, but not by an awful lot. Personally however if its a case of typing five characters (int) and saving a little exec time, or typing 8 and losing a little, then I'd perfer to go with the five an save the exec time. I think I remember hearing about some other consequence wit

Re: [PHP] Content - strip...

2005-09-02 Thread Philip Hallstrom
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this? Use strstr() to find the first occurence of "Jumping Jack

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: > Rasmus Lerdorf wrote: > >> Then you have configured your server to always turn on output >> buffering or your test script is bad. > > > I don't think it's either, but I'll let you decide. I tried a new test > with your code and some slight modifications: Why modify my te

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Then you have configured your server to always turn on output buffering or your test script is bad. I don't think it's either, but I'll let you decide. I tried a new test with your code and some slight modifications: http://www.php.net/'); $fp = fopen('/tmp/log.txt', 'w

[PHP] Content - strip...

2005-09-02 Thread Gustav Wiberg
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this? /G @varupiraten.se -- PHP General Mailing List (http://ww

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: > Chris Shiflett wrote: > >> > And the browsers tend to redirect right away once they get this >> > header. >> >> I would find that very surprising. Maybe I'll experiment. > > > I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of > them request the new

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Chris Shiflett wrote: > And the browsers tend to redirect right away once they get this > header. I would find that very surprising. Maybe I'll experiment. I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of them request the new URL before receiving the previous response

Re: [PHP] deleting files on Windows...permissions issue

2005-09-02 Thread Gustav Wiberg
Hi there! Are you using rmdir? http://se2.php.net/manual/en/function.rmdir.php /G @varupiraten.se - Original Message - From: "James" <[EMAIL PROTECTED]> To: Sent: Friday, September 02, 2005 6:45 PM Subject: [PHP] deleting files on Windows...permissions issue I have a php script th

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: > Rasmus Lerdorf wrote: > >> That's a bit misleading. The HTTP response headers are sent a soon >> as you output something from your script (calling header() or >> setcookie() doesn't count as output, so you can set all the headers >> and cookies you want). > > > They're se

Re: [PHP] Session expires randomly

2005-09-02 Thread Kirk . Johnson
> On Fri, 2 Sep 2005, Mauricio Pellegrini wrote: > > > Hi, I have this problem , When I start a Session everything seems to be > > ok but sometimes with no reason the session vanishes. > > > > All settings are default , I mean session_cache_expire is 180 min. > > I understand that this setting sh

Re: [PHP] session cookies

2005-09-02 Thread Philip Hallstrom
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean anyth

Re: [PHP] Session expires randomly

2005-09-02 Thread Philip Hallstrom
On Fri, 2 Sep 2005, Mauricio Pellegrini wrote: Hi, I have this problem , When I start a Session everything seems to be ok but sometimes with no reason the session vanishes. I'm using PHP 4.3.4 as a Apache module. Apache version is 1.3 under Suse Linux 8.2 All settings are default , I mean sess

Re: [PHP] Ping : Chris Boget

2005-09-02 Thread John Nichel
John Nichel wrote: How are you weathering the storm? I hope all is well there. Just heard that Chris is safe. Don't know where he is as of yet, but he did leave before the storm. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://ww

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean anythin

[PHP] deleting files on Windows...permissions issue

2005-09-02 Thread James
I have a php script that can delete files in a folder but it can not delete the folder itself. I've tried to play around with permissions on the Windows box and couldn't set it to something that would allow the PHP script to delete the folder. I think I even tried to set the permissions for

Re: [PHP] conditional statement inside while loop?

2005-09-02 Thread << z a p a n >>
Murray, Miles, Cristea & Jim: Thanks a lot, I got it figured out. Peace, -z >> Hello everyone, >> >> I'm using a while loop to display a list of people contained in my >> database. >> I'd like to assign different font colors to each depending on which city >> they're from, but I can't seem to ge

[PHP] Session expires randomly

2005-09-02 Thread Mauricio Pellegrini
Hi, I have this problem , When I start a Session everything seems to be ok but sometimes with no reason the session vanishes. I'm using PHP 4.3.4 as a Apache module. Apache version is 1.3 under Suse Linux 8.2 All settings are default , I mean session_cache_expire is 180 min. I understand that th

Re: [PHP] Making Text [not the background] transparent

2005-09-02 Thread Joe Wollard
Graham: Unless you need a specific font you could just do this by using pure CSS. If you do, the image layer would be behind the text layer. The text layer can be set to any color and (in most every modern browser) any alpha level. This is some translucent text good luck! -Joe On Aug 31

Re: [PHP] intval() vs. (int)

2005-09-02 Thread Philip Hallstrom
On checking form fields that they are of type int, what is best to use: intval() or type casting (int)? In terms of speed, would (int) not be better, because we save a function call (especially on very large sql statements)? Time it. On an 800mhz box doing absolutely nothing else (it's just sit

Re: [PHP] Re: Php and postfix error <[EMAIL PROTECTED]>: Sender address rejected: Domain not found

2005-09-02 Thread choksi
Thanks This is sorted now. Rgds Dhaval On 02/09/05, JamesBenson <[EMAIL PROTECTED]> wrote: > > http://php.net/mail > > > > choksi wrote: > > Hi All, > > I have php running over Apache on a debian box. I am tryin to use the > php > > mail function. When i run this command from console (php

Re: [PHP] 400 error

2005-09-02 Thread John Nichel
Seth Rainsdon wrote: when I try to access anything.php it tells me HTTP 400 bad request I have no clue how to fix this Seth And yet, unlike us, you have access to the code. Please turn off your request for return receipts when posting to a mailing list. -- John C. Nichel ÜberGeek KegWorks.

[PHP] Re: Php and postfix error <[EMAIL PROTECTED]>: Sender address rejected: Domain not found

2005-09-02 Thread JamesBenson
http://php.net/mail choksi wrote: Hi All, I have php running over Apache on a debian box. I am tryin to use the php mail function. When i run this command from console (php email.php) it will run and the mail is delivered as it will get the from username from the postfix config file but wh

[PHP] Re: How to force a variable to be a custom object?

2005-09-02 Thread Alex Gemmell
Norbert Wenzel wrote: I don't know if this works in PHP4, but I would suggest to clear this in your constructur. But I don't know if this is always called in PHP4. class myClass { var $object; myClass() { $this->object = new OtherObject(); } } This isn't really for

[PHP] Re: How to force a variable to be a custom object?

2005-09-02 Thread Norbert Wenzel
Alex Gemmell wrote: Just a quickie today: I was wondering if I can declare a Class variable as a certain type of object. I'm using PHP 4 by the way. I don't know if this works in PHP4, but I would suggest to clear this in your constructur. But I don't know if this is always called in PHP4.

[PHP] How to force a variable to be a custom object?

2005-09-02 Thread Alex Gemmell
Hi all, Just a quickie today: I was wondering if I can declare a Class variable as a certain type of object. I'm using PHP 4 by the way. For example, if my class looks like this: class myClass { var $object; function someFunction() { // code, code, code

[PHP] exec() may not be safe

2005-09-02 Thread Ilja Polivanovas
Hi guys, When running On Windows 98SE, apache 1.3, PHP4, client get such thing in apache's error.log . [Fri Sep 02 09:33:21 2005] [warn] exec() may not be safe [Fri Sep 02 09:34:26 2005] [warn] exec() may not be safe [Fri Sep 02 09:35:31 2005] [warn] exec() may not be safe Any ideas why? M

[PHP] Problem with new extension

2005-09-02 Thread George Pitcher
Hi, I think that I may have messed up my php (v5.0.1). Earlier today, I downloaded the most recent extensions and replaced my php_pdf.dll (aug 2004)with the most recent (Mar 2005) - set the permissions to be the same as the other extensions - then restarted the machine. I'm now getting an error:

Re: [PHP] Re: Tracking a mobile phone

2005-09-02 Thread Jasper Bryant-Greene
Angelo Zanetti wrote: Marcus Bointon wrote: On 18 Jul 2005, at 20:56, Sebastian wrote: The phone would have to have GPS capabilities.. Not true. The network knows what cell the phone is in(and cells are pretty small in cities), and it knows where the cell is. This is the mechanism that's

Re: [PHP] Re: Tracking a mobile phone

2005-09-02 Thread Angelo Zanetti
Marcus Bointon wrote: > On 18 Jul 2005, at 20:56, Sebastian wrote: > >> The phone would have to have GPS capabilities.. > > > Not true. The network knows what cell the phone is in(and cells are > pretty small in cities), and it knows where the cell is. This is the > mechanism that's used for loc

[PHP] comparing references

2005-09-02 Thread Stanislav Kuhn
Hi guys, quick question I need to find out if two different variables are pointing to same place... example: $var1 = &my_array; $var2 = &my_array; I need to do: if ($var1 === $var2) but I don't want to compare it by data, array is gonna be quite big and condition used in loop quite often. I n

[PHP] Php and postfix error <[EMAIL PROTECTED]>: Sender address rejected: Domain not found

2005-09-02 Thread choksi
Hi All, I have php running over Apache on a debian box. I am tryin to use the php mail function. When i run this command from console (php email.php) it will run and the mail is delivered as it will get the from username from the postfix config file but when i run the command from browser it ru

Re: [PHP] Re: calling PHP self with a text link

2005-09-02 Thread Jasper Bryant-Greene
Mark Rees wrote: Ross wrote: I thought you joined strings with a full stop '.' (a period if you are from the US). There was a long thread on this only yesterday, under the heading "String format problem". The online archives will carry it shortly, if they don't already, and it is well wo

[PHP] Re: 400 error

2005-09-02 Thread Mark Rees
""Seth Rainsdon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] when I try to access anything.php it tells me HTTP 400 bad request I have no clue how to fix this Seth Nor do we, yet. Which OS? Which web server? What have you tried so far? Has it just broken, or did it never work? -

Re: [PHP] Re: calling PHP self with a text link

2005-09-02 Thread Mark Rees
> Ross wrote: > > do somehthing > > > > this seems to work but can someone explain the syntax to me what does a '?' > > and a ',' do in PHP? > > > > I thought you joined strings with a full stop '.' (a period if you are from > > the US). > There was a long thread on this only yesterday, under the

[PHP] intval() vs. (int)

2005-09-02 Thread Thomas
Hi, On checking form fields that they are of type int, what is best to use: intval() or type casting (int)? In terms of speed, would (int) not be better, because we save a function call (especially on very large sql statements)? Thanks. Thomasx` SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen

[PHP] 400 error

2005-09-02 Thread Seth Rainsdon
when I try to access anything.php it tells me HTTP 400 bad request I have no clue how to fix this Seth

Re: [PHP] Re: calling PHP self with a text link

2005-09-02 Thread Jasper Bryant-Greene
Ross wrote: do somehthing this seems to work but can someone explain the syntax to me what does a '?' and a ',' do in PHP? I thought you joined strings with a full stop '.' (a period if you are from the US). You are passing multiple parameters to the 'echo' language construct. The '?' is

[PHP] Re: calling PHP self with a text link

2005-09-02 Thread Ross
do somehthing this seems to work but can someone explain the syntax to me what does a '?' and a ',' do in PHP? I thought you joined strings with a full stop '.' (a period if you are from the US). R. ""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want call

Re: [PHP] calling PHP self with a text link

2005-09-02 Thread Jasper Bryant-Greene
Ross wrote: I want call the current page and set a variable (or call a function) < a href="index.php?variable=bananas" -this works but means I have to change it for every page name I have tried this is the link What's wrong with link By the way, you can't trust PHP_SELF, so you might wan