[suspicious - maybe spam] [PHP] [suspicious - maybe spam] strange in MySQL Query.

2005-01-13 Thread adwin wijaya
Hi... I have an query for mysql that looks like: SELECT "group" as type FROM mytable WHERE id ="101010" UNION SELECT "individual" as type FROM myothertable WHERE id="101010" The strange result if only one result displayed from myothertable, so the "type" will become "indiv" instead of individual.

Re: [PHP] delete part of array

2005-01-13 Thread Leif Gregory
Hello Jochem, Thursday, January 13, 2005, 10:55:35 AM, you wrote: J> heh but who says I'm not a bar steward ;-) I'll take a beer then! I need one after today. J> sorry if it came accross a little harsh, but I stand by the point J> that the onus is on the person asking the question to give an J>

[PHP] Preventing execution without inclusion

2005-01-13 Thread Adam Hubscher
From within the application, I use one page to include classes/variables and so on. Is there a way (I may have been missing it in the documentation for PHP, however I didnt see anything related) to prevent a user from directly accessing/executing *.php by the file making sure taht it was only i

[PHP] calling php functions as library or cmd line

2005-01-13 Thread Cere Davis
Does anyone know how to write php libraries in a modular way so that you can both test the libraries/functions on the command line with arguments and/or use the php library as a part of your web code with 'require_once()' syntax? Sort of like how Python or Ruby works? Thanks, Cere -- PHP Gener

Re: [PHP] [HAB] Force Browsers to encode in utf8

2005-01-13 Thread Richard Lynch
OOzy Pal wrote: > My html templates are encoded using utf-8. When the > browser reads the files as .html it encodes it fine > and my characters looks fine. However, when php reads > the files and sends them to the browser the files > looks ugly and unreadable. How can I force the broswer > to encod

Re: [PHP] mysql improved extensions affected_rows

2005-01-13 Thread Richard Lynch
Tom wrote: > I've just started playing with the php5 improved mysqli extensions. > > I have the following code:- > > $mysqlim = new mysqli("localhost", "myUser", "myPassword","myDB"); > > $updateQuery = "UPDATE client SET status = 'INACTIVE' WHERE clientName = > 'Tom'"; > > if ($mysqli->query($upd

Re: [PHP] [Fwd: [PHP-INSTALL] Install of PHP 5.0.3 Error]

2005-01-13 Thread Richard Lynch
Kelly wrote: > Well I think you have the variable problem fixed. Worked like a charm. > But I think I spoke to soon about the mail feature. I cannot get it to > mail a form. Could I have not turned something else on? There are many things you could have done wrong. One of them is not correctl

Re: [PHP] php editor

2005-01-13 Thread GH
On linux I use thee KDE IDE program... On Thu, 13 Jan 2005 14:02:17 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Thu, 13 Jan 2005 18:02:12 +0200, William Stokes <[EMAIL PROTECTED]> wrote: > > I'm quite new with writing php code. I was considering of using some kind of > > php editor program

Re: [PHP] geographic search engine

2005-01-13 Thread Lester Caine
Symbulos Partners wrote: Lester Caine wrote: Expensive. There are a few postcode management sites that provide positional data against the post code, but they all cost quite a bit of money. We are working on a cut down version for key areas, with a rough entry for the first part for all post codes,

Re: [PHP] Begining CVS

2005-01-13 Thread Jochem Maas
Greg Donald wrote: On Thu, 13 Jan 2005 19:29:36 +0100, Zouari Fourat <[EMAIL PROTECTED]> wrote: ... I'd go with Subversion. I switched from CVS about 6 months ago and haven't had any issues. Greg, I hardly dare ask, but here goes anyway... do you use a visual client for subversion? the reason I

RE: [PHP] php editor

2005-01-13 Thread welly limston
i'm usually use Dreamweaver to edit php code and debug in it it's very help ones us why don't u try HTH phpninja <[EMAIL PROTECTED]> wrote: "Know any goog ones?" funny you should mention goog.. if you google'd "php editor" youd have your answer by now.. cheers phpninja -Original Message-

Re: [PHP] regex help

2005-01-13 Thread Jochem Maas
Jason Morehouse wrote: Hello, I normally can take a bit of regex fun, but not this time. Simple enough, in theory... I need to match (count) all of the bold tags in a string, including ones with embedded styles (or whatever else can go in there). and . My attempts keep matching as well. okay

Re: [PHP] php editor

