[PHP] MySQL > Access

2002-09-20 Thread Christian Calloway
Can anyone suggest a strategy for importing data from MySQL to Access (it sucks I know, but I have to do it for my work). I was thinking of using a text-delimited file as an intermediate, but I am not quite sure on the logistics. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: MySQL > Access

2002-09-20 Thread Erwin
Christian Calloway wrote: > Can anyone suggest a strategy for importing data from MySQL to Access > (it sucks I know, but I have to do it for my work). I was thinking of > using a text-delimited file as an intermediate, but I am not quite > sure on the logistics. You can use the Mysql-ODBC driver

[PHP] RE: redefining a function

2002-09-20 Thread Tim Ward
how about http://www.php.net/manual/en/language.oop.php To be honest I can't remember what made classes first click for me but feel free to ask if there's anything there that you don't get. Classes and OOP seem self evident when you've been using them for a while but I seem to remember that tha

[PHP] RE: PHP source code

2002-09-20 Thread Tim Ward
then keep this info in a config file off root and use a data abstraction class to connect. Tim www.chessish.com > -Original Message- > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 19:15 > To: [EMAIL PROTECTED]; Stephan Seidt > Subject: Re: PHP source code > >

[PHP] Re: Unserialize stopped working after php & db upgrade

2002-09-20 Thread Geoff Caplan
Martin, MT> If you're using serialised variables, I'd suggest serialising a MT>few simple ones and see what the output looks like so that you can MT>see when things are going amiss. An interesting suggestion. I have a "set and forget" data api which handles all these transformations in the backg

[PHP] Almost done with install under Linux

2002-09-20 Thread César Aracena
Hi all, Forgive me for making this off topic question here, but since I need to install PHP under Linux tonight and came across this problem, I guess some one from here can help me. I need my Red Hat 7.2 to read the contents of all my FAT32 partitions in order to transfer the PHP packages. I

[PHP] Sessions

2002-09-20 Thread Erwin
Hi all, I'm having a problem with sessions. I use PHP version 4.2.2. The project I'm working on, only uses the global variables, $_GET, $_POST and $_SESSION. When I store something in the $_SESSION variable, everything goes well. I can print the contents of this array with print_r, and every var

[PHP] Changing the saturation of an image

2002-09-20 Thread Jean-Christian Imbeault
I've looked through the docs but can't find what I want. Is there a function that will let me load a jpg image, change the saturation level and save the changed image as a new jpg? Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML 2 TEXT

2002-09-20 Thread Tim Haynes
Does anybody know of a class or a solution to converting an HTML page to a text only page via PHP, but leaving in href links in and a certain degree of formatting. Cheers, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL > Access

2002-09-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Can anyone suggest a strategy for importing data from MySQL to Access (it > sucks I know, but I have to do it for my work). I was thinking of using a > text-delimited file as an intermediate, but I am not quite sure on the > logistics.

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Marek Kilimajer
William wrote: >1) Payroll apps require large tax libraries (federal, every state and >locality). > > > Split them into more files (diffrent states etc.) and include_once them when they are needed, and perhaps mysql can take part of the job. >4)Loosely Typed Variables. >I fear it might

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread SiTA WebMaster - VST
Try to remove all strings starting with "<" and ending with ">". Be sure not to remove ""'s. Also you need to format line endings via "\n" or "". it might seem a little bit hard, but any other solution won't work rather than this. Tim Haynes wrote: >Does anybody know of a class or a solution

[PHP] Re: HTML 2 TEXT

2002-09-20 Thread nicos
Feel free to use strip_tags() -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Tim Haynes" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Does anybody know of a class or a solution to converting an HTML page to a > text on

Re: [PHP] Click....download and update

