[PHP] AND OR NOT

2005-09-03 Thread John Taylor-Johnston
Any suggestion on how to swap AND OR NOT for mysql fulltext syntax in $searchenquiry? A simple parse for " AND " and then str_replace? Is str_replace appropriate for case? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another nube strugaling to get PHP working with Apache.

2005-09-03 Thread Jasper Bryant-Greene
Dale Turner wrote: I installed apache and it seems to be working. I installed PHP and ti seems to translate HTML but it dosent seem to understand PHP. # added the line. AddType application/x-hpptd-php .php .phtml .html Maybe you'd like to try: AddType application/x-httpd-php .php .phtml .ht

[PHP] Another nube strugaling to get PHP working with Apache.

2005-09-03 Thread Dale Turner
I installed apache and it seems to be working. I installed PHP and ti seems to translate HTML but it dosent seem to understand PHP. Here is what is did; I modified the PATH=.. to PATH= .;C:\php5 i placed the PHP.ini file in the c:\php5 directory I made three modifacations to

[PHP] Compositing 3 images at once with GD

2005-09-03 Thread Graham Anderson
is there a way to take 3 objects: button graphic picture thumbnail text from a POST and composit them together at the same time ? I guess I could take the first 2 elements: button graphic and the picture thumbnail...and then imagecopy it... and then take that composited image and overlay text

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

2005-09-03 Thread Tomás Rodriguez Orta
Ok. thanks but I am did a mistake at the code web sitie. but I solve this problem. thanks very mouh. @TOMAS - Original Message - From: "Gustav Wiberg" <[EMAIL PROTECTED]> To: "Tomás Rodriguez Orta" <[EMAIL PROTECTED]>; Sent: Friday, September 02, 2005 10:29 PM Subject: Re: [PHP] problem

Re: [PHP] Generating images on the fly, linking via symlink?

2005-09-03 Thread Edward Vermillion
Dan Trainor wrote: Dan Trainor wrote: Hello, all - This is a question that could depend on a completely different (yet, relayed) subject, so I'm sending this email to both php-general@ and [EMAIL PROTECTED] I thank you in advance for your understanding. I am currently generating some imag

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

2005-09-03 Thread Brian A. Seklecki
On Sat, 3 Sep 2005, Rasmus Lerdorf wrote: File a bug at http://bugs.php.net and someone will take a look. Brian A. Seklecki wrote: Done: http://bugs.php.net/34361 FreeBSD PR (CC'd maintainer): ports/85700 http://www.freebsd.org/cgi/query-pr.cgi?pr=85700 NetBSD PR (CC'd main

Re: [PHP] Generating images on the fly, linking via symlink?

2005-09-03 Thread Rasmus Lerdorf
Dan Trainor wrote: > Dan Trainor wrote: > >> Hello, all - >> >> This is a question that could depend on a completely different (yet, >> relayed) subject, so I'm sending this email to both php-general@ and >> [EMAIL PROTECTED] I thank you in advance for your understanding. >> >> I am currently gen

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

2005-09-03 Thread Rasmus Lerdorf
File a bug at http://bugs.php.net and someone will take a look. Brian A. Seklecki wrote: > > Okay, problem fixed: > > 1) cd /usr/{ports,pkgsrc}/{net/php5-ldap,databases/php-ldap} on > {Free,Net}BSD respectively > > 2) sudo make configure > > 3) sudo vim > On FreeBSD > work/php-5.0.4/ext/ldap/c

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

