Re: [PHP] Repopulating forms

2003-08-05 Thread CPT John W. Holmes
From: Gerard L Petersen [EMAIL PROTECTED] My code looks like this. ?PHP $test = gerard's name is \gerard\; echo $test.br; echo 'input type=text name=test2 value='.$test.'br'; ? Just like HTML doesn't render newlines, it also doesn't understand using the \ character as an escape character.

Re: [PHP] How can I change ? to %3F

2003-08-05 Thread John W. Holmes
David Nicholson wrote: If you want *only* the ?:/ characters changed then it can be done with a regular rexpression, the e modifier, and the ord(), hex() and strtoupper() functions, post back if you would like an example. $new_str =

Re: [PHP] PHP/JavaScript/HTML

2003-08-05 Thread CPT John W. Holmes
From: Mauricio [EMAIL PROTECTED] On the Address Bar I can see: index.php?slcAdd=1slcAdd=2slcAdd=3 But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just the last value. What can I do to get them all? Name your select box as slcAdd[] and you'll have all of the values in an

Re: [PHP] Stop neurotic posting

2003-08-05 Thread John W. Holmes
andu wrote: This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who mostly post stuff like 'read the manual' and other shit like that. Stuffing e-mailboxes with such garbage day after

Re: [PHP] easier than switch

2003-08-04 Thread John W. Holmes
skate wrote: okay, so i know there's an easy way to do this, and i've seen it done, sure of it. so please forgive the stupidity of my question, i don't even know where to begin to look in the archives either... i have several forms on one page, they all submit a different variable, i then want to

Re: [PHP] logging of mail() function?

2003-08-03 Thread John W. Holmes
RiGe wrote: Is there possible to log outgoing mails sent via mail() function? I need to know, when, which script (can be path to php file on server) and receipt of mail that was sent. Is there possible? Not directly, unless your SMTP server is keeping a log. Write your own wrapper function

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread John W. Holmes
Balazs Halasy wrote: I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST

Re: [PHP] Re: Search Engine

2003-08-01 Thread John W. Holmes
DvDmanDT wrote: I use to write my own search engines... That way they get customized easier... You can write one that spiders like google... Hell, it even found my private server... And there's not a single link ther afaik.. Now, is it for web or site search? If site, just get a MySQL table with

Re: [PHP] Re: Search Engine

2003-08-01 Thread John W. Holmes
John W. Holmes wrote: DvDmanDT wrote: I use to write my own search engines... That way they get customized easier... You can write one that spiders like google... Hell, it even found my private server... And there's not a single link ther afaik.. Now, is it for web or site search? If site

Re: [PHP] learning php - problem already

2003-07-31 Thread CPT John W. Holmes
From: Ford, Mike [LSS] [EMAIL PROTECTED] From: John W. Holmes [mailto:[EMAIL PROTECTED] The four element array will be 1 = 'one' value = 'one' 0 = 0 key = 0 OK, some more red pen coming along Since we're whipping them out (red pens that is) The four-element array would actually

Re: [PHP] Where am i screwing up?

2003-07-31 Thread CPT John W. Holmes
From: Ryan A [EMAIL PROTECTED] I am just screwing around and getting used to arrays with a foreach thanks to Michael,Jan and Evan from this list and have run into problems. My requirment is pretty simple (code is below too) 1)unset all the sessions that might have been set with reference to

Re: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread CPT John W. Holmes
Thanks, but if I leave off this line then I get an error when I try and view my pages. What kind of error, exactly? You need to determine if you're running PHP as a module or CGI. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] session header issue

2003-07-31 Thread CPT John W. Holmes
From: Ow Mun Heng [EMAIL PROTECTED] snip The Location: header requires a correctly formed URL, ie http://... /snip I'm running fine using only Location:home.php on Mozilla IE 6 maybe I should change. Please see my previous emails on the difference between works and right... ---John

Re: [PHP] Opinions on Micro$oft .NET

2003-07-31 Thread John W. Holmes
Jay Paulson wrote: The company I work for just got bought out by a larger company. The larger company uses .NET from Micro$oft. I of course use all open source stuff for our web sites and now the new company wants to come in and pretty much blow away everything I have done and use their .NET

Re: [PHP] load the PHP script last on the page

