php-general Digest 30 Aug 2003 23:26:18 -0000 Issue 2268

2003-08-30 Thread php-general-digest-help
php-general Digest 30 Aug 2003 23:26:18 - Issue 2268 Topics (messages 161239 through 161278): Re: Sotre image created by GD in db 161239 by: Boaz Yahav 161264 by: Baroiller Pierre-Emmanuel Hello 161240 by: Sylvain Rayé 161241 by: Catalin Trifu Frameworks

[PHP] PHP SESSION timeouts

2003-08-30 Thread James Johnson
Hi, Can't find this in any of my books. Is there a default for when the $_SESSION array times out i.e., it's no longer available for the code? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Solved. [PHP] Multiple word strings getting truncated - help please.

2003-08-30 Thread James Johnson
Hi David, >From your suggestion, I found the problem. I'm validating the form and if something isn't correct, I'm not doing the query, but maintaining what the user previously entered with the following code: In some of the input tags, I hadn't put quotes around the value. Thanks, James ---

RE: [PHP] Pipe an email to PHP

2003-08-30 Thread Thomas Tremain
I resolved my problem several days later, and I thought I might post it for those that come up behind me. I had several blank lines in my .php file after the closing ?> This caused an output of the script (even though I could not see it) which generated the failure notice within Exim. Thomas

Re: [PHP] Multiple word strings getting truncated - help please.

2003-08-30 Thread David Otton
On Sat, 30 Aug 2003 14:52:30 -0700, you wrote: >I have a form for a member to signup for an account. The form has standard >fields for addresses, city state, etc. When I insert the data into the >table, if the string has more than one word, it gets truncated to the first >word. > >Does this sound

[PHP] Multiple word strings getting truncated - help please.

2003-08-30 Thread James Johnson
Hi, I have a form for a member to signup for an account. The form has standard fields for addresses, city state, etc. When I insert the data into the table, if the string has more than one word, it gets truncated to the first word. Does this sound like a PHP or a MySQL problem. Here's the code:

Re: [PHP] Table format needs php correction

2003-08-30 Thread Gloria L. McMillan
This is all so advanced. Is it ready to be in place of the table HTML that I already have? I copied it to word and saved it as a .txt file. IN IE it looked better than in my Netscape. Gloria Curt Zirzow wrote: > * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > * Thus wrote Gloria L. McMil

Re: [PHP] Table format needs php correction

2003-08-30 Thread Gloria L. McMillan
Thanks but the lines are all running together in that URL. I don't know why. They are not breaking at the end of each line. Could you re-save a different way? Maybe send to me as a text file? Thanks, Gloria Curt Zirzow wrote: > * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > * Thus wrote Gl

[PHP] Problems with $DOCUMENT_ROOT being blank

2003-08-30 Thread brad e
I set up a PHP4.3.3/mySQL4.0.14/Apache2.0.47 server and everythign is configured and running properly. i tested php with some scripts and functions and they all work. When i try and do any file editing/including in scripts i get file not found errors all over the place when i open like $DOCUMENT_RO

Re: [PHP] Table format needs php correction

2003-08-30 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * Thus wrote Gloria L. McMillan ([EMAIL PROTECTED]): > > Hi! > > Hello Gloria, > > > > > This is a problem of the table formatting on a form in MySQL and PHP. > > It may be in the HTML table code. > > ... > > Here is the URL to view PHP HTML table

Re: [PHP] Re: Lack of info

2003-08-30 Thread Curt Zirzow
* Thus wrote Senshi Oukan ([EMAIL PROTECTED]): > IM not ranting, IM pointing out that I have looked on the website and the > FAQ is a joke and help from other sources is either buy something or as the > case of IRC, no channel of that description was turned up in the search. Apparently you have a

RE: [PHP] PHP equivalent to MOD

2003-08-30 Thread James Johnson
Nevermind, I found it in the archives. Thanks -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2003 12:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP equivalent to MOD Hi, I need to see if a number is divisible by 2. I don't see the math funct

[PHP] PHP equivalent to MOD

2003-08-30 Thread James Johnson
Hi, I need to see if a number is divisible by 2. I don't see the math function "mod" in my PHP Functions reference manual. Is there another way to do this? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] allow_call_time_pass_reference?

2003-08-30 Thread Armand Turpel
Thanks for this clarification! atu - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 6:10 PM Subject: Re: [PHP] allow_call_time_pass_reference? > * Thus wrote Armand Turpel ([EMAIL PROTECTED]): > > Why allow_call_tim

