[PHP] Re: some data output formatting and grouping question...

2002-12-02 Thread Bastian Vogt
Hi, if I got you right, you want to output each value for Y and then print out how often this value appears? If yes, you could try this: SELECT Y, COUNT(Y) AS NUMBER FROM TABLE GROUP BY Y HAVING U = 'me' Well, it's Monday morning and I don't know, if this will work, but I guess it does! ;-) Just

RE: [PHP] Disable refresh?

2002-12-02 Thread Ernest E Vogelsinger
At 02:41 02.12.2002, Martin Towell said: [snip] no, no way to disable and no variable to say a refresh happened one way to get around it is to submit to the page that does the update, then get that page to do a header(location...) to another page. When the

[PHP] page auto reload after new window closed

2002-12-02 Thread Michael P. Carel
Hi to all, Sorry for this kind of post but i cant find a better mailing list for javascript. I have a problem in refreshing my php page script. Im using javascript to open new window for editing purposes. But i want my opener opener page to auto reload upon submit in my new window. Any idea?

Re: [PHP] page auto reload after new window closed

2002-12-02 Thread Ernest E Vogelsinger
At 09:21 02.12.2002, Michael P. Carel said: [snip] Sorry for this kind of post but i cant find a better mailing list for javascript. I have a problem in refreshing my php page script. Im using javascript to open new window for editing purposes. But i want my

Re: [PHP] Disable refresh?

2002-12-02 Thread phpnew_bocket
you can use a session : - start the session when the form is first sent - destroy the session upon the first valid insert - subsequent upadates will be prevented since the session is destroyed.. usually multiple updates happens when the user hits the submit button several times or upon

Re: [PHP] last updated ?

2002-12-02 Thread Chris Hewitt
Morgan Hughes wrote: Or use stat() to get the page's mtime, something like Good idea. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] header() and target page

2002-12-02 Thread phpnew_bocket
--- John W. Holmes [EMAIL PROTECTED] wrote: I am just full of them this weekend. Is it possible to direct a header like a html link (i.e. target=_top) ? I have a page that is in a frame, and I want the new page that is called to break the frame and load in the entire frame. I do not

Re: [PHP] includes globals

2002-12-02 Thread Marek Kilimajer
Is it not set or is it empty? Try adding this code to menu function after global $LOCATION; if(!isset($LOCATION) die('$LOCATION is not set!'); Cesar Aracena wrote: Hi all, I'm making a site with a dynamic menu based on IF statements and DB queries, but have this little problem which I can't

[PHP] How do I run a command as root?

2002-12-02 Thread Luke van Blerk
Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? Thanks Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] page auto reload after new window closed

2002-12-02 Thread Marek Kilimajer
This would prevent nonjavascript browsers from submiting the form. Better would be to use the page that comes after submiting: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleForm submited successfully/title meta http-equiv=Content-Type content=text/html link

[PHP] How do I run a command as root?

2002-12-02 Thread Luke van Blerk
Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? Thanks Luke

Re: [PHP] some data output formatting and grouping question...

2002-12-02 Thread Marek Kilimajer
you got the results, now loop it, and if you find Y is different from the previous one, print it: $previous=''; while($row=mysql_fetch_array($res) { if($row['Y']!=$previous) echo $row[Y]br; echo $row[X]br; } Victor wrote: I just have a fucking mental block; I cannot at all conceive the

Re: [PHP] How do I run a command as root?

2002-12-02 Thread John Wards
On Monday 02 Dec 2002 10:47 am, Luke van Blerk wrote: Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? su root password: your_root_password then run your command This is a php list not a *nix list John -- PHP General Mailing List

RE: [PHP] How do I run a command as root?

2002-12-02 Thread Jon Haworth
Hi Luke, I'm trying to find out how to run a command on the server as root. Does anybody know how to do this? How about using a combination of exec() and sudo (assuming you're in the sudoers file, that is)? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How do I run a command as root?

2002-12-02 Thread Marek Kilimajer
As your server process run as nobody or apache, you need a wrapper setuid root program that will execute the command you want, but you must be very carefull so it is not exploitable. Luke van Blerk wrote: Hi I'm trying to find out how to run a command on the server as root. Does anybody know