2005-09-03 Thread Brian A. Seklecki
Okay, problem fixed: 1) cd /usr/{ports,pkgsrc}/{net/php5-ldap,databases/php-ldap} on {Free,Net}BSD respectively 2) sudo make configure 3) sudo vim On FreeBSD work/php-5.0.4/ext/ldap/config.h or.. work/php-4.4.0/ext/ldap/config.h on NetBSD: work/php-5.0.4/ext/ldap/config.h 4) Change: /* Def

Re: [PHP] Using parent with call_user_func_array

2005-09-03 Thread Chris
You know, ... after I posted this, I found another bug (not sure how I missed it before). This one may actually be the cause of my problem: http://bugs.php.net/bug.php?id=32290 I don't relish the idea of an upgrade to work around this problem though. So any thoughts or idea would still be appr

[PHP] Using parent with call_user_func_array

2005-09-03 Thread Chris
Should these two pieces of code function identically? $aArgs = array('testarg1','testarg2'); call_user_func_array(array('parent','AddNewElement',$aArgs) and parent::AddNewElement('testarg1','testarg2'); I'm havign trouble debugging this, but my app seems to be going into an infinite loop when

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

2005-09-03 Thread Brian A. Seklecki
Rasmus / all: I'll revert to that as path of last resort. The FreeBSD port mechanism for installing php extensions is administratively superior to maintaining source installations manually. Apache/PHP/LDAP/SSL/SQL cocktails on anything other than Linux are way too convuluted to not be using

Re: [PHP] Generating images on the fly, linking via symlink?

2005-09-03 Thread Dan Trainor
Dan Trainor wrote: Hello, all - This is a question that could depend on a completely different (yet, relayed) subject, so I'm sending this email to both php-general@ and [EMAIL PROTECTED] I thank you in advance for your understanding. I am currently generating some images on the fly using s

RE: [PHP] Impossible???

2005-09-03 Thread Shaw, Chris - Accenture
> I'm trying to get the computername... :-) Since your not passing the script any ip address, I presume that the Script you are trying to run gets the computername of the computer it is run on? If you got that to work, they only place you could run it is on the server, thus getting the server co

Re: [PHP] How to get GD to handle different image formats?

2005-09-03 Thread Rasmus Lerdorf
Graham Anderson wrote: > I would like the gd library to handle the vector image format, PCT. > > GD is installed on my shared server and, unfortunately, ImageMagick is > not :( > ImageMagick CAN export PCT files. > > Can I get GD to do this too ? Not as far as I know, no. -Rasmus -- PHP Gene

Re: [PHP] Re: php 5 upgrade - undefined index errors EVERYWHERE

2005-09-03 Thread Rasmus Lerdorf
Michelle Konzack wrote: > Hello Jason, > > Am 2005-09-03 10:42:27, schrieb Jason Boerner: > >>My server was upgraded to php 5 and now nothing runs because of undefined >>index errors all over the place.. How can I save myself from recoding for >>hours and hours ?? > > > I have tried tu upgrade

Re: [PHP] Re: apache (root) + php4

2005-09-03 Thread Rasmus Lerdorf
Michelle Konzack wrote: > Hi Rory, > > Am 2005-09-03 17:04:19, schrieb Rory Browne: > > >>I'm not totally sure on the format of the passwords in /etc/shadow, >>but can you do anything with php's md5 function? If not, then perhaps >>the mcrypt extension may do something for you. > > > Unfortuna

[PHP] Re: apache (root) + php4

2005-09-03 Thread M. Sokolewicz
the one you posted is created with crypt() (see crypt in the php manual) Michelle Konzack wrote: Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: I'm not totally sure on the format of the passwords in /etc/shadow, but can you do anything with php's md5 function? If not, then perhaps the

Re: [PHP] Impossible???

2005-09-03 Thread Gustav Wiberg
- Original Message - From: "Rory Browne" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Saturday, September 03, 2005 4:40 PM Subject: Re: [PHP] Impossible??? What exactly are you trying to do? That looks like clientside code. Why exactly are y

[PHP] How to get GD to handle different image formats?

2005-09-03 Thread Graham Anderson
I would like the gd library to handle the vector image format, PCT. GD is installed on my shared server and, unfortunately, ImageMagick is not :( ImageMagick CAN export PCT files. Can I get GD to do this too ? g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] I have a special problem

2005-09-03 Thread Populous Refurbished
Hi, with what program i can upload my files in ftp but make it writables, beacause i cant's config nothing and start to build with php.   Thanks.

[PHP] Re: php 5 upgrade - undefined index errors EVERYWHERE

2005-09-03 Thread Michelle Konzack
Hello Jason, Am 2005-09-03 10:42:27, schrieb Jason Boerner: > My server was upgraded to php 5 and now nothing runs because of undefined > index errors all over the place.. How can I save myself from recoding for > hours and hours ?? I have tried tu upgrade my Server to php5 too. Same Errors... s

[PHP] Re: apache (root) + php4

2005-09-03 Thread Michelle Konzack
Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: > I'm not totally sure on the format of the passwords in /etc/shadow, > but can you do anything with php's md5 function? If not, then perhaps > the mcrypt extension may do something for you. Unfortunatly not, because echo -n "michellesec

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
In the end I decided I'll just use the fsockopen(), feof(), fwrite, fread, etc. function-set instead (got the idea from PEAR's NET_Socket). And that seems to work just fine... too bad I couldn't get the low-level functions to work (still don't know why), but this works great... thank you all f

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
file permissions on what? These are sockets :( - tul As the wise Gustav Wiberg <[EMAIL PROTECTED]> said: Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se - Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: ; "Tom Rogers" <[EMAIL P

[PHP] php 5 upgrade - undefined index errors EVERYWHERE

2005-09-03 Thread Jason Boerner
My server was upgraded to php 5 and now nothing runs because of undefined index errors all over the place.. How can I save myself from recoding for hours and hours ?? Thank you in advance for any help you can offer. -jason

Re: [PHP] apache (root) + php4

2005-09-03 Thread Rory Browne
On 9/3/05, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Hello *, > > for an half hour I was at a new customer and they run apache 1.3 as > root on am IntranetServer because they need to admin there Fileserver > via php. > > Now some problems: > > 1) They use exec("mcrypt ") to generate UNI

Re: [PHP] Impossible???

2005-09-03 Thread Rory Browne
What exactly are you trying to do? That looks like clientside code. Why exactly are you trying to open a local(clientside) network object? On 9/1/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > Hi again! > > > Is this impossible to do in PHP? > > > Dim objNet > On Error Resume Next > > 'In

Re: [PHP] array varible problems

2005-09-03 Thread edwardspl
Hello, I have just rewrite the source and test the result... But it is still problem ! So, more help ? Thanks ! [EMAIL PROTECTED] wrote: > Hello Jasper, > > Does your means : > > I need to rewite the source / result page as the following ? > > Result page: > > for($i=0;$i<4;$i++) > { > $

Re: [PHP] mysql_connect() error

2005-09-03 Thread Cristea Adrian
Are you sure that is the 5-th line of your script? please give us first 1-10 lines (remove confidential data) for debuging... On 9/3/05, php general help wrote: > Hi > > guys hope you can all help me here. im in the middle of making a script ( im > still quite new), anyway im getting this error

[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi guys hope you can all help me here. im in the middle of making a script ( im still quite new), anyway im getting this error Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is mysql_connect($dbhost, $dbusername, $dbpassword) , i know its the m

[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi guys hope you can all help me here. im in the middle of making a script ( im still quite new), anyway im getting this error Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is mysql_connect($dbhost, $dbusername, $dbpassword) , i know its th

Re: [PHP] Distinguishing between multiple browser windows for thesame php session

2005-09-03 Thread Satyam
""Chris Stenton"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Gustav Wiberg wrote: >>> ? >> >> Please don't top-post [1]. >> >> This will not work. $_SELF isn't even a defined variable, unless you >> defined it yourself. >> >> PHP works on the server, *before* anything is se

Re[2]: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread Tom Rogers
Hi, Saturday, September 3, 2005, 6:49:54 PM, you wrote: MS> hello, MS> thank you for the help, but I've tried your code, and it returns the MS> exact same thing :( the error #11 temporarily unavailable. If I remove MS> non-blocking, or change the error to ignore to 11 (10035 in your code MS> exam

Re: [PHP] Distinguishing between multiple browser windows for thesame php session

2005-09-03 Thread Chris Stenton
> Gustav Wiberg wrote: >> ? > > Please don't top-post [1]. > > This will not work. $_SELF isn't even a defined variable, unless you > defined it yourself. > > PHP works on the server, *before* anything is sent on the client, so it > has no way to know client-side things like what browser window

Re: [PHP] Distinguishing between multiple browser windows for thesame php session

2005-09-03 Thread Gustav Wiberg
Ok! I didn't know that was wrong to "top-post"... I think I know what it is now! :-) /G @varupiraten.se - Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Saturday, September 03, 2005 11:48 AM Subject: Re: [PHP] Distinguishing between multiple browser win

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread Gustav Wiberg
Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se - Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: ; "Tom Rogers" <[EMAIL PROTECTED]> Sent: Saturday, September 03, 2005 10:49 AM Subject: Re: [PHP] socket_read() trouble with PHP_BI

Re: [PHP] Distinguishing between multiple browser windows for the same php session

2005-09-03 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: ? Please don't top-post [1]. This will not work. $_SELF isn't even a defined variable, unless you defined it yourself. PHP works on the server, *before* anything is sent on the client, so it has no way to know client-side things like what browser window you are in.

Re: [PHP] Distinguishing between multiple browser windows for the same php session

2005-09-03 Thread Gustav Wiberg
Hi there! ? /G @varupiraten.se - Original Message - From: "Chris Stenton" <[EMAIL PROTECTED]> To: Sent: Saturday, September 03, 2005 10:01 AM Subject: [PHP] Distinguishing between multiple browser windows for the same php session I need a way of setting the session_vars specif

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread M. Sokolewicz
hello, thank you for the help, but I've tried your code, and it returns the exact same thing :( the error #11 temporarily unavailable. If I remove non-blocking, or change the error to ignore to 11 (10035 in your code example) it simply "hangs" doing nothing *at all*... I'm stumped; really..

[PHP] apache (root) + php4

2005-09-03 Thread Michelle Konzack
Hello *, for an half hour I was at a new customer and they run apache 1.3 as root on am IntranetServer because they need to admin there Fileserver via php. Now some problems: 1) They use exec("mcrypt ") to generate UNIX passwords for /etc/shadow and I like to know, how I can create suit

[PHP] Distinguishing between multiple browser windows for the same php session

2005-09-03 Thread Chris Stenton
I need a way of setting the session_vars specific to a users browser window for the case of the user having multiple windows open for the same php session. Is this possible in php? I know you can pickup the window id via "self" in JavaScript but I can't see how you can link this back to the serve

[PHP] Generating images on the fly, linking via symlink?

2005-09-03 Thread Dan Trainor
Hello, all - This is a question that could depend on a completely different (yet, relayed) subject, so I'm sending this email to both php-general@ and [EMAIL PROTECTED] I thank you in advance for your understanding. I am currently generating some images on the fly using some of PHP's image

Re: [PHP] Create password for .htaccess file

2005-09-03 Thread viraj
On 9/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > I have an htaccess file and I want to create users and password with a php > script. The problem is that I've used md5 encryp for the password and is not > working. How to create the password from a php script. this is a good starti

[PHP] Create password for .htaccess file

2005-09-03 Thread virtualsoftware
Hi, I have an htaccess file and I want to create users and password with a php script. The problem is that I've used md5 encryp for the password and is not working. How to create the password from a php script. Thanks in advance for your help

RE: [PHP] SoundEx in swedish?

2005-09-03 Thread Warren Vail
My understanding is that soundex was developed by several mathemeticians at MIT in the 1950's. The idea was to create a way for similar sounding family names to be grouped together reguardless of how they might be spelled, and since english was the language their world spoke, the algorithm tends t