[PHP] Re: Text cleaning?

2004-02-27 Thread Five
You mean something like this? $message = ereg_replace( "\n", " ", $message); It seems to replace all new line instances with a blank space. "Karl Timmermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have some PHP code to remove incorrect carriage returns? > > E

Re: [PHP] to more fields in register

2004-02-27 Thread devil_online
ok...good awser "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 28 February 2004 14:12, devil_online wrote: > > ok, how do we do an field? > > Assuming you're not a troll, and assuming that you're a complete beginner, and > assuming that the above is "how do I

Re: [PHP] to more fields in register

2004-02-27 Thread Jason Wong
On Saturday 28 February 2004 14:12, devil_online wrote: > ok, how do we do an field? Assuming you're not a troll, and assuming that you're a complete beginner, and assuming that the above is "how do I add a field to an existing table in a database?" then I strongly suggest that you search for so

Re: [PHP] to more fields in register

2004-02-27 Thread devil_online
ok, how do we do an field? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 28 February 2004 12:32, devil_online wrote: > > Hi I have a register form that have 2 fields user and pass. Now I would > > like to put two more fields city and email. How can I do it?

Re: [PHP] to more fields in register

2004-02-27 Thread Jason Wong
On Saturday 28 February 2004 12:32, devil_online wrote: > Hi I have a register form that have 2 fields user and pass. Now I would > like to put two more fields city and email. How can I do it? thanks The same way that you did the first two? -- Jason Wong -> Gremlins Associates -> www.gremlins.bi

Re: [PHP] Timestamp query...

2004-02-27 Thread Jason Wong
On Saturday 28 February 2004 12:08, Ryan A wrote: > We needed a timestamp there because of other calcalations from other > scripts that access the > same table. Regarding your solution, can you give me a quick example > please? its 5am and i'm > pretty braindead > > I am familier with the LIKE

[PHP] What's your favorite PHP weather code?

2004-02-27 Thread Karl Timmermann
I'm looking for some code to get the latest weather and put it on my webpage, and have it very customizable. What are your favorites? Thanks Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text cleaning?

2004-02-27 Thread Karl Timmermann
Does anyone have some PHP code to remove incorrect carriage returns? Example: Sentence should be "Hi, my name is Karl and I like PHP." but is: "Hi, my name is Karl and I like PHP." or "Hi my name is Karl and I like PHP." I think I saw some code before that does it, but can't find it anywhere. Th

[PHP] to more fields in register

2004-02-27 Thread devil_online
Hi I have a register form that have 2 fields user and pass. Now I would like to put two more fields city and email. How can I do it? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php package

2004-02-27 Thread edwardspl
Dear All, Is there ( www.php.net ) RPM / SRPMS packages can be downloaded ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Timestamp query...

2004-02-27 Thread Ryan A
On 2/28/2004 4:43:48 AM, Michal Migurski ([EMAIL PROTECTED]) wrote: > >The field is join_date_time and the values are something like: > >2004022215 > >20040223015329 > > > >Everything is working fine and dandy except now that the client wants a > >search functionality in his "control panel" wh

Re: [PHP] Timestamp query...

2004-02-27 Thread Robert Cummings
On Fri, 2004-02-27 at 22:43, Michal Migurski wrote: > >The field is join_date_time and the values are something like: > >2004022215 > >20040223015329 > > > >Everything is working fine and dandy except now that the client wants a > >search functionality in his "control panel" where he can enter

Re: [PHP] Timestamp query...

2004-02-27 Thread Michal Migurski
>The field is join_date_time and the values are something like: >2004022215 >20040223015329 > >Everything is working fine and dandy except now that the client wants a >search functionality in his "control panel" where he can enter the day, >month, year and see all the people who have joined on

[PHP] Timestamp query...

2004-02-27 Thread Ryan A
Hi, I have a couple of records in the DB with timestamp(14) values. The field is join_date_time and the values are something like: 2004022215 20040223015329 Everything is working fine and dandy except now that the client wants a search functionality in his "control panel" where he can enter t

Re: [PHP] List files in a dir

