Re: [PHP] overriding string concatenation '.'

2003-11-12 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] CPT John W. Holmes mailto:[EMAIL PROTECTED] The dots in ipaddr variable are considered to be string concatenations. No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation?

Re: [PHP] Why is this code not working?

2003-11-12 Thread CPT John W. Holmes
From: Dave G [EMAIL PROTECTED] PHP Gurus, If you say so... I'm trying to put the results of a query into an array. My code looks like this: ?php $query = SELECT datecolumn FROM table WHERE MONTH(datecolumn) = . $currentMonth; $result = mysql_query($query); $numRows =

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 10:49 AM said: $ipaddr = 192.34.123.122; . is not a concatenator, it is part of the string. $myFileName = barkLikeAdog.txt; . is not a concatenator, it is part of the string. Oh geez, I know *that*. I read the

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 11:00 AM said: From the way I read that, the periods _within_ $ipaddr were being seen as concatination characters (according to OP), which doesn't make sense. So I wanted an example. Ok, see I thought he was

[PHP] Overriding string concatenation '.'

2003-11-12 Thread tirumal b
Hello All This is where i encounter the problem $hostin=122.122.122.122; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); The ip addr is just an example Thank you Tirumal __

RE: [PHP] Overriding string concatenation '.'

2003-11-12 Thread Jay Blanchard
[snip] This is where i encounter the problem $hostin=122.122.122.122; $l=system('ssh '.$hostin.' ls'); echo $l; [/snip] Then your code should read $hostin=122.122.122.122; $l=system(ssh $hostin ls); echo $l; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Overriding string concatenation '.'

2003-11-12 Thread Marek Kilimajer
tirumal b wrote: Hello All This is where i encounter the problem $hostin=122.122.122.122; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); You should post your real code (cutpaste), the above examples are

[PHP] Passing variables on the url and Macs

2003-11-12 Thread Susan Ator
Does anyone know of a problem on Macs (pre OSX) with passing variables on the URL? For example with the following url: http://someplace.org/file.php?ID=idthingy=thingy only http://someplace.org/file.php actually gets passed. susan -- PHP General Mailing List

RE: [PHP] Passing variables on the url and Macs

2003-11-12 Thread Jay Blanchard
[snip] Does anyone know of a problem on Macs (pre OSX) with passing variables on the URL? For example with the following url: http://someplace.org/file.php?ID=idthingy=thingy only http://someplace.org/file.php actually gets passed. [/snip] What version of PHP? Have you

Re: [PHP] How to find the Drive letters

2003-11-12 Thread Leif K-Brooks
D. Jame wrote: How to find the Drive letters and Drive Types of remote system WNT, i have system administrator password too.. this all work done with PHP pages, when my client give IP, user /password then my PHP scirpt show him that system drive/ folders... Can't be done unless the remote

[PHP] Getting an uploaded picture

2003-11-12 Thread Mike R
I wrote a script that uploads pictures and writes them to a particular directory on a server. Then I wrote a script that shows a list of what pictures are in the directory and creates a link to the picture. Everything seems to spit out from the list just fine, but the links do not work. Not

RE: [PHP] Getting an uploaded picture

2003-11-12 Thread Jay Blanchard
[snip] Then I wrote a script that shows a list of what pictures are in the directory and creates a link to the picture. Everything seems to spit out from the list just fine, but the links do not work. Not because the html in them is wrong, but when you right-click on the picture to save it

[PHP] php compile....

2003-11-12 Thread Mike R
I'm compiling php (4.3.4) on a server with linux (different server than my other post), and the config, make, and make install all seem to go fine (no errors or special messages). No go on PHP, though. Restarted apache, but nothing. Should I reboot the server? Any other possibilities? Thanks

RE: [PHP] php compile....

2003-11-12 Thread Jay Blanchard
[snip] I'm compiling php (4.3.4) on a server with linux (different server than my other post), and the config, make, and make install all seem to go fine (no errors or special messages). No go on PHP, though. Restarted apache, but nothing. Should I reboot the server? Any other possibilities?

RE: [PHP] Getting an uploaded picture

2003-11-12 Thread Mike R
[snip] Then I wrote a script that shows a list of what pictures are in the directory and creates a link to the picture. Everything seems to spit out from the list just fine, but the links do not work. Not because the html in them is wrong, but when you right-click on the picture to save

RE: [PHP] Getting an uploaded picture

2003-11-12 Thread Jay Blanchard
[snip] I thought about that, but figured I'd ask first - particularly since I wasn't sure which code to send: the code for uploading the pictures or the code that displays the pictures/links to them? I should note that I can ftp in and download the pictures and they appear fine. [/snip] Is the

RE: [PHP] php compile....

2003-11-12 Thread Jay Blanchard
[snip] In what way would I have to modify it? I've compiled before without any issues... (not on this server, though, admittedly). [/snip] # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c

RE: [PHP] Getting an uploaded picture

2003-11-12 Thread Jay Blanchard
[snip] Is the directory where you placed the pics web accessible? Sounds like you placed them outside of the web root Actually, it is accessible and the directory is chmod'd to 777 (though thr pictures themselves are 644). I should mention I did build the system to upload zip'd files, but

Re: [PHP] Getting an uploaded picture

2003-11-12 Thread CPT John W. Holmes
From: Mike R [EMAIL PROTECTED] I thought about that, but figured I'd ask first - particularly since I wasn't sure which code to send: the code for uploading the pictures or the code that displays the pictures/links to them? Show the code that displays the links to them and some of the

RE: [PHP] php compile....

2003-11-12 Thread Mike R
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:32 PM To: Mike R; [EMAIL PROTECTED] Subject: RE: [PHP] php compile [snip] In what way would I have to modify it? I've compiled before without any issues... (not on this

RE: [PHP] Getting an uploaded picture

2003-11-12 Thread Mike R
From: Mike R [EMAIL PROTECTED] I thought about that, but figured I'd ask first - particularly since I wasn't sure which code to send: the code for uploading the pictures or the code that displays the pictures/links to them? Show the code that displays the links to them and some of the

Re: [PHP] Re: Delete Temporary Internet Files

2003-11-12 Thread Kim Steinhaug
hehe, To me it I could say the same, why on earth would you want a script to alter the internet options when its up under Tools/Internet Options anyways? The sane sollution would be that some people have strange ideas, some people like to do things their own way. I myself often create PHP

RE: [PHP] php compile....

2003-11-12 Thread Jay Blanchard
[snip] Yeah, got that as: AddType application/x-httpd-php .php AddType application/x-httpd-php .html AddType application/x-httpd-php .phtml And the DirectoryIndex stuff is there, too. [/snip] So, all of that is there, yet PHP does not work? After you compiled PHP did you restart Apache? How,

RE: [PHP] php compile....