2003-07-31 Thread John W. Holmes
DougD wrote: I have a page with a particular PHP section that takes quite a time to load. Is there a way I can delay that script to run after everything else has loaded. I suppose it may need to use Javascript You could use register_shutdown_function() to execute the code, providing you

Re: [PHP] load the PHP script last on the page

2003-07-31 Thread John W. Holmes
DougD wrote: Sure. It is pretty basic stuff. I have the following ?php include (weather/block.php); ? inserted in the middle of an HTML document to pull in the current weather. It delays the loading of the rest of the page too much as it queries to www.msn.com to pull weather data and then

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread John W. Holmes
Ney Andr de Mello Zunino wrote: Ray Hunter wrote: $fooVar = mysql_fetch_assoc($result)[barColumn]; No bug here...mysql_fetch_assoc($result) is a function that takes a result set as an argument and returns only one row as an associated array...that is why you need to do Thanks for the quick

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread CPT John W. Holmes
I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4): Files and directories created by a PHP script are always owned by the apache user and apache group. But the script itself is inside of a virtualhost which has another user and group (web2 / ftponly)! So in fact the

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread CPT John W. Holmes
I have PHP/Apache/MySQL installed on my WinXP laptop. I do this so that I can write programs when not connected to the Internet (like when traveling). I am trying to set a cookie from the http://localhost site on my computer and it doesn't get set. Does this sound like something wrong in

Re: [PHP] downloading a file using headers

2003-07-30 Thread CPT John W. Holmes
I have a page that queries the database then uses the data to build an excel spreasheet. THat spreadsheet is downloaded according to info in the headers. My manager wants to put the page inside of another HTML page to make it prettier, but then it breaks because headers are already written

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread CPT John W. Holmes
h. This seemed to set the cookie just fine. Does this mean that either localhost in the browser or Apache/PHP on a windows box has to set the cookie differently than on RedHat/Apache/PHP? I am going on vacation next week and need to keep working on a project that is working fine on the

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread CPT John W. Holmes
From: Steve Buehler [EMAIL PROTECTED] hm. Looks like on my localhost I can't seta cookie like this: setcookie (coach_access[login_id], coach,0,/,$cookhost); if I change it to just: setcookie (coach_access_login_id, coach,0,/,$cookhost); it will work. But then my script won't work

Re: [PHP] Removing Spaces

2003-07-30 Thread John W. Holmes
Jason Williard wrote: In parsing a file, I ended up with a number of variables that include spaces. Is there an easy way to remove a space from a variable? $new_string = str_replace(' ','',$old_string); ? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

Re: [PHP] learning php - problem already

2003-07-29 Thread CPT John W. Holmes
Hello everyone, Am new to php and have run into a problem while reading my book... can anybody tell me what does this mean: Hi... let's see who gets this one first... :) foreach($invoice as $number = $pppno) $invoice is an array. foreach() is going to loop through that array one element at a

Re: [PHP] learning php - problem already

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: Ok... I'm getting the red pen out now :) [snip] the each() function returns a one element array that the current (internal) array pointer is pointing to and will return false if at the end of the array. It actually returns a four element array (as per the manual). the list()

Re: [PHP] CGI timeout problem

2003-07-29 Thread John W. Holmes
imran wrote: CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. does it mean that I have to use set_time_limit so the script doesn't time out ? I don't really understand why I should do that. You may be reaching an IIS imposed

Re: [PHP] Weird Problem

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: Include files are expanded into the parent file as if they file is in the file that included it. Ah... clear as mud. heh... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com

Re: [PHP] Array transform date and put in a session

2003-07-29 Thread John W. Holmes
Frank Keessen wrote: I've got a form with a field called datebirth[]; After submitting the form; it must put the datebirth field (or fields) into the mysql format -mm-dd and after that put it in a session: $date_array = split(-, $_POST['datebirth']); $mysqldate =

Re: [PHP] session_set_cookie_params

2003-07-29 Thread John W. Holmes
Hank TT wrote: I've read the official manual on session handling, as well as the section in PHP Developer's Cookbook (2/e, Hughes Zmievski). But I still cannot make a cookie persist across browser sessions -- very frustrating. I use PHP 4.1.1 running as a CGI in Win32. Here is a snippet:

Re: [PHP] learning php - problem already

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): think it was made to be intentionally confusing. For what reason, I don't but all that matters to most is: it works.. and foreach has I cant type nor proof read today... at least before hitting send. I think I understood

