Re: [PHP] compiling php 4.2 with apache 2.0.35

2002-04-24 Thread Rasmus Lerdorf
No, you need to install Apache first if you want to build PHP as an Apache module. I'd suggest sticking with Apache 1.3.x for now though. -Rasmus On Wed, 24 Apr 2002, Michal Dvoracek wrote: > Hello, > > i have problem with %subj%. > > It's possible to build php without apxs2 ? > Building php w

[PHP] RegEx and ?

2002-04-24 Thread Boaz Yahav
When i try to use preg_match on strings that have "?" inside them it seems to not work. Any ideas how to bypass this? thanks berber

Re: [PHP] RegEx and ?

2002-04-24 Thread Marius Ursache
Boaz Yahav a écrit : > When i try to use preg_match on strings that have "?" inside them it > seems to not work. > Any ideas how to bypass this? > > thanks > > berber -- Marius Ursache (3563 || 3494) \|/ \|/ "@'/ ,. \`@"

Re: [PHP] RegEx and ?

2002-04-24 Thread Marius Ursache
use \? instead of ? Boaz Yahav a écrit : > When i try to use preg_match on strings that have "?" inside them it > seems to not work. > Any ideas how to bypass this? > > thanks > > berber -- Marius Ursache (3563 || 3494) \|/ \|/ "@'/

[PHP] validating user input

2002-04-24 Thread DrouetL
Hi the M.L. I have to validate forms user inputs before the construction of my query to my Oracle DB Does anybody know the list of characters that should be rejected (for example ;) ? Do you have a function to validate it ? regards Laurent Drouet -- PHP General Mailing List (http://www.p

Re: [PHP] Browser cache

2002-04-24 Thread José León Serna
I think the right answer (at least the right for me) is adding a rand value to the link of the image, that makes the browser load it every time. Thanks a lot for your help!. Best Regards. QaDRAM Studio, RAD Development for the WEB http://studi

[PHP] comparing time

2002-04-24 Thread Cosmin
Hello, How can I compare time? So I have to check a difference of 12 or 24 hours this mean I have to compare the time between the days too.. How I can make this comparing just comparing hour with hou and then minute with minute or is possible all of them at the same time? Thanks Cosmin --

Re: [PHP] Arrays in forms {?!}

2002-04-24 Thread Marcus Rasmussen
1) The example you have shown should work. Take a look at the foreach controle structure. (Link at bottom of mail.) 2) You cannot assign a value to a checkbox. It can only be set by the "checked" keyword (ie: .) 3) The value of a checked checkbox is "on". If a checkbox is not checked it will not

[PHP] Can't Load Data into Mysql Using "LOAD DATA"

2002-04-24 Thread Jack
Dear all I'm trying to load data from a test.csv file into myql database, but it seems the data didn't get into the table!! I use a GUI Program which i type in the Mysql Command to it and execute it, so i type in the following command : "Load Data Local infile 'c:\test.csv' into to table testdep

[PHP] Re: RegEx and ?

2002-04-24 Thread liljim
Hi Berber, you generally need to do some string replacements on the text you're using to put through the match before you actually do the match (and same for replacements). Just have a look at the pattern syntax in the manual for the characters you need to do the replacement on... e.g $string =

[PHP] Re: RegEx and ?

2002-04-24 Thread liljim
What d'ya know. I should read the manual more regularly. http://www.php.net/manual/en/function.preg-quote.php ~J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't Load Data into Mysql Using "LOAD DATA"

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 16:19, Jack wrote: > Dear all > I'm trying to load data from a test.csv file into myql database, but it > seems the data didn't get into the table!! > > I use a GUI Program which i type in the Mysql Command to it and execute it, > so i type in the following command : >

RE: [PHP] Database and files

2002-04-24 Thread Richard Archer
At 3:19 PM +0200 22/4/02, Maxim Maletsky \(PHPBeginner.com\) wrote: >PostgreSQL is the best choice on my opinion. mySQL might fail on a large >DB. I'd love to see an example or detailed anecdote of MySQL failing on a large DB. I keep seeing comments saying MySQL is not robust, but in my experien

[PHP] Re: Trimming text