2002-09-20 Thread Marek Kilimajer
The Content-Type header changes, when uploading, you can get it from $HTTP_POST_FILES['userfile']['type'], also set the filename using header("Content-Disposition: attachment; filename='. $filename ); Christian Ista wrote: >>You'll need to prompt the download by sending the appropriate heade

[PHP] Search system

2002-09-20 Thread nicos
Hi, Can someone point me to the documentation to make the same search system as php.net like www.php.net/lala that will search on the manual. Thanks. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -- PHP General Mailing List (http://www.

[PHP] Re: Search system

2002-09-20 Thread nicos
I found it at http://www.php.net/urlhowto.php Thanks anyway. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi, > > Can someone point me to the documentation to make the

Re: [PHP] FPDF and MySQL

2002-09-20 Thread Marek Kilimajer
If you look at the tutorial no. 5 on www.fpdf.org, all you need is to change LoadData function, example: function LoadData($condition) { $res=mysql_query("SELECT * FROM table WHERE 1 AND ($condition)"); while($data[]=mysql_fetch_row($res) ) { } return $data; } Chuck Payne wrote: >Hi

php-general Digest 20 Sep 2002 11:06:53 -0000 Issue 1596

2002-09-20 Thread php-general-digest-help
php-general Digest 20 Sep 2002 11:06:53 - Issue 1596 Topics (messages 116944 through 116992): Re: pass var through URL String 116944 by: Gary Re: PHP Execution Timer 116945 by: Beau Hartshorne Re: Stripping specific tags 116946 by: John Holmes 116965 by: Jo

Re: [PHP] Apache not parsing without .php on url?

2002-09-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I think what you're after is 'Options MultiViews' in your apache config.don't know about v2 though. http://httpd.apache.org/docs/mod/core.html#options HTH! ~Pauly On Thursday 19 September 2002 01:21 pm, Stefan wrote: > Hello, > I have a new

[PHP] about forms with php

2002-09-20 Thread Meltem Demirkus
Hi, I want to learn if anyone tried to use both of javasccript and php together ?Because when I tried to use them like this: and when I click submit.. javascript is working but it is not going to the sign_up_ page ..How can I manage it?.. thanks alot.. by the way , by using javascript ,

FW: [PHP] about forms with php

2002-09-20 Thread Jon Haworth
Hi, > onSubmit="checkemail(email.value);return false" > > > and when I click submit.. javascript is working but > it is not going to the sign_up_ page .. It's because of the "return false": that means "after running the checkemail function, cancel the form submission". I think you want t

Re: [PHP] about forms with php

2002-09-20 Thread Ferhat Can
Hi Meltem, Since you place return false in the onSubmit code, you cannot submit the form to the next page. What you need to do is that check if the email field is empty, if yes return false; if not return true. - Original Message - From: "Meltem Demirkus" <[EMAIL PROTECTED]> To:

[PHP] Date Concat?

2002-09-20 Thread Rankin, Randy
I have two fields of type date in a MySQL table called training: start_date end_date I can format the date using a select, for example SELECT DATE_FORMAT(start_date, '%M %d, %Y') as start_date, DATE_FORMAT(end_date, '%M %d, %Y') as end_date FROM training This

[PHP] why isn

2002-09-20 Thread Jesse Lawrence
__ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] about forms with php

2002-09-20 Thread Meltem Demirkus
but I also want to check @ and . characters.. ...checking only if the email field is empty or not is not what I want meltem - Original Message - From: "Ferhat Can" <[EMAIL PROTECTED]> To: "Meltem Demirkus" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 20, 2002 2:4

[PHP] why isn't this working?

2002-09-20 Thread Jesse Lawrence
This little code snippet is from a login system that I've made, which takes unconfirmed user-info out of a mysql table, and places it into a confirmed table (Uses email confirmation). Now, this has really got me baffled, because it seemed to be working fine yesterday. Can anyone please tell me w

Re: [PHP] about forms with php

2002-09-20 Thread Meltem Demirkus
by the way If I remove return false .. script is checking the correctness but just after it is going to the page "sign_up_ page .php "..I just want it to go to the page when the email is correct .. Is it possible to manage ? meltem - Original Message - From: "Jon Haworth" <[EMAIL PROTEC

[PHP] Re: syntax question - eregi()

2002-09-20 Thread Anthony Ritter
Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] about forms with php

2002-09-20 Thread Jon Haworth
Hi, > by the way If I remove return false .. script is > checking the correctness but just after it is going > to the page "sign_up_ page .php "..I just want > it to go to the page when the email is correct .. > Is it possible to manage ? Yes. You need to have the "return true" or "return fa

RE: [PHP] about forms with php

2002-09-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] > Sent: 20 September 2002 13:03 > > by the way If I remove return false .. script is checking > the correctness > but just after it is going to the page "sign_up_ page .php > "..I just want > it to go to the page

[PHP] Re: java in php4 on debian testing distribution?

2002-09-20 Thread Garth Dahlstrom
Monique, By default Debian does not come come with a recent JVM, due to the non-free-ness of Sun's license. So first thing is to see if you have any Java installed at all... When you type `java` at a shell it should give you an error about missing parameters... if you get the following:

RE: [PHP] Best practice question