Re: [PHP] Re: Simple Array question

2003-07-29 Thread John W. Holmes
Ryan A wrote: Hi, Thanks for replying. I tried that and have 2 numbers like so: input name=id[sh123] type=hidden value=32 input name=id[sh1sd] type=hidden value=563 and tried to echo it like so: ?php $id=$_POST['id']; foreach($_POST['id'] AS $row) echo $row; ? Echo of one is ?php echo $row[0]; ?

Re: [PHP] Re: Simple Array question (conclusion)

2003-07-29 Thread John W. Holmes
Ryan A wrote: I GOT IT this is where the data was coming from: input name=id[sh123] type=hidden id=id[sh123] value=32 input name=id[sh1sd] type=hidden id=id[sh1sd] value=563 and this is where i take the values and dump it into an array/variables that i can call when and where i please:

Re: [PHP] Parsing a local file

2003-07-29 Thread John W. Holmes
Jason D. Williard wrote: I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. http://us2.php.net/manual/en/features.file-upload.php 2) How to parse a line

Re: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread John W. Holmes
Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread John W. Holmes
Merlin wrote: I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. $new_str = str_replace('\','-',$old_string); or $new_str = str_replace(\\,'-',$old_string); But this begs the question of why do you think you need to

Re: [PHP] variable in function parameter

2003-07-28 Thread CPT John W. Holmes
* Thus wrote 386-DX ([EMAIL PROTECTED]): Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.); http://php.net/eval No... you need to make $a global within the function for

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread John W. Holmes
Chris Hayes (SENSE) wrote: i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? ALTER TABLE Table ADD COLUMN unix_time_column INT; UPDATE Table SET unix_time_column = UNIX_TIMESTAMP(mysql_time_column); -- ---John Holmes...

Re: [PHP] Store array as Session Variable

2003-07-28 Thread CPT John W. Holmes
$details is an array (just like $company_name was). Try to view print_r($details); and see what you get. ---John Holmes... - Original Message - From: Pushpinder Singh Garcha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:18 PM Subject: [PHP] Store array as Session

Re: [PHP] Store array as Session Variable

2003-07-28 Thread CPT John W. Holmes
I am able to see the contents of the $company_name array. The next part involves storing this as a session variable. I am trying to link this page to another search page using the a href=\full-profile.php?name=.$row['company']. \--Link--/a If you're passing the company name in the URL,

Re: [PHP] memory consumption from a script

2003-07-27 Thread John W. Holmes
Torsten Rosenberger wrote: is it possible to find out the memory consumption on a php script ? I trie to develop a chat with php and SHM and want to fiend out how much memory is used to scale the chat server No, not now. I seem to remember talk about a function that would help with this being

Re: [PHP] Set Cookie in PHP and call with Perl

2003-07-27 Thread John W. Holmes
TWSC HQ wrote: Is this possible : How do i call the cookie value (surname) with Perl if it was set with PHP? Yes, a cookie is still a cookie no matter where it's set. Ask on a Perl list how you read cookies. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

Re: [PHP] Read values from Text Area Box

2003-07-27 Thread John W. Holmes
KEN - 2mediaZone wrote: I'm trying to find out how to get multiple values from text area box textarea/textarea. Values are like this. aaa\n bbb\n ccc\n ddd\n eee\n I need to take "\n" from each value and put all the values to array. Use

Re: [PHP] memory consumption from a script

2003-07-27 Thread John W. Holmes
Peter James wrote: A while ago, Philip Olson wrote: As of 4.3.2, if you compile PHP with --enable-memory-limit you may use memory_get_usage(). This is documented and will show up when the next PHP manual is built. This function is not documented in the PHP manual, but is in the zend copy:

Re: [PHP] Which templates to use??

2003-07-26 Thread John W. Holmes
Binay Agarwal wrote: Hi all! As a php developer i need to know how can i separate my business logic tier with presentation. I mean wht all different kinds of php Templates are available and which one to go for better efficiency and speed? Where can i find the resources. Please help me

Re: [PHP] how do I get a remote db connection?

2003-07-26 Thread John W. Holmes
Irvin Amoraal wrote: I have two independent websites, both with their own mySQL db's. I would like to run a query in site A against site B's database. I am trying to establish a connection using something like: $conn = mysql_connect(abc.com:3306, $user, $pass); A warning is returned to the