2002-04-24 Thread liljim
Hello Ashley, ]+>modified by.*?<\/span>\.$/is", "", $string); // remove the \. if it doesn't end in a full stop^ ?> Try that. James "Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a variab

Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 04:46, Michael Geier wrote: > I definitely think MySQL could be the problem... > > RPM installation of 3.23. You need to install: MySQL-devel-3.23.X if you haven't already done so. > Does anyone have any suggestions (other than installing from source)? I > have a fe

[PHP] Removing Irregular characters

2002-04-24 Thread Liam MacKenzie
Hello I have a form that is to entered into a MySQL database. A couple of the feilds must contain irregular characters, such as (/\+;]{'.,<:"?>}|_~`) What MySQL Field type should I use? varchar doesn't work. Thanks, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
Does nobody have a suggestion to the below? Perhaps there is an easy solution, but I cant see it at the time. Eivind > Hi all, > I have a question regarding array indices: > > At a certain point in code, I run array_diff() on two arrays to produce a reduced >version of one of the argum

[PHP] RE: Array indices

2002-04-24 Thread Tim Ward
Why not just... Foreach (array_diff($array1, $array2) as $value) { $newarray[] = $value; } or am I missing something? Tim Ward Internet Chess www.chessish.com -- From: esivertsen [SMTP:[EMAIL PROTECTED]] Sent: 23 April 2002 13:0

[PHP] Re: validating user input

2002-04-24 Thread Adrian Ciutureanu
No validating user input is needed if you are using OCIBindByName. See also the Avertisment at www.php.net/OCIBindByName <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi the M.L. > > I have to validate forms user inputs before the construction of my query t

Re: [PHP] comparing time

2002-04-24 Thread heinisch
At 24.04.2002 11:05, you wrote: >Hello, > >How can I compare time? So I have to check a difference of 12 or 24 hours >this mean I have to compare the time between the days too.. > >How I can make this comparing >just comparing hour with hou and then minute with minute or is possible >all of them

[PHP] Re: Removing Irregular characters

2002-04-24 Thread liljim
Hello Liam, varchar WILL work. Just ensure that you're applying addslashes() to the input before putting it into the database. http://www.php.net/addslashes James "Liam Mackenzie" <[EMAIL PROTECTED]> wrote in message 00a501c1eb6f$08a6f060$0400a8c0@enigma">news:00a501c1eb6f$08a6f060$0400a8c0@en

RE: [PHP] phpnuke still around?

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Try looking on sourceforge (www.sf.net) Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Dennis Gearon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 12:56 AM To: [EMAIL PROTECTED] Subject: [PHP] phpn

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 17:14, esivertsen wrote: > Does nobody have a suggestion to the below? > Perhaps there is an easy solution, but I cant see it at the time. > > Eivind > > > Hi all, > > I have a question regarding array indices: > > > > At a certain point in code, I run array_diff

[PHP] Multi language support

2002-04-24 Thread Shailendra Mehta
Hi all, What needs to be done for multi language support in PHP. I am using redhat linux & new to HTML programming. I want to know the mechanism to make the output available in different languages. Thanks in advance for any help --Shailendra S. Mehta Senior Engineer (Design & Development),

[PHP] Home Finance System / Bill Splitter

2002-04-24 Thread Dan Horth
Hi - I share a house with two other people and have set up a spreadsheet in the past allowing me to track bills (rent, electricity, phone, etc) including who paid what and how much each person owes in total. Unfortunately I had my laptop stolen around christmas and lost my spreadsheet with it.

[PHP] Passing Variables with register_globals Off?

2002-04-24 Thread Smileyq
I've noticed with the release of PHP 4.2.0 that the register_globals has been turned off by default. While this is a wonderful thing for security it makes passing data between pages difficult link to link. While I am familiar with using sessions I was wondering if there were any tricks to pass

Re: [PHP] Removing Irregular characters

2002-04-24 Thread heinisch
At 24.04.2002 19:03, you wrote: > >Hello > >I have a form that is to entered into a MySQL database. >A couple of the feilds must contain irregular characters, such as >(/\+;]{'.,<:"?>}|_~`) > >What MySQL Field type should I use? >varchar doesn't work. Even this is a definitive mysql-question, t

Re: [PHP] Passing Variables with register_globals Off?

2002-04-24 Thread 1LT John W. Holmes
It still works, the value is in $_GET["db"] ---John Holmes... - Original Message - From: "Smileyq" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 6:09 AM Subject: [PHP] Passing Variables with register_globals Off? > I've noticed with the release of PHP 4.2

RE: [PHP] security

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Was the question "is it neccessary" or "how to do it secure"? I myself don't tlike the idea, But if needed, then this could be a way. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: [EMAIL PROTECTED] [mailto:[

[PHP] PHP Lists

2002-04-24 Thread Dan Horth
Hi - being new to the lists and noticing that the first few posts that came through have been reasonably specific and implementation based I was wondering if there were any other more general php solution type lists - or is it appropriate to post "is there a php solution for this" type question

[PHP] html mail

2002-04-24 Thread Wilbert Enserink
Hi all, I'm studying some mail scripts written in php. When sending html mail the scripts all use a method that involves sending an html file as attachment. Why not use the mailsend function and send a string containing the whole html code? a code snippet example from a mail script: ---

Re: [PHP] PHP Lists

2002-04-24 Thread Liam MacKenzie
This is a PHP help list, if you've got a question, by all means just post it here. BUT!! You will be given a short shift if it's obvious that you haven't read the documentation first. Download this, it's the most useful doovey I've ever downloaded: http://www.php.net/download-docs.php List Ar

RE: [PHP] PHP Lists

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Dan, PHP General is pretty much about anything related to PHP in General -) There are also other lists, look at php.net under support. As of your questions: 1) List archives (the wildest ones) are on: groups.google.com marc.theaimsgroup.com 2) That could be hotscripts.com and s