[PHP] Re: Lack of info

2003-08-30 Thread Senshi Oukan
IM not ranting, IM pointing out that I have looked on the website and the FAQ is a joke and help from other sources is either buy something or as the case of IRC, no channel of that description was turned up in the search. Out of fustration and spending several attempts to implement PHP and IM dou

[PHP] Re: Sotre image created by GD in db

2003-08-30 Thread Baroiller Pierre-Emmanuel
Hi, you can do something like this : $imgdata = addslashes(imagejpeg($imnew)); // For JPG file. $query="INSERT INTO your_table (data) value ('$imgdata')"; $result = @mysql_query($query); I haven't try but it may work... Regards. P.E. Baroiller "Mohammadreza Hassanrezaeian" <[EMAIL PROTECTE

[PHP] Re: allow_call_time_pass_reference?

2003-08-30 Thread rush
"Armand Turpel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Why allow_call_time_pass_reference is deprecated? I mean it should be the > choice of the programmer to make use of pass by reference or not. maybe it was a problematicd idea to have call time decision in the firs

Re: [PHP] Table format needs php correction

2003-08-30 Thread andu
On Sat, 30 Aug 2003 10:23:49 -0700 "Gloria L. McMillan" <[EMAIL PROTECTED]> wrote: > Hi! > > This is a problem of the table formatting on a form in MySQL and PHP. > It may be in the HTML table code. > > The problem is one that must be frequent. I have a mixture of one > character and long fill-

Re: [PHP] Table format needs php correction

2003-08-30 Thread Curt Zirzow
* Thus wrote Gloria L. McMillan ([EMAIL PROTECTED]): > Hi! Hello Gloria, > > This is a problem of the table formatting on a form in MySQL and PHP. > It may be in the HTML table code. > ... > Here is the URL to view PHP HTML table as it appears on screen: > http://DakotaCom.net/~glomc/forms/CAT.p

[PHP] Re: Table format needs php correction

2003-08-30 Thread Al
There are too many problems with your code for anyone to spend the time going thru them all. I'd suggest, first constructing a regular html table that looks like you want it to. Hint, IE6 requires something in TDs [e.g.,  ] for borders to show. When the table looks the way you want it to, va

[PHP] Table format needs php correction

2003-08-30 Thread Gloria L. McMillan
Hi! This is a problem of the table formatting on a form in MySQL and PHP. It may be in the HTML table code. The problem is one that must be frequent. I have a mixture of one character and long fill-in text items. My table now looks awkward. Somebody gave me a complex table that puts colors as

[PHP] Re: trouble with array_search

2003-08-30 Thread Merlin
thank you for your help. I have found that the error was laying somewhere else. The code like you wrote was ok. Cheers, merlin Catalin Trifu wrote: Hi, I printed the values out, and inserted it into a varibble to check if it finds it. In this case it works! But it only wokes if I do it lik

[PHP] execute command line script from browser

2003-08-30 Thread Rodney Green
Is there a way to execute a command line php script from a browser by, say clicking a button and then having the browser let go and let the script run independet of the browser? Hope I explained that correctly. Thanks, Rod CinchHost.com - Web Hosting

Re: [PHP] some html basics please

2003-08-30 Thread Dennis Gearon
Chris Shiflett wrote: ../ is the parent directory ./ is the current directory / is the root directory I knew that ./ was the current directory on a *nix system, but a browser will respect that also? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] some html basics please

2003-08-30 Thread Chris Shiflett
--- Dennis Gearon <[EMAIL PROTECTED]> wrote: > It seems that HTML is LAME, LAME,LAME when it comes to determining > local directories. I think you just need to understand how filesystems work and what a URL is. ../ is the parent directory ./ is the current directory / is the root directory If

Re: [PHP] Re: trouble with array_search

2003-08-30 Thread Jim Lucas
the problem is, when you do it the second way, it drops the leading zero off the number. and the first way you are telling it that you are setting a string. Try this. print_r(array(001,'001',002,'002')); you will notice that on two of them, you don't see the leading zeros, that is because norm

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, I printed the values out, and inserted it into a varibble to check if it finds it. In this case it works! But it only wokes if I do it like this: array('03042003'); This does not work: array(03042003); When you make array(03042003) what you get is an array like this Array ( 0 => 3042003 )

Re: [PHP] allow_call_time_pass_reference?