Re: [PHP] /n not working

2003-07-26 Thread John W. Holmes
Thomas Hochstetter wrote: Hi there. I got a question from someone why the following (from the manual) will not bring the desired output: ?php /* if I open the following txt file and in explorer*/ $text = The quick brown fox jumped over the lazy dog.; $newtext = wordwrap($text, 20); echo

Re: [PHP] Half solved...............what the @#%# is PHPSESSID?

2003-07-26 Thread John W. Holmes
Ryan A wrote: I know you can manipulate the php.ini file via htaccess or by putting some instructions in the include file...is there any way to turn on cookies again and turn off session.use_trans_sid so i can go back to the old way it was? because I have a lot of header(location:) statements

Re: [PHP] Half solved...............what the @#%# is PHPSESSID?

2003-07-26 Thread John W. Holmes
Ryan A wrote: Hey John, I dont think its the browser because I have tried this with opera 6,opera 7, IE and NN with the same results... But when i checked the phpinfo() it says that cookies are enabledDo you think its worth it to search and replace each Location header with .SID? Well, if SID

Re: [PHP] OOP, PHP4 PHP5

2003-07-26 Thread John W. Holmes
Mike Brum wrote: I'd like to start to seriously do some OOP coding and take things to the next level. But as I understand it, PHP5 is going to make quite a few changes/improvements to PHP4's current handling of OOP. Given that the PHP5 beta has been out for approx. 1 month, do you think it makes

Re: [PHP] RE: help with explode.....

2003-07-25 Thread John W. Holmes
The threading is messed up on this message, so sorry for the top post. Actually, the method that Shaunak gave is the best method to use. If you took your questions and had them formatted from this: pWhat color are you eyes?br blockquote input type=radio name=9 value=5Bluebr input

Re: [PHP] File upload

2003-07-25 Thread John W. Holmes
Peda wrote: I want to upload some file to my web site. [snip] But It doesn't work. Do you have file uploads enabled in php.ini? Take a look at a phpinfo() page for details. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP

Re: [PHP] Rewrite img and a tags.

2003-07-25 Thread CPT John W. Holmes
How can I easiest rewrite A and IMG tags? I'm fetching a page with fsockopen() and I need to rewrite these tags before sending it on to a user. My own theory is that it's made with Regular Expressions. I just don't know these myself. If you're writing one of those anonymous browsing programs

Re: [PHP] Debugging a Session Problem

