RE: [PHP] Can a script run twice?
OK I found this out last week... if its not a coding error... its this.. There is a bug with IE7, I have some billing scripts for a large Sydney ISP and I was working on a script on my laptop which I recently updated to IE7... after tipping my hair out for a few hours cause I was certain it was not a coding error I decided the run the script from my PC which was still IE6 and would u believe it, the script only run once I did some searching on (good old faithful) google and did discover a few bugs with IE7... whats this have to do with PHP u ask... one was a session bug.. and with my double script running bug which I could not find any information on... I decided to lock the site to IE7 with javascript and told the ISP to roll back or stay locked out A lot of money @ stake... damn u Micro$oft... CK -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, 23 May 2006 10:06 PM To: Lester Caine Cc: PHP List Subject: Re: [PHP] Can a script run twice? Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no problems, but just now and again there are two records, with different primary keys - so the database bit worked - but with very close now times and identified as being at the same counter. The next page does not have the 'Add Ticket' button, so it would seem the first script was trigger twice? Am I simply going mad ( which is the logical choice ;) ), or is this something that can happen and needs to be handled? This can happen if a page contains a reference to an empty URL. For example, img src= / would cause the page to be loaded twice in some browsers. That'd be the first thing I'd check. Is the 'Add Ticket' button a GET or POST request? If it's a POST then chances are the script itself has a logic error since the user would get asked if they wanted to repost the data. If it's a get then you've violated one of the cardinal rules of web-based application development - GETs get, POSTs do. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can a script run twice?
Futher to this... I found thatit does not do it with all my scripts... well as far as I am aware... how much is IE7 stuffing up I have NFI CK -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, 23 May 2006 10:06 PM To: Lester Caine Cc: PHP List Subject: Re: [PHP] Can a script run twice? Lester Caine wrote: I'm having very occasional problems with my PHP5 applications which only seem to be explained if the script is run twice. Example - page has 'Add Ticket' button, which adds a record and marks it as being processed by the location that created it. 99.99% of the time no problems, but just now and again there are two records, with different primary keys - so the database bit worked - but with very close now times and identified as being at the same counter. The next page does not have the 'Add Ticket' button, so it would seem the first script was trigger twice? Am I simply going mad ( which is the logical choice ;) ), or is this something that can happen and needs to be handled? This can happen if a page contains a reference to an empty URL. For example, img src= / would cause the page to be loaded twice in some browsers. That'd be the first thing I'd check. Is the 'Add Ticket' button a GET or POST request? If it's a POST then chances are the script itself has a logic error since the user would get asked if they wanted to repost the data. If it's a get then you've violated one of the cardinal rules of web-based application development - GETs get, POSTs do. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Technology Forums
Considering it dont even have 1 post... spam it is.. :P And yes i am getting a heap of spam recently... can someone do something about this.. :P CK On Fri, 2005-07-01 at 02:45 -0400, Robert Cummings wrote: On Fri, 2005-07-01 at 02:20, anshul wrote: Hi all, We've our new Technology Forums started from India. http://forums.mediasworks.com/ I invite you all to join our community. http://forums.mediasworks.com/ My eyes, my eyes!!! It's like someone ran over kermit. FYI it's still spam since it's a big net to get people to use your forum... and while your forum does have a PHP category it also has a crapload of other unrelated categories. I for one would rather not go to such a diluted source for information. Cheers, Rob. Ps. Is it me or is the spam on PHP list growing rather rapidly of late? -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] stripping of the last character
use substr($recipients,0,1); to remove the last char and ereg_replace(,, ,,$recipients); to add the spaces Hope this helps CK On Mon, Apr 18, 2005 at 12:05:42PM +0100, Ross wrote: I have a large group of email addesses serperated by commas. I need to trim off the very last comma $recipients = [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED], Also how would I add a space after every comma? to give [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] many thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to unset a post variable
unset($_POST['buttonNew']); wont work? CK On Mon, Apr 18, 2005 at 08:25:04PM -0700, Richard Lynch wrote: On Fri, April 15, 2005 5:08 am, Mario de Frutos Dieguez said: I have another little question hehe :D, i have a page with a form where the user insert data and can click in a new,edit or delete button. I've make that when a button is clicked the page refresh and in the head of the page i have conditions like this: if ($_POSt[buttonNew]!=) { insert commands.. } , etc My question is, how can i unset $_POST[buttonNew] or leave it empty because when the user refresh the page make insert commans again because the $_POST[buttonNew] arent empty. The POST data is sent by the browser, so you can't really alter that... But you can bury an http://php.net/md5 or other random token in the FORM, and put that token in a table in your database, and then on the first POST, you mark that token as used On the second POST, a re-load, you can detect that the token was used and do whatever you want. Re-direct the user, ignore them completely, give them an error message, blow up their computer. Well, okay, you can do almost whatever you want. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] dirty words
in_array() can check your $string against a array and return if a bad word is in string Is this what you are after? Chris Kay (CK) [EMAIL PROTECTED] -Original Message- From: Mag [mailto:[EMAIL PROTECTED] Sent: Sunday, 17 October 2004 12:41 AM To: php php Subject: [PHP] dirty words Hi, I am useing file_get_contents on a remote page then using stristr() to make sure there are no bad words and its a family site. Right now I am checking for just 3 bad words which means 3 stristr() function calls, but if the bad words increase then that would mean more calls I have seen some forum software before that used to take an array of bad words and check it against the post, anybody have an idea what that function would be like coz I am pretty sure I am going about this the wrong way...php has a simple solution to most of these problems... Thanks, Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Please help me as fast as possible.. very important!!
http://www.unixgeeks.org/security/newbie/unix/cron-1.html Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: [EMAIL PROTECTED] -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 9:05 PM To: Nick JORDAN Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Please help me as fast as possible.. very important!! Where can I fin tutorials about it? (CRON Tab)? Regards.. - Original Message - From: Nick JORDAN [EMAIL PROTECTED] To: Radwan Aladdin raladin [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 1:56 PM Subject: Re: [PHP] Please help me as fast as possible.. very important!! Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add 1 to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. As far as I'm aware, that's not possible in MySQL, however you could write a small script in PHP (or, indeed, some other language) which would increment the counter, and which would be run at intervals via cron (for instance). A better solution, however, would be to include a timestamp in your database, then, when data is requested, calculate how many units of ten minutes have passed and adjust your counter accordingly. Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Whats more efficient? (Conclusion)
What I find easy to do, Is have the top, left in a file, say we call it header.php And have the bottom html in a page called footer.php Both pages mainly contain html exept if php is required. Many sites / database the top, left is html code and never changes, There is no need to place this inside php, there is no need to slow down the engine Advantages of this is that it is kind of like a template, where you could change the header, and it take effect site wide, as well as been able to change the view by having multiple headers for people to choose their own. Hope that made sense -- Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: [EMAIL PROTECTED] -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 October 2003 1:28 PM To: Chris Shiflett Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Whats more efficient? (Conclusion) Hey, thanks for replying. /* ...but you can still overcome this with some good server-side caching (for example, is it necessary to dynamically generate a response for every request if the data isn't very volatile?). */ My main pages are basically querying the databases for hosting plans depending on what the client chooses what do you suggest? and any urls for reading up on caching? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] storing the passthru() output as an array
I don't know if this is the easiest way but a solution Pipe ps -ef to a file read the file into an array and do with it what you will. EG $filename = /tmp/psefdump.txt; exec(ps -ef $filename); $lines = file($filename); foreach ( $lines as $var ) { // Yadda Yadda } Hope this helps... -- Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: [EMAIL PROTECTED] -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED] Sent: Tuesday, 7 October 2003 11:41 AM To: [EMAIL PROTECTED] Subject: [PHP] storing the passthru() output as an array Hi again, Have another problem here I need to get the output of this syntax $ps = (passthru(ps -ef)); and store it in an array line by line, I specifically want to get the Columns of the PID for this command and store it in a selection box . Any Idea how, thanks in advance. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] undefined variable
You seem confused with POST GET, instead of using _POST to retrieve values from the form, you use $senders_name, and further down you set $_POST[msg], which will only be used in the same php code on the same page Try $msg = Sender's Full Name:\t . $_POST['sender_name'] . \n; $msg .=Sender's E-mail:\t . $_POST['sender_email'] . \n; $msg .=Did you like the site?\t . $_POST['like_site'] . \n; $msg .=Additional Message:\t . $_POST['message'] . \n\n; $mailheaders = From: yoyo.monash.edu.my\~nthonyak\M\n; $mailheaders .=Reply-To: . $_POST['sender_email'] . \n\n; mail([EMAIL PROTECTED], Feedback Form, $msg, $mailheaders); -- Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: [EMAIL PROTECTED] -Original Message- From: merryE [mailto:[EMAIL PROTECTED] Sent: Friday, 29 August 2003 2:38 AM To: [EMAIL PROTECTED] Subject: [PHP] undefined variable Can anyone tell me what's wrong with my code? I tried to create a form in html and redirect it to php. but result said: Notice: Undefined variable: sender_name in c:\program files\apache group\apache\htdocs\do_feedback.php on line 2 and for all the variables (sender_email, like_site, and text area). I have been tring to use variable but it is always said Undefined variable. Please help, Thanks. This is the code for form FORM method=POST action=do_feedback.php pyour name: INPUT type=text NAME=sender_name size=30/p pyour email: INPUT type=text NAME=sender_email size=30/p p Did you like the site? INPUT type=radio NAME=like_site value=Yes checked yes INPUT type=radio NAME=like_site value=No no /p pAdditional message:br textarea name=message cols=30 rows=5/textarea /p INPUT type=submit value=Send /FORM Code for php: ? $_POST[msg] = Sender's Full Name:\t$sender_name\n; $_POST[msg] .=Sender's E-mail:\t$sender_email\n; $_POST[msg] .=Did you like the site?\t$like_site\n; $_POST[msg] .=Additional Message:\t$message\n\n; $_POST[mailheaders] = From: yoyo.monash.edu.my\~nthonyak\M\n; $_POST[mailheaders] .=Reply-To: $sender_email\n\n; mail([EMAIL PROTECTED], Feedback Form, $msg, $mailheaders); echo $_POST[sender_name]; echo P align=centerWe appreciate your feedback/P; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problem with MySQL Query
Why are you using NOT LIKE for? NOT LIKE is used when you are doing a part search Try this.. $dbqueryshipping1 = select * from tempuserpurchase where usersessionid = \$User_Shopping_Id\ day = \1\ type != \Meal Plans\; also from your original query you are closing off the line at day= which could be a reason for it not completing Hope this helps -- Chris Kay (CK) Eleet Internet Services P: 0415 451 372 F: 02 4620 5076 E: [EMAIL PROTECTED] -Original Message- From: Phillip Blancher [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 July 2003 8:24 AM To: David Nicholson Cc: PHP List Subject: Re: [PHP] Problem with MySQL Query Tried NOT LIKE and that didnt exclude it either. I am trying to exclude only 'Meal Plans' Phil - Original Message - From: David Nicholson [EMAIL PROTECTED] To: Phillip Blancher [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 6:19 PM Subject: Re: [PHP] Problem with MySQL Query Hello, This is a reply to an e-mail that you wrote on Wed, 23 Jul 2003 at 22:54, lines prefixed by '' were originally written by you. $dbqueryshipping1 = select * from tempuserpurchase where (usersessionid=$User_Shopping_Id) and day=1 and type'Meal Plans' Tryed both methods and it is still not excluding anything matching Meal Plans Is the data you are wanting to exclude exactly 'Meal Plans' (case sensitive). If not, use: type NOT LIKE 'Meal Plans' David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP) -- This message has been scanned for viruses and dangerous content by Ontario Webs MailScanner, and is believed to be clean. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP5?
I have got PHP5 to work with apache 2.0.47 on both windows and linux -- Chris Kay (CK) Eleet Internet Services P: 0415 451 372 F: 02 4620 5076 E: [EMAIL PROTECTED] -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 July 2003 4:03 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP5? Yes, I can get PHP 4.3.2 working with Apache 2.0.47 just fine. But I wanted to know if anyone had information on PHP 5 which is still in Beta? -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP5? the latest stable version of PHP works just fine with Apache 2.0.47. tyler - Original Message - From: Jonathan Villa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 11:47 AM Subject: [PHP] PHP5? Has anyone installed PHP 5 on Apache 2.0.47? What version of Apache 2 works best with PHP 5? On both Windows and Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] passwd protected page
Why not use sessions, store a $loggedin value in a session or cookie And check that at the top of each page.. no session = no access Hope this helps - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2003 5:14 PM To: Sichta Daniel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] passwd protected page how should I pass the logged in user to other pages ? In the database at the same time there might be several user logged in ? Thanks, Bibhas Sichta Daniel wrote: Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag again DS -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: [PHP] passwd protected page Hi, Without using sessions , how can I create passwd protected pages in mysql/php. I need to remember the user from login page and validate this user in other pages. Thanks, Bibhas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering. http://www.mailguard.com.au/mg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] passwd protected page
Sorry I didn't read the first post about not wanting to use sessions, what about cookies? What about making a hash of the username and password and place it in the url EG: /main.php?u=chrisp=AJKHSA765JAFG443320 Something like that Check the hash against the database each page $db = mysql_query(select * from users where username = '. $_GET['u'] .'); if ( mysql_num_rows($db) ) { $database = mysql_fetch_array($db); If ( $_GET['p'] == md5($database[password]) ) { // Let them go } else { header(Location: error.php?error=invalid); } } else { header(Location: error.php?error=noset); } Try this it will work - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Chris Kay Sent: Thursday, 26 June 2003 5:19 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] passwd protected page Why not use sessions, store a $loggedin value in a session or cookie And check that at the top of each page.. no session = no access Hope this helps - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2003 5:14 PM To: Sichta Daniel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] passwd protected page how should I pass the logged in user to other pages ? In the database at the same time there might be several user logged in ? Thanks, Bibhas Sichta Daniel wrote: Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag again DS -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: [PHP] passwd protected page Hi, Without using sessions , how can I create passwd protected pages in mysql/php. I need to remember the user from login page and validate this user in other pages. Thanks, Bibhas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering. http://www.mailguard.com.au/mg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] passwd protected page
ARGGG bad day for coding reading Replace if ( mysql_num_rows($db) ) { with if ( mysql_num_rows($db)==1 ) { now I am going home before I cause any more damage :) - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Chris Kay Sent: Thursday, 26 June 2003 5:27 PM To: Chris Kay; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] passwd protected page Sorry I didn't read the first post about not wanting to use sessions, what about cookies? What about making a hash of the username and password and place it in the url EG: /main.php?u=chrisp=AJKHSA765JAFG443320 Something like that Check the hash against the database each page $db = mysql_query(select * from users where username = '. $_GET['u'] .'); if ( mysql_num_rows($db) ) { $database = mysql_fetch_array($db); If ( $_GET['p'] == md5($database[password]) ) { // Let them go } else { header(Location: error.php?error=invalid); } } else { header(Location: error.php?error=noset); } Try this it will work - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Chris Kay Sent: Thursday, 26 June 2003 5:19 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] passwd protected page Why not use sessions, store a $loggedin value in a session or cookie And check that at the top of each page.. no session = no access Hope this helps - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2003 5:14 PM To: Sichta Daniel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] passwd protected page how should I pass the logged in user to other pages ? In the database at the same time there might be several user logged in ? Thanks, Bibhas Sichta Daniel wrote: Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag again DS -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: [PHP] passwd protected page Hi, Without using sessions , how can I create passwd protected pages in mysql/php. I need to remember the user from login page and validate this user in other pages. Thanks, Bibhas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering. http://www.mailguard.com.au/mg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] check is pop address
You can now pop hotmail accounts as well, not to mention most email providers have web based systems for their customers to read/send mail. - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 11 June 2003 5:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] check is pop address At 17:06 10-6-03, you wrote: Hi there, I was wondering whether someone could tell me whether it is possible to use PHP to check whether a user supplied email address is a pop address as opposed to a web based address like hotmail. Have done some searching but cant seem to turn any answers up. Thanx in advance for any replys, Phil S Is this to check that you have genuinely interested people? I'm afraid you cannot make a clear distinction between webbased and pop, at @zonnet.nl for instance i can get a free account AND access it through a web interface or with POP. Same for my paid account. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add a record and recover it's ID in one operation
Something like this perhaps untested function insert($query) { // Connect info mysql_connect(host,user,pass); // Select DB mysql_select_db(DBname); // Perform insert $indb=mysql_query($query); // Gets record ID $dbq=mysql_query(select last_insert_id()); $data=mysql_fetch_row($dbq); // Return ID return $data[0]; } - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 February 2003 8:18 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Add a record and recover it's ID in one operation Thanks! I stand corrected. I'll check the PHP online manual more often, and for now, I'm off to optimise my database and rewrite a few queries :) Cheers, Daniel Leif K-Brooks [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] www.php.net/mysql-insert-id Daniel Page wrote: Hi, Imagine a table with an auto-increment id number field and a text field for the username. User B (with user name 'johnny') could write to the database a millisecond after user A, with the same username. When user A looks for the last record written by Johnny, A will find the record entered by B. Is there a way to directly recover the auto-incremented number as like a return value (or somthing like that) of the write query as to be able to identify immediately what record you just wrote? This is just for argument's sake - I just would like to know if it is possible. My current solution is inserting the login time of the current user and/or IP, and adding that to make a temporary ID key where you select the latest entry written where username = your username and login time string = hhmmss info so you can immdately find your latest entered data, though recovering immediately the ID would have been a more elegant solution for this. Cheers, Daniel -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing
If anyone has got PHP to print to a remote printer please Could you direct me to some examples or anything that would help me understand this a bit more . Thanks in advance - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] appending file with new line first
fwrite($handle, $new_info\r); as quoted above would indicate $new_info\n as been a variable.. try $new_info .= \n; fwrite($handle, $new_info); this will add \n to the end of the string before you write it... hope this helps - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -Original Message- From: Guru Geek [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 February 2003 9:13 AM To: [EMAIL PROTECTED] Subject: [PHP] appending file with new line first Hello, Yep, me again, with yet another php question. Maybe I'm too tired to see the easy solution... I open a file and write to it: $handle = fopen ($temp_file, 'a'); fwrite($handle, $original_info); fclose ($handle); Later I want to add to the above file: $handle = fopen ($temp_file, 'a'); fwrite($handle, $new_info); fclose ($handle); Here's what the file now looks like: original info original info original info original info new infonew info I'm trying to achieve: original info original info original info original info new info new info It writes the very first piece of new info on a new line. That is good. The second piece of new info gets written right at the exact end of the file. I've tried fwrite($handle, $new_info\n) but that creates an error. So does fwrite($handle, $new_info\r); How can I get the new info to go on its own line in the file? Thanks, Roger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Printing
Anyone know if a LaserJet 3150 would be a good choice to print remotely? -Original Message- From: Chris Kay Sent: Wednesday, 5 February 2003 3:09 PM To: [EMAIL PROTECTED] Subject: Printing I am thinking of running a print job from one system via the internet to a network printer, this can be done... Question 1.. Anyway had experience with a certain printer that would be goof for this... Question 2.. Could some one point me to the right place I may learn how to print to a network printer with php on a RH 8.0 box Thank you in advance - Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing
I am thinking of running a print job from one system via the internet to a network printer, this can be done... Question 1.. Anyway had experience with a certain printer that would be goof for this... Question 2.. Could some one point me to the right place I may learn how to print to a network printer with php on a RH 8.0 box Thank you in advance - Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: 1300 882 221 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sorting arrays
I have a array as below I wish to sort if by the key fff name = blah fff = 4 join = pppop name = ttoo fff = 3 join = wewe name = blff fff = 9 join = ppeep Any1 know of a quick way to do this, I have been looking at the sorting of arrays in the Manual but cant see anything.. Thanks in advance Regards Chris Kay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] can I mail unlimited in one click?
I am emailing 150 or so - Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 - -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 17 December 2002 11:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] can I mail unlimited in one click? On Mon, 16 Dec 2002, wrote: I wonder if I can mail 300 customers in one click? part of script: while($listrow = mysql_fetch_array($listresult)) { $recipient = $listrow[epost]; $subject = $subj; $message = $mess; $headers .= From: $admail\n; $headers .= Reply-To: $admail\n; $headers .= X-Mailer: PHP\n; mail($recipient, $subject, $message, $headers); } or is there a limit? You may need to increase your max_execution_time, the default seems to be 30 seconds, pretty low for 300 emails: cat `locate php.ini`|grep max_execution_time max_execution_time = 30 ; Maximum execution time of each script, in seconds -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Session cookies
I don't use cookies when I use sessions.. Saves hassles Regards Chris Kay -Original Message- From: Erwin [mailto:erwin;isiz.com] Sent: Monday, 4 November 2002 6:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Session cookies When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because when i login , the same session id is used ! Why is that ? Because you use the same session to connect from client to server. You don't close your browser, don't wait 20 minutes (or something like that), so the webserver knows you are the same. The session between the client and server is not yet gone. It's also possible that you need to set your cookie in the past. You're just setting a cookie with setcookie(session_name()). If you want it destroyed, set it some time ago, like setcookie(session_name(),-3600). The session id changes when you close the browser , as the default is 0. Not because default is 0, but because there isn't any session yet. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add content thru e-mail
Could you not put a .forward to a php script? Correct me if I am wrong or even point me in the right direction Cause I am thinking of doing this soon. Regards Chris Kay -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:phplists;hitcho.com.au] Sent: Monday, 4 November 2002 12:59 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Add content thru e-mail The simplest way to do this to setup a pop3 account and have a php script check this account at intervals via cron. Or you could write a pipe script via aliases. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] On Sun, 3 Nov 2002, Rodrigo de Oliveira Costa wrote: Hi people, i'd like to know if there is a way to add content to a database thru sending an e-mail, and if there is how it would be done. Thanks, Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Radiator PHP
Anyone ever used PHP instead of Hooks in radiator, or even if it could be done... I have no idea just thought I would give it ago Before u tell me to goto ask on the radiator list I have I just thought I would get some comments from the PHP community. - Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] stupid me!!
Below you force state to equal NSW, QLD, NT I think what you are after is OR not AND || = or = and - Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 - -Original Message- From: Peter Houchin [mailto:php;vfsa.com.au] Sent: Thursday, 31 October 2002 2:31 PM To: php_gen Subject: [PHP] stupid me!! howdy, can any one tell me what's wrong with this my mind is going a miss on me.. if ( $state == 'NSW' $state == QLD $state == NT $state == ACT){ do sum stuff } else { do other stuff } TIA Peter the only dumb question is the one that wasn't asked -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Find rows by 1st letter in MySQL
Try Select blah from blah where blah like '$letter%' % is wildcard after first letter Regards. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Monday, 19 August 2002 8:43 AM To: Tony Harrison Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Find rows by 1st letter in MySQL Tony, How would I go about selecting rows from a MySQL table where the first letter of a certain field is $letter ? Depends upon the MySQL tbl's schema. The MySQL online manual discusses wildcards (full text). Alternatively see LEFT() and other string functions that can be used in SELECT and WHERE clauses. Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] records in db
// untested $data = mysql_fetch_array(mysql_query(SELECT count(answer_col) as total FROM answers_table WHERE answer_col='{$answer}')); echo $data[total]; Put this in a while/foreach statement Regards Chris Kay -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Sunday, 11 August 2002 12:09 PM To: Tyler Durdin; [EMAIL PROTECTED] Subject: Re: [PHP] records in db on 11/08/02 3:52 AM, Tyler Durdin ([EMAIL PROTECTED]) wrote: If I have a field in my DB that can have 4 different answers, lets say a,b,c and d. How can I count the number of each in that field. So if there are 4 a's 1 b 0 c's and 12 d's how can I get php to count this? I'm pretty certain there's a way to do this with just one MySQL query, but here's a PHP version that does 4 queries: ? // UNTESTED CODE $answers = array('a','b','c','d'); foreach($answers as $key = $answer) { $sql = SELECT * FROM answers_table WHERE answer_col='{$answer}'; $result = mysql_query($sql); if($result) { $count = mysql_num_rows($result); } else { $count = 0; } echo {$count} people selected answer {$answer}br /; } ? Should print out something like: 4 people selected answer a 1 people selected answer b 0 people selected answer c 12 people selected answer d hack it to suit your needs, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cache issue
Question. I have a problem with forms not been cached when they click submit... And then the back button, I know of some fields that can not be cached (password), I am thinking I am not doing something that asks it to cache.. Anyone have any tips or a place to start looking. Thanks in advance --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Using index.php instead of index.html
Why not just add it to the httpd.conf, this would allow it to work within the whole server And not just one director / vhost ect --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: Mark Gallagher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 17 July 2002 4:05 AM To: Sailom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Using index.php instead of index.html Sailom wrote: I am a novice on PHP and web programming. Can any one suggest me if I can use index.php in place of index.html? I really need to concern about Sure you can! If you're using an Apache webserver, create a file named .htaccess containing the following: DirectoryIndex index.php index.html Redirect index.html http://www.bar.net/index.php The first line says the directory index file is index.php, not index.html. The second line says whenever you get a request for index.html, send them index.php instead. security issue too. Umm... *what*? -- Mark Gallagher http://cyberfuddle.com/infinitebabble/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question 1
I am looking at importing data from rdtool into a mysql backend And not sure how to go about it... I was wondering if anyone has tried this or know of some information that may help. Or even a theroy on how the best way would be to do this... Thanks in advance.. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Training / Courses in Australia
Would anyone know of any PHP training or courses in Australia... Also for the devolopers... Is there at present, or a future plan for a PHPCE A certified engineer :) Just a thought since everyone else has them --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] varible in url question
Php4? or 3? Have you tried $_GET[sort] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: sven vandamme [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 July 2002 6:41 AM To: [EMAIL PROTECTED] Subject: [PHP] varible in url question on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and should set the varible to day, game or player but that doesn't happen. can somebody help me please see attachmend greetz @cid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Development Tools
I don't know about anyone else, But in linux I use vi and as of yesterday I downloaded Vi for windows, it has great colours for coding... --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 July 2002 5:13 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Development Tools On 10 Jul 2002 at 18:07, Uwe Birkenhain wrote: I think that - on windows - nothing is better than textpad (www.textpad.com). Simply the best editor the world has seen so far! What makes development tools better than a good editor? (serious question) Well let me get my 2 cents in. It's a religious question. But oh well. I recently had a lot of trouble with someone at work about this, so I'm gonna rant. I too use TextPad and have been since I'm too lazy to get really good at vi or emacs. I also know and use Perl extensively as a code generator. Someone talked about the work in creating a form, just give me the keys and boom form is done and read to be handed to the designers to ruin in their special way. You could use Ruby or Rebol or even Python I guess or PHP on the command line but I can't imagine anyting being faster than a Perl script (to write). I keep trying these IDE tools. I type about 70+ wpm, so you can imagine I'm not a fan of my hand speding half it's time in the air between keyboard and mouse. I also try never to repeat the same code twice so I don't cut and paste ... I put common functions in modules and use them but few IDEs that I've used easily allow me to use those or I haven't seen how. If anyone wants to create a great IDE for Perl I'd love to help. It should work for PHP as well. I also separate my programming from my view and since I'm a programmer and not a designer the visual view is not paramount to me and can always be done later or at the same time by me or someone else. I have a feeling that most PHP programmers also do their own design and that's a reason for so much PHP stuff to have html strewn all over the place. In any case I always think in terms of a theme and since I've got most of my html code abstracted into boxes it's just a question of my program to manipulate and supply the proper data to the template. So for me, the best development tools are: 1. Imagination 2. Knowledge of your tools (language, PHP, HTML, CSS, etc. in this case) 3. Knowledge of the computer and it's potential (I use NT as desktop but have cygwin and use unix command tools and lots and lots of perl scripts to aid in development) 4. A good text editor (there are lots, they all have macros, revision control, keyboard commands for as much as possible). Personally, I've never worked with a programmer who taught me anything who used Dreamweaver or FrontPage etc ... all the good ones I know use vi, emacs, textpad, etc. I'd suggest using a text editor and then moving to an IDE or more advanced GUI and knowing that it is faster for you as opposed to starting with an IDE or GUI because you'll probably end up like most people and begin to think possiblities are what your tool allows you. Peter -- http://www.readbrazil.com/ Answering Your Questions About Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTTP_USER_AGENT?
Have you tried $_SERVER[HTTP_USER_AGENT] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 July 2002 1:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] HTTP_USER_AGENT? I wish I could say the same. Thanks. -- George Hester _ Balaji Ankem [EMAIL PROTECTED] wrote in message 005901c22883$f22d5840$[EMAIL PROTECTED]">news:005901c22883$f22d5840$[EMAIL PROTECTED]... It is working fine for me!!! -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP_USER_AGENT? I have this in my web site not in an executable folder: HTML HEAD TITLEMy First PHP Program/TITLE /HEAD BODY ?php echo Hello World!; ? /BODY /HTML No problem. I then put this in the same folder: HTML HEAD TITLEMy Second PHP Program/TITLE /HEAD BODY ?php echo $HTTP_USER_AGENT; ? /BODY /HTML Nothing appears. What's wrong? -- George Hester _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Stripslashes help
I have a script which emails users from a website form, I have just run the script and got the following in the email A worm of many subjects \\\The Klez\\\ worm arrives in an e-mail message with one of 120 possible subject lines. There are 18 different standard subject headings, including \\\let\\ I have fixed this with stripslashes() but problem I am having is that If a ( ' ) is used in the email and I loose what ever is after ' Running php4.1.2 apache 2.0.36 RH 7.3 My script is $emailbody = stripslashes($_POST[body]); $emailbody = stripslashes($emailbody); $emailsub = stripslashes($_POST[subject]); $emailsub = stripslashes($emailsub); $message = To: From: x Subject: [] x - $emailsub BCC: ; $message .= \n$emailbody; $message .= \n -- ; In the form I typed This is a test this is a 'test' And what I got in the email was This is a test this is a Has anyone a few pointers as to what I am missing... Regards in advance --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing Problem
I'll repeat my ealier question because some people can not think for themselves.. I want to run a print job of 200+ invoices I have a javascript code to open a print dialog box and Then go to next invoice and do the loop.. Problem I am having is that I want it to pause if the ok button on the dialog Box is not pressed.. When I run the script it fly's throught and brings up a heap of printer Dialog boxes which causes me to ctrl+alt+del... Anyway or pausing the script untill ok is pressed? Thanks in advance.. (PS: I have sent this to this group because 1. The loop is done in php and NOT javascript 2. My question is regarding php and pausing the loop and not with the javascript code) --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Printing Problem
Thank you That's what I was asking for and needed to know, I had thought of something along those lines but was interested if anyone had found a Different way, I was not intending to insult anyone, was just implying that I not be made a fool When people have not real and thought about my email. Sorry if I upset anyone. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 11:29 AM To: Chris Kay Cc: PHP General List Subject: Re: [PHP] Printing Problem On Mon, 8 Jul 2002, Chris Kay wrote: I'll repeat my ealier question because some people can not think for themselves.. Why insult people who are trying to help you? Nobody gets paid to read this list; they're doing it to be nice. I want to run a print job of 200+ invoices I have a javascript code to open a print dialog box and Then go to next invoice and do the loop.. Problem I am having is that I want it to pause if the ok button on the dialog Box is not pressed.. When I run the script it fly's throught and brings up a heap of printer Dialog boxes which causes me to ctrl+alt+del... Anyway or pausing the script untill ok is pressed? You are running into client behavior that is out of your control. If I had to print that much stuff, I'd generate one big document containing all of them, and insert page breaks. Then it would go as a single print job. If your operator is using IE, Try something like p style=page-break-before:always at the top of each new invoice. Otherwise, generate RTF or PDF. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Printing
You saying there is a way for the scripts to know what kind of browser u r using? --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, 1 July 2002 1:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Printing On Monday 01 July 2002 11:16, Chris Kay wrote: Is there a way to bypass the print popup window within linux? That's a function of whatever browser you're using! -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Such a foolish notion, that war is called devotion, when the greatest warriors are the ones who stand for peace. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Printing
Is there a way to bypass the print popup window within linux? I wish to run a print job of 200 or so invoices and don't want the promp for every page I print.. Is any one able to point me in the right direction.. Thanks in advance.. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Start / Stop
Anyone have some tips on the best way to make a Script started @ 5:45pm Script ended @ 5:50pm Script? --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL Query Help!!!!
I have a rather longer query which I would like to get all records past todays date. Here is my query $ttwo = date(YmdGi); $dbq = select(select detail.*, type.type_name, status.status_name, staff.staff_name, source.source_long, source.source_short from detail, type, status, staff, source where type.type_id = detail.detail_type status.status_id = detail.detail_status staff.staff_id = detail.detail_staff source.source_short = detail.detail_source 'detail_start_date_y,detail_start_date_m,detail_start_date_d,detail_start_time_h,detail_start_time_m' = '$ttwo' order by detail.detail_start_date_m DESC, detail.detail_start_date_d DESC); The query works fine before I try to get all records in the furure as shown below 'detail_start_date_y,detail_start_date_m,detail_start_date_d,detail_start_time_h,detail_start_time_m' = '$ttwo' The query does not error out it just does not give any records, and I know there are 4 records Detail_start_date_y = 4 digit year Detail_start_date_m = 2 digit month Deatil_start_date_d = 2 digit day Detail_start_time_h = 24 hour time Can anyone see what I am doing wrong? Thanks in advance. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MySQL Query Help!!!!
The query does not error out it just does not give any records, and I Know What part of The query does not error out do you not understand. Why are there so many people willing to say what is wrong with a code but when it comes to A solution that go silent. I find that the ones most often to find flaws in someones code, are the ones who never provide Answers. --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --- -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Friday, 14 June 2002 1:26 PM To: Chris Kay; 'PHP General List' Subject: RE: [PHP] MySQL Query Help Man, where do I start. There could be so many things wrong. First of all, this is a PHP list, not MySQL. Second, use MySQL_error() after you issue a query to see if an error was returned http://www.php.net/mysql_error. Third, in this line: 'detail_start_date_y,detail_start_date_m,detail_start_date_d,d etail_star t_time_h,detail_start_time_m' = '$ttwo' You are comparing the literal string of 'detail... ' is less than or equal to a string like '200203041234' or something. That's going to fail. You need to go back to your SQL books... ---John Holmes... -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 7:33 PM To: PHP General List Subject: [PHP] MySQL Query Help I have a rather longer query which I would like to get all records past todays date. Here is my query $ttwo = date(YmdGi); $dbq = select(select detail.*, type.type_name, status.status_name, staff.staff_name, source.source_long, source.source_short from detail, type, status, staff, source where type.type_id = detail.detail_type status.status_id = detail.detail_status staff.staff_id = detail.detail_staff source.source_short = detail.detail_source 'detail_start_date_y,detail_start_date_m,detail_start_date_d,d etail_star t_ time_h,detail_start_time_m' = '$ttwo' order by detail.detail_start_date_m DESC, detail.detail_start_date_d DESC); The query works fine before I try to get all records in the furure as shown below 'detail_start_date_y,detail_start_date_m,detail_start_date_d,d etail_star t_ time_h,detail_start_time_m' = '$ttwo' The query does not error out it just does not give any records, and I know there are 4 records Detail_start_date_y = 4 digit year Detail_start_date_m = 2 digit month Deatil_start_date_d = 2 digit day Detail_start_time_h = 24 hour time Can anyone see what I am doing wrong? Thanks in advance. -- -- -- - Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business -- -- -- - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql Query Help needed
I have a query select cust_fnn, cust_name, agroup_access.group_access_cust from cust, agroup_access where agroup_access.group_access_group='$id' cust.cust_fnn!=agroup_access.group_access_cust order by cust.cust_name The 2 tables are as follows agroup_access agroup_access_idagroup_access_group agroup_access_cust 1 9 1610005847 2 9 0265478986 3 9 1610010254 Cust cst_id cust_name cust_fnn(ect) 1 xxx 1610005847 2 x 0265478986 And so on 200+ records What I am trying to do is pull all records from cust where cust_fnn != agroup_access_cust agroup_access_group=9.. What I am getting is all cust_fnn records but 3 of each and only 2 in the case of it matching the agroup_access_cust.. Can anyone see what I may have dome wrong.. I am trying to display them in a drop down box, below is the function for the drop down box and the line to call the function.. combo5(fnn,select cust_fnn, cust_name, agroup_access.group_access_cust from cust, agroup_access where agroup_access.group_access_group='$id' cust.cust_fnn!=agroup_access.group_access_cust order by cust.cust_name,); function combo5($name, $query, $sel) { $dbq=mysql_query($query); $html=select name=\$name\ class=\longdd\\n; while( $data = mysql_fetch_array($dbq) ) { if($data[cust_fnn]==$sel) $html.=option value=$data[cust_fnn] selected$data[cust_name] : $data[cust_fnn]/option\n; else $html.=option value=$data[cust_fnn]$data[cust_name]: $data[cust_fnn]/option\n; } $html.=/select\n; return $html; } Hope someone can help... --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] /usr/bin/php Question
So I should compile without axps to make the binary then recompile --with-axps to compile the apache module again.? Cause I want both apache module and command line. Or will it work as a apache module without axps? --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, 7 April 2002 3:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] /usr/bin/php Question On Sunday 07 April 2002 13:18, Chris Kay wrote: Hi I have compiled php -with-apxs option and I read in the archives it don't create a /usr/bin/php. But I wish to run 2 scripts I have made by command line, I have the 2 scripts outside the web server Root. Is there a way to compile a php binary to use for my scripts? Yes. Or does someone have any idea's what's the best way to go about this would be... From the manual The default is to build PHP as a CGI program. By using the --with-apxs option you're telling it to build an Apache module and not a standalone binary. So just: ./configure; make; then copy the resulting php executable somewhere. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Show business is just like high school, except you get paid. - Martin Mull */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] /usr/bin/php error
Would any one know why when I run command line php I get the following? [root@*** ]# /usr/bin/php /data/web/root/***/getdata.php X-Powered-By: PHP/4.1.2 Content-type: text/html br bFatal error/b: Call to undefined function: ftp_connect() in b/data/web/root/***/getdata.php/b on line b16/bbr --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] WebMail server question
Not sure which one you are referring to but I been told SquirrelMail is really good http://sourceforge.net/projects/squirrelmail/ --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Patrick Ni [mailto:[EMAIL PROTECTED]] Sent: Sunday, 7 April 2002 11:46 PM To: [EMAIL PROTECTED] Subject: [PHP] WebMail server question Good morning, Someone last month told me that there is free web based email server platform which relies on PHP technology. This mail server is the result of a project. I can not remember the name of the mail server. It is something like NMP, MNP, or NMD ???.. He also told me that because Apache web server supports PHP, so the email server has to be on Apache, or any other web server which supports PHP. Anyone knows this? Thank you. -- Patrick Ni Phone: (604) 719 - 2781 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] /usr/bin/php Question
Thanks Jason this worked.. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, 8 April 2002 4:01 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] /usr/bin/php Question On Sunday 07 April 2002 19:37, Chris Kay wrote: So I should compile without axps to make the binary then recompile --with-axps to compile the apache module again.? Cause I want both apache module and command line. If you want both, then yes, you need to compile twice. Once using --with-apxs, then again omitting --with-apxs. Or will it work as a apache module without axps? There are two types of Apache modules, the preferred being apxs, so just stick with it -- unless you have special reasons not to. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* It is better to have loved and lost than just to have lost. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] /usr/bin/php Question
Hi I have compiled php -with-apxs option and I read in the archives it don't create a /usr/bin/php. But I wish to run 2 scripts I have made by command line, I have the 2 scripts outside the web server Root. Is there a way to compile a php binary to use for my scripts? Or does someone have any idea's what's the best way to go about this would be... --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php.ini
Question I have is, Is it possible to specify a php.ini in each virtual host? That way allowing each website to run a different configuration. Cause I have a website that I want to use Session_set_save_handler = user but I want another website to use the default php Files handle. Also for things like session auto start ect Just a thought that it would make it easier. Thanks in advance. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session and SID
Its 12am and I probly did something wrong but anyways... I have php compiled with --enable-trans-id Running on RH7.2 PHP 4.1.2 Apache Question is that when I first view the page the SID is not in URL As it should not be :) All my links have the SID attached to it as should be... After I click on a link and goto the page the SID is no longer attached to further links... Am I doing something wrong.. If so could some one shed some light for me.. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions / MySQL
I am wanting to store session data in a mysql db.. I have looked at a few examples and still cant get them to work Rather than asking for the answer, I perfer to try a few more time. Anyone have any links to tutorials that may help or examples that may help me out? Thanks in advance... --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Writing to files
I know I can do this with sessions, reason I am asking is webserver should not be able to create file (for security reasons), I would of maybe thought php could create a file as a different user. php is not always used by the box owner. I find it strange that such a option Is only available if you run the box or the webserver is run as that user. Sessions and such need configurations that need to be configured by the server admin Ect I was hoping there was a way that didn't rely on a special configuration And stayed in the users directory --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 February 2002 6:51 PM To: Chris Kay Subject: RE: [PHP] Writing to files Suggest you understand how session management works. Whether you store in a file or database, the entries are removed if the user fails to return after a limit amount of time, and are kept in a separate table in the database. You can post the results to your actual data tables when you are completed. If you don't want to store the data in files, or in a database, what did you have in mind? There is no rule that says you can only store permanent data in a data base. -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:43 PM To: 'Warren Vail'; [EMAIL PROTECTED] Subject:RE: [PHP] Writing to files The data will be stored in mysql, but I don't wish to store in sql untill its completed. In case a user leave the application before completing it. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 February 2002 6:37 PM To: Chris Kay; [EMAIL PROTECTED] Subject: RE: [PHP] Writing to files What you are describing is exactly how session management works, storing things in a file in the /tmp directory. Perhaps you could consider using the session save handler functions to store the session data in your protected database (MySQL?). Warren Vail -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:19 PM To: [EMAIL PROTECTED] Subject:[PHP] Writing to files Question I have is, Anyway know of a better way to store temp information? I have a problem that a script I use, uses many pages and after each page the information from the form Is stored and the next page is shown ect It uses more than 20 variables so I can not store the data in cookies. I could store the data in a temp file created but problem is that the webserver would need to create The file which is a security risk (I would like to find another way other than this). I don't really want to use sessions but if it's the last resort I guess I will have to. Other than the above any one have a better soluition? Running php 4.1.1 on RH7.2 --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Writing to files
Question I have is, Anyway know of a better way to store temp information? I have a problem that a script I use, uses many pages and after each page the information from the form Is stored and the next page is shown ect It uses more than 20 variables so I can not store the data in cookies. I could store the data in a temp file created but problem is that the webserver would need to create The file which is a security risk (I would like to find another way other than this). I don't really want to use sessions but if it's the last resort I guess I will have to. Other than the above any one have a better soluition? Running php 4.1.1 on RH7.2 --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Writing to files
The data will be stored in mysql, but I don't wish to store in sql untill its completed. In case a user leave the application before completing it. --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 February 2002 6:37 PM To: Chris Kay; [EMAIL PROTECTED] Subject: RE: [PHP] Writing to files What you are describing is exactly how session management works, storing things in a file in the /tmp directory. Perhaps you could consider using the session save handler functions to store the session data in your protected database (MySQL?). Warren Vail -Original Message- From: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:19 PM To: [EMAIL PROTECTED] Subject:[PHP] Writing to files Question I have is, Anyway know of a better way to store temp information? I have a problem that a script I use, uses many pages and after each page the information from the form Is stored and the next page is shown ect It uses more than 20 variables so I can not store the data in cookies. I could store the data in a temp file created but problem is that the webserver would need to create The file which is a security risk (I would like to find another way other than this). I don't really want to use sessions but if it's the last resort I guess I will have to. Other than the above any one have a better soluition? Running php 4.1.1 on RH7.2 --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Control Panel
Love the rsponce Miles If you could make it then make it I mean what use would a control panel be on a website, why on earth Would you want suck features as Add / Remove Programes and Internet Options On a website :)... If you want it to be the best then a pre built script(s) is not going to be good for you, Because the best would have all features you need and more and something out there is not made for you alone. Building it would be your best choice... Regards Chris Kay -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Sunday, 27 January 2002 1:52 PM To: karthikeyan; [EMAIL PROTECTED] Subject: Re: [PHP] Control Panel Spare us1 Miles Thompson On Saturday 26 January 2002 09:39 pm, karthikeyan wrote: Hi Guys, I want a affordable and the best control panel for my website. Though i can make it myself but it make some time to do that. Do any of you guys and gals know about this do let me know. Looking forward for yours earliest reponse. karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: auto form submit
How about storing it in a db or a file and retrieve it from the 2nd php script.. Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -Original Message- From: Fred [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: auto form submit I know of no way to do this automatically with PHP. I think you can pull it off with some javascript. Wm [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi all, if i pass data through a form (post) to a php script(script must be separate from form) is there a way that this php script can then forward that data to another script without attaching it to the end of the url? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question....
I have a simple question that bugging me.. I have a site which I am designing with users auth, I have decided to use cookies as I need to store variables after the user leave the site.. Problem I am having is the domain I set it on, If the user logs into http://www.mysite.com and later logs into http://mysite.com without the www the cookie will not work.. Is this because I am setting the domain wrong? I have tried .mysite.com mysite.com $HTTP_HOST Is some1 able to point me in the right direction Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] how to echo data in a textarea
Scott try this is standard html, you will find this out even if you open Wintendo Frontpage textarea rows=3 name=namehere cols=30? echo $text; ?/textarea really you should be able to write html before learning php Regards Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: [PHP] how to echo data in a textarea Could someone please show me how to echo data into a textarea field of a form? e.g. I have used the following in text fields: input type=text name=id value=? echo $id; ? size=3 maxlength=3, but textareas don't have the value attribute and I haven't been able to come up with a way that works or find a working example. Thanks, SW -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question about sessions
I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*** files in the /tmp directory. Do i need to purge these weekly so it wont use tooo much room or are these spose to delete them selves.? Maybe someone has come accross this before and fixed it? Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] htaccess php
Hi My question is that i am about to start a database and i have been asked to make the login/password like htaccess, now they also want to be able to modify passwords ect so i was going to do it with mysql. I have seen or been told that there is something where you can use sql/php and make it use something that look like htaccess but is not. is this true? if so where would i start looking for something along these lines.. Answers/Comments welcome Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] htaccess php
ok Thanks dude i'll start there At 10:01 AM 8/9/01 +1000, Daniel James wrote: You are looking for HTTP Authentication... http://www.php.net/manual/en/features.http-auth.php Twigman... On 2001.08.09 09:49 Chris Kay wrote: Hi My question is that i am about to start a database and i have been asked to make the login/password like htaccess, now they also want to be able to modify passwords ect so i was going to do it with mysql. I have seen or been told that there is something where you can use sql/php and make it use something that look like htaccess but is not. is this true? if so where would i start looking for something along these lines.. Answers/Comments welcome Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] easy mysql question
if you use phpMyAdmin you can dump the structure and data to a file and use phpMyAdmin to place it on a new machine At 10:48 PM 7/8/01 -0400, [EMAIL PROTECTED] wrote: Since I first made the tables for my site I've had to modify them quite a bit. I always keep a copy of the commands I used to make the tables in case I need to move a site. Is there a way to ask mysql to list the create table commands? Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUGS.PHP.NET
HAHAHAHAHAHAHAHAHA At 07:58 AM 6/22/01 +0800, you wrote: Hello, I visited bugs.php.net and I noticed that you are not listed on some search engines. I am sure you can increase the number of people who visit bugs.php.net . Do you know TrafficMagnet? TrafficMagnet is a unique technology that instantly submits your web site to over 300,000+ search engines and directories every month. This is a very low-cost and effective way of advertising your site. To check our prices and submit bugs.php.net to 300,000+ search engines, go to I would love to hear from you. Best Regards, Christine Hall Sales Marketing .button { BACKGROUND-COLOR: #cc; COLOR: #ff; FONT-WEIGHT: bold } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890