Re: [PHP] How do I run a command as root?

2002-12-02 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the commande run y PHP on the server are run as the user which apache is running as ...aka www or nobody in lot's of case ... so forget running a root commande ( infac for security reason ... it's not very good :/ ) Le Lundi 2 Décembre 2002 10:44,

Re: [PHP] Disable refresh?

2002-12-02 Thread Marek Kilimajer
Ernest E Vogelsinger wrote: This will not stop the user from hitting the Back button and refreshing the form... If the user wants it he can do it even with your method. My point is he don't do it unintentionally, so I use just the Location method -- PHP General Mailing List

[PHP] Failed php module load

2002-12-02 Thread bob pilly
Hello all Im trying to load php 4.2.3 as a dynamic module into apache server 2.0.43 but am running into problems. Everytime i run the configtest or try and start the apache server i get the following error. Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined

[PHP] Newbie Question

2002-12-02 Thread hacook
Hi all, I have a mySQL database called srchresult in a srchresult base. In it, i have 9 fields. Everything works perfectly. I would like to know how can i list in a HTML table 30 results for example but only with 7 columns (7 fields only) ? I 've tried some scripts but i can't work this out (i'm

RE: [PHP] Newbie Question

2002-12-02 Thread Jon Haworth
Hi Hacook, I have a mySQL database called srchresult in a srchresult base. In it, i have 9 fields. Everything works perfectly. I would like to know how can i list in a HTML table 30 results for example but only with 7 columns (7 fields only) ? Try this: ?php // open the db connection -

[PHP] How to get/wait for user-input?

2002-12-02 Thread Martin Thoma
Hello! I'm using a PHP-script as a small console-app. Is the only way to give parameters to it the $QUERY_STRING, or can I wait for the user to input something (like scanf in C)? I couldn't find anything in the docs, so perhaps this is not possible?! Martin -- PHP General Mailing List

Re: [PHP] How to get/wait for user-input?

2002-12-02 Thread Marek Kilimajer
For console app you can use readline functions Martin Thoma wrote: Hello! I'm using a PHP-script as a small console-app. Is the only way to give parameters to it the $QUERY_STRING, or can I wait for the user to input something (like scanf in C)? I couldn't find anything in the docs, so perhaps

Re: [PHP] Passing arguments to the same script

2002-12-02 Thread Marek Kilimajer
what abou using action=questions instead of questions=1, then you can use array: $links=array('questions'=Questions link content will go here, 'samples'=Samples link content will go here, echo $links[$_GET['action']] this would be neater. Troy May wrote:

[PHP] PHP and WebDAV

2002-12-02 Thread Adam . Whitehead
Hi All I am currently working on a simple document management system in PHP. Metadata and revision histories and other relevant data is stored in a PostgreSQL database. I would like to set up this system so that there is NO access to any documents through the filesystem (web folders etc.)

[PHP] Cache caches anyway, regardless

2002-12-02 Thread Elmota Abdul Ayyash
i had this problem when my pages were cached when I wanted them to be refreshed, so I went deep in it and included all the recomended headers by the manual, and it worked fine.. I also tried on a clean version, by emptying up the browser cache and temp files on my client machine... until one page

[PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread joskey
Thank you for reading my mail! -- Who can tell me the best php-base webmail? I want a webmail for my mail server, give me a suggest, please! --

Re: [PHP] Cache caches anyway, regardless

2002-12-02 Thread Justin French
on 02/12/02 10:49 PM, Elmota Abdul Ayyash ([EMAIL PROTECTED]) wrote: i had this problem when my pages were cached when I wanted them to be refreshed, so I went deep in it and included all the recomended headers by the manual, and it worked fine.. I also tried on a clean version, by emptying

Re: [PHP] Date problem

2002-12-02 Thread Rosen
Thanks for this, I understand how to update in date in database, but I need when I get date from database to increase or decrease before to save in database. Can you help me for this ? John W. Holmes [EMAIL PROTECTED] wrote in message

RE: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jon Haworth
Hi Joskey, Who can tell me the best php-base webmail? IMP (http://www.horde.org/imp/) is pretty good, I use it for my webmail and don't have any complaints. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions not written to db on windows...

2002-12-02 Thread Ford, Mike [LSS]
-Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 20:45 To: php-gen Subject: [PHP] Sessions not written to db on windows... I have a bit of code that uses sessions and stores session data in the database. Works flawlessly on FreeBSD

RE: [PHP] Failed php module load

2002-12-02 Thread Ford, Mike [LSS]
-Original Message- From: bob pilly [mailto:[EMAIL PROTECTED]] Sent: 02 December 2002 11:24 Im trying to load php 4.2.3 as a dynamic module into apache server 2.0.43 but am running into problems. Everytime i run the configtest or try and start the apache server i get the following

php-general Digest 2 Dec 2002 13:33:15 -0000 Issue 1739

2002-12-02 Thread php-general-digest-help
php-general Digest 2 Dec 2002 13:33:15 - Issue 1739 Topics (messages 126660 through 126712): Re: Disable refresh? 126660 by: Larry Brown 126661 by: Martin Towell 126663 by: Larry Brown 126683 by: Ernest E Vogelsinger 126686 by: phpnew_bocket

[PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Hello! I start a console app with php myscript.php4 (just prints ok). How can I give parameters to it? I tried: php myscript.php4 myparameter php myscript.php4?myparameter php myscript.php4?param=myparameter But always php just returns without doing nothing (not even giving an error or

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread DL Neil
Hello Martin, I start a console app with php myscript.php4 (just prints ok). How can I give parameters to it? I tried: php myscript.php4 myparameter php myscript.php4?myparameter php myscript.php4?param=myparameter But always php just returns without doing nothing (not even giving an

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Hi, What do argv and argc tell you? Is the php.ini file set up so that these variables are shown/valid? Undefined variable: argv - so I guess this is the problem ;-) What do I have to change in the php.ini? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
ll I found a register_argc_argv = On in my php.ini, which should work then. But I also found, that I have to use print Ok: .$_SERVER[argv][1]; instead of print Ok: .$argv[1]; Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread DL Neil
Martin, Ah yes, the famous 'read the upgrade notes - gotcha'! Well done, you figured it out... =dn ll I found a register_argc_argv = On in my php.ini, which should work then. But I also found, that I have to use print Ok: .$_SERVER[argv][1]; instead of print Ok: .$argv[1]; Martin

Re: [PHP] How to give parameters to a console php-script?

2002-12-02 Thread Martin Thoma
Martin, Ah yes, the famous 'read the upgrade notes - gotcha'! Well done, you figured it out... =dn Thanx for your help, it pointed me in the right direction ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Nicolas Costes
Le Lundi 2 D¨¦cembre 2002 13:30, [EMAIL PROTECTED] a ¨¦crit : Who can tell me the best php-base webmail? I want a webmail for my mail server, give me a suggest, please! Joskey Liaus [EMAIL PROTECTED] This is a

[PHP] Check valid chars in string

2002-12-02 Thread magnus nilsson
function valid_chars($file_name) { for($i = 0; $i strlen($file_name); $i++) {   if (!in_array($file_name[$i], array('q','w','e','r','t','y','u','i','o','p','l','k','j','h', 'g','f','d','s','a','z','x','c','v','b','n','m','Q','W', 'E','R','T','Y','U','I','O','P','L','K','J','H','G','F',

[PHP] Re: Check valid chars in string

2002-12-02 Thread liljim
It's missing a closing brace. I would, however, tend to drop that way of doing things and use a regex: function ValidChard($file_name) { if(preg_match(![^a-z0-9\-\.]!is, $file_name)) { return false; } return true; } Much easier on the eye, don't you think? :) James

[PHP] Re: How to give parameters to a console php-script?

2002-12-02 Thread Kevin Lowe
Hi, I want to do the same under unix:- php myscript.php4 myparameter but the PHP CGI supplied by my ISP has register_argc_argv switched off. Is there any other way to access command line parameters when register_argc_argv is off? Thanks, Kevin -- PHP General Mailing List

Re: [PHP] PHP and WebDAV

2002-12-02 Thread olinux
I don't know much about WebDAV, but sounds like that is not possible with PHP. You need something on the client side. I have used Groove (a collaboration software, They have a free demo as well - http://groove.net). It's not PHP based but when I open a shared document and switch back to groove I

[PHP] How do I include specific files?

2002-12-02 Thread Roddie Grant
I'm new to PHP, but from Lasso I'm used to the following sort of arrangement (in pseudo-code) Search for matching records If number found=1 include /folder/subfolder/file1 If number found1 include /folder/subfolder/file2 If number found=0 include /anotherfolder/subfolder/file99 where the

[PHP] Re: How do I include specific files?

2002-12-02 Thread Kevin Lowe
Hi Roddie, The require or include functions will do this for you, see http://www.php.net/manual/en/function.include.php Paths are absolute to the file system, not where the web server path starts, eg suppose your file is at /usr/home/www/riddie/phpscripts/somedir/script.php you would include a

[PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Wilmar Perez
Hello guys I'm trying to do a simple task: upload files. However, when I try to upload files other than text/plain ones I get an empty $_FILES array. Is there anything I've got to modify in my php.ini file? I'm just following the expample in the php manual, the only thing different is that

RE: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Keith Sauvant
You know about the php.ini option upload_max_filesize? Perhaps its default value is not enough for your task? Greeting from Keith Aachen, Germany -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I include specific files?

2002-12-02 Thread Jason Wong
On Monday 02 December 2002 23:57, Roddie Grant wrote: In PHP the include_path stops this process in its tracks. I'm with an ISP so I don't suppose I can control include_path (.:/usr/local/lib/php). Are there any other options? You can set the include_path at run-time using:

[PHP] Triggering a PHP Script

2002-12-02 Thread Ryan Bates
My Problem: I've got a PHP script (running on Apache) that can take several hours to complete. The script sends out a newsletter to those who have requested it. When calling this script from a web browser, the browser hangs until the script has fully executed. If the user hits Stop while the

RE: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Shu Chow
We use SquirrelMail (http://www.squirrelmail.org). I've customized the front-end and it's a breeze. I can't give you first-hand testimony on administration, but our administrator likes it. Users have no compliants. We use it with Postfix. -- PHP General Mailing List (http://www.php.net/)

[PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Matt Babineau
Hi everyone: I just read the reply from Jason Wong pretty much just about my question. Using the ini_set() command at the top of all my pages I think would work out ok, but when I upload my pages to the server, how can I dynamically set the include path to match the root of my web folder on

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Beth, When fopen successfully opens a file it populates an array $http_response_header, which you can examine to see if the link works or not - I don't believe you can actually get the file itself, but since that's not what we're after that's not a problem! I noticed this reference to

[PHP] Re: How do I run a command as root?

2002-12-02 Thread Luke van Blerk
Thanks for all the replys. I'll be checking out sudo. p.s I forgot to put 'in a script' Luke Van Blerk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I'm trying to find out how to run a command on the server as root. Does anybody know how to do this?

[PHP] preg_match()

2002-12-02 Thread Sturle
Hello I have one coloumn with lots of e-mail adress like this: [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] [EMAIL PROTECTED] And i want to take the first row and put the adresses into an array, then the second row... I try like

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Rob/Beth, The code should also consider: 1 updating the db if the link is 'valid', ie if previously it had been 'down'! 2 putting an @ to prevent any errors causing a hard-stop at the fopen line 3 that the url/database must contain protocol information, ie http://www.nytimes.com not

Re: [PHP] Triggering a PHP Script

2002-12-02 Thread DL Neil
Ryan, My Problem: I've got a PHP script (running on Apache) that can take several hours to complete. The script sends out a newsletter to those who have requested it. When calling this script from a web browser, the browser hangs until the script has fully executed. If the user hits Stop

[PHP] phpAds Sillyness

2002-12-02 Thread Matt \TrollBoy\ Wiseman
A fresh install of phpAds is resulting in a funky error, everytime you go to add a client or a ad, it prompts you to log in again. Now quoting from thier FAQ: Q: The login doesn't work, it keeps prompting for username/password all over again.or I can't add banners. A: Make sure you have enabled

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Ernest E Vogelsinger
At 19:01 02.12.2002, Matt \TrollBoy\ Wiseman spoke out and said: [snip] A fresh install of phpAds is resulting in a funky error, everytime you go to add a client or a ad, it prompts you to log in again. Now quoting from thier FAQ: Q: The login doesn't work,

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Matt \TrollBoy\ Wiseman
A2: enable register_globals in your php.ini, and try again. If it works then, shoot them. It was on; register_globals On On magic_quotes_gpc On On Any other suggestions? Matt TrollBoy Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Did you change anything in the session settings from the PHP default? -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Matt \TrollBoy\ Wiseman
I sure didn't. Here's my PHPInfo() http://www1.metalink.net/~mjw/phpAds/phpinfo.php Matt TrollBoy Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Adam Voigt
Hmm, you got me. The last time I installed it, it worked fine after I turned register global's on. There's a support forum on there website if no one else here has any bright idea's. -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key:

Re: [PHP] preg_match()

2002-12-02 Thread Michael Sweeney
Why not use split() (http://www.php.net/split) or explode() instead of matching? ..michael.. On Mon, 2002-12-02 at 09:34, Sturle wrote: Hello I have one coloumn with lots of e-mail adress like this: [EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] [EMAIL PROTECTED];[EMAIL

Re: [PHP] preg_match()

2002-12-02 Thread Adam Voigt
Well, if you truly mean split by row, if $emaillist contains them all: $earray = explode(\n,$emaillist); Then, if you wanted each email address in it's own subarray position: for($counter = 0; $counter count($earray); $counter++) { $earray[$counter] = explode(;,$earray[$counter]);

[PHP] PHP Course - San Francisco, CA 12/16-12/18

2002-12-02 Thread Nick Cawthon
PHP Programming Bootcamp DESCRIPTION: This hands-on PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven web pages using PHP version 4. PHP is a language written for the web, quick to learn, easy to deploy and provides many advantages over other

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jonathan Sharp
also take a look at hord-imap (http://www.hord.org) -js On Mon, 2 Dec 2002 14:06:01 +0100 [EMAIL PROTECTED] wrote: Le Lundi 2 D¨¦cembre 2002 13:30, [EMAIL PROTECTED] a ¨¦crit : Who can tell me the best php-base webmail? I want a webmail for my mail server, give me a suggest, please!

Re: [PHP] re: ini_set() / Jason Wong / dynamically setting this?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 01:20, Matt Babineau wrote: Hi everyone: I just read the reply from Jason Wong pretty much just about my question. Using the ini_set() command at the top of all my pages I think would work out ok, but when I upload my pages to the server, how can I dynamically

[PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Lee P. Reilly
Hi there, This might be better suited for an Apache newsgroup, but I thought I'd try here first. I installed Apache and PHP on RH8 a few weeks ago following the instructions on [URL 1, below], and both were running with absolutely no problems. Today however, I rebooted my machine and

Re: [PHP] Who can tell me the best php-base webmail?

2002-12-02 Thread Jason Wong
On Tuesday 03 December 2002 02:34, Jonathan Sharp wrote: also take a look at hord-imap (http://www.hord.org) That's horde with an 'e' on the end, it's silent but it's still there ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Triggering a PHP Script

2002-12-02 Thread Ryan Bates
Don't worry. The newsletter is only sent to those who have requested it in their registration, and the user can easily unsubscribe at any time. Anyway, it looks like I will have to go with a CGI Script. Thanks for your reply. If anyone has any alternative methods please let me know. Ryan Bates

Re: [PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Rasmus Lerdorf
Your best bet is to get rid of Apache 2.0 and install an Apache 1.3.x RPM instead. -Rasmus On 2 Dec 2002, Lee P. Reilly wrote: Hi there, This might be better suited for an Apache newsgroup, but I thought I'd try here first. I installed Apache and PHP on RH8 a few weeks ago following the

Re: [PHP] Test links?

2002-12-02 Thread Beth Gore
DL Neil wrote: Beth, I noticed this reference to $http_response_header and straightaway quizzed the manual, only to find that the only references to it (eg file open) lead nowhere. Have gone through a few other pages, looking to see if I might happen upon some detail, but failed. Sadly you

[PHP] some data output formatting and grouping question...

2002-12-02 Thread Victor
I just have a mental block; I cannot at all conceive the necessary syntax to or even the theoretical algorithm that I need, to do the following: Consider the following table: U | X | Y --|---|-- me|001|0a me|002|0a me|003|0a me|002|0b me|003|0b me|004|0b ..|...|.. then the code says: SELECT *

[PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
I'm stuck. I have been to the MySQL lists for this. Now I'm reconsidering my PHP code. http://ccl.flsh.usherb.ca/print/display.table.inc.phps I just don't know where I'm going wrong anymore. If I run this SQL in PHPMyAdmin, it works. jdaxell.ccl should have one entry for ready maria. SELECT

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread Chris Wesley
On Mon, 2 Dec 2002, jtjohnston wrote: SELECT id,AU,ST,BT,AT FROM jdaxell.ccl WHERE MATCH (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('ready maria' IN BOOLEAN MODE) ORDER BY id asc When I run the same (copied and pasted) SQL in PHP, it is as though MySQL is doing a

[PHP] Weird upload problem

2002-12-02 Thread Wilmar Perez
Hello guys Well, I've been trying to upload a file without much success so far. So I'm trying to find the error but honestly this has become a real puzzle for me. I’ve got the following form: form enctype=\multipart/form-data\ name=\book_add\ method=\post\ action=.$PHP_SELF.?management=8

[PHP] PHP Shipping Rate Question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To

[PHP] php shipping rate question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread Rick Widmer
At 11:16 PM 12/1/02 -0800, Troy May wrote: I'm getting nailed with a bunch of returned emails like this: [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments What's going on? Each one has a different address, but the

[PHP] invalid range

2002-12-02 Thread peter a
when I do this eregi(^([a-zåäö_\.- ]+)$,$value); I get this: Warning: Invalid range end in /home/zinekweb/public_html/corporate/_mcm_contacts_upload.php on line 42 Why? I running Apache1.3 on my XP machine with PHP 4.2something.. but when I upload to a RedHat7.2 server with Apache.1.3 and

[PHP] Show Folder Contents in Form

2002-12-02 Thread Stephen
Hello, Is it possible, and if so how, to get the filenames and last edited time/date, then display them in a select field in a form for a user to select? I'd need to show them in order of most recently edited to last edited. How can this be done if it can? Thanks, Stephen Craton

[PHP] Re: Show Folder Contents in Form

2002-12-02 Thread Nick Eby
you could first read the files and their modified-dates into an array; sort the array; and finally build a select widget from the array... function sortByTime($a, $b) { if ($a[time] == $b[time]) return 0; return ($a[time] $b[time]) ? -1 : 1; } while (false !== ($file =

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
Chris, or anyone, I have tried to escape the slashes. Debugging ... $sql = 'SELECT ... ... AGAINST (\'ready maria\' IN BOOLEAN MODE) ...'; This works. But if I addslashes or stripslashes, or do nothing, it does not work. See these 3 variations. Neither work. What should I do? A part from hang

[PHP] Re: invalid range

2002-12-02 Thread Nick Eby
looks like because you have a dash inside your character class; when inside a character class the dash is a special character and you'd have to escape it eregi(^([a-zåäö_\.\- ]+)$, $value); Peter A [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... when I do this

[PHP] Help with Search and Replace in a PDF Document

2002-12-02 Thread Gabriel Murphy
Hello All: I am 6 days new to PHP. I find the syntax to be quite similar to Perl, so that has helped alot. I am having problems doing a search and replace in an Adobe PDF document. What I have done is made an Adobe PDF document using Adobe Distiller from a MS Word document. I then changed some

Re: [PHP] Re: invalid range

2002-12-02 Thread Morgan Hughes
On Mon, 2 Dec 2002, Nick Eby wrote: looks like because you have a dash inside your character class; when inside a character class the dash is a special character and you'd have to escape it eregi(^([a-zedv_\.\- ]+)$, $value); Traditionally in regexes, a dash has to come last, otherwise the

Re: [PHP] Why all the returned emails from this list?

2002-12-02 Thread 1LT John W. Holmes
At 11:16 PM 12/1/02 -0800, Troy May wrote: I'm getting nailed with a bunch of returned emails like this: [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments What's going on? Each one has a different address,

[PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Geoff Caplan
Hi folks, Bit OT but I am hoping someone on the list can help. I need to encrypt short strings in PHP, using mcrypt by preference, email it to the customer, and have him decrypt the string on the Windoze desktop. But all the Windows encryption utilities I can find use proprietary file formats -

[PHP] PHP --with-dbm enabled???

2002-12-02 Thread vernon
I'm being told that I need to have php compiled --with-dbm and it is not, but it is complied --with-db3. Is that the same thing or do I need recopile --with-dbm to use the dbmopen() function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Browser going to page twice?

2002-12-02 Thread Leif K-Brooks
I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other sites. Is this a common problem, or am I making some dumb mistake? -- The above message is encrypted with double rot13

[PHP] IIS 5

2002-12-02 Thread Chris Edwards
I'm getting You are not authorized to view this page when trying to run .php files. How do I fix this? I'm running php isapi on iis 5 on w2k server. thanks. -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com

RE: [PHP] Date problem

2002-12-02 Thread John W. Holmes
Thanks for this, I understand how to update in date in database, but I need when I get date from database to increase or decrease before to save in database. Can you help me for this ? Yeah, I already did: You can select out the date you have now, use strtotime() to make it into a unix

[PHP] print to file

2002-12-02 Thread Bryan Koschmann - GKT
Okay, this is probably stupid, but how do you print to a file? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF Help Please

2002-12-02 Thread Ryan Smaglik
I need to figure out by tonight how to: 1. open a .pdf file using php. 2. add text to certain parts of it. 3. save it and output to browser. 4. Then delete the temp file so the process can be done over again. I have PDFlib but not the $1000 PDI addition Please help, Ryan

Re: [PHP] Decrypting mcrypted strings on Windows desktop

2002-12-02 Thread Justin French
I've done something similar (encrypt a message, send it to a client, let them decrypt locally), and so far, the easiest solution was to simply install PHP and Apache on their PC. You could also check out PGP-GTK, which is a cross-platform, client-side extension to PHP for making GUI's... haven't

[PHP] Re: print to file

2002-12-02 Thread Thomas Seifert
$fp=fopen(filename,a); fputs($fp,text to the file); fclose($fp); Regards, Thomas On Mon, 2 Dec 2002 15:52:23 -0800 (PST) [EMAIL PROTECTED] (Bryan Koschmann - Gkt) wrote: Okay, this is probably stupid, but how do you print to a file? Thanks, Bryan -- PHP General Mailing List

[PHP] nl2br ( ) and forms

2002-12-02 Thread Ryan Smaglik
When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: td?php echo $_POST[echomeaddress]; ?/td Thanks in advance, Ryan

Re: [PHP] nl2br ( ) and forms

2002-12-02 Thread Leif K-Brooks
td?php echo nl2br($_POST[echomeaddress]); ?/td Ryan Smaglik wrote: When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: td?php echo $_POST[echomeaddress]; ?/td Thanks in advance, Ryan -- The above message is encrypted with

[PHP] PHP + Java

2002-12-02 Thread Ray Hunter
Does anyone have PHP 4.2.3 and Java running together? I need to see how you have the php.ini file set up... Here is mine and it just hangs... [Java] java.class.path=/usr/local/lib/php/php_java.jar java.home=/usr/local/java java.library=/usr/local/java/jre/lib/i386/hotspot/libjvm.so

[PHP] Sessions, Cookies, and Subdomains

2002-12-02 Thread Rob Paxon
Hello, I've a bit of a problem and was wondering if anyone out there can help straighten it out. I have never worked with cookies or php sessions before as the need for such has never presented itself before. Up until this point I have been using a very customized version of PostNuke but

  1   2   >