2005-01-13 Thread Justin
Bret Hughes wrote: I am interested to hear what other folks are using. Bret Since I do Java, Python etc. on OSX/windows/Linux, I'm using Eclipse with the PHPEclipse (PHPEclipse.de), I'm just starting PHP, but I'm pretty happy with it so far. One thing I am wondering about is the situation which

[PHP] Help with encryption

2005-01-13 Thread Brian Dunning
Howdy all - I have RTFM and STFW and I still can't get encryption to work. What I finally ended up with from the PHP documentation is long, unwieldy, confusing, and doesn't work. I give up. I threw my big mess away and would like to start from scratch. Could anyone point me to a web page or oth

RE: [PHP] php editor

2005-01-13 Thread Chris W. Parker
Bret Hughes on Thursday, January 13, 2005 11:02 AM said: > I assume windows by your mailer. html-kit was good when I used > windows on a day to day basis several years ago. I'll second HTML-Kit. It's an excellent program (once you customize the way it handles the t

Re: [PHP] Begining CVS

2005-01-13 Thread John Nichel
Zouari Fourat wrote: Hello ! CVS becomes more and more necessary when we develop big projects and developing in a team... I were learning how to use CVS, but some problems (that maybe i think it's critical) like cvs dont recognize deleted/added directories/files let me think about to learn a better

Re: [PHP] Begining CVS

2005-01-13 Thread Greg Donald
On Thu, 13 Jan 2005 19:29:36 +0100, Zouari Fourat <[EMAIL PROTECTED]> wrote: > Hello ! > CVS becomes more and more necessary when we develop big projects and > developing in a team... > I were learning how to use CVS, but some problems (that maybe i think > it's critical) like cvs dont recognize de

Re: [PHP] [HAB] Force Browsers to encode in utf8

2005-01-13 Thread Jochem Maas
OOzy Pal wrote: Dears, My html templates are encoded using utf-8. When the browser reads the files as .html it encodes it fine and my characters looks fine. However, when php reads the files and sends them to the browser the files looks ugly and unreadable. How can I force the broswer to encode the

Re: [PHP] delete part of array

2005-01-13 Thread John Nichel
Ford, Mike wrote: Without actually running it (I'm too lazy!), I'm pretty sure this won't work correctly -- the count($array) is being recalculated each time round the loop, so each time you do an unset() it will reduce by one, resulting in the last few elements never being checked. Not too much

Re: [PHP] [HAB] Force Browsers to encode in utf8

2005-01-13 Thread Rasmus Lerdorf
On Thu, 13 Jan 2005, OOzy Pal wrote: > My html templates are encoded using utf-8. When the > browser reads the files as .html it encodes it fine > and my characters looks fine. However, when php reads > the files and sends them to the browser the files > looks ugly and unreadable. How can I force t

[PHP] regex help

2005-01-13 Thread Jason Morehouse
Hello, I normally can take a bit of regex fun, but not this time. Simple enough, in theory... I need to match (count) all of the bold tags in a string, including ones with embedded styles (or whatever else can go in there). and . My attempts keep matching as well. Thanks! -- Jason Morehouse

Re: [PHP] Downloading Images

2005-01-13 Thread Jochem Maas
John Camp wrote: I was able to successfully make a very simple http proxy - turns out the php documentation has the code for this =] - but now I need a way to display images. I figured the best way would be to download the images to a temporary folder, then parse the html to point to the images

Re: [PHP] Data Enryption

2005-01-13 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: (no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone knows what thats worth ;-) - just a but of humour guys!) Oh yeah, I can hear all the Zend people laughing from here. good cos that means they have a better sense of humour that most Soft

Re: [PHP] php editor

2005-01-13 Thread Greg Donald
On Thu, 13 Jan 2005 18:02:12 +0200, William Stokes <[EMAIL PROTECTED]> wrote: > I'm quite new with writing php code. I was considering of using some kind of > php editor program to help with the syntax. Know any goog ones? vim.org editplus.com Both support PHP syntax highlighting. -- Greg Dona

Re: [PHP] Downloading Images

2005-01-13 Thread Greg Donald
On Wed, 12 Jan 2005 22:14:35 -0600, John Camp <[EMAIL PROTECTED]> wrote: > I was able to successfully make a very simple http proxy - turns out the > php documentation has the code for this =] - but now I need a way to > display images. I figured the best way would be to download the images > to a

Re: [PHP] php editor

2005-01-13 Thread Danny Brow
On Thu, 2005-01-13 at 18:02 +0200, William Stokes wrote: > Hello, > > I'm quite new with writing php code. I was considering of using some kind of > php editor program to help with the syntax. Know any goog ones? > > Thanks > -Will > I like Komodo. Dan. -- PHP General Mailing List (http://ww

Re: [PHP] php editor

2005-01-13 Thread Jochem Maas
doh, I hit reply again by mistake. (I'm sure TBird keeps moving the reply-all button when I'm not looking :-) William Stokes wrote: > Hello, > > I'm quite new with writing php code. I was considering of using some kind of goog == good? me thinks yes! wonderful little freudian slip (i.e. may

Re: [PHP] php editor

2005-01-13 Thread Bret Hughes
On Thu, 2005-01-13 at 10:02, William Stokes wrote: > Hello, > > I'm quite new with writing php code. I was considering of using some kind of > php editor program to help with the syntax. Know any goog ones? These sort of threads are good every now and then I think. Especially since it has been s

Re: [PHP] php editor

2005-01-13 Thread John Nichel
William Stokes wrote: Hello, I'm quite new with writing php code. I was considering of using some kind of php editor program to help with the syntax. Know any goog ones? http://www.thelinuxconsultancy.co.uk/phpeditors/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP Ge

RE: [PHP] php editor

2005-01-13 Thread phpninja
"Know any goog ones?" funny you should mention goog.. if you google'd "php editor" youd have your answer by now.. cheers phpninja -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 8:02 AM To: php-general@lists.php.net Subject: [PHP] php e

[PHP] Begining CVS

2005-01-13 Thread Zouari Fourat
Hello ! CVS becomes more and more necessary when we develop big projects and developing in a team... I were learning how to use CVS, but some problems (that maybe i think it's critical) like cvs dont recognize deleted/added directories/files let me think about to learn a better version of cvs (must

Re: [PHP] php editor

2005-01-13 Thread Leif Gregory
Hello William, Thursday, January 13, 2005, 9:02:12 AM, you wrote: W> I'm quite new with writing php code. I was considering of using W> some kind of php editor program to help with the syntax. Know any W> goog ones? There are a few. http://www.pspad.com is my favorite, and it'll syntax highlight

Re: [PHP] php editor

2005-01-13 Thread Paul Marinas
i use phpedit www.phpedit.com i think it's preaty good and also have a free personal licence William Stokes wrote: Hello, I'm quite new with writing php code. I was considering of using some kind of php editor program to help with the syntax. Know any goog ones? Thanks -Will -- Paul Marinas, neta

Re: [PHP] delete part of array

2005-01-13 Thread Jochem Maas
crap - hit 'reply' by mistake. --- Leif Gregory wrote: > Hello Jochem, > > Wednesday, January 12, 2005, 8:08:09 PM, you wrote: > JM> read the manual entry first (see below) - and understand what the > JM> function actually does - never just assume because its giving you > JM> the result you want no

RE: [PHP] delete part of array

2005-01-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 January 2005 05:28, Matthew Fonda wrote: > use the unset() function. > > for ($i = 0; $i < count($array); $i++) { > if (empty($array[$i]) { > unset($array

Re: [PHP] Is this a bug?

2005-01-13 Thread Jochem Maas
Rory McKinley wrote: Hi Probably a trivial question While trying to use mysqli on my dev machine, PHP returns the following: Fatal error: Trying to clone an uncloneable object of class mysqli After STFW I have found a solution that involves swiching off compatibility with Zend Engine 1 in php.ini.

[PHP] [HAB] Force Browsers to encode in utf8

2005-01-13 Thread OOzy Pal
Dears, My html templates are encoded using utf-8. When the browser reads the files as .html it encodes it fine and my characters looks fine. However, when php reads the files and sends them to the browser the files looks ugly and unreadable. How can I force the broswer to encode the pages in utf-8

Re: [PHP] delete part of array

2005-01-13 Thread Sebastian
thanks Leif, not too many think like you :) some people are on this list just because they think they are some genius in php, then when someone with less experience asks for help they bitch and basically tell you to find your own solution or read the manual, that is the first place any REAL php cod

[PHP] Downloading Images

2005-01-13 Thread John Camp
I was able to successfully make a very simple http proxy - turns out the php documentation has the code for this =] - but now I need a way to display images. I figured the best way would be to download the images to a temporary folder, then parse the html to point to the images on my server ins

RE: [PHP] Re: How to compile a script into executable file

2005-01-13 Thread Jay Blanchard
[snip] >> Hi all and sorry for my ignorance. >> I have used the Bcompiler to compiler a script into .exe file to >> distribuited on Windows System but i don't have any result. >> Can you explain how to realize with a simple example ? > > not. PHP scripts don't need to be compiled. They're interpre

Re: [PHP] geographic search engine

2005-01-13 Thread symbulos partners
Lester Caine wrote: > Expensive. There are a few postcode management sites that provide > positional data against the post code, but they all cost quite a bit of > money. We are working on a cut down version for key areas, with a rough > entry for the first part for all post codes, with a few that

Re: [PHP] Re: Fw: Identify which function called another

2005-01-13 Thread Lars B. Jensen
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? I still question whether its correct to design a function which requires this. I thought the idea of encapsulating code inside a function is that its non-dependent/bla

RE: [PHP] quicker arrays as func args?

2005-01-13 Thread Michael Sims
Justin French wrote: > Pretty sure this can't be done, but thought I'd ask any way... [...] > foo("cat","dog",("a"=>"1","b"=>"2","c"=>"3")); or > foo("cat","dog",{"a"=>"1","b"=>"2","c"=>"3"}); would be nice (Ruby has > something like this), but I'm guessing it's not possible. No, can't do that. I

[PHP] How can I build a no depends module?

2005-01-13 Thread Unreal HSHH
Hi, I want to build a dba module with qdbm. But after I cp the dba.so to another machine, it depends on libqdbm.so. How can I build a no depends module? So I am not have to make qdbm to other machine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Data Enryption

2005-01-13 Thread John Nichel
Jochem Maas wrote: (no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone knows what thats worth ;-) - just a but of humour guys!) Oh yeah, I can hear all the Zend people laughing from here. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing Lis

Re: [PHP] How to compile a script into executable file

2005-01-13 Thread Richard Davey
Hello kioto, Thursday, January 13, 2005, 9:03:53 AM, you wrote: k> I have used the Bcompiler to compiler a script into .exe file to k> distribuited on Windows System but i don't have any result. Can you k> explain how to realize with a simple example ? Never used bCompiler, but does the exe just

[PHP] php editor

2005-01-13 Thread William Stokes
Hello, I'm quite new with writing php code. I was considering of using some kind of php editor program to help with the syntax. Know any goog ones? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Apache 2.0 and Sessions

2005-01-13 Thread Stephen Craton
I didn't need to search, turns out there wasn't a folder C:\WINODWS\TEMP so I just made one and it's all fixed now. Only thing I don't understand is why it didn't change the save path when I asked it to. Oh well. Thanks for all the help people! Thanks, Stephen Craton http://www.melchior.us > ---

Re: [PHP] Data Enryption

2005-01-13 Thread Christophe Chisogne
Greg Donald a écrit : function encrypt( $string ) { $key = '&[EMAIL PROTECTED]'; $result = ''; for( $i = 1; $i <= strlen( $string ); $i++ ) { $char = substr( $string, $i - 1, 1 ); $keychar = substr( $key, ( $i % strlen( $key ) ) - 1, 1 );

Re: [PHP] delete part of array

2005-01-13 Thread M. Sokolewicz
that only works for numerical indices. However, if you're sure that neither null values, nor false values are supposed to be present in the array, (that means, they MIGHT be, but should be removed anyway; or just not be there at all,) then you could try array_filter with no callback-argument :)

Re: [PHP] Re: Fw: Identify which function called another

2005-01-13 Thread Jochem Maas
Lars B. Jensen wrote: Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? I still question whether its correct to design a function which requires this. I thought the idea of encapsulating code inside a function is that

Re: [PHP] delete part of array

2005-01-13 Thread Matthew Fonda
use the unset() function. for ($i = 0; $i < count($array); $i++) { if (empty($array[$i]) { unset($array[$i]); } } On Wed, 2005-01-12 at 16:22, Sebastian wrote: > how do i delete keys from an array if it has no values? > eg, this: > > [name] => Array > ( >

RE: [PHP] PHP5 & FreeTDS

2005-01-13 Thread Michael Sims
Craig Donnelly wrote: > On the page where I connect to the MSSQL server I get the following > error: > > Warning: mssql_connect() [function.mssql-connect]: Unable to connect > to server: 172.16.xx.xxx in > /var/ftpusers/tarot/tarot/admin/sqltest.php on line 4 A couple of things to try: (1) Try de

[PHP] Is this a bug?

2005-01-13 Thread Rory McKinley
Hi Probably a trivial question While trying to use mysqli on my dev machine, PHP returns the following: Fatal error: Trying to clone an uncloneable object of class mysqli After STFW I have found a solution that involves swiching off compatibility with Zend Engine 1 in php.ini. However, after goin

[PHP] Re: quicker arrays as func args?

2005-01-13 Thread Jason Barnett
M. Sokolewicz wrote: Justin French wrote: Hi all, Pretty sure this can't be done, but thought I'd ask any way... I have a function where the 3rd argument is an array.. function foo($a,$b,$c) { echo $a.$b; print_r($c); } Obviously the function does more than that, but anyway, I want the cal

[PHP] Re: How to compile a script into executable file

2005-01-13 Thread Jason Barnett
M. Sokolewicz wrote: Kioto wrote: Hi all and sorry for my ignorance. I have used the Bcompiler to compiler a script into .exe file to distribuited on Windows System but i don't have any result. Can you explain how to realize with a simple example ? not. PHP scripts don't need to be compiled. They'r

[PHP] mysql improved extensions affected_rows

2005-01-13 Thread Tom
I've just started playing with the php5 improved mysqli extensions. I have the following code:- $updateQuery = "UPDATE client SET status = 'INACTIVE' WHERE clientName = 'Tom'"; if ($mysqli->query($updateQuery)) { $updateCount = $mysqli->affected_rows; echo "updateCount = $updateCount"; } e

RE: [PHP] unable to execute external program

2005-01-13 Thread Robinson, Matthew
I think you've answered your own question. Check the permissions on the file. Can it be executed by the other user? Is it in the path? What error do you see in the log? ls -l chmod might just be your friends ;-) -Original Message- From: Sagar C Nannapaneni [mailto:[EMAIL PROTECTED]

[PHP] quicker arrays as func args?

2005-01-13 Thread Justin French
Hi all, Pretty sure this can't be done, but thought I'd ask any way... I have a function where the 3rd argument is an array.. function foo($a,$b,$c) { echo $a.$b; print_r($c); } Obviously the function does more than that, but anyway, I want the calls to this function to look a litt

RE: [PHP] PHP + MSSQL win32 / SOLVED

2005-01-13 Thread Vincent DUPONT
Hello, I found the problem about my last message (see below). This relates to a bug in 4.3.10 release with MSSQL extension Bug #31372 I downgraded to PHP 4.3.8 and the problem was solved. Thank you for your attention and replies Vincent -Original Message- From: Vincent DUPONT Sent: me

[PHP] Re: How to compile a script into executable file

2005-01-13 Thread M. Sokolewicz
Kioto wrote: Hi all and sorry for my ignorance. I have used the Bcompiler to compiler a script into .exe file to distribuited on Windows System but i don't have any result. Can you explain how to realize with a simple example ? not. PHP scripts don't need to be compiled. They're interpreted instead

RE: [PHP] unable to execute external program

2005-01-13 Thread Jay Blanchard
[snip] I've compiled an external program in my linux server. That program creates a pdf file taking a html file as input. when i run it thru the command line its working fine. But when i tried to execute the same command from php with exec() command its not working. Note that from command i'm logg

Re: [PHP] geographic search engine

2005-01-13 Thread John Nichel
Richard Lynch wrote: But we DON'T CARE! The Borg are everywhere!!! ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] delete part of array

2005-01-13 Thread Leif Gregory
Hello Jochem, Wednesday, January 12, 2005, 8:08:09 PM, you wrote: JM> read the manual entry first (see below) - and understand what the JM> function actually does - never just assume because its giving you JM> the result you want now that it will always work the way you JM> expect. Don't be a 'ta

[PHP] How to compile a script into executable file

2005-01-13 Thread kioto
Hi all and sorry for my ignorance. I have used the Bcompiler to compiler a script into .exe file to distribuited on Windows System but i don't have any result. Can you explain how to realize with a simple example ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Re: quicker arrays as func args?

2005-01-13 Thread M. Sokolewicz
Justin French wrote: Hi all, Pretty sure this can't be done, but thought I'd ask any way... I have a function where the 3rd argument is an array.. function foo($a,$b,$c) { echo $a.$b; print_r($c); } Obviously the function does more than that, but anyway, I want the calls to this function t

[PHP] PHP5 & FreeTDS

2005-01-13 Thread Craig Donnelly
I had FreeTDS and PHP 4.3.x working fine, then I upgraded my PHP installation to PHP 5.0.3, now It isnt working. On the page where I connect to the MSSQL server I get the following error: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 172.16.xx.xxx in /var/ftpuse

[PHP] unable to execute external program

2005-01-13 Thread Sagar C Nannapaneni
Hi, I've compiled an external program in my linux server. That program creates a pdf file taking a html file as input. when i run it thru the command line its working fine. But when i tried to execute the same command from php with exec() command its not working. Note that from command i'm logged