2004-02-27 Thread Raditha Dissanayake
Shaun wrote: Hi, is it possible to have a file that lists all of the files in the current so that users can download them - this would be useful for a collection of images I have? Thanks for your help it's only a few lines of code and you will find it here: http://www.raditha.com/php/dir.php

Re: [PHP] arrays and sessions

2004-02-27 Thread Justin Patrin
First of all, make sure you're doing session_start() before reading/writing any session data and before you do any output. Second, You likely need to just do something like this: session_start(); if(post data) { $_SESSION['formArray'][] = $_POST; } This will save each POST array as-is in the s

[PHP] PHP application design with WAE UML.

2004-02-27 Thread Lukasz Karapuda
I have recently started to put more emphasis on PHP web application design and the documenting techniques that are associated with that (UML, flowcharting). I fairly well acquainted with UML diagraming techniques in general. I was not successful in finding a lot of resources on Web that would rel

Re: [PHP] Math weirdness with doubles...

2004-02-27 Thread Marek Kilimajer
jon roig wrote: Ok... It's Friday and maybe my brain is dead, but I'm having a weird problem with some basic math. Here's a little snippet of the code I'm working with: --- echo "Current:$currentAmount:".gettype($currentAmount)." - Paid:$paidAmount:".gettype($paidAmount).""

RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short on Friday, February 27, 2004 2:10 PM said: > I've got some code and it simply isn't working. I thought it might be > because each time the form submits data, the array I'm storing > information in is being re-initialized. If this is the case, I don't >

RE: [PHP] Math weirdness with doubles...

2004-02-27 Thread Daniel Clark
Cool. There must be a way to display out the full doubles precision huh. > Thank you so much for the help, folks. That turned out to be weird, but > correct. Rounding off to 4 decimal point places solved the problem quite > nicely. > > -- jon > > > > -Original Message- > From: Dan

RE: [PHP] Math weirdness with doubles...

2004-02-27 Thread jon roig
Thank you so much for the help, folks. That turned out to be weird, but correct. Rounding off to 4 decimal point places solved the problem quite nicely. -- jon -Original Message- From: Daniel Clark [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 3:16 PM To: jon roig C

Re: [PHP] Math weirdness with doubles...

2004-02-27 Thread D. Wokan
They are not the same amount. They each got a different rounding error. Double values only display a small number of decimal places (relatively speaking). If you look at the difference you're getting, it's 0.0142108547152 (I may be off by a zero or two), so given you're working w

Re: [PHP] Math weirdness with doubles...

2004-02-27 Thread Daniel Clark
Looks like the Doubles are not exactly zero. Must be some precision points not displaying. > Ok... It's Friday and maybe my brain is dead, but I'm having a weird > problem with some basic math. > > Here's a little snippet of the code I'm working with: > > --- > echo "Curr

Re: [PHP] arrays and sessions

2004-02-27 Thread Kermit Short
I've got some code and it simply isn't working. I thought it might be because each time the form submits data, the array I'm storing information in is being re-initialized. If this is the case, I don't have the multidimensional array I'm trying to get, but just a vector array with the most recent

[PHP] Math weirdness with doubles...

2004-02-27 Thread jon roig
Ok... It's Friday and maybe my brain is dead, but I'm having a weird problem with some basic math. Here's a little snippet of the code I'm working with: --- echo "Current:$currentAmount:".gettype($currentAmount)." - Paid:$paidAmount:".gettype($paidAmount).""; $currentAmou

RE: [PHP] arrays and sessions

2004-02-27 Thread Chris W. Parker
Kermit Short on Friday, February 27, 2004 1:47 PM said: > A second form will contain an action that > sends the sql code for creating the table to the database server, and > viola, I've got myself a new table. i prefer the violin, but viola's are cool too. ;) > If

[PHP] Re: read it immediately

2004-02-27 Thread Justin Patrin
[EMAIL PROTECTED] wrote: kill the writer of this document! Thanks Rosencrantz -- paperCrane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: List files in a dir

2004-02-27 Thread Justin Patrin
Shaun wrote: Hi, is it possible to have a file that lists all of the files in the current so that users can download them - this would be useful for a collection of images I have? Thanks for your help Try opendir() and readdir(). http://us4.php.net/opendir -- paperCrane -- PHP General Mailing L

[PHP] arrays and sessions