php-general Digest 24 Apr 2002 11:31:03 -0000 Issue 1305

2002-04-24 Thread php-general-digest-help
php-general Digest 24 Apr 2002 11:31:03 - Issue 1305 Topics (messages 94284 through 94351): Re: Wich Database abstration layer? 94284 by: Manuel Lemos 94285 by: Martin Towell 94286 by: Manuel Lemos 94287 by: Manuel Lemos Re: Question for Linux users...

Re: [PHP] Multi language support

2002-04-24 Thread heinisch
At 24.04.2002 15:29, you wrote: > >Hi all, > >What needs to be done for multi language support in PHP. >I am using redhat linux & new to HTML programming. >I want to know the mechanism to make the output available in different >languages. >Thanks in advance for any help > >--Shailendra S. Meh

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
> just run your array through a foreach loop assigning each key-value pair to a > new array. OK, I was trying to see if there was a more elegant way to do it, so I wouldn't have to make the loop. Like just re-mapping the indices to default values by a short and simple operation. But it will do

[PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Jimmy Lantz
Hi, I'm looking into the new version of PHP it says in the changelog "Highly improved performance with file uploads " Has there been any benchmarking done on this? / Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SQL Warning

2002-04-24 Thread Ford, Mike [LSS]
> -Original Message- > From: Jennifer Downey [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2002 04:46 > > Would you please direct your attention to this URL > > http://testphp.netfirms.com/code1.html > > Look at the bottom where the big orange commented syntax is > and explain what > is

Re: [PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Rasmus Lerdorf
Well, it isn't likely to be any faster, it just uses less runtime memory. -Rasmus On Wed, 24 Apr 2002, Jimmy Lantz wrote: > Hi, > I'm looking into the new version of PHP it says in the changelog > "Highly improved performance with file uploads " > Has there been any benchmarking done on this? >

Re: [PHP] SQL Warning

2002-04-24 Thread The_RadiX
Hey... Ok Firs Mike.. Yes I have been "fixing" some of her scripts and saw she used this too.. Unbelievably I also so this point about the string in the string without concat op's but incredibly it works.. Now back to reason why it don't work.. Okay Jenny.. Hi again :) Next.. Do you hav

[PHP] Attachments

2002-04-24 Thread The_RadiX
I have read briefly through past topics.. Just wanted to know: A) How do you use attachments in the: mail() function B) how using attachments would I compose an email to batch off using text/html as a optional item if the client supports it or use the default text/plain ?? Thx a heap ::

[PHP] php & apache 2