2002-09-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Jon Haworth [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 18:18 > > What are peoples' thoughts on "one should always return a value from a > function, even if it's always going to be true"? Unprintable!! There's no point in returning a value if there'

[PHP] getimagesize error

2002-09-20 Thread Sascha Braun
Please can somebody help my, why i get this errormessage: Warning: getimagesize: Unable to open '../images/2002/11/jpg/' for reading. in C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php on line 852 While the echo $name says winter.jpg f.x.: echo

[PHP] How to check for data on a popen()ed FD?

2002-09-20 Thread Andre
I'm running a program using popen(), and I need to know when there's data to be read from this program. feof() will never return true, even with no data to be read. Is there any function that can set a timeout on a file descriptor returned by popen()? Or a function like feof(), but to check

[PHP] getimageresize error

2002-09-20 Thread Sascha Braun
I found out, that always when my script ist executed, one $HTTP_REQUEST_FILE is empty. so the scripts writes the pics where I want it and tries to convert one none existing file. But why? Sascha

RE: [PHP] Search system

2002-09-20 Thread Jesse Cablek
[EMAIL PROTECTED] scribbled; > > Hi, > > Can someone point me to the documentation to make the same search > system as php.net like www.php.net/lala that will search on the > manual. > http://www.php.net/urlhowto.php -- PHP General Mailing List (http://www.p

RE: [PHP] Date Concat?

2002-09-20 Thread John Holmes
> I have two fields of type date in a MySQL table called training: > > start_date > end_date > > I can format the date using a select, for example > > SELECT > DATE_FORMAT(start_date, '%M %d, %Y') as start_date, > DATE_FORMAT(end_date, '%M %d, %Y') as end_date > FROM tra

RE: [PHP] Re: Search system

2002-09-20 Thread Jesse Cablek
[EMAIL PROTECTED] scribbled; > > I found it at http://www.php.net/urlhowto.php > > Thanks anyway. > Crap I just sent this to the list, I need a better email client that sorts by thread and not just subject :/ -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] Sessions

2002-09-20 Thread John Holmes
You have session_start() on the second page, too, right?? > -Original Message- > From: Erwin [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 5:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Sessions > > Hi all, > > I'm having a problem with sessions. I use PHP version 4.2.

RE: [PHP] adding unix account via system command

2002-09-20 Thread Jesse Cablek
tim tom scribbled; > > Dear Marek, > Where do find that? I am no C programmer. > > -- > tim > > --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: >> It's a shell script, and your shell drops root privileges. Use a >> shell that doesn't or use a C-wraper. >> Make yourfi

Re: [PHP] Re: PHP source code

2002-09-20 Thread Oliver Witt
Michael Geier schrieb: > PHP Source code is only available on the server, and will never be shown to > the client (unless you create a tool to allow them to see the source; > see show_source() ); > > And you can always put your authentication data (username/passwords) in an > external include() f

Re: [PHP] Sessions

2002-09-20 Thread Erwin
John Holmes wrote: > You have session_start() on the second page, too, right?? > Yes...the session_start() statement is in a global include file, which is included in all files which require it Grtz Erwin >> -Original Message- >> From: Erwin [mailto:[EMAIL PROTECTED]] >> Sent: Friday, S

Re: [PHP] Sessions

2002-09-20 Thread Jeff Bluemel
I've had the same problem, and I resolved it by using html tags instead of headers, and the problem was resolved. there are some issues I still haven't been able to work out though (I want it to use cookies instead of SID's). "John Holmes" <[EMAIL PROTECTED]> wrote in message 001b01c260a7$cc674

RE: [PHP] adding unix account via system command

2002-09-20 Thread Dan Hardiker
!!!WARNING - WARNING - WARNING - WARNING - WARNING!!! This will mean ANYONE can run this program AS ROOT. Read up on SUID. !!!WARNING - WARNING - WARNING - WARNING - WARNING!!! > Make yourfile.c and put this in: > > main(argc,argv) > int argc; > char **argv; > { > execv("/your/program/here"

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Justin French
There's a perfect example in the manual: http://www.php.net/manual/en/function.preg-replace.php HTH Justin on 20/09/02 9:16 PM, SiTA WebMaster - VST ([EMAIL PROTECTED]) wrote: > Try to remove all strings starting with "<" and ending with ">". Be sure > not to remove ""'s. Also you need to form

[PHP] Closing a browser's child window after user downloads a file

2002-09-20 Thread Merritt, Dave
All, I have a page that displays results of a database search. The page contains a select dropdown box from which the user can pick different options including the ability to download an Excel or CSV file of the displayed results. Once the user selects an option from the dropdown, a Javascript

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread nicos
strip_tags() is the easiest way to remove HTML tags. If he wants to replace them, then he can use ereg_replace or preg_replace(). -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Justin French" <[EMAIL PROTECTED]> a écrit dans le message de news: [

[PHP] Why isn't there much info on apache2?

2002-09-20 Thread pierre.samson
I'm building a new server and would like to use: php4 apache 2.xxx mod_ssl MySQL mod_perl Is there any major hurdle? Thanks Pierre B. Samson CAMBAR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
Yeah, apache 2.0 and php don't like each other. Adam On Fri, 20 Sep 2002, pierre.samson wrote: > I'm building a new server and would like to use: > php4 > apache 2.xxx > mod_ssl > MySQL > mod_perl > > Is there any major hurdle? > > Thanks > > Pierre B. Samson > CAMBAR >

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread pierre.samson
Any particular reason... future plans or is apache2 is not worthy? "Adam Williams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yeah, apache 2.0 and php don't like each other. > > Adam > > On Fri, 20 Sep 2002, pierre.samson wrote: > > > I'm building a new ser

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
The PHP coders are still working to have full compatability with apache 2.0. I know for example posting one variable in a form messes up, but posting 2 or more variables works fine. There is a entry n the bug database about this, so hopefully it will be fixed soon. Adam

[PHP] Querying from PHP to a MySQL database

2002-09-20 Thread jcole
Howdy all! I've built a page in Dreamweaver MX that uses PHP for scripting. I can get data out of my mysql database but I need to be able to search for wildcards. currently it only matches 100% exact queries. Below is the code that is at the beggining of the PHP page. --- $varSort_search

RE: [PHP] Is php even right for this design?

2002-09-20 Thread Beau Hartshorne
> The admin users will need to run long processes that take about > 5-15 minutes each. They cannot timeout and they must be done throughout the day > while general users are working in the application as well. Is > there a big problem with this? What steps should I take to ensure > t

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Danny Shepherd
Apache 2 isn't officially supported yet. If you get the latest version of both then you shouldn't hit to many hurdles but you should know that you'll get no official support and it isn't recommended for production environments. If you need Apache2 then you'll know why - if you don't know what the

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Robert Cummings
Beau Hartshorne wrote: > > > The admin users will need to run long processes that take about > > 5-15 minutes each. They cannot timeout and they must be done > throughout the day > > while general users are working in the application as well. Is > > there a big problem with this? What

RE: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Jesse Cablek
> "Adam Williams" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > e.ms.us... >> Yeah, apache 2.0 and php don't like each other. >> >> Adam >> >> On Fri, 20 Sep 2002, pierre.samson wrote: >> >>> I'm building a new server and would like to use: >>> php4 >>> apache 2.xxx >>> mod_ss

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Danny Shepherd
Mod_ssl is part of the standard Apache2 distro now. - Original Message - From: "Jesse Cablek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 20, 2002 4:22 PM Subject: RE: [PHP] Why isn't there much info on apache2? > "Adam Williams" <[EMAIL PROTECTED]> wrote in me

RE: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Jesse Cablek
Danny Shepherd scribbled; > > Mod_ssl is part of the standard Apache2 distro now. > Ah, then it IS hidden ;) -jesse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Querying from PHP to a MySQL database

2002-09-20 Thread Marek Kilimajer
wildcard in SQL is %, so your query looks like: $query_search1 = "SELECT * FROM secureworks WHERE $varSort_search1 LIKE '%$varText_search1%'"; [EMAIL PROTECTED] wrote: >Howdy all! > >I've built a page in Dreamweaver MX that uses PHP for scripting. I >can get >data out of my mysql database but

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread pierre.samson
Well, I'm in no hurry, so I'll try to make it work. It just seemed to me that with ssl and mpm's incorporated it worth the upgrade. I was not sure if there was a held back on the use of apache2... Pierre "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message 001201c260b9$7ebb8530$a201a8c0@DANNYS

[PHP] odbc_fetch_row()

2002-09-20 Thread Scott Fletcher
Hi Fellas! I'm a little bit confused as to why does this not work right! It had to do with the odbc_fetch_row() function. When there is two or more rows, the odbc_fetch_row() return a True. When there's no row, the odbc_fetch_row() return a False. What so odd about it is when there is one row

Re: [PHP] RE: PHP source code

2002-09-20 Thread Chris Shiflett
Oliver, I think I see your question. You are wanting to know if people can see *your* PHP code (it sounded like you were asking if you could read PHP's source code, which is why people responded like they did). I think another poster mentioned this, but the safest thing to do with your databa

[PHP] array_merge_recursive

2002-09-20 Thread Michiel van Wessem
Hello! I'm fairly new to PHP and absolutely new to this mailing list. I subscribed and I'm writing because I observed some strange behavior with array_merge_recursive(). I'm using PHP version 4.1.2. Please look at the following code: $a = array('k' => array('a1')); $b = array('k' => arr

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Justin French
He is going to want to strip stuff *inbetween* tags for example, not just strip the tags themselves...