Re: [PHP] how to force a refresh?

2003-03-13 Thread - Edwin
> There is an HTML solution, but I can't remember offhand what it > is. http://where2go.after"; /> ? - E __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] session variables

2003-03-13 Thread Shaun van den Berg
Hi, Is it wise or wrong to put long strings into a session variable ? Is it better to keep the values short ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website: www.novtel.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] how to force a refresh?

2003-03-13 Thread - Edwin
Or, just: ...if the same page. Note: "1" is the number of seconds... - E __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] php errors while displaying database fields

2003-03-13 Thread Ernest E Vogelsinger
At 23:30 12.03.2003, Boulytchev, Vasiliy said: [snip] >I have searched the archives, and have found nothing on these errors >I am getting. Here is the apache error logs capture: > >PHP Notice: Undefined index: REMOTE_ADDR in >/home/www/customflagcompan

[PHP] RE: what is session_name?

2003-03-13 Thread Uttam
it is the name of cookie variable which stores the unique session ID string. suppose you set session.name to SESSID in php.ini then a cookie variable named SESSID will be sent to client in which session ID string will be stored by client browser. If URL is used to propogate session variable then

Re: [PHP] Force refresh of graphic - how?

2003-03-13 Thread Ernest E Vogelsinger
At 23:33 12.03.2003, Justin French said: [snip] >Put this code in your shared library of functions (adapted from manual, >untested): >function randNumber($min=1000,$max=9) >{ >// build a seed >list($usec, $sec) = explode(' ', microtime()); >

[PHP] Re user Identifying

2003-03-13 Thread Peter Goggin
My site uses shopping baskets to record what the user wants to but. These records are stored in a database against the user. This requires the user to register and log onto the site. Is it possible to avoid this by the use of cookies or some other method? Is it possible to use both methods in p

Re: [PHP] Follow-up to Hacker problem

2003-03-13 Thread Ernest E Vogelsinger
At 23:42 12.03.2003, Pag said: [snip] > Your tips were nice, guys, thanks a lot. I tried a few things and i >decided to go for making all the checks server side, cant go safer than that. > Just have a doubt on one of the checks, at least so far.

[PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
Hi every1, I need to update records in a mysql dbase, from a .csv file, everything works fine, but the index column, $npr_nr from below sometimes has a space at the end, this causes the dbase index not to match this one, therefore this record isn't updated. Do any1 know how I can check for spaces

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Ernest E Vogelsinger
At 09:59 13.03.2003, Adriaan Nel said: [snip] >I need to update records in a mysql dbase, from a .csv file, everything >works fine, but the index column, $npr_nr from below sometimes has a space >at the end, this causes the dbase index not to match this one,

[PHP] include dosn't after Provider-Change

2003-03-13 Thread Oliver Witt
Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: in an html-document. Is there an Error inside? My server show no error-messages... Thanx for Help. Olly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread - Edwin
Hi, "Adriaan Nel" <[EMAIL PROTECTED]> wrote: > Do any1 know how I can check for spaces here, > and remove them if present http://www.php.net/manual/en/function.trim.php ? http://www.php.net/manual/en/function.rtrim.php ? http://www.php.net/manual/en/function.lrim.php ? - E __

Re: [PHP] include dosn't after Provider-Change

2003-03-13 Thread Leif K-Brooks
You can't execute PHP from an HTML page. My guess is that your old provider had PHP parsing enabled for .html files, shich most don't. Oliver Witt wrote: Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: in an html-document. Is there an Error inside? My server

RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-13 Thread Rudolf Visagie
I would have thought a genius would be able to spell geniuses. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:46 AM To: chris; [EMAIL PROTECTED] Subject: Re: [PHP] Re: Your script possibly relies on a session side-effect which existed unti

RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-13 Thread Niklas Lampén
LOL! :D -Original Message- From: Rudolf Visagie [mailto:[EMAIL PROTECTED] Sent: 13. maaliskuuta 2003 10:56 To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3 I would have thought a genius would be able to spell

[PHP] PHP/HTML table layout?

2003-03-13 Thread Bev
Is there any simple way to stop the Cells of a Table from Moving, say for a simple table I want the first column to be always fixed at 100 pixels(col A) and the second to be fixed at 500(col B). Thing is though, I have specified pixels for each column BUT they still let me type on past the fixed a

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread Leif K-Brooks
This has absolutley nothing to do with PHP. I believe that it will stay if you set the width with CSS, but no promises. Bev wrote: Is there any simple way to stop the Cells of a Table from Moving, say for a simple table I want the first column to be always fixed at 100 pixels(col A) and the sec

[PHP] include dosn't after Provider-Change - I have it!

2003-03-13 Thread Oliver Witt
After the Tip: You can't execute PHP from an HTML page. My guess is that your old provider had PHP parsing enabled for .html files, shich most don't. Now I have created an .htaccess in the home-folder with: AddType application/x-httpd-php .php .php4 .html It works... Thanxs! Olly -Ursprüng

[PHP] Is there any reason...

2003-03-13 Thread Leif K-Brooks
That replies on this list go to the person who originally posted the message by default? It seems to me that the reply-to header should be set to the list, or is it not possible with the mailing list system this list uses? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Threading objects

2003-03-13 Thread alex
As i rember apache can not handle a threading php ... if you whant threads you need to run php from command prompt in a linux/unix enviroment(windows dosen't support threads i I'm not wrong).Look for a threads project in PEAR(http://pear.php.net/). Hope it helps, Best regards, Alex. > Is it possib

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Adriaan Nel
Thanks, I tried the trim function and it solves most of my problems, but I still get duplicatesit's so weird, could any1 please just quickly check through these lines of code and tell me if you see anything thats wrong The records in the dbase are uploaded with another php file, which

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread - Edwin
Hi, "Bev" <[EMAIL PROTECTED]> wrote: [snip] > I wanted to fixed sized cells and that when I type do not > increase/decrease the surronding cells.Can this be done? [/snip] Try having your with a fixed width as well: Ex. then with your columns: I think you also have to take no

Re: [PHP] removing appended chars - solved!!! Thanks

2003-03-13 Thread Adriaan Nel
Thanks, I solved it "Adriaan Nel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, I tried the trim function and it solves most of my problems, but I > still get duplicatesit's so weird, could any1 please just quickly > check through these lines of code and tell m

RE: [PHP] session variables

2003-03-13 Thread John W. Holmes
> Is it wise or wrong to put long strings into a session variable ? Is it > better to keep the values short ? The more data you put into your session, the more data that has to be read and written to a file on your server each time someone accesses a page. More data is going to slow things down.

RE: [PHP] sessions garbadge

2003-03-13 Thread John W. Holmes
> My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for > testing . When i create a session on my site and i dont log out , the > session var will still remain on the server , ok , after an hour (not > exactly an hour) , when i surf the site , the collector destroys that var > on >

RE: [PHP] Pagination Part 2

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: conbud [mailto:[EMAIL PROTECTED] > Sent: 12 March 2003 19:12 > > > Hi, Ive been trying to get this to work but I keep getting this error > > Parse error: parse error, unexpected $ in > /home/conbud/nrlug/test3.php > on line 72 > > line 72 is just the endin

RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: chris [mailto:[EMAIL PROTECTED] > Sent: 13 March 2003 00:24 > To: [EMAIL PROTECTED] > > 1. Registered globals are off. > 2. Using super globals ($_SESSION instead of $HTTP_SESSION_VARS) > 3. Setting via $_SESSION['var'] = $var instead of > session_register(

RE: [PHP] sessions garbadge

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: 13 March 2003 10:24 > > > My gc_maxlifetime = 3600 (1 hour) and my probability = 100 > , just for > > testing . When i create a session on my site and i dont log > out , the > > session var will still remain on

Re: [PHP] array_sum help

2003-03-13 Thread Marek Kilimajer
There should not be any problem with zeros, as long as they are in array. The warning tells you, you are not passing an array, so there must be some broken logic in your code. Try putting print_r($the_array) before line 154 Beauford.2002 wrote: Hi, I have a mysql database in which some values

Re: [PHP] what is session_name?

2003-03-13 Thread David T-G
Joe -- ...and then Joseph Bannon said... % % I read the description on php.net, but what is % session_name really used for? Uttam's answer is technically correct, but it may not really provide the info you seek. [That's not meant as a slight upon Uttam, of course; it's a very good and thorough

Re: [PHP] Re: PHP Books

2003-03-13 Thread David T-G
Hi, all -- ...and then rotsky said... % ... % 'PHP Developer's Cookbook' - Sterling Hughes with contributions by Andrei % Zmievski (Sams). Still playing with this one. Definitely not for beginners % as it assumes (IMHO) a fairly well-developed familiarity with PHP concepts % and procedures and ge

[PHP] RSS

2003-03-13 Thread Sebi
Hi, Does some one know where I can find a RSS parser exmple? Tnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSS

2003-03-13 Thread - Edwin
Hi, "Sebi" <[EMAIL PROTECTED]> wrote: > > Hi, > Does some one know where I can find a RSS parser exmple? I think you can find one here: http://www.google.co.jp/search?q=PHP+RSS+parser&ie=UTF-8&oe=UTF-8&hl= en&lr= ;) - E __ Do You Yahoo

[PHP] Writing a fileparser

2003-03-13 Thread Alexander Gruber
Hi together, i´m currently working on a php script to read a txt file into a mysql database. but i have several problems i don´t know how to fix. the file looks like the following example: category 1 Data1 ::#:: 27 Data2 ::#:: 0 Data3 ::#:: (152) category 2 Data1 ::#:: 2b3 Data2 :

Re: [PHP] Writing a fileparser

2003-03-13 Thread - Edwin
Hi, (B (BAlexander Gruber <[EMAIL PROTECTED]> wrote: (B> Hi together, (B> (B> i$B%((Bm currently working on a php script to read a txt file into a mysql (B> database. but i have several problems i don$B%((Bt know how to fix. (B> the file looks like the following example: (B> (B> ca

Re: [PHP] how to force a refresh?

2003-03-13 Thread Michael Sims
On Thu, 13 Mar 2003 02:25:57 -0800, you wrote: >Ok, well I have a form that uploads images, but of course the problem is, is >that IE caches the uploaded images. The only way to clear the cache is to >refresh, but that isn't a very user friendly approach. I've tried the >following header tags: Yo

[PHP] Dinamic Object Creation

2003-03-13 Thread Piero B. Contezini
Hello, I'm developing a project where i need to access some XML files as objects, i've seen the dom_xmltree function but it makes me a tree of arrays of objects, too complicated to manipulate and hard to find the content within the object. Anyone have manipulated dinamic objects? I am reading the

[PHP] Can't seem to be able to do a get request

2003-03-13 Thread Mathieu Dumoulin
I got this script i wish to run like it was a seperate thread on the server cause i can't run anything with a crontab but i can't seem to do a valid GET request thru fsockopen. If anyone can help me please. $fp = fsockopen ("sandbox.lhjmq.xl5.net", 80); if ($fp) { fputs ($fp, "GET /lang_fr/index

[PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread Jean-Christian Imbeault
I have a login page with a form where users enter there login and password. The form's action is "https://mysite.com/login.php";. login.php authenticates the user and if the authentication is successful it ends with a: header("Location: http://mysite.com/welcome.html?a=b&c=etc...";); The problem I

Re: [PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread CPT John W. Holmes
> I have a login page with a form where users enter there login and > password. The form's action is "https://mysite.com/login.php";. > > login.php authenticates the user and if the authentication is successful > it ends with a: > > header("Location: http://mysite.com/welcome.html?a=b&c=etc...";);

Re: [PHP] sessions garbadge

2003-03-13 Thread CPT John W. Holmes
> > > My gc_maxlifetime = 3600 (1 hour) and my probability = 100 > > , just for > > > testing . When i create a session on my site and i dont log > > out , the > > > session var will still remain on the server , ok , after an > > hour (not > > > exactly an hour) , when i surf the site , the collect

Re: [PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread - Edwin
Hi, Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote: [snip] > Is there a way around this? The messages are annoying at best and > probably scary to users ... [/snip] This is a browser issue and is actually a security "feature". Unless the users themselves turn it off, the messages would appe

Re: [PHP] http->https->http redirection causes browser to show alertdialog

2003-03-13 Thread Jean-Christian Imbeault
Cpt John W. Holmes wrote: You'll have to output a message on the HTTPS page, like "Thank you, click here to continue", otherwise there's no way around the message. It's a client side issue, other browsers may or may not do it. Yuck. I see that Hotmail does something similar, You login though HTTPS

RE: [PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread Sysadmin
Why don't you just leave them in https? Is this a performance issue? -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:07 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] http->https->http redirection causes browser to sho

[PHP] Splitting a string

2003-03-13 Thread Christopher J. Crane
I have a CSV file that has 7 fields. One of the fields has a number, and some of the numbers start with a "S". If that number start with a "S", I want to strip it off. I am not sure how to do that. I first wrote the script to open the file, load each line into an array and split the array by field.

Re: [PHP] Is there any reason...

2003-03-13 Thread Chris Hewitt
Leif K-Brooks wrote: That replies on this list go to the person who originally posted the message by default? It seems to me that the reply-to header should be set to the list, or is it not possible with the mailing list system this list uses? Yes, the "From" field is the poster and the "Re

[PHP] Problems (Apache + PHP) and conection to Oracle8i

2003-03-13 Thread Jaime Villarroel Valdera
I have problems to pass HTML content that contains accentuated characters from a form (editor) to an Oracle9i database ... through PHP. It is a problem of character set? or It is a problem of php?. Somebody knows this situation and how it is possible repair? Thanks !! Jaime Villarroel -- PHP Ge

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread Chris Hewitt
- Edwin wrote: Hi, "Bev" <[EMAIL PROTECTED]> wrote: [snip] I wanted to fixed sized cells and that when I type do not increase/decrease the surronding cells.Can this be done? [/snip] Try having your with a fixed width as well: The reason why html varies the size of cells is to fit in wi

[PHP] Problems (Apache + PHP) and conection to Oracle8i

2003-03-13 Thread Jaime Villarroel Valdera
I have problems to pass HTML content that contains accentuated characters from a form (editor) to un Oracle9i database ... through PHP. It is a problem of character set? or It is a problem of php?. Somebody knows this situation and how it is possible repair? Thanks !! Jaime Villarroel -- PHP Ge

Re: [PHP] Splitting a string

2003-03-13 Thread - Edwin
Hi, "Christopher J. Crane" <[EMAIL PROTECTED]> wrote: [snip] > If that number start with a "S", I want to strip it off. [/snip] Why don't you just check whether the first character is an "S" then return only the rest of the string if it is? Like: Of course, there could be some other way...

Re: [PHP] http->https->http redirection causes browser to show alertdialog

2003-03-13 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: Why don't you just leave them in https? Is this a performance issue? Performance and also the fact that (if I remember correctly) session variables are not passed from http to https nor vice versa. And more importantly any relative links in page will turn to https links

Re: [PHP] Is there any reason...

2003-03-13 Thread CPT John W. Holmes
> If the software on this list has the facility I think the "Reply-To" > field should be set to the list. What do others think? There is already enough traffic on the list. Just use Reply-All if you want to include the list in your reply. This is how most lists I've seen are, you just have to get

Re: [PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread Chris Hewitt
Jean-Christian Imbeault wrote: snip-- The problem I am facing is that the flow of event is: http -> https -> http and this causes IE and Netscape to put up an alert box telling users that they are leaving a secured site. ---snip-

Re: [PHP] Splitting a string

2003-03-13 Thread David Otton
On Thu, 13 Mar 2003 09:13:35 -0500, you wrote: >Then split the variable where there is a "S". The problem showed up when >there is another "S" in the field. I only want to split the first "S" at the >beginning of the field. Isn't there an additional value to add to the split $line = 'S12345'; if

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread - Edwin
Chris Hewitt <[EMAIL PROTECTED]> wrote: [snip] > I'd suggest you consider not having fixed width cells. [/snip] Good idea esp. if you can do better without having one. But sometimes, you really just need to have one ;) - E __ Do You Yahoo!? Yah

Re: [PHP] Splitting a string

2003-03-13 Thread David Rice
Then split the variable where there is a "S". The problem showed up when there is another "S" in the field. I only want to split the first "S" at the beginning of the field. Isn't there an additional value to add to the split $line = 'S12345'; if ($line[0] == 'S') { /* do stuff */ } $st

Re: [PHP] pop-up problem

2003-03-13 Thread -{ Rene Brehmer }-
On Tue, 11 Mar 2003 21:37:37 +0100, Ernest E Vogelsinger wrote about "Re: [PHP] pop-up problem" what the universal translator turned into this: >At 21:02 11.03.2003, -{ Rene Brehmer }- said: >[snip] >>On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote

[PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Hi, I was wondering if anyone could give me some idea to help me solve this problem. I am creating a KnowledgeBase for my company. In this knowledgeBase, the employees will input articles in the database. I decided to store it as such: a column for the title, a column for the content. I have

RE: [PHP] Splitting a string

2003-03-13 Thread Crane, Christopher
This is perfect. I was not sure how to use the brackets with a variable for position. Thank you very much Christopher J. Crane Network Manager - Infrastructure Services IKON The Way Business Gets Communicated 755 Winding Brook Drive Glastonbury, CT 06078 Phone - (860) 659-6464 Fax - (860) 652-4

Re: [PHP] Can't seem to be able to do a get request

2003-03-13 Thread Ernest E Vogelsinger
At 14:50 13.03.2003, Mathieu Dumoulin said: [snip] >I got this script i wish to run like it was a seperate thread on the server >cause i can't run anything with a crontab but i can't seem to do a valid GET >request thru fsockopen. If anyone can help me please

Re: [PHP] Splitting a string

2003-03-13 Thread - Edwin
Hi, David Rice <[EMAIL PROTECTED]> wrote: > > $str = "S12345"; > $str1 = ltrim($str,"S"); Good idea but you'd have problem if you have $str = "SS12345"; and you only want to get rid of the first one... - E __ Do You Yahoo!? Yahoo! BB is Broadba

Re: [PHP] Is there any reason...

2003-03-13 Thread Ernest E Vogelsinger
At 15:36 13.03.2003, Chris Hewitt said: [snip] >If the software on this list has the facility I think the "Reply-To" >field should be set to the list. What do others think? [snip] I join our respected CPT John Holmes

Re: [PHP] pop-up problem

2003-03-13 Thread Ernest E Vogelsinger
At 15:52 13.03.2003, -{ Rene Brehmer }- said: [snip] >My IE doesn't care about that ... it kicks both into action ... which is >bothersome as I normally used '#' in the href when onclick was used to >open windows... so everytime you clicked the link, it'd scr

Re: [PHP] Checking for a Valid Email String.

2003-03-13 Thread -{ Rene Brehmer }-
Jumping in... On Tue, 11 Mar 2003 20:19:36 -0500 (PET), David E.S.V. wrote about "Re: [PHP] Checking for a Valid Email String." what the universal translator turned into this: >you mean something like this? > >//checking if the email is valid > >if >(eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL PROTEC

Re: [PHP] Is there any reason...

2003-03-13 Thread Leif K-Brooks
The way I see it, part of the point in a mailing list is for people with the same question to only have to ask once. Replies not going to the list by default defeats this purpose. CPT John W. Holmes wrote: There is already enough traffic on the list. Just use Reply-All if you want to include t

Re: [PHP] Checking for a Valid Email String.

2003-03-13 Thread -{ Rene Brehmer }-
On Wed, 12 Mar 2003 14:49:11 +1300, Philip J. Newman wrote about "Re: [PHP] Checking for a Valid Email String." what the universal translator turned into this: >You have used the ' in sted of the " i assume that there is no difference? The difference is that when you use ", PHP looks for variable

Re: [PHP] form/text area input problem

2003-03-13 Thread CPT John W. Holmes
[snip] > My problem is, for the text area. [snip] www.php.net/nl2br ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form/text area input problem

2003-03-13 Thread - Edwin
Hi, "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> wrote: [snip] > I am just looking for a more efficient way of solving this, can anyone > give me any idea? [/snip] I think you'll save yourself from so much trouble if: 1. You just leave those long text. If they didn't press ENTER, it means th

Re: [PHP] Is there any reason...

2003-03-13 Thread CPT John W. Holmes
> >There is already enough traffic on the list. Just use Reply-All if you want > >to include the list in your reply. This is how most lists I've seen are, you > >just have to get used to it. > > The way I see it, part of the point in a mailing list is for people with > the same question to only hav

Re: [PHP] Problems (Apache + PHP) and conection to Oracle8i

2003-03-13 Thread - Edwin
Hi, "Jaime Villarroel Valdera" <[EMAIL PROTECTED]> wrote: > I have problems to pass HTML content that contains accentuated > characters from a form (editor) to an Oracle9i database ... through > PHP. I'm not sure what you meant exactly by "accentuated" but if you mean single quotes (') then p

Re: [PHP] RE: Calculates time elapsed between two date

2003-03-13 Thread -{ Rene Brehmer }-
This is actually a nice example of why it would be better to have type declaration on the variables. Calculating with dates is easier if PHP knew that the var you throw at it is a date. So if you've got: date $date1 date $date2 and then do $result = $date2 - $date1 PHP would know how to subtra

[PHP] regex problem

2003-03-13 Thread Simon De Deyne
hi, suppose there's a string $string="I like my(hot) coffee with sugar and (milk)(PHP)"; I would like to get an output of all possible combinations of the sentence with the words between brackets: eg. I like my hot coffee with sugar and I like my hot coffee with sugar and milk I like my hot cof

Re: [PHP] Force refresh of graphic - how?

2003-03-13 Thread WilsonCPU
Thanks for your suggestions. I had been thinking that it must be the URL that was causing the caching (same URL, same thing, right? Sounds good...), so I was planning on trying something along the lines of what you suggest. But I was thinking, why a random number? Why not just append the current t

Re: [PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
for 2, yes nl2br() will do it. THanks. but for 1, if the user don't press enter (yes they were typing a long paragraph), then the variable will contain one LONG string. ANd if I retrieve this data and put it in the html page, it would appear as a one lined long string. DO you know what I am

[PHP] cropping an image script

2003-03-13 Thread Anthony Ritter
In the following php script, the function takes the original file and crops to the destination file. I've ran the script using a .png file and a .jpg file. The .png works fine whereas the .jpeg file returns only part of the image along with a blue rectangle. For instance - where the original ima

Re: [PHP] form/text area input problem

2003-03-13 Thread CPT John W. Holmes
> for 2, yes nl2br() will do it. THanks. > > but for 1, if the user don't press enter (yes they were typing a long > paragraph), then the variable will contain one LONG string. > > ANd if I retrieve this data and put it in the html page, it would appear as > a one lined long string. DO you know w

Re: [PHP] form/text area input problem

2003-03-13 Thread - Edwin
"Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> wrote: [snip] > the problem is when I display it it would be a one lined paragraph. > THe page's format is ruin since this is one long line and the user > will have to scroll across to read the paragraph which look pretty bad. > > I hope you know

[PHP] open_dir v safe_mode fighting security

2003-03-13 Thread Brandon Saccone
Hi all, currently i have a linux apache server with php 4.1.2 Right now on a domain "/home/someuser" and have safe_mode enabled and so this will stop anybody opening any file that is not owned by them, ie will not allow you to open someone else's html pages, scripts etc. However it does not stop

[PHP] Authenticate against LDAP database

2003-03-13 Thread Greg
Hi- I'm using Samba and OpenLDAP with smbldap tools. I have users stored in the LDAP database that I would like my PHP pages to authenticated against. I have 2 fields for user passwords, lmpassword and ntpassword. How would I go about authenticating against one of these fields, preferably ntpass

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread - Edwin
I think you meant to send this to the list... :) - E "bev" <[EMAIL PROTECTED]> wrote: > Chris, I took off the "nowrap" (as all that dones is makes same line bigger...) > > I have the table cells defined as 250 pixels etc so thats fixed width but I can still type more into each cell as they ke

RE: [PHP] form/text area input problem

2003-03-13 Thread Poon, Kelvin (Infomart)
THanks guys, I think I will use wordwarp() -Original Message- From: - Edwin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 11:07 AM To: Poon, Kelvin (Infomart); '[EMAIL PROTECTED]' Subject: Re: [PHP] form/text area input problem "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> w

Re: [PHP] http->https->http redirection causes browser to showalert dialog

2003-03-13 Thread Pablo
On 03/13/2003 8:49 AM, Chris Hewitt ([EMAIL PROTECTED]) wrote: > Jean-Christian Imbeault wrote: > >> The problem I am facing is that the flow of event is: >> >> http -> https -> http >> >> and this causes IE and Netscape to put up an alert box telling >> users that they are leaving a secured si

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-13 Thread RIVES Sergio SOFRECOM
was it what she was asking ? I am not sure but you are right ! at the moment, the class fpdf doesn't manage to manipulate existing pdf-files. Martin Mandl a écrit : > it's not possible (at the moment) to manipulate existing pdf-files with > fpdf. > > Rives Sergio Sofrecom wrote: > > maybe the lin

[PHP] Re: [RegExp] extracting anchors

2003-03-13 Thread Jens Lehmann
Jome wrote: Jens Lehmann wrote: Hello, I want to extract the "name"-attribute of all anchors out of an HTML-source-code which don't have the "href"-attribute. I can use this code to get the "name"-attribute: preg_match_all('/]*?)name=[ \'\"](.*?)[ \'\"](.*?)>/is',$src,$ar); The name-attributes ar

RE: [PHP] Checking for a Valid Email String.

2003-03-13 Thread Julien Wadin
Here's a script I've made The script checks if the mail looks like a valid one $pos2 and $lg>5 and $pos2>=1) { if (ereg(" ",$mail2)) { return false; } else { return true;

[PHP] http_session_vars

2003-03-13 Thread Dennis Gearon
do the session vars get treated with magic quotes? The last comment at the bottom of: http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Seems to think so. He's written good code, but I have my doubts as to whether it should be applied to session vars. -- PHP General Ma

[PHP] php 4.3.1 and apache 2.0.44 dont work on file uploads

2003-03-13 Thread Ronald Petty
I get files that twice the size when uploaded then the original. I am going to try the previous version of php and see if it works. If not Ill try the previous version of apache. Has anyone else seen this? I have scoured the archives and I am not the only person with this problem. Ron -- PH

[PHP] table cell space under image in IE

2003-03-13 Thread Larry Brown
Has anyone had to address this problem before? I've created a table and placed an image inside. The image is around 12 pxl high and when the table is displayed in Mozilla the cell border is up against the image on all sides. On IE however, the top of the image is up against the cell border but t

Re: [PHP] http_session_vars

2003-03-13 Thread CPT John W. Holmes
> do the session vars get treated with magic quotes? The last comment at the bottom of: > > http://www.php.net/manual/en/function.get-magic-quotes-gpc.php > > Seems to think so. He's written good code, but I have my doubts as to whether it should be applied > to session vars. The "gpc" stands for

Re: [PHP] regex problem

2003-03-13 Thread CPT John W. Holmes
> suppose there's a string > $string="I like my(hot) coffee with sugar and (milk)(PHP)"; > > I would like to get an output of all possible combinations of the sentence > with the words between brackets: > eg. > I like my hot coffee with sugar and > I like my hot coffee with sugar and milk > I like

Re: [PHP] authorization

2003-03-13 Thread Ray Hunter
The problem here is that most people work and do not have the time to "help" out. The best thing would to contract this portion out to the lowest bid. -- Ray On Wed, 2003-03-12 at 23:41, [EMAIL PROTECTED] wrote: > Hello, > > I'm wonding if someone can please assist me with the following addi

Re: [PHP] table cell space under image in IE

2003-03-13 Thread CPT John W. Holmes
> Has anyone had to address this problem before? I've created a table and > placed an image inside. The image is around 12 pxl high and when the table > is displayed in Mozilla the cell border is up against the image on all > sides. On IE however, the top of the image is up against the cell bord

Re: [PHP] install php

2003-03-13 Thread Ray Hunter
make sure you config line has the location of you mysql install.. example: /.configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.14 --enable-track-var -- Ray On Thu, 2003-03-13 at 00:14, sonjaya wrote: > dear milist > i want' instal php with mysql , itry > like this : > #./conf

[PHP] time() question

2003-03-13 Thread Tom Ray
Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I make it look like 2003-03-13 or a variant of that? TIA -- PHP General M

Re: [PHP] Re user Identifying

2003-03-13 Thread Ray Hunter
Yes you can set up both in parallel...however, that is going to be tons of work for your system to manage. You can set up both that allows either sessions or cookies. -- Ray On Thu, 2003-03-13 at 01:55, Peter Goggin wrote: > My site uses shopping baskets to record what the user wants to but. Th

Re: [PHP] authorization

2003-03-13 Thread -{ Rene Brehmer }-
On Thu, 13 Mar 2003 01:41:46 -0500, [EMAIL PROTECTED] wrote about "[PHP] authorization" what the universal translator turned into this: >The site has a mailing list, guestbook, & videos - >when the user goes to access the guestbook and videos, I want to be able to >check if they're signed-up to th

[PHP] Re: table cell space under image in IE

2003-03-13 Thread Roman Sanchez
If you write the CR-LF before counts as an space wich wraps to the next line. It might be helpful to write (in the same line) instead. > I know this is not exactly on topic but I produce all html by php and I > don't want to go out and add myself to an html list (if there is such a > thing

[PHP] PHP 4.3.2RC1 released.

2003-03-13 Thread Jani Taskinen
This is the first release candidate of the upcoming maintenance release of PHP 4.3.2. Please download and test it as much as possible on real-life applications to uncover any remaining issues. Sources: http://www.php.net/~jani/RC/php-4.3.2RC1.tar.gz

Re: [PHP] time() question

2003-03-13 Thread Larry E. Ullman
Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I make it look like 2003-03-13 or a variant of that? If you are pulling a d

Re: [PHP] Re user Identifying

2003-03-13 Thread -{ Rene Brehmer }-
On Thu, 13 Mar 2003 19:55:04 +1100, Peter Goggin wrote about "[PHP] Re user Identifying" what the universal translator turned into this: >My site uses shopping baskets to record what the user wants to but. These >records are stored in a database against the user. This requires the user >to regis

  1   2   3   >