2002-04-24 Thread Michal Dvoracek
Hello, when will be possible to compile php as static module with apache 2? Regards, Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what constants are in php like __FILE__

2002-04-24 Thread nospam
Hi all I'm just curious what other constants in php are defined. I found out about __FILE__ today which is great, if you use a lot of include & require... any hints where or how to find a list? Sebastian

[PHP] registering an array to a session?

2002-04-24 Thread Christoph Starkmann
Hi all! Is it possible to register an array to a session with PHP 4? If yes, how can it be done? Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] registering an array to a session?

2002-04-24 Thread esivertsen
You just register it...: $_SESSION['your_array'] = $your_array; It will be serialized automatically before stored. All the best, Eivind - Original Message - From: "Christoph Starkmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 2

RE: [PHP] what constants are in php like __FILE__

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Try this: php.net/constants Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: nospam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:36 PM To: 'Php-General Subject: [PHP] what constants are in php l

RE: [PHP] registering an array to a session?

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Yes, just assign it as if you would do with a string or integer. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:46 PM To: '[EMAI

[PHP] Upload

2002-04-24 Thread Gabriele Biondo
Hi, guys! Does anyone know how to write a php script to upload a file from my browser? Moreover; how could i avoid security errors? Thanx in advance Gabriele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload

2002-04-24 Thread Liam MacKenzie
http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_ Systems/ - Original Message - From: "Gabriele Biondo" <[EMAIL PROTECTED]> To: "ML PHP" <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 11:00 PM Subject: [PHP] Upload Hi, guys! Does anyone know how to write

Re: [PHP] Attachments

2002-04-24 Thread Richard Emery
GOOGLE found this on first try http://www.zend.com/zend/spotlight/sendmimeemailpart1.php - Original Message - From: The_RadiX <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 7:22 AM Subject: [PHP] Attachments I have read briefly through past topics.. Just w

Re: [PHP] Attachments

2002-04-24 Thread Liam MacKenzie
http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Email_Utili ties/ - Original Message - From: "The_RadiX" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 10:22 PM Subject: [PHP] Attachments I have read briefly through past topics.. Just wan

Re: [PHP] Upload

2002-04-24 Thread Richard Emery
The PHP Manual has complete instructions for this. Did you look there yet? - Original Message - From: Gabriele Biondo <[EMAIL PROTECTED]> To: ML PHP <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 8:00 AM Subject: [PHP] Upload Hi, guys! Does anyone know how to write a php script t

RE: [PHP] validating user input

2002-04-24 Thread SP
Hi Drouet, I've been asking about this too and here's what I've been working on. It checks for letters, numbers, puncuation, and max and min length. I was told any of the puncation was safe as long as you addslashes before you put it into the database. function check_input($user_input, $min=0,

Re: [PHP] html mail

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 18:59, Wilbert Enserink wrote: > Hi all, > > > I'm studying some mail scripts written in php. When sending html mail the > scripts all use a method that involves sending an html file as attachment. > > Why not use the mailsend function and send a string containing the w

RE: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread SP
Have you tried doing phpinfo() and seeing what values are coming up? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: April 22, 2002 5:59 PM To: Erik Price Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Empty $_SESSION and $_POST ?? On Monday 22 April 2002 05:34 pm, you

Re: [PHP] Home Finance System / Bill Splitter

2002-04-24 Thread Jason Wong
On Wednesday 24 April 2002 18:05, Dan Horth wrote: > I was about to set up a spreadsheet again - but since I've started getting > into learning PHP - and have recently set up our home linux server - > thought that it would be a lot more exciting / functional to have a system > running on the serv

RE: [PHP] Home Finance System / Bill Splitter

2002-04-24 Thread Jason Murray
> > I was about to set up a spreadsheet again - but since I've started > > getting into learning PHP - and have recently set up our home linux > > server - thought that it would be a lot more exciting / functional > > to have a system running on the server that would allow each person > > to l

[PHP] is their a way to run a command as root ???

2002-04-24 Thread Scott Baer
Is their a way to run a command as root..or another user.. I know their are a log of security issues with allowing this.. I will tighten down security after I get it to work. He is what I am trying to do. I have squid & squid guard set up.. in squids redirect url.. (on the same box).. I would l

Re: [PHP] Upload