2004-02-27 Thread Kermit Short
Uh, sorry, I'm Kermit, not news.php.net OK gurus, I'm trying to create a page that allows me to create a table in my MSSQL database. I'm accepting the field info one by one in a form using a PHP_SELF action. This information is supposed to be collected in an array that's to be stored as a sessi

php-general Digest 27 Feb 2004 21:42:41 -0000 Issue 2615

2004-02-27 Thread php-general-digest-help
php-general Digest 27 Feb 2004 21:42:41 - Issue 2615 Topics (messages 178991 through 179026): Re: Passing the value of a variable from PHP to JavaScript. 178991 by: Gareth Williams 178992 by: Prabu Subroto Re: PHP5 simpleXML bug or am i just being silly :) 178993 by:

[PHP] Arrays as session variables

2004-02-27 Thread news.php.net
OK gurus, I'm trying to create a page that allows me to create a table in my MSSQL database. I'm accepting the field info one by one in a form using a PHP_SELF action. This information is supposed to be collected in an array that's to be stored as a session variable for semi-permanance, until the

Re: [PHP] List files in a dir

2004-02-27 Thread Ryan A
> Hi, Hi, > is it possible to have a file that lists all of the files in the current > so > that users can download them Yes, belive it or not...it IS possible. - this would be useful for a collection of > images I have? Sure sounds like it. > Thanks for your help Most welcome. Incase the

[PHP] PHP and Workflow Engines

2004-02-27 Thread Pascal Schaedeli
Hi, Have you implemented or planned to implement a PHP interface to a workflow engine instead of building the process routing logic into the PHP scripts? The idea is to separate the processing of activities (mainly through the interactions of users an a web form) and the connections between those

[PHP] php-mode, emacs, and k&r style

2004-02-27 Thread James Hughes
Hi, Has anyone got the k&r indentation style working for php in emacs? It used to work for me with the following: (add-hook 'php-mode-user-hook (function (lambda () (c-set-style "K&R") (setq-default c-basic-offset 3)

Re: [PHP] Re: seesions problem

2004-02-27 Thread Chris Shiflett
--- Pance <[EMAIL PROTECTED]> wrote: > I have looked at all the vars in phpinfo() (I don't have access to the > server ini files). And I can't see anything wrong. I'm not sure if my message prompted this action, but if so, I see two problems: 1. I'm sure you can "access" php.ini. The Web server t

[PHP] read it immediately

2004-02-27 Thread gaudyc
kill the writer of this document! <> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] survey for graduation thesis

2004-02-27 Thread Joost Wilbrink
Hello Everybody, I am doing a research in the field of web application developing for my graduatation thesis for university. I am studying information management at the university of Tilburg in The Netherlands. I want to do a survey about some aspects of web application development. I am basicall

RE: [PHP] List files in a dir

2004-02-27 Thread Chris W. Parker
Shaun on Friday, February 27, 2004 10:14 AM said: > is it possible to have a file that lists all of the files in the > current so that users can download them - this would be useful > for a collection of images I have? yes. look up the file system functions in the m

[PHP] List files in a dir

2004-02-27 Thread Shaun
Hi, is it possible to have a file that lists all of the files in the current so that users can download them - this would be useful for a collection of images I have? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php5 and xml

2004-02-27 Thread Carlos
hello ... I'm working with simplexml (php5) to manipulate the data in xml file, but I'm having one problem. I need manipulate the nodes (add and remove) . example I need add more one node and remove the node but I don't have idea ... somebody can help me ? Any example ... greats

[PHP] Where to talk business?

2004-02-27 Thread rogue
Hi all, I have some non-programming questions related to operating a web application development business - mostly stuff like: billing, code release, etc., questions. Anyone know of a forum where this kind of stuff is discussed? Thanks -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: seesions problem

2004-02-27 Thread Pance
Thanks to everybody's suggestions. But the problem won't go away just by ignoring the "Notice". I'm using $_SESSION["user_id"]) as a validation tool to verify that the user has logged in. I have looked at all the vars in phpinfo() (I don't have access to the server ini files). And I can't see anyt

Re: [PHP] Importing PDF Text

2004-02-27 Thread Stuart
Adam Voigt wrote: Well yes, I know there are utilities, on the Linux server I can just use the "pdftotext" program, but I'd like to make it platform-independent instead of relying on outside utilites. Some of the external utils are multi-platform. As I said before, I don't believe there is a P

Re: [PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
Well yes, I know there are utilities, on the Linux server I can just use the "pdftotext" program, but I'd like to make it platform-independent instead of relying on outside utilites. On Fri, 2004-02-27 at 11:43, Stuart wrote: > Adam Voigt wrote: > > >I need the ability to take a PDF and pull the

Re: [PHP] Importing PDF Text

2004-02-27 Thread Stuart
Adam Voigt wrote: I need the ability to take a PDF and pull the text out of it, I looked at the manual for the PDFlib extension, but didn't see anything like this. Anyone know a way to do this? I don't believe there is a PHP-only way to do it, but there are many tools around, both commercial a

Re: [PHP] Weird result from query...?

2004-02-27 Thread Jeff Harris
|Ryan A wrote: | |> Hey everyone, |> Thanks for your response, |> |> I did try the query without the single quote, with double quotes but didnt |> work. |> I do think that a dot is valid in the URL coz it seems to be working if |> there are 2 zeros in the |> decimal part. I even tried running the S

[PHP] Importing PDF Text

2004-02-27 Thread Adam Voigt
I need the ability to take a PDF and pull the text out of it, I looked at the manual for the PDFlib extension, but didn't see anything like this. Anyone know a way to do this? -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Sequential Random Character Generator

2004-02-27 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone point me in the right direction on

Re: [PHP] seesions problem

2004-02-27 Thread Chris Shiflett
--- Pance <[EMAIL PROTECTED]> wrote: > I've been using the same code to verify a persons login for more than > a year - but I've been having some problems lately - I get past the > login, but the session times-out after about 30 seconds or a minute. My > new server is using PHP ver 4.3.3. One thin

Re: [PHP] bug in PHP

2004-02-27 Thread Chris Shiflett
--- Kyle Goetz <[EMAIL PROTECTED]> wrote: > i have a line of code > include 'new_album.php'; > i keep getting a file not found error > i KNOW the file is there > i copy the code to a new file, and save it as 123.php and then change > the line of code to include '123.php'; and voile! it works! > it

[PHP] Re: strstr

2004-02-27 Thread Ben Ramsey
Jakes wrote: I got this out the manual: how do I get the "user" ranther than "@example.com"Thanks I would do something like this: $email = "[EMAIL PROTECTED]"; if (preg_match("/^(.*)\@(.*)$/", $email, $matches)) { // $matches[0] contains the original $email $user = $matches[1];

Re: [PHP] seesions problem

2004-02-27 Thread Stuart
Pance wrote: I've been using the same code to verify a persons login for more than a year - but I've been having some problems lately - I get past the login, but the session times-out after about 30 seconds or a minute. My new server is using PHP ver 4.3.3. I've also read the docs on "sessions" and

Re: [PHP] renamed images are now corrupt...

2004-02-27 Thread Burhan Khalid
Bryan Henry wrote: Chmod and file_exists report that the file does not exist, even though I can view the files via the FTP client. This is a permissions problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strstr

2004-02-27 Thread Burhan Khalid
Jakes wrote: I got this out the manual: how do I get the "user" ranther than "@example.com"Thanks $bits = explode('@',$email); echo $bits[0]; http://www.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strstr

2004-02-27 Thread Richard Davey
Hello Jakes, Friday, February 27, 2004, 1:55:40 PM, you wrote: J> I got this out the manual: J> $email = '[EMAIL PROTECTED]'; J> $domain = strstr($email, '@'); J> print $domain; // prints @example.com ?>> J> how do I get the "user" ranther than "@example.com"Thanks Use strpos() to locate the c

[PHP] strstr

2004-02-27 Thread Jakes
I got this out the manual: how do I get the "user" ranther than "@example.com"Thanks

RE: [PHP] seesions problem

2004-02-27 Thread Rich Gray
> Notice: Undefined index: user_id in > /home/pance/public_html/menu.php on line > 13 > > Has anybody else come accross this problem - and how did you solve it? > > Pance Stojkovski are you using session_start() at start of each page that manipulates $_SESSION ? rich -- PHP General Mailing List

[PHP] stdClass

2004-02-27 Thread Jakes
Please can some explain to me what the stdClass is used for in PHP 5. I've tried to use the reflection API to reverse engineer it but it does not give you much on the stdClass What methods can be inherited from this class? Does it work the same was as the java base class - Object?

Re: [PHP] PHP Apache Log Stats and viewer?

2004-02-27 Thread Michael Kunze
Michal Migurski wrote: > It's not PHP, but it's probably exactly what you're looking for: > http://www.mrunix.net/webalizer/ http://awstats.sf.net - much better -- Michael Kunze http://www.smrealms.de/ Don't Steal. The government hates competition -- PHP General Mailing List (http://ww

[PHP] Re: bug in PHP

2004-02-27 Thread Michael Kunze
Kyle Goetz wrote: > hey so i've been struggling with an apparent bug in and older version of > PHP but i wouldn't know where to look about this bug, as it concerns the > include function and there is no mention of a bug that i can find... > > version of php: 4.1.0 > i have a line of code > includ

Re: [PHP] seesions problem

2004-02-27 Thread Seba
Last month I had thew same problem, but I don't remeber how I solved it. Note that it is only a "Notice", and not an error message. Set your php.ini to do not show notice messages. Seba Il ven, 2004-02-27 alle 13:16, Pance ha scritto: > I've been using the same code to verify a persons login for

[PHP] seesions problem

2004-02-27 Thread Pance
I've been using the same code to verify a persons login for more than a year - but I've been having some problems lately - I get past the login, but the session times-out after about 30 seconds or a minute. My new server is using PHP ver 4.3.3. I've also read the docs on "sessions" and I've taken t

Re: [PHP] PHP5 simpleXML bug or am i just being silly :)

2004-02-27 Thread William Bailey
OK sonce the php example code attachment go nuked here it is... [[::PHP START::]] $xmlstr = ' user1 letMeIn www.pro-net.co.uk www.example.com user2 myPassword www.pro-net.co.uk '; $nl = "\r\n"; $xml = simplexml_load_str

Re: [PHP] PHP5 simpleXML bug or am i just being silly :)

2004-02-27 Thread William Bailey
To follow up my question from yesterday i have made a test script that will produce the problem that i am seeing. The attached script will produce the following output on both my windows box (which runs a 2 day old php5 snapshot) and my FreeBSD box which uses a version out of the ports. The php

Re: [PHP] Passing the value of a variable from PHP to JavaScript.

2004-02-27 Thread Prabu Subroto
Dear my friend, Gareth... Yes, it worksThank you very much for your help. I really appreciate your help. Thanks - Original Message - From: Gareth Williams <[EMAIL PROTECTED]> Date: Fri, 27 Feb 2004 10:08:21 +0100 To: "Prabu Subroto" <[EMAIL PROTECTED]> Subject: Re: [PHP] Passing the v

Re: [PHP] Passing the value of a variable from PHP to JavaScript.

2004-02-27 Thread Gareth Williams
Try this: function tes(selCtrl){ document.write('JavaScript'); window.location.replace('http://192.168.23.1/coba/coba.php? vtes='+selCtrl.value); } or this: function tes(){ selCtrl = document.getElementById('vtes'); document.write('JavaScript'); window.location.replace('http://192.168.23.1

php-general Digest 27 Feb 2004 09:00:23 -0000 Issue 2614

2004-02-27 Thread php-general-digest-help
php-general Digest 27 Feb 2004 09:00:23 - Issue 2614 Topics (messages 178959 through 178990): Re: [PHP-DEV] PHP5: Class behavior: method overloading 178959 by: Walter A. Boring IV Re: Send Attachments via mail using form 178960 by: Manuel Lemos 178966 by: Justin Patr

[PHP] Passing the value of a variable from PHP to JavaScript.

2004-02-27 Thread Prabu Subroto
Dear my friends... I have my code like this : == function tes(){ document.write('

JavaScript

'); window.location.replace('http://192.168.23.1/coba/coba.php?vtes=$vtes'); } "; echo "diforward ke javascript"; echo " 1 2 "