2003-08-30 Thread Curt Zirzow
* Thus wrote Armand Turpel ([EMAIL PROTECTED]): > Why allow_call_time_pass_reference is deprecated? I mean it should be the > choice of the programmer to make use of pass by reference or not. > > Example: > > $this_string = $is_really_big // lets say 500 kb > > function ($this_string){} // He

[PHP] Re: trouble with array_search

2003-08-30 Thread Merlin
I printed the values out, and inserted it into a varibble to check if it finds it. In this case it works! But it only wokes if I do it like this: array('03042003'); This does not work: array(03042003); So I gues it has something to do with this? It really drives me crecy, I already spent an hou

[PHP] Re: superglobals?

2003-08-30 Thread Catalin Trifu
Stevie D Peele wrote: What do we call things like this -- $_POST['name'], $_SERVER['remote add'] Are they superglobals and where can I find a list of these? Thanks The best thing to hit the internet in years - Juno SpeedBand! Surf

Re: [PHP] Re: Using PHP to cache a flash movie

2003-08-30 Thread Sid
Yes, But I was thinking of something like an invisible frame on top which loads the movie - Original Message - From: "Catalin Trifu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30 August 2003 Saturday 7:29 AM Subject: [PHP] Re: Using PHP to cache a flash movie > > Hello, > > > > Do

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, You don't have to convert to string; PHP does it automatically. Did you check for the $dates array, does it really contain what you think it should. So, try to make a print_r($dates) and see if you have what you expect. FYI: array_search() returns the key of the last found element

[PHP] superglobals?

2003-08-30 Thread Stevie D Peele
What do we call things like this -- $_POST['name'], $_SERVER['remote add'] Are they superglobals and where can I find a list of these? Thanks The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIM

[PHP] trouble with array_search