2002-04-24 Thread Richard Emery
I would try the chapter titled, "Handling file uploads" I'm sorry...I gotta ask...did you do any research on your own? Why did you not check the manual when I suggested it? - Original Message - From: Gabriele Biondo <[EMAIL PROTECTED]> To: Richard Emery <[EMAIL PROTECTED]> Sent: Wednesd

Re: [PHP] compiling php 4.2 with apache 2.0.35

2002-04-24 Thread Michael Geier
choices: compile PHP as a DSO module for apache (preferred) compile PHP as a static-linked module for apache - see www.php.net/docs.php for installation instructions DSO module installation: untar httpd and php distributions cd httpd-$vers ./configure --prefix=/path/to/

RE: [PHP] is their a way to run a command as root ???

2002-04-24 Thread Jason Murray
> Is their a way to run a command as root..or another user.. > > I know their are a log of security issues with allowing this.. I will > tighten down security after I get it to work. Get your sysadmin to set up "sudo" so that the user running your web server (usually "nobody", "httpd" or "www")

Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-24 Thread Michael Geier
thanks for the reply...I bucked up and installed the linux binaries anyway last night. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] Quoting Jason Wong <[EMAIL PROTECTED]>: >

[PHP] Header variables

2002-04-24 Thread David Russell
Hi there, Each time I look at code from websites/etc, I notice a different set of headers that get sent to the browser. Amongst others, there are: location : content-type : content-disposition : attachment Is there anywhere where I can find a standard set of headers available to me? I had

Re: [PHP] Header variables

2002-04-24 Thread Erik Price
On Wednesday, April 24, 2002, at 10:05 AM, David Russell wrote: > Each time I look at code from websites/etc, I notice a different set of > headers that get sent to the browser. Amongst others, there are: > > location : > content-type : > content-disposition : attachment > > Is there anywher

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread Miguel Cruz
On Mon, 22 Apr 2002, Andre Dubuc wrote: > would be OK. It seems it's the ONLY way my script will allow the array to be > put into the database (PostgreSQL). If I type into the INSERT command > > $bozo, $next_var, $next_next_var // it works > $_GET['bozo'], $_GET['next_var

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread Andre Dubuc
On Wednesday 24 April 2002 09:18 am, you wrote: > Have you tried doing phpinfo() and seeing what values are coming up? > I finally got everything working, thanks to Erik Price's excellent help and for all the others who offered their suggestions. Thanks for your suggestion! Regards, Andre --

[PHP] Mailing to numerous with mail()

2002-04-24 Thread David Orn Johannsson
I’m trying to send an email useing mutible email addresses, could any one tell me why this isn’t working, it works when I only use one address ($to = [EMAIL PROTECTED]) but not when I use the following code.   $to  = "[EMAIL PROTECTED]", " ;     $to .= "[EMAIL PROTECTED]" .

RE: [PHP] Mailing to numerous with mail()

2002-04-24 Thread Kris Vose
Do this: $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], jonmundur@ mail.is"; -Original Message- From: David Orn Johannsson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Mailing to numerous with mail() I'm trying to send an e

Re: [PHP] Upload

2002-04-24 Thread Neil Highley
Now this IS lazy programming. ;-) [EMAIL PROTECTED] --- "Life must be lived as play." - Plato (427 - 347 BC) > - Original Message - > From: Gabriele Biondo <[EMAIL PROTECTED]> > To: Richard Emery <[EMAIL PROTECTED]> > Sent: Wednesday,

Re: [PHP] Mailing to numerous with mail()

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, David Orn Johannsson wrote: > I’m trying to send an email useing mutible email addresses, could any > one tell me why this isn’t working, it works when I only use one address > ($to = [EMAIL PROTECTED]) > but not when I use the following code. > > > > $to = "[EMAIL PROTE

RE: [PHP] Upload

2002-04-24 Thread .ben
http://uk.php.net/manual/en/features.file-upload.php hth, .b > -Original Message- > From: Neil Highley [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2002 15:53 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Upload > > > Now this IS lazy programming. > > ;-) > > [EMAIL PROTECTED] >

[PHP] Re: How to connect to mysql through JAVA?