2003-07-25 Thread CPT John W. Holmes
From: Lee Stewart [EMAIL PROTECTED] I'm moving an application that I'm in the trying to move to a new platform. It was running fine on an older Linux platform with PHP 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2 and Apache 1.2.26 -- with register_globals on. (I

Re: [PHP] file_put_contents()?

2003-07-25 Thread CPT John W. Holmes
Another stupid newbie question...(btw, is there a list more geared towards the newbies?) Yes, it's called the manual. Is the file_put_contents() function not available in PHP 4.3.2? Seriously: www.php.net/file_put_contents ---John Holmes... -- PHP General Mailing List

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread John W. Holmes
Matthew A. Blasinski wrote: I'm trying to track session data and merge several related services through a common server-side session (using Apache). One condition is that it won't use cookies to store the user data OR the session ID. Another is that the services we're merging use different

Re: [PHP] html and php in the same document

2003-07-24 Thread John W. Holmes
Miles Thompson wrote: At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to

Re: [PHP] just looking for some opinions...

2003-07-24 Thread CPT John W. Holmes
Let's say I have a number: 1281924 The rules call for removing 1280+, meaning remove 128 and all 0's that come after it, until you run into another number. In the end, it would leave 1924, and everything else on the beginning would be gone. $new_number =

Re: [PHP] cookies in asp

2003-07-24 Thread John W. Holmes
Carlos Castillo wrote: HI, I have the following problem, i have a website with php and asp files, in one asp file i create some cookie that i need to access on another php file.do you have any idea.??? $_COOKIE['cookie_name'] Who cares where the cookie was made. If the page is on the

Re: [PHP] ereg problem?

2003-07-24 Thread John W. Holmes
[EMAIL PROTECTED] wrote: who can tell me what's the pattern string mean. if(ereg([\\][n],$username)) { /*Do err*/ } It's looking for a \ character or a \ character followed by the letter n anywhere within the string $username. -- ---John Holmes... Amazon Wishlist:

Re: [PHP] newbY prob

2003-07-23 Thread CPT John W. Holmes
From: Jennifer Goodie [EMAIL PROTECTED] ! am trying to count the number of items in this table. The table has one field in it. The code I am using is: $dbquerymeal = select COUNT(*) from mealtype; $resultmeal = mysql_db_query($dbname,$dbqueryshipping1); if(mysql_error()!=){echo

Re: [PHP] Some SESSION Vars not Registering

2003-07-23 Thread CPT John W. Holmes
From: Jeff Stillwall [EMAIL PROTECTED] Now I'm (possibly) getting somewhere: When I modify the function to be this (notice the key name change by adding s): function setupUserEnv ($userArray) { $_SESSION['loggedIn'] = 1; foreach($userArray as $key=$value) { echo

Re: [PHP] Global variable question question

2003-07-23 Thread CPT John W. Holmes
When registered globals is set to off this does not effect the $PHP_SELF variable right? In other words I should be able to call $PHP_SELF with out having to do this $_SERVER['PHP_SELF'], right? No. With register_globals OFF, $PHP_SELF is not set. ---John Holmes... -- PHP General Mailing

Re: [PHP] Search question ..

2003-07-23 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] * Thus wrote James Hatridge ([EMAIL PROTECTED]): I've got a search page written for my web site. I can find the html page I want by keyword. Now I need to get the title of that page in to a variable. In other words I have a file name, for example

Re: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread CPT John W. Holmes
From: Beauford.2005 [EMAIL PROTECTED] Yes, I'm still screwing around with this stupid redirection thing, and either I'm just a total idiot or there are some serious problems with PHP. I have now tried to do it another way and - yes - you guessed it. It does not work. I mean really, it can

Re: [PHP] Problem with MySQL Query

2003-07-23 Thread CPT John W. Holmes
Take out the plus sign... type != 'Meal Plans' And using single quotes in your query might make things easier (no escaping...) $dbqueryshipping1 = select * from tempuserpurchase where usersessionid='$User_Shopping_Id' and day='1' and type!='Meal Plans'; You don't need quotes around '1' since

Re: [PHP] Software Application Engineer WANTED (PHP/MySQL Guru)

2003-07-23 Thread CPT John W. Holmes
Subject: [PHP] Software Application Engineer WANTED (PHP/MySQL Guru) I hope there are job postings like this if/when I get out of the Army! :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread John W. Holmes
Daryl Meese wrote: Well, I know I am not running the latest version of PHP but I don't believe this is accurate. I believe PHP case sensitivity is based on the os that processes the file. Can anyone clear this up. Yes, you're wrong. :) -- ---John Holmes... Amazon Wishlist:

Re: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-22 Thread John W. Holmes
Beauford.2005 wrote: Sorry all, apparently this doesn't work on either Windows or Linux. Again, I thought it was working and once I got farther along I see that it really wasn't. Basically what I get after I login is an empty screen. Here is what I have : This is the script that runs to see if

Re: [PHP] Redirection Question

2003-07-22 Thread John W. Holmes
Beauford.2005 wrote: Hi, I am trying to figure out how to redirect a user back to a page but not having much luck. For example: I click on a menu item on my site which goes to a.php. This file includes another file that determines if they are logged in or not. If not, they are sent to login.php

Re: [PHP] Multiple Select Form

2003-07-22 Thread CPT John W. Holmes
I have a form that has a select form object with where I can select multiple values. The select is called number. When I post the form, I get a lot of variables called $number with the various values I selected. Is there a way that I can make this an array of values? name it number[]

Re: [PHP] Hi

2003-07-22 Thread CPT John W. Holmes
Quit spamming us. We don't want to visit your lousy poker site. ---John Holmes... - Original Message - From: Rausch Alexandru [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 4:42 AM Subject: [PHP] Hi MYSQL problems problems. I want to install an user login

Re: [PHP] need help with MySQL full text searching!!!!

2003-07-21 Thread CPT John W. Holmes
I think you need to make a second index that just consists of the one column ALTER TABLE biblio ADD FULLTEXT (title) if you want to search on just that one column. ---John Holmes... - Original Message - From: Angelo Zanetti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July

Re: [PHP] need help with mysql union

2003-07-21 Thread CPT John W. Holmes
hi, i'm trying to select * through 3 tables - is the following syntax correct? $sql=(SELECT * FROM mjp_cc); $sql=UNION; $sql=(SELECT * FROM imc_cc); $sql=UNION; $sql=(SELECT * FROM pmp_cc); $sql.= ORDER BY savedccactivity DESC; i basically just want to spit out the contents of these

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread CPT John W. Holmes
--- Andrei Verovski [EMAIL PROTECTED] wrote: I am need to pass serialized assotiative array via form hidden field (not GET or POST). This is impossible. A hidden form field is simply a form field that is not displayed to the user. Form actions must be GET or POST. In order to do it, I

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
You have the same session id, but there is no data in it, so what's the problem? You should still consider the user logged out since the session is empty, right? If you really want, upon logout, make a new session id with session_id(), md5() and uniqid(). ---John Holmes... - Original

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] CPT John W. Holmes mailto:[EMAIL PROTECTED] on Monday, July 21, 2003 12:39 PM said: You should still consider the user logged out since the session is empty, right? Right, but the server isn't thinking of it this way. Then something is wrong

Re: [PHP] filesize comparison for upload

2003-07-21 Thread CPT John W. Holmes
I have an upload form that will be used for some really large files. I need to ask a couple of questions about the ways of improving the success rate that I have using it. (1) what is the best and most stable method for uploading a large file. Sometimes the transfer peters out. (2) how can I

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
What is the point of having a unique ID for each session if the only thing that matters is the data stored within it? Why have a session id at all if it can't be used to uniquely track a user? Well, it can, and it does. I guess it's all in how you use it. If my session id is abcd, then when I

Re: [PHP] Problem with Adding info into an array

2003-07-21 Thread CPT John W. Holmes
I have 7 checkboxes, which make up the array information. I currently use implode to make the array, however that array only consists of the information that it checked. What I need to do now is make it so the array will always be 7 items, but if there isnt a checkbox for the item, I want

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
In my first post I showed that one of the versions of the logout page that I used had this line in it. setcookie(user_info,,(time()-3600),/); Shouldn't that take care of the cookie? Like someone else said, that'll take care of a cookie called user_info. Your session cookie is named

Re: [PHP] Auto session timeout

2003-07-21 Thread John W. Holmes
Hardik Doshi wrote: There is still one problem. On so many forms on my education intranet application, students are submitting the final projects with the supporting documents and images. Once they submit the final project, my script is performing serveral error checking for the file size,

Re: [PHP] Auto session timeout

2003-07-20 Thread John W. Holmes
Tan Ai Leen wrote: Hi, Can someone confirm that php does not have a auto timeout feature? Meaning something like session will auto expire irregardless of whether the browser is close or not? If you're using the default session handler and storing the session files in the location specified in

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread John W. Holmes
Curt Zirzow wrote: On and advanced note, there are ways to protect a users password on a normal http connection. The authentication program I helped developed and use has the abilty to make a hash of the password on the client side then send the hash value to the authentication script. The

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-20 Thread John W. Holmes
John Manko wrote: You dont need to touch any php code, just modify the html so the properlinks point to https where needed. I tried that. However, the session is different when going from 80 to 443. You'll have to pass the SID through the form or URL when switching from HTTP to HTTPS. --

Re: [PHP] Auto session timeout

2003-07-20 Thread John W. Holmes
Hardik Doshi wrote: Hi, I have implemented the Auto session timeout after the specific period of time. What i am doing is..At the time of login to the system, my script is storing the current unix time into the session and later on at every user click, It (my script) is checking the stored

Re: [PHP] Howto list Mysql Table Headers using PHP

2003-07-20 Thread John W. Holmes
Ow Mun Heng wrote: Hi, Got a quick question.. How do I get the table headers also printed/retrieved by PHP for 'echo'?? mysql_field_name() Next time, check the manual. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP

Re: [PHP] MySQL datetime extraction

2003-07-19 Thread John W. Holmes
Yasir Malik wrote: Given a date in MySQL datetime format, how do I extract the elements? That is get the month, day, year, hour, ... You could do it in the query using DATE_FORMAT(), MONTH(), YEAR(), etc. You can do it in PHP by sending the MySQL timestamp through strtotime() and then using

Re: [PHP] TESTERS Needed!

2003-07-19 Thread John W. Holmes
Andu wrote: --On Saturday, July 19, 2003 20:02:52 +0100 Mark Clarkstone [EMAIL PROTECTED] wrote: Hey Guys I need People to test out My Program, Mini serve to find out more go to www.mini-networks.uni.cc The black text on dark-blue background is really inviting, did you try black on black??

Re: [PHP] Re: TESTERS Needed!

2003-07-19 Thread John W. Holmes
Mark Clarkstone wrote: If any one finds any bugs or anything please let me know! Got this: Warning: readfile(content/subcats/Products.html): failed to open stream: No such file or directory in /home/britspy/public_html/mnet/index.php on line 76 -- ---John Holmes... Amazon Wishlist:

Re: [PHP] Mail From option in PHP.ini

2003-07-18 Thread CPT John W. Holmes
Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else. Anyone have any ideas how I can do this? I'm

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread CPT John W. Holmes
On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: --- Reuben D. Budiardja [EMAIL PROTECTED] wrote: Suppose I have a long string like $myStr = $string1:$string2:$string3; I can obviously explode them using : as the separator. But what if $string1 contains the character : by

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread CPT John W. Holmes
From: Reuben D. Budiardja [EMAIL PROTECTED] This is a hypothetical situation. The real situation is that I am trying to have a protocol for data sent by client using Flash. But the basic question remains. So FLASH is creating the string that you must decode in PHP? Is there any way to URL

Re: [PHP] Problem with sessions

2003-07-17 Thread John W. Holmes
Peda wrote: Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec, O_RDWR) failed: Permission denied (13) in /home2/pena/public_html/listing1.php on line 3 Can anyone tell me what is wrong? PHP is trying to save session data in /tmp by writing a file there, but permission is

Re: [PHP] PHP POS program

2003-07-16 Thread CPT John W. Holmes
Angelo Zanetti napsal(a): Anyone know where I can download a demo point-of-sale program from? preferably written in php and preferably a point-of-sale designed for restaurants? any links etc will be great NO-FLAME This problem (POS) is too serious to be written in PHP(via browser). Maybe

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread CPT John W. Holmes
Ok, before you go responding with percentages, I should note this. consider this: Image1 : 100x100 (Ratio = 1:1) Image2 : 100x200 (Ratio = 1:2) Space available for display : 75x75 now, i can say width=75% height=75%, but this will only work for Image1, since Image2 will end up as

Re: [PHP] Missing php.ini file

2003-07-14 Thread John W. Holmes
Chris Blake wrote: My php.ini file has gone awol, how or why I don`t know You can normally just get a new php.ini from here: http://cvs.php.net/co.php/php4/php.ini-dist but it's giving a 505 error right now. May have to wait a bit. First, create a PHP page with just the function ?

Re: [PHP] Missing php.ini file

2003-07-14 Thread CPT John W. Holmes
You'll be waiting a long time, until the end of time :) Because the php4 module is now named php-src, so change that in the url and you'll be set. Thanks. Someone needs to change the link in the Configuration chapter of the manual, too, b/c that's how I always find it. :) ---John Holmes...

Re: [PHP] Re: reposting in textarea

2003-07-14 Thread CPT John W. Holmes
Artoo wrote: How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can be re-editied. You can use the $_POST variavle in the text area eg textarea name=my_field?php echo

Re: [PHP] Weird Date problem driving me crazy...

2003-07-13 Thread John W. Holmes
Boaz Yahav wrote: I have two date strings coming out from MySQL. Both fields are defined as datetime. When i come to print them like this : EchoBTicket Opened/B : . date(l, F jS Y H:i,$row-OpenDate) . BR; EchoBProblem Start/B : . date(l, F jS Y H:i,$row-ProblemStart) . BR; I

Re: [PHP] MySql Rollback in PHP within a website

2003-07-13 Thread John W. Holmes
bruce wrote: I have a question. I need to be able to try to perform a database update, but if it doesn't succeed, I need to be able to rollback the changes, and to inform the user that the changes didn't succeed. I've looked at the MySql site, and can see somewhat how the Commit/RollBack functions

<    7   8   9   10   11   12   13   14   15   16   >