2003-08-30 Thread Merlin
Hi there, I am having somee trouble with array_search. The function should search for a given date, but it does not work since array_search seems only to compare strings. Thats why I tryed to cast it, but does not help. Here is the problem: (pseudo code) while(... $log[date][]= (

[PHP] Re: Using PHP to cache a flash movie

2003-08-30 Thread Catalin Trifu
Hello, Does anyone know a method in which I can load a large flash movie in the background and only when it is done, play it. In the mean time, the user should be able to carry on surfing normally. Any ideas? Thank you, - Sid Hi, Simply put you can not! if the user moves from one page to anot

[PHP] allow_call_time_pass_reference?

2003-08-30 Thread Armand Turpel
Hi, Why allow_call_time_pass_reference is deprecated? I mean it should be the choice of the programmer to make use of pass by reference or not. Example: $this_string = $is_really_big // lets say 500 kb function ($this_string){} // Here the function takes a copy of $this_string (500 kb) -> in

[PHP] Using PHP to cache a flash movie

2003-08-30 Thread Sid
Hello, Does anyone know a method in which I can load a large flash movie in the background and only when it is done, play it. In the mean time, the user should be able to carry on surfing normally. Any ideas? Thank you, - Sid

[PHP] Frameworks

2003-08-30 Thread Catalin Trifu
Hi, Don't know if this is the place to start this, but I'd like to hear some pros and contras for some frameworks out there (MVC mostly). I mean, you have Placebo, Phrame, pehppy, aso. I'm getting a little bit dizzy by how many there are and I'd like to know your oppinions on them. Catal

[PHP] Re: Hello

2003-08-30 Thread Catalin Trifu
Hi, >The message is : >Warning: Unable to create >'/home/sites/site82/web/images/photos_elt/ail.jpg': Permission denied in >/home/sites/site82/web/gestion_site/bve_navigation.php on line 73 it's obvious the user under which the apache server runs does not have write permissions on /home/sit

[PHP] Hello

2003-08-30 Thread Sylvain Rayé
Hello, I hope you will manage to help me. I have some troubles with this script and I receive a message in the navigator : if(is_uploaded_file($_FILES['image']['tmp_name']) && $_FILES['image']['size'] < $MAX_FILE_SIZE){ if(move_uploaded_file($_FILES['image']['tmp_name'],$dirr

RE: [PHP] Sotre image created by GD in db

2003-08-30 Thread Boaz Yahav
Can you save it to a file? If you can save it to a file, have a look at : Saving Images in MySQL http://www.weberdev.com/ViewArticle.php3?ArticleID=3 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberde

php-general Digest 30 Aug 2003 10:43:43 -0000 Issue 2267

2003-08-30 Thread php-general-digest-help
php-general Digest 30 Aug 2003 10:43:43 - Issue 2267 Topics (messages 161198 through 161238): Re: Gripe 161198 by: John W. Holmes 161199 by: Chris Shiflett 161201 by: Chris W. Parker 161202 by: Chris W. Parker 161205 by: Curt Zirzow 161208 by:

[PHP] Sotre image created by GD in db

2003-08-30 Thread Mohammadreza Hassanrezaeian
Dear Guys, I want to store an image created by GD functions to a field of my DB. I can not save it to a string to save it to blob field. Can any one help me with a simple sample code? Regards, Mohammad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Re: Hardening php.ini for an ISP environment

2003-08-30 Thread Joerg Behrens
> - Original Message - > From: "Roman Medina" <[EMAIL PROTECTED]> > Newsgroups: php.general > To: <[EMAIL PROTECTED]> > Sent: Saturday, August 30, 2003 1:45 AM > Subject: Hardening php.ini for an ISP environment > > > > Hi, > > I'm looking for good and complete documentation about harden

Re: [PHP] creating a development log

2003-08-30 Thread Merlin
Thanx Chris, this works. Here is the code (might help somebody else) unset($previousDate); for ($i=0; $i < $num_results; $i++){ if($previousDate != $log['date'][$i]) echo ''.$log[date][$i].''.$p.''; echo ''.$log[entry][$i].''; $previousDate = $log['date'][$i];

Re: [PHP] creating a development log

2003-08-30 Thread Merlin
Thanx Chris, this works. Here is the code (might help somebody else) unset($previousDate); for ($i=0; $i < $num_results; $i++){ if($previousDate != $log['date'][$i]) echo ''.$log[date][$i].''.$p.''; echo ''.$log[entry][$i].''; $previousDate = $log['date'][$i];

Re: [PHP] creating a development log

2003-08-30 Thread Merlin
Thanx Chris, this works. Here is the code (might help somebody else) unset($previousDate); for ($i=0; $i < $num_results; $i++){ if($previousDate != $log['date'][$i]) echo ''.$log[date][$i].''.$p.''; echo ''.$log[entry][$i].''; $previousDate = $log['date'][$i];

Re: [PHP] authentication variable

2003-08-30 Thread Curt Zirzow
* Thus wrote BhongOng ([EMAIL PROTECTED]): > Hi, > > I have some questions. Is it possible to pass login data such > as username and password to the HTTP Basic Authentication > dialog box from PHP? How do you code that? I know for sure with Basic authentication you can't. > > Is it also possibl

Re: [PHP] Session Timeout

2003-08-30 Thread Curt Zirzow
* Thus wrote Seth Willits ([EMAIL PROTECTED]): > From what I see, the default timeout for a session is 1440 seconds or > 24 minutes. I was gone for nearly an hour, came back, and the session > was still valid. Must the value set in the config file be different > than 1440, or am I misundersta

[PHP] authentication variable

2003-08-30 Thread BhongOng
Hi, I have some questions. Is it possible to pass login data such as username and password to the HTTP Basic Authentication dialog box from PHP? How do you code that? Is it also possible to get the variable data from the Authentication dialog once login? I tried putting phpinfo() in an index.php

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Curt Zirzow
* Thus wrote Nicholas Robinson ([EMAIL PROTECTED]): > You could equally ask why we get plagued with silly strap lines like > > "I used to think I was indecisive, but now I'm not so sure." No, you can't *equally* ask why. It is perfectly acceptable to have a signature attached to your email. It

Re: [PHP] Session Timeout

2003-08-30 Thread Tom Rogers
Hi, Saturday, August 30, 2003, 1:55:02 PM, you wrote: SW> From what I see, the default timeout for a session is 1440 seconds or SW> 24 minutes. I was gone for nearly an hour, came back, and the session SW> was still valid. Must the value set in the config file be different SW> than 1440, or

Re: [PHP] some html basics please

2003-08-30 Thread Leif K-Brooks
Dennis Gearon wrote: h, php outputs to the browser, hmmm, browser reads HTML hm,maybe somepeople who program in PHP have to dabble in HTML Never said they don't, but the HTML PHP outputs has nothing to do with PHP. Take this to an HTML list/newsgroup. -- The above message is encrypted wi

[PHP] Session Timeout

2003-08-30 Thread Seth Willits
From what I see, the default timeout for a session is 1440 seconds or 24 minutes. I was gone for nearly an hour, came back, and the session was still valid. Must the value set in the config file be different than 1440, or am I misunderstanding session.gc_maxlifetime? I'd like for the user t

Re: [PHP] some html basics please

2003-08-30 Thread Leif K-Brooks
Dennis Gearon wrote: It seems that HTML is LAME, LAME,LAME when it comes to determining local directories. This is a PHP list, not an HTML list. What does this have to do with PHP? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pros

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Nicholas Robinson
You could equally ask why we get plagued with silly strap lines like "I used to think I was indecisive, but now I'm not so sure." HTH On Saturday 30 Aug 2003 3:54 am, Curt Zirzow wrote: > Why do people insist on using their work address so we are plagued > with privacy notices and autorespond's

[PHP] some html basics please

2003-08-30 Thread Dennis Gearon
It seems that HTML is LAME, LAME,LAME when it comes to determining local directories. I would like to somehow: put image links relative to a base directory (if a relative URI is given) and have PAGE links relative to the current page (if a relative URI is given) What I seem to be able t

[PHP] php 4.2.3 on AIX - include statment cause seg. fault

2003-08-30 Thread PM WONG
After upgrading from php 4.0.x to 4.2.3 many previous php scripts that had been working failed becos of the "include" statement The apache error log logged "segmentation fault" I think it might have to do with AIX as there are no problems for 4.2.3 which I've installed on Tru 64 Unix (I've checke

Re: [PHP] Session Issue

2003-08-30 Thread Seth Willits
On Friday, August 29, 2003, at 07:44 PM, Curt Zirzow wrote: Does the next page call session_start()? all pages that use $_SESSION, must call that first. Ohhh... ok. Thanks :) Seth Willits --- President and Head Develope

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Curt Zirzow
Why do people insist on using their work address so we are plagued with privacy notices and autorespond's letting us know that he will be gone one extra day over the weekend p.s. you'll know why I'm griping if you reply to this p.s.s. at least till i get him booted off the list cheers! Cu

Re: [PHP] Session Issue

2003-08-30 Thread Curt Zirzow
* Thus wrote Seth Willits ([EMAIL PROTECTED]): > I'm logging in via a form, and on the form page it creates the session: > >session_start(); > if ($_POST['username'] == $username && $_POST['password'] == > $password ) { > $_SESSION['loggedIn'] = true; > }

Re: [PHP] Why? Why this is not an imap_error?

2003-08-30 Thread Curt Zirzow
* Thus wrote myhan ([EMAIL PROTECTED]): > > I ust imap_fetchstructure function to get the structure of a message, and I > want to push the errors into an array. > I give a wrong message number and expect cause an imap error, which can be > get by using imap_errors(). > But it does not work like th

Re: [PHP] Apache and forward slash

2003-08-30 Thread Tom Rogers
Hi, Saturday, August 30, 2003, 2:49:43 AM, you wrote: CC> Hey, CC> I am setting up Apache 1.3.27 on a linux box (I really dont know much about CC> linux) and I am having small problem. When a specify a subdirectory off of CC> my document root, I must include a "/" forward slash in order for the i

[PHP] Session Issue

2003-08-30 Thread Seth Willits
I'm logging in via a form, and on the form page it creates the session: session_start(); if ($_POST['username'] == $username && $_POST['password'] == $password ) { $_SESSION['loggedIn'] = true; } else $_SESSION['loggedIn'] = false; ?> And later in the same page, I include another file w

Re: [PHP] Re: speed of mail() on two servers

2003-08-30 Thread Manuel Lemos
Hello, On 08/29/2003 01:34 PM, David T-G wrote: % /var/qmail/control/concurrencyremote Well, that's what I thought, but what I don't know is whether or not qmail requires a restart to see it :-) RTFM! :-) I guess you just need to send a HUP signal to reload the configuration options. -- Regar

[PHP] Why? Why this is not an imap_error?

2003-08-30 Thread myhan
Warning: imap_fetchstructure(): Bad message number in e:\testroot\imap\index.php on line 52 I ust imap_fetchstructure function to get the structure of a message, and I want to push the errors into an array. I give a wrong message number and expect cause an imap error, which can be get by using im

Re: [PHP] PHP - XHTML converter to HDML or WML

2003-08-30 Thread Raditha Dissanayake
Hi, The best approach for you is to use XSLT. good information about XSLT can be found on w3shcools.com briefly what it can do is to take an xml and convert it to virtually any other format. For this is to happen though you need to have strict XHTML transistion will not do because it's not alw