2002-04-24 Thread Ray Hunter
Try checking the sun documentation...java.sun.com or the mysql documentation... Ray Hunter "Balaji Ankem" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > What is the command to connect to mysql through java. > > Thanks and Regards > Balaji > > --

[PHP] Re: is their a way to run a command as root ???

2002-04-24 Thread Ray Hunter
check your manpages on chroot and sticky bits... This should help you out... Ray Hunter "Scott Baer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is their a way to run a command as root..or another user.. > > I know their are a log of security issues with

Re: [PHP] html mail

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Wilbert Enserink wrote: > I'm studying some mail scripts written in php. When sending html mail > the scripts all use a method that involves sending an html file as > attachment. > > Why not use the mailsend function and send a string containing the whole > html code? Becaus

Re: [PHP] comparing time

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Cosmin wrote: > How can I compare time? So I have to check a difference of 12 or 24 hours > this mean I have to compare the time between the days too.. > > How I can make this comparing > just comparing hour with hou and then minute with minute or is possible > all of them at

Re: [PHP] Trimming text

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Ashley M. Kirchner wrote: > I have a variable ($description) that contains text data (pulled from an MySQL >DB). I need to delete the last few lines from that data. Prior to the data getting >submitted to the DB (during a different routine), the following information g

RE: [PHP] Re: How to connect to mysql through JAVA?

2002-04-24 Thread Richard Fox
Sourceforge MySQL JDBC driver http://mmmysql.sourceforge.net/ maybe this code frag will be helpful... String connectionURL = "jdbc:mysql://centauri.sbs:3306/dbname"; Connection conn = null; Statement statement = null; ResultSet rset = null; try { Class.forName("org.gjt.mm.mysql.D

[PHP] Background Processing

2002-04-24 Thread Richard Perez
Hi people!! I'm trying to find a way to handle this but I don't come up with anything. I need to execute a query to a DB using PHP. The thing is that the query takes 0.5 hours to execute and I can't wait that time with the browser opened in that page. What I want to do is to execute a PHP code

[PHP] can someone help?

2002-04-24 Thread Kirk Babb
First, here's my code: "; ?> Works great on the first line, but I'm stuck on printing the remaining part of the array using some sort of loop. I've tried a few things but get endless loops. In the end I'd like to make this a function and just give it the string and the container length as argume

Re: [PHP] Upload

2002-04-24 Thread Miguel Cruz
The PHP manual would have to be one of the first books to actually have a human table of contents (i.e., this list). One day, when robots are doing everything else, all books will have them. But for now it's groundbreaking. miguel On Wed, 24 Apr 2002, Richard Emery wrote: > I would try the chap

Re: [PHP] Background Processing

2002-04-24 Thread otto
- Original Message - From: "Richard Perez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 4:32 PM Subject: [PHP] Background Processing > Hi people!! > > I'm trying to find a way to handle this but I don't come up with anything. > > I need to execute a query

RE: [PHP] Upload

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
E.. si, capita a molti qui :-) Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Neil Highley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 4:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Upload N

Fw: [PHP] Background Processing

2002-04-24 Thread otto
:) Try this http://www.naken.cc/mikehup.php Otto > - Original Message - > From: "Richard Perez" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, April 24, 2002 4:32 PM > Subject: [PHP] Background Processing > > > > Hi people!! > > > > I'm trying to find a way to ha

Re: [PHP] can someone help?

2002-04-24 Thread Miguel Cruz
You're just trying to print a list of words, one per line? print join('', explode(' ', 'Why am I trying?')); or, broken into steps in case you want to deal more with the array: $ar = explode(' ', 'Why am I trying?'); foreach ($ar as $word) { print "$word"; } I didn't look that ca

[PHP] pow() vs. float when doing match.

2002-04-24 Thread Scott Fletcher
Hi! There is the calculation errors for the floating point, so I checked the PHP website. On that website, the function webpage, pow(). It said that "In PHP 4.0.6 and earlier pow() always returned a float, and did not issue warnings.". So, there was some changes to the pow() on PHP 4.0.7 a

[PHP] Fw: HTML generate from PHP code