2003-11-12 Thread Mike R
[snip] Yeah, got that as: AddType application/x-httpd-php .php AddType application/x-httpd-php .html AddType application/x-httpd-php .phtml And the DirectoryIndex stuff is there, too. [/snip] So, all of that is there, yet PHP does not work? After you compiled PHP did you restart

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: My original thinking was that I wouldn't be using the session id as I would the unique identifier because of point #2 (you shouldn't store the session id on the client). But since you point out that storing the session id is a necessary evil (if I

[PHP] Need a nicer way to escape single/double quotes....

2003-11-12 Thread Scott Fletcher
Hi Fellas! I haven't found a more efficient way to better escape the quote characters for the javascript right from PHP because I only get The kid in the javascript alert message, so I'm wondering if anyone of you know of something better than that... --snip-- form name=Test_Form

Re: [PHP] php compile....

2003-11-12 Thread John Nichel
Mike R wrote: [snip] Yeah, got that as: AddType application/x-httpd-php .php AddType application/x-httpd-php .html AddType application/x-httpd-php .phtml And the DirectoryIndex stuff is there, too. [/snip] So, all of that is there, yet PHP does not work? After you compiled PHP did you restart

[PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Shawn McKenzie
I have a script that I have written for the PHP-Nuke CMS that controls the theme. The site loads fine in any browser without my script. But with my script, the site will load fine in Mozilla 1.4 and in Lynx, but I get a blank page (no error) in IE6. If I go to IE settings and disable use HTTP

[PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
Hey all. I tried googling for this AND looking in the archives with no luck. Can someone post a function or regex that can validate names (first and last)? The most important bit is that names like O'Malley and Hope-Jones are not barred. Hopefully I haven't been too brief with my request.

[PHP] Re: Need a nicer way to escape single/double quotes....

2003-11-12 Thread CPT John W. Holmes
Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't found a more efficient way to better escape the quote characters for the javascript right from PHP because I only get The kid in the javascript alert message, so I'm wondering if anyone of you know of

Re: [PHP] validate names with regex

2003-11-12 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] Can someone post a function or regex that can validate names (first and last)? The most important bit is that names like O'Malley and Hope-Jones are not barred. I use this: //allow a possible ', -, or space in name. ' will //be replaced

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Pablo Gosse
[snip] It might be best to not try and definitely declare what counts as foreign data, because it's a sort of everything else type of thing. If it doesn't originate within the PHP script itself, it is foreign.[/snip] What about data from a database which is retrieved within the PHP script? Would

RE: [PHP] Explode a string

2003-11-12 Thread Wouter van Vliet
Jay Blanchard wrote: [snip] Considering Jay's answer for this question, do I always do things the hard way or what?? [/snip] Young Grasshopper...there is more than one way to do things, a lot of them are rightsome are just harder than others. Isn't that the diplomatic equivalent of

[PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
I need to print a page and redirect the browser to another page. As it can't be done with PHP, I thought about using javascript. Can anyone give me an advise on how to do it? -- 19:13:01 up 22 days, 2:35, 3 users, load average: 0.08, 0.15, 0.26

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Andre Volmensky
[snip] Hmmm... ok so that's all I can think of. I think it'd be a really great thing for the community if this list was corrected and added too in a detailed way (such as I've tried to do here). Looking forward to all the responses. [/snip] All these responses and nobody has said anything about

Re: [PHP] Re: Need a nicer way to escape single/double quotes....

2003-11-12 Thread Scott Fletcher
Wow! That really help for a not so effective HTML tag... Thanks! Scott F. Cpt John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't found a more efficient way to better escape

Re: [PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Chris Shiflett
--- Shawn McKenzie [EMAIL PROTECTED] wrote: I get a blank page (no error) in IE6. If I go to IE settings and disable use HTTP 1.1, then all loads well in IE. Any ideas on things to look at or a method to troubleshoot??? Can you capture the HTTP transaction with IE and with another browser

[PHP] Explanation for php.net front page???

2003-11-12 Thread Scott Fletcher
Hi! Would anyone care to explain to me about the article on the frontpage of the php.net website about the IDE or PHP function name code completion? Never mind about the bug report and browser stuffs... --snip-- New function list auto completion [04-Nov-2003] You can probably name at least

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris Shiflett
--- Pablo Gosse [EMAIL PROTECTED] wrote: [snip] It might be best to not try and definitely declare what counts as foreign data, because it's a sort of everything else type of thing. If it doesn't originate within the PHP script itself, it is foreign.[/snip] What about data from a database

Re: [PHP] js, printing and redirection

2003-11-12 Thread Chris Shiflett
--- Martin Marques [EMAIL PROTECTED] wrote: I need to print a page and redirect the browser to another page. As it can't be done with PHP [snip] Is that a challenge? :-) Try this: ? header('Refresh: 3; url=http://www.php.net/'); echo 'Hello, world!'; ? Hope that helps. Chris = My Blog

Re: [PHP] js, printing and redirection

2003-11-12 Thread Marek Kilimajer
Martin Marques wrote: I need to print a page and redirect the browser to another page. As it can't be done with PHP, I thought about using javascript. Can anyone give me an advise on how to do it? You are right, and that means you should ask on javascript list. But here you have it anyway:

Re: [PHP] Explanation for php.net front page???

2003-11-12 Thread Robert Cummings
It's not active on the main page. It's on the search page. Go there instead. http://www.php.net/search.php And it doesn't seem to work with Opera 6 :) Cheers, Rob. On Wed, 2003-11-12 at 17:33, Scott Fletcher wrote: Hi! Would anyone care to explain to me about the article on the

Re: [PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Shawn McKenzie
Yes, thanks Chris. Could it be gzip problems? I captured with HTTP Interceptor and here are the server response headers prior to the actual HTML: With NO HTTP 1.1 [From Req: GET http://mckenzies.net/nuke69/ HTTP/1.0] HTTP/1.1 200 OK Date: Wed, 12 Nov 2003 22:32:00 GMT Server: Apache/1.3.28

Re: [PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Chris Shiflett
--- Shawn McKenzie [EMAIL PROTECTED] wrote: Yes, thanks Chris. Could it be gzip problems? That's a possibility, but I've never heard reports of IE having trouble with gzip. I captured with HTTP Interceptor and here are the server response headers prior to the actual HTML: With NO HTTP 1.1

Re: [PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
El Mié 12 Nov 2003 19:36, Marek Kilimajer escribió: Martin Marques wrote: I need to print a page and redirect the browser to another page. As it can't be done with PHP, I thought about using javascript. Can anyone give me an advise on how to do it? You are right, and that means you should

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Andre Volmensky mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 2:17 PM said: All these responses and nobody has said anything about register_globals? heh, I guess you're right. Feel free to elaborate on what you mean for those of us that don't know what's up with

Re: [PHP] js, printing and redirection

2003-11-12 Thread Marek Kilimajer
Martin Marques wrote: script function printAndRedirect() { print(); location=someotherscript.php; } /script Yes, I already have this. My problem is that I want to make it work on the event Onload (when the page ends loading, execute the JS function). And what is so difficult about it?

Re: [PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Shawn McKenzie
Sorry, here is zip with data from mozilla also. mozilla works with HTTP 1.1 enabled in preferences. -Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've never sent attachment to this group, hope it is ok. Any help is much appreciated as I am not well versed in

RE: [PHP] Explanation for php.net front page???

2003-11-12 Thread Chris W. Parker
Robert Cummings mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 2:38 PM said: It's not active on the main page. It's on the search page. Go there instead. http://www.php.net/search.php Wow that's cool. Sux though that IE's auto-complete gets in the way of the way list.

Re: [PHP] js, printing and redirection

2003-11-12 Thread Martin Marques
El Mié 12 Nov 2003 19:59, Marek Kilimajer escribió: Martin Marques wrote: script function printAndRedirect() { print(); location=someotherscript.php; } /script Yes, I already have this. My problem is that I want to make it work on the event Onload (when the page ends

Re: [PHP] validate names with regex

2003-11-12 Thread Eugene Lee
On Wed, Nov 12, 2003 at 01:56:10PM -0800, Chris W. Parker wrote: : : Can someone post a function or regex that can validate names (first and : last)? The most important bit is that names like O'Malley and Hope-Jones : are not barred. The range of human names is so wide that there probably isn't

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 2:09 PM said: $match = ^[a-z]+([- ]{1}|(\\\'))?[a-z]+$; along with eregi(), but it can (should) be easily adapted to a syntax compatible with preg_match(). I'm wondering two things: 1. Is there a

[PHP] comparison efficieny

2003-11-12 Thread Jon Hill
I am sure I read somewhere that doing the following if (false === $variable) was a better option than if ($variable === false) maybe it was a dream or is there something in this? Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
Eugene Lee mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 3:12 PM said: The range of human names is so wide that there probably isn't a way to validate names. What part of one's name do you consider valid? What part of one's name do I consider valid? Umm... probably the whole

Re: [PHP] OOP clarification: Messages between objects

2003-11-12 Thread Boyan Nedkov
Robert Ian Smit wrote: I am trying to implement a generic form handler that is capable of printing the form and checking the user input. I want this application to be useful in the end, but I also use it to explore OOP in PHP. .. I'd like the zipcode object to ask a question to

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Andre Volmensky
[snip] All these responses and nobody has said anything about register_globals? heh, I guess you're right. Feel free to elaborate on what you mean for those of us that don't know what's up with register_globals. [/snip] Well it's all at http://www.php.net/register_globals for anyone that

[PHP] ls as function.

2003-11-12 Thread Vincent M.
Hello, Is there any function to do: $thumb = exec(ls $dir/name*) ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj-read()) { ... } So, i am looking for a function which return the result of the unix shell command: ls

Re: [PHP] comparison efficieny

2003-11-12 Thread Marek Kilimajer
Jon Hill wrote: I am sure I read somewhere that doing the following if (false === $variable) was a better option than if ($variable === false) maybe it was a dream or is there something in this? Jon The later will give error if you mistakenly use single =, which can spare you frustration

Re: [PHP] ls as function.

2003-11-12 Thread John Nichel
Vincent M. wrote: Hello, Is there any function to do: $thumb = exec(ls $dir/name*) ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj-read()) { ... } So, i am looking for a function which return the result of the unix shell

Re: [PHP] ls as function.

2003-11-12 Thread Marek Kilimajer
Vincent M. wrote: Hello, Is there any function to do: $thumb = exec(ls $dir/name*) ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj-read()) { ... } So, i am looking for a function which return the result of the unix shell

[PHP] php and apache

2003-11-12 Thread Jen
Hi there. New to the PHP space here and I'm trying to set things up. (if I'm on the wrong newsgroup, please let me know...) I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my computer. Next, I created a test.php file which contains: ?php phpinfo(); ? That's it - real

Re: [PHP] php and apache

2003-11-12 Thread John Nichel
Jen wrote: Hi there. New to the PHP space here and I'm trying to set things up. (if I'm on the wrong newsgroup, please let me know...) I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my computer. Next, I created a test.php file which contains: ?php phpinfo(); ? That's it

Re: [PHP] php and apache

2003-11-12 Thread Boyan Nedkov
Jen wrote: Hi there. New to the PHP space here and I'm trying to set things up. (if I'm on the wrong newsgroup, please let me know...) I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my computer. Next, I created a test.php file which contains: ?php phpinfo(); ? That's it

Re: [PHP] ls as function.

2003-11-12 Thread Chris Shiflett
--- Marek Kilimajer [EMAIL PROTECTED] wrote: So, i am looking for a function which return the result of the unix shell command: ls mydir/name* www.php.net/glob I think you read that question wrong, or else I am. :-) Try the second user note on this page:

Re: [PHP] ls as function.

2003-11-12 Thread John Nichel
Chris Shiflett wrote: --- Marek Kilimajer [EMAIL PROTECTED] wrote: So, i am looking for a function which return the result of the unix shell command: ls mydir/name* www.php.net/glob I think you read that question wrong, or else I am. :-) Try the second user note on this page:

[PHP] Usings functions and variables from a base class

2003-11-12 Thread daniel
Hi there i am having problems using a functions from a base class in a sub class. I am using a perticular function from the base class which is private in a public function in the sub class which is checking for a variable which is set in a function in the base class. Anyway, its doesnt seem to

[PHP] Problem building on Solaris 9....

2003-11-12 Thread Rhugga
I am having an odd problem building php-4-3.2 on a Solaris 9 box. I built it fine several weeks ago w/o oracle support (oracle is installed and working fine). I now need to add oracle support so I went into the exact same source tree and deleted config.cache and then reconfigured with this

Re: [PHP] ls as function.

2003-11-12 Thread Marek Kilimajer
John Nichel wrote: Chris Shiflett wrote: --- Marek Kilimajer [EMAIL PROTECTED] wrote: So, i am looking for a function which return the result of the unix shell command: ls mydir/name* www.php.net/glob I think you read that question wrong, or else I am. :-) Try the second user note on this

Re: [PHP] ls as function.

2003-11-12 Thread John Nichel
Marek Kilimajer wrote: snip So who is wrong and who is right now? I'm confused ;) Hell, I don't even remember the question anymore. :) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Changing case

2003-11-12 Thread Robert Sossomon
I have a form that allows for an item to be entered, the other pieces have been fixed so far that were bogging me down, but now I am looking for a way to convert any entry in the form to be UPPER case so that when the quote is listed, they are alphabetical. The problem is if someone enters

RE: [PHP] Changing case

2003-11-12 Thread Jay Blanchard
[snip] The problem is if someone enters aa-1234 and the other items in the quote are FF-2345 and QQ-3456 then the aa-1234 is UNDER them, instead of on top. [/snip] http://www.php.net/strtoupper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing case

2003-11-12 Thread CPT John W. Holmes
From: Robert Sossomon [EMAIL PROTECTED] I have a form that allows for an item to be entered, the other pieces have been fixed so far that were bogging me down, but now I am looking for a way to convert any entry in the form to be UPPER case so that when the quote is listed, they are

Re: [PHP] Changing case

2003-11-12 Thread David Otton
On Wed, 12 Nov 2003 11:29:10 -0500, you wrote: I have a form that allows for an item to be entered, the other pieces have been fixed so far that were bogging me down, but now I am looking for a way to convert any entry in the form to be UPPER case so that when the quote is listed, they are

[PHP] keyword searching

2003-11-12 Thread Adam Williams
Hello, I am selecting a field in a database called description for keyword searching. The field contains names of people, states, years, etc. When someone searches for say holmes north carolina the query searches for exactly that, fields which have holmes north carolina, and not fields that

RE: [PHP] keyword searching

2003-11-12 Thread Jay Blanchard
[snip] I am selecting a field in a database called description for keyword searching. The field contains names of people, states, years, etc. When someone searches for say holmes north carolina the query searches for exactly that, fields which have holmes north carolina, and not fields that

Re: [PHP] keyword searching

2003-11-12 Thread Adam Williams
I'm using Informix SQL. Do you know how to do full text searching on Informix? If so, please share the details :) Jay Blanchard wrote: [snip] I am selecting a field in a database called description for keyword searching. The field contains names of people, states, years, etc. When someone

[PHP] RE: [PHP-DB] keyword searching

2003-11-12 Thread Robert Sossomon
Explode the kewords list. I have mine explode the keyword and search the description field. It CAN limit it by category AND/OR by Vendor. But this will do the trick without the limiters. $keyword = $_POST[keyword]; $keywords = explode( , $keyword); // so you can search for each word they enter

Re: [PHP] keyword searching

2003-11-12 Thread CPT John W. Holmes
From: Adam Williams [EMAIL PROTECTED] I'm using Informix SQL. Could have saved some bandwidth by mentioning that in the first place and only posting to either php-general or php-db (which is more appropriate), not both. :) Ignore what my other posts said, as I don't know how Informix works.

RE: [PHP]{Semi-OT} keyword searching

2003-11-12 Thread Jay Blanchard
[snip] I'm using Informix SQL. Do you know how to do full text searching on Informix? If so, please share the details :) [/snip] You will have to consult your Informix documentation in order to discern if full-text features are available. Usually the text column where the information is being

RE: [PHP] nusoap

2003-11-12 Thread Dan McCullough
Let me put up one of my examples. I love it extremly easy, and writting to the list does work, its low volume but someone there can help. -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:45 PM To: PHP General Subject: [PHP] nusoap Does

Re: [PHP] Problem building on Solaris 9....

2003-11-12 Thread Lucas Lain
which version of gcc r u using? On Wednesday 12 November 2003 21:10, Rhugga wrote: I am having an odd problem building php-4-3.2 on a Solaris 9 box. I built it fine several weeks ago w/o oracle support (oracle is installed and working fine). I now need to add oracle support so I went into the

Re: [PHP] Usings functions and variables from a base class

2003-11-12 Thread Boyan Nedkov
[EMAIL PROTECTED] wrote: Hi there i am having problems using a functions from a base class in a sub class. I am using a perticular function from the base class which is private in a public function in the sub class which is checking for a variable which is set in a function in the base class.

Re: [PHP] sorting files by date

2003-11-12 Thread Justin French
On Wednesday, November 12, 2003, at 12:52 PM, David T-G wrote: OK. So what are you filming? :-) www.preshrunk.com -- they are sending me short video diary entries from the road whilst on tour :) % know how to get the file names into an array, but I don't know how to % sort the array so that

Re: [PHP] validate names with regex

2003-11-12 Thread John W. Holmes
Chris W. Parker wrote: CPT John W. Holmes mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 2:09 PM said: $match = ^[a-z]+([- ]{1}|(\\\'))?[a-z]+$; along with eregi(), but it can (should) be easily adapted to a syntax compatible with preg_match(). I'm wondering two things:

RE: [PHP] Calendar

2003-11-12 Thread Dave G
Steve, I'm a complete beginner, and I just finished building my own calendar. I tried using some pre-built ones, like this one: http://www.cascade.org.uk/software/php/calendar/index.php ... but I found that trying to figure out how to use their features was a whole

[PHP] split()

2003-11-12 Thread erythros
trying to use split(). i want to split a paragraph by sentence. so of course i used split('[.!?]', $data). but then i noticed i use ... or every now and again at the end of a sentence. i don't know how to do this though... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] sorting files by date

2003-11-12 Thread Martin Towell
If the filename has anything to do with the date, then just sort it. MM is numeric and not alphabetic, right? I guess I should do some more testing -- didn't expect sort() would work on dates, but I'll happily go run some tests :) This only really works if your format's /MM/DD

RE: [PHP] Why is this code not working? [SOLVED]

2003-11-12 Thread Dave G
PHP Gurus, If you say so... A few people have remarked about this. It's just a habit of mine. Whatever list I'm on, I address it to the gurus of that list. A guru being anyone who knows more than me, which is almost everyone. So on the CSS list, I address it to CSS Gurus. On the GoLive

Re: [PHP] split()

2003-11-12 Thread Chris Shiflett
--- erythros [EMAIL PROTECTED] wrote: trying to use split(). i want to split a paragraph by sentence. so of course i used split('[.!?]', $data). but then i noticed i use ... or every now and again at the end of a sentence. Maybe you could explode on a period followed by a space? I

Re: [PHP] php compile....

2003-11-12 Thread Jason Wong
On Thursday 13 November 2003 05:42, John Nichel wrote: Is the phpinfo page showing your php code '?php phpinfo(); ?', or is it blank as in no content at all? If no content, what do you see when you view the source of the page in the browser? Did you restart apache? Did you compile php at

Re: [PHP] HTTP1.1 problems maybe?

2003-11-12 Thread Chris Shiflett
Hi Shawn, --- Shawn McKenzie [EMAIL PROTECTED] wrote: I've never sent attachment to this group, hope it is ok. It is generally fine, although I think most people prefer that you trim your code down to the most relevant bit and include that in the body of the email. I got a bit lost in your

Re: [PHP] Help with Javascript

2003-11-12 Thread Jason Wong
On Thursday 13 November 2003 01:47, Payne wrote: I know this is a php question so if you can give me a javascript mailing that would be a BIG help. Is it that hard to type javascript mailing list into your favourite search engine? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

[PHP] having problems connecting with imap module..

2003-11-12 Thread Rolf Brusletto
Hey all - this is really my first time jumping into the imap module, but I'd like to read from an email box and then archive the messages into an html template... here are the errors I get.. Certificate failure for 127.0.0.1: self signed certificate /C=US/ST=NY/L=New York/O=Courier Mail

[PHP] $_POST bug?

2003-11-12 Thread Jake McHenry
I have 5 fields, all 1 character in length, numbers being entered. If zero's are entered in the boxes, and the form is submitted, the corresponding $_POST variables are empty? Is there a way around this, or am I doing something wrong? I guess I could just do, if (isset(... Blah.. Then if it's not

RE: [PHP] $_POST bug?

2003-11-12 Thread Jake McHenry
-Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:53 AM To: [EMAIL PROTECTED] Subject: [PHP] $_POST bug? I have 5 fields, all 1 character in length, numbers being entered. If zero's are entered in the boxes, and the form is

[PHP] Cannot bind to port 80

2003-11-12 Thread Teren
Hi, I recently upgraded my box to php 4.3.4 and i copied the current configure line and then ran it in the un-tared directory. I ran make, then make install. I tried to restart apache and it wouldn't restart. Any ideas? I tried the things that were on google but those didn't work. The apache

Re: [PHP] First test release of BTportal made!!!!

2003-11-12 Thread Evan Nemerson
On Wednesday 12 November 2003 12:24 am, Jason Wong wrote: On Tuesday 11 November 2003 20:11, Burhan Khalid wrote: Bas wrote: It's avaiable on: http://members.home.nl/famde.jong/portalBT-0.0.1.zip Get your own list. php.general is not your personal announcement list. I think

Re: [PHP] Cannot bind to port 80

2003-11-12 Thread Evan Nemerson
On Wednesday 12 November 2003 10:11 pm, Teren wrote: Hi, I recently upgraded my box to php 4.3.4 and i copied the current configure line and then ran it in the un-tared directory. I ran make, then make install. I tried to restart apache and it wouldn't restart. Any ideas? Sounds like something

Re: [PHP] Cannot bind to port 80

2003-11-12 Thread Teren
Sorry to flood your boxes (including my own...lol...) I have it running A ok now. Thanks Teren - Original Message - From: Evan Nemerson [EMAIL PROTECTED] To: Teren [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 1:19 AM Subject: Re: [PHP] Cannot bind to port 80

[PHP] Calling PHP functions from within javascript

2003-11-12 Thread Nitin
Hi all, can anybody tell me how to call PHP functions from within javascript, as I want my PHP function to be interactive. I need to call the function written in the same page, with the values selected by the user Thanx in advance Nitin

<    1   2   3   >