2002-04-24 Thread otto
Can here help me on this ? Please give me more attention than Stig. this give me no result - php with -C option - c:\php\php.exe -f gen.hp - useong function passthru() vagy popen(). So please, before you suggest soemthing please try it. thanx Otto > - Original Message - > From: "

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Jim Winstead
Scott Fletcher <[EMAIL PROTECTED]> wrote: >There is the calculation errors for the floating point, so I checked the > PHP website. On that website, the function webpage, pow(). It said that > "In PHP 4.0.6 and earlier pow() always returned a float, and did not issue > warnings.". So, there

RE: [PHP] Background Processing

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
You can use PHP-GTK in the background. Just call it with cron. Alternatively, you can set PHP to keep executing on the user exit. What was that function called? on_*_shutdown()? Could be dangerous though, what if it goes to loop-in your server? 30 mins is quite a few for a script to run. So, che

[PHP] replacing first occurence

2002-04-24 Thread Diana Castillo
What function can I use to replace just the first occurence of a "," in a string? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] searching terms non adjacent

2002-04-24 Thread Jenice S. Tate
What's the best programming method to use to search terms that are non adjacent? -- Jenice S. Tate, Systems Administrator MS Dept. of Archives & History Archives & Library Division - Computer Support Phone: (601) 359-6900 Fax: (601) 359-6964 -- PHP General Mailing List (http://www.php.net/)

[PHP] code with comments is here

2002-04-24 Thread Kirk Babb
I have a feeling I am making this much harder than it really is! I'm a new programmer, and I am trying to output "x" number of characters per line without splitting up the words in the string. I want to approach as best as possible a certain number of characters per line, let's say 80 characters

[PHP] comparing time (related question)

2002-04-24 Thread Jackson Miller
When storing dates and times in databases is it better to store them as UNIX timestamps or in one of the SQL date/time types? I am working on an application that takes school attendance and has homework assignments, so I am doing a fair amount of date work. Currently I am storing everything as d

RE: [PHP] Background Processing

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Maxim Maletsky (PHPBeginner.com) wrote: > You can use PHP-GTK in the background. Just call it with cron. > Alternatively, you can set PHP to keep executing on the user exit. What > was that function called? on_*_shutdown()? > > Could be dangerous though, what if it goes to lo

Re: [PHP] code with comments is here

2002-04-24 Thread Miguel Cruz
function wrap_lines ($str, $line_length) { $r = ''; $words = preg_split('/\s/', $str); $cur_pos = 0; foreach($words as $word) { if (($cur_pos + strlen($word) + 1) > $line_length) { $cur_pos = 0; $r .= ''; } else { $r .= ' '; $cur_pos++;

Re: [PHP] comparing time (related question)

2002-04-24 Thread Miguel Cruz
On 24 Apr 2002, Jackson Miller wrote: > When storing dates and times in databases is it better to store them as > UNIX timestamps or in one of the SQL date/time types? > > I am working on an application that takes school attendance and has > homework assignments, so I am doing a fair amount of da

RE: [PHP] phpnuke still around?

2002-04-24 Thread Brian McGarvie
it exists, and url works fine for me, but why use phpnuke? all ya end up with is lots of dull sites that look the same :) -Original Message- From: Dennis Gearon [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 23:56 To: [EMAIL PROTECTED] Subject: [PHP] phpnuke still around? http://www.php

RE: [PHP] can someone help?

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Hey, I started playing with your code for a while ... And then realized.. What you're trying to do it to reproduce chunk_split() function. Try other work arounds for this. Read the docs, Start from here: www.php.net/chunk_split Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginn

[PHP] Execute an external program

2002-04-24 Thread José León Serna
Hello: I use a W2000+Apache+PHP 4.1.2, and I want to execute an external command from PHP script, the line is something like this: psftp.exe [EMAIL PROTECTED] -pw root -b bat.txt psftp is a secure ftp console program, and the bat.txt file contains all the necessary commands to get a file fro

RE: [PHP] replacing first occurence

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Two ways: 1. $string = preg_replace("^.{1}", 'h', 'bill'); // will make 'h'ill out of 'b'ill 2. $string = 'h'.substr('bill', 1);// will get rid of the first char and concatenate Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // w

[PHP] looking for script

2002-04-24 Thread Teqila MAN
Hello, I;m looking for an exchange script. User can share information but they have to register. Do u know sth like that? Teqilaman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >