Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jason Wong wrote: > 3) you can always use gethostbyaddr($_SERVER['REMOTE_ADDR']) whenever it is > needed. But do note that $_SERVER['REMOTE_ADDR'] is not a wholly reliable > indicator of who your client is. Right...it doesn't return the machine name for any of my client machines (didn't expect

Re: [PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread John Nichel
Robert Restad wrote: Now, use SELECT is simple enough. The Select Name gives a value, the one you selected of course... However, I yet have to find a way to actually determine how I could fetch i.e. the results from a SELECT multiple-choice menu. What if I want the website visitor to choose from

Re: [PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread John Nichel
John W. Holmes wrote: Robert Restad wrote: I yet have to find a way to actually determine > how I could fetch i.e. the results from a SELECT > multiple-choice menu. I think I already asnwered this today Three more times, and you'll reach your quota. -- By-Tor.com It's al

Re: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread John Nichel
Chris W. Parker wrote: Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it will continue to happen. Chris. If I keep adding domains to my '/dev/null' list, I'm going to fill up null. ;) -- By-Tor.co

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
Bas wrote: How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. Oh, ohmanual http://www.php.net/manual/en/ref.exec.php -- By-Tor.com It's all a

Re: [PHP] Execute programs

2003-11-22 Thread John Nichel
Bas wrote: "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Bas wrote: How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is

Re: [PHP] Php ignores if statement

2003-11-22 Thread John Nichel
Pieter wrote: I recently started coding online and i have the weirdest response, my code is: include 'function.inc'; echo "$id"; print (gettype($id)); if ($id = "add" ) { echo "is add"; exit; } '=' sets value. '==' checks equality. http://www.php.net/manual/en/language.operators.comp

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread John Nichel
PAUL FERRIE wrote: I am getting this error once i run the script Warning: move_uploaded_file(img/matrix.jpg): failed to open stream: Permission denied in /blah/blah Do i need to set the chmod of the img folder? Cheers Paul The user or group that your webserver is running as (default for Apache:

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread John Nichel
Joffrey Leevy wrote: Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money //should show $30 thanks How 'bout... $money = '$' . 30; -- By-Tor.co

Re: [PHP] Duplicate Images

2003-11-23 Thread John Nichel
Erin wrote: Hi All, Please give me a hand with this, ive been trying to do this for the best part of today but i have got no where! I have two arrays both have 161 elements, each has a list of filenames on my server (images) now the idea here is to take the image name from array 1 copy it and r

Re: [PHP] when to use \n in forms

2003-11-23 Thread John Nichel
Joffrey Leevy wrote: Hi: Can someone shed some light on this please? To me when doing a form in php using \n or not using \n makes no difference. I still get the form in my browser to work. For instance, echo" method='post'>\n \n cat\n dog\n rat\

Re: [PHP] when to use \n in forms

2003-11-23 Thread John Nichel
Nigel Jones wrote: No Diff, Plus i think that HTML is wrong Use: cat dog rat Just for that HTML standards sake :P Most (if not all) browsers of today with handle it fine without the closing tag, but you're right for the standards sake. -- By-Tor.com It

Re: [PHP] when to use \n in forms

2003-11-23 Thread John Nichel
Nigel Jones wrote: How I take it is the fact that most is not all, it's best if possible to do for all hence why I try to keep away from DHTML and Javascript I agree totally. Besides, I leave all that DHTML and JS to the 'Web Designers' ;) -- By-Tor.com It's all about the Rush http://www.by-tor.

Re: [PHP] different PHP configs for multiple sites on same machine

2003-11-24 Thread John Nichel
Pablo Gosse wrote: Hi all. Is it possible to have different php.ini settings for different sites running on the same server (Apache)? What I want to do exactly is change the include_path on a per-site basis, without having to call ini_set in each page. I have the following: /home/vservers/cms.my

Re: [PHP] Changing php directives inside apache config file

2003-11-24 Thread John Nichel
Pablo Gosse wrote: Hi all. I'm trying to alter the include_path for three different sites running on the same machine, and I do not want to use ini_set in each file. Here's what I've set up for each virtual host inside my httpd.conf file: php_value include_path ".:/usr/local/lib/ph

Re: [PHP] Changing php directives inside apache config file

2003-11-24 Thread John Nichel
Pablo Gosse wrote: [snip] There's really no reason to wrap the 'php_value' in the IfModule statement. Other than the, the syntax looks good...I know it's supposed to work in the httpd.conf, but I've never tested that...I've always done it in a .htaccess in the document root for the virtual. [/

Re: [PHP] Problems with a simple page

2003-11-25 Thread John Nichel
Carlos A. Rodriguez wrote: Hi php-fans... here's a simple question for you I have this HTML page in WIN (Busqueda.htm) the page contains a textfield (textfield3) and a button (submit1) which calls a php file Buscador.php in a Linux server (RED HAT 8) well, my php file which doesn't read anything

Re: [PHP] line breaks

2003-11-25 Thread John Nichel
Rodney Green wrote: Greetings! I'm writing a script that will take the contents of a text file that has several lines of user accounts and creates a shell script with chown commands for each user in that text file. My problem is that when it writes the shell script file it puts a line break af

Re: [PHP] line breaks

2003-11-25 Thread John Nichel
Rodney Green wrote: John Nichel wrote: Chances are, $buffer has the line break on it when you read it in from the text file. Try striping off whitespace before you write... while (!feof ($handle)) { $buffer = rtrim ( fgets($handle, 1000) ); fwrite ($fhandle, "chown $buffer:html

Re: [PHP] line breaks

2003-11-25 Thread John Nichel
Rodney Green wrote: Actually, I'm not having problems with that. The whitespace is still there in between the commands and arguments, etc. I'm using fgets , not fread. Not sure what the difference between the two is but I'll check it out. The problem I am having however is that at the end of th

Re: [PHP] Two Actions in a Form?

2003-11-26 Thread John Nichel
Dimitri Marshall wrote: Hi there, I realize this is a group for PHP, but this question is related. What I want to do is have one action in a form execute if the user clicks on one button, and another action execute if the user clicks on another button. The actions will point to PHP programs. Can so

Re: [PHP] Converting to ASCII HEX

2003-11-27 Thread John Nichel
Ashley M. Kirchner wrote: How can I convert a string like this: "test & test" into "test%20%26%20test" so I can then pass it to a script? Essentially convert the spaces and & symbol to their ASCII HEX equivalent. http://us3.php.net/manual/en/function.urlencode.php -- By-Tor.com It's all a

Re: [PHP] Important notice

2003-11-28 Thread John Nichel
Chris W. Parker wrote: [EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: If you feel this transaction was made by our mistake, please press "No". I keep clicking "No" but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP?? Chris. My keyboard d

[PHP] Static Array vs MySQL query

2003-11-28 Thread John Nichel
Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu variables into an array in a config file vs storing the info in a MySQL tabl

Re: [PHP] DAMN

2003-11-28 Thread John Nichel
Bronislav Klucka wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona How many times is someone going to start this flame war this month? -- By-Tor.c

Re: [PHP] DAMN

2003-11-28 Thread John Nichel
- Edwin - wrote: On 2003/11/29, at 14:17, John Nichel wrote: Bronislav Klucka wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Brona

Re: [PHP] Static Array vs MySQL query

2003-11-29 Thread John Nichel
- Edwin - wrote: Hi, On 2003/11/29, at 8:10, John Nichel wrote: Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu

Re: [PHP] entering in text data and losing the \n

2003-11-29 Thread John Nichel
Randy Johnson wrote: I have a form with a text area. When the user submits the data it is saved to a mysql database in a field of type text. When I extract the data from the database and display it in php it loses the line return and the data is all crammed together. Here is an example This i

Re: [PHP] Variables - showing onpage

2003-11-30 Thread John Nichel
Biph wrote: I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong? I'm using Win2K to test a site on my own

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread John Nichel
Rob Adams wrote: "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] There are several large complex projects using PHP as the language, jsut as there are several large projects out there using C++, JAVA, Fortran, Cobol etc.etc.etc. I'm cringeing! Did you just compare C+

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread John Nichel
CPT John W. Holmes wrote: From: "Cesar Cordovez" <[EMAIL PROTECTED]> I work on a project 100% made in PHP and MySQL that costs a lot of money (6 figures) a copy. PD. Did I mention that it is cheap and reliable. Please tell me in what world is 6 figures considered cheap??

Re: [PHP] Spamming bastardly problem, please help

2003-12-05 Thread John Nichel
Ryan A wrote: Hi, Some son of a * is spamming people and using one or our websites as a return address, so all the emails that get bounced are coming right back to us, as you can imagine thats quite a lot, plus we are getting angry people writing to us. I had a look at the emails and I see its

Re: [PHP] Re: Spamming bastardly problem, please help

2003-12-05 Thread John Nichel
Vail, Warren wrote: http://spamassassin.org/index.html you might also try filtering on the body looking for a common phrase. Spam assassin looks for phrases like "you opted" and instructions on how to stop receiving these emails, a single source will often use the same opt out phrase. hang in th

Re: [PHP] Spamming bastardly problem, please help

2003-12-05 Thread John Nichel
Now this is funnycan't reply to Ryan's email without editing the original message because he said ** (that male enhancement pill). [EMAIL PROTECTED] wrote: > I'm sorry but your email with subject SPAMWARNING:Re: [PHP] Spamming > > bastardly problem, please help addressed to "Ryan A" > > >

RE: [PHP] Whitespace filter

2003-12-05 Thread John Coggeshall
You can also use the tidy extension. http://pecl.php.net/package-info.php?package=tidy John On Fri, 2003-12-05 at 20:23, Chris W. Parker wrote: > Justin Hendrickson <mailto:[EMAIL PROTECTED]> > on Friday, December 05, 2003 5:51 AM said: > > > Does anyone have an

Re: [PHP] Re: PHP & Variables

2003-12-06 Thread John Nichel
John W. Holmes wrote: Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. "Please learn HTML" is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), othe

[PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread John Clegg
r= none WMF --with-wmf=yesno X11 --with-x= no XML --with-xml=yesno ZLIB --with-zlib=yes yes imagick php API 0.9.8 Any help or suggestions would be appreciated. Regards John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP My SQL vs ASP.NET SQL 2000 Server

2003-12-09 Thread John Nichel
Ryotaro Ishikawa MD wrote: Hi, I am a MD, involved in a very large medical project that requieres a strong database plataform, the project must be .NET , the estimated transactional movement is about 40 on line users accesing a DB with a 200 relational tables. The policy is to program this SW in th

Re: [PHP] Re: goto label

2003-12-09 Thread John Nichel
Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, if there's any way to achieve 'goto "label":' using PHP Thanx for ur time Nitin goto is a very old and broken way of coding. If you ever find yourself in need of a goto, you should re-evaluate how you're doing things. If you're hav

Re: [PHP] Leechers...

2003-12-09 Thread John Nichel
[EMAIL PROTECTED] wrote: I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to access the images via my site... Is this possible...?

[PHP] Best way to increment an integer column in mysql

2003-12-11 Thread John Clegg
Hi I was wondering if there is a php / mysql function call that will increment an integer column in a database. ie. the equivalent to $foo++; Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] searching and replacing in a file

2003-12-15 Thread John Nichel
Richard Kurth wrote: How can I read through a file and find a string and then replace it with a new string and then save the whole file. Below is a peace of what I need to search through. I need to find the string subscribe_policy = open and replace it with subscribe_policy = open+confirm. Then sa

Re: [PHP] Help Cookie

2003-12-15 Thread John Nichel
[EMAIL PROTECTED] wrote: Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! Output has been sent to the browser before you tri

[PHP] String replacement problems...

2003-12-23 Thread John Clegg
ext,"FOO"); The answer I get for both I run the example echo $ans; FOO bah FOO moo FOO boo Can any tell me what I am doing wrong ? I am trying only to replace the match once. eg FOO bah [foo] moo [foo] boo Any help would be appreciated... Cheers John Clegg -- PHP General Mailin

Re: [PHP] php files not looking right

2004-01-04 Thread John Nichel
John wrote: hi, i must have downloaded my php files in binary format or something, but now, instead of readable carriage returns after each line of code, theres a 'box' and then no carriage return. so the whole file is on one line. then other files have an extra carriage return bet

Re: [PHP] Ver 5.0 Questions ...

2004-01-11 Thread John English
Check these two nice articles on PHP5: http://www.sitepoint.com/print/1192 by Harry Fuecks [http://www.phppatterns.com] http://www.phpvolcano.com/articles/php5/index.php I was wondering if there is a timeline for version 5, if so where can I find it ... Also I am developing an application that

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread John Nichel
Freedomware wrote: Ryan A wrote: "It installed pretty easy and the guy who makes it is real cool and will help you via the forum. Also options to run other things like PERL" Thanks for the tip. You raised one other question I have - PERL. I know nothing about it, but I just wondered how it

Re: [PHP] PHP Installation Questions

2004-01-12 Thread John Nichel
Freedomware wrote: I'm running Windows XP Pro and just installed Apache 1.3. It appears to be running, so I guess I'm ready to install PHP. I visited http://snaps.php.net and downloaded the latest PHP program - CVS (5.0.x-dev). I'm reading the installation instructions at http://cvs.php.net/co.

[PHP] Re: Security issues

2004-01-14 Thread John Leach
nd another has read-only. I then use these users appropriately throughout my code. For example, a script that searches a table uses the read-only user. Then no matter how clever the attacker is, they won't be able to DELETE all my data by exploiting that code. John. -- GPG: B89C D450 5

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
Freedomware wrote: I just learned that you can even use PHP on style sheets. Can anyone here tell me how to set it up? I found a page at http://www.webdeveloper.co.nz/forum/topic/50 that apparently cites two different methods. The first is to put a php heading at the top of a style sheet, then

[PHP] Help with preg_replace

2004-01-19 Thread John Clegg
com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah AFTER: blah http://www.qxlmaxbid.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah ** It should give the following result: ** AFTER: blah Foo blah ** Thanks for your he

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at the top: I would think that the above is going to cause proble

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah"; $url = "'http://www

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
e *8* I found out that I could use ' to delimit from Example 5 in the php manual page for preg_replace. Also I need to replace only one occurance of the string at a time, so I can't use str_replace :-( . Any other suggestions?? Cheers John joel boonstra wrote: On Mon, Jan 19, 20

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John Maybe

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Nichel wrote: John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John W. Holmes wrote: In $url, the periods still need to be escaped, too. This is where preg_quote() comes in handy. $url = "http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]";; $url = preg_quote($url); $code = preg_replace("#$url#",$replace,$code,1); I hope t

Re: [PHP] Dokument

2004-01-19 Thread John Nichel
haitham wrote: I need some PHP Dokument, Can any one HELP me. Thanks http://us4.php.net/manual/en/index.php -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "include" working....but confusion

2004-01-20 Thread John Nichel
Ryan A wrote: Do I have to start and end the included files with? Yes. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION

2004-01-20 Thread John Nichel
Alex Hogan wrote: I've got a question that I'm sure has a simple answer. Why aren't my session objects transferring across more than one page? I'm calling a session object that was set in the page prior; $_SESSION['mysessionvar'] = $_REQUEST['mytxtobj']; I then assign a variable that value; $

Re: [PHP] hello to making the php pages

2004-01-20 Thread John Nichel
Chris W. Parker wrote: hello you, Hello me. i am here to ask of help from the mailing list. I think the mailing list is gone for the day. Try back tomorrow. i have PHP Codes like this kind: What's PHP? echo "Welcome to my homepage Mom. See my brand new wife!": You must echo out what happened t

Re: [PHP] Search Script????

2004-01-20 Thread John Nichel
Student wrote: I have my web site with file extensions .php .php3 .html .htm .shtml Now i (am looking for a script or) would like to write a php script so that users can search my web site for information Can anyone help me get started. I want to include a search in my web site.. Cross post b

[PHP] Suggestion on executing external programs from within php

2004-01-21 Thread John Clegg
le file2'); Any suggestions on what to use??? Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hello to making the php pages

2004-01-21 Thread John Nichel
Ryan A wrote: Hey hey hey, a little respect here guys, stop talking about this guy's (new) wifes colon...or her semi-colon :-p cheers, -Ryan You can always use php's enema(int bag-size [, string orifice]) function to fix the colon problems. -- By-Tor.com It's all about the Rush http://www.by-tor.

Re: [PHP] PHP and email attachments

2004-01-21 Thread John Nichel
Tim Thorburn wrote: Hi, A client of mine asked today if I could setup their current mass mailer to send out attachments - I've never sent attachments with the mail() function before, but before we get into that ... I wanted to ask an opinion of the group. Would it not be better, rather than s

Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread John Nichel
Dimitri Marshall wrote: Hi there, How would I go about getting the first 20 characters of a varibale or database entry. The situation is this, I created a calendar where users can post events and on the date instead of just a number (the number of events and the date), I would like to show the fi

Re: [PHP] Odd Code Error.

2004-01-21 Thread John Nichel
Chris W wrote: I challenge anyone to find a disadvantage in forcing decelerations of variables and functions, other than having to type more. Forcing declaration will create more list traffic... "I'm getting the error 'Variable $foo not declared on line 321', somebody fix my code..." And Jason

Re: [PHP] Question about array limits & practicallity

2004-01-21 Thread John Nichel
Joe Harman wrote: Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500 q

Re: [PHP] Odd Code Error.

2004-01-21 Thread John Nichel
[EMAIL PROTECTED] wrote: Ok i found something very interesting , i have a session var setup to check for a groupID which is an integer, if ($_SESSION['groupID']==1) { this was working, then when i changed it to if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i was going through

Re: [PHP] session variables

2004-01-22 Thread John Nichel
Diana Castillo wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL

Re: [PHP] passing session ID

2004-01-22 Thread John Nichel
Diana Castillo wrote: If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks You'll find some gr

Re: [PHP] Showing local date & time

2004-01-22 Thread John Nichel
Hamid Hossain wrote: Hi all, I am new member to the list, let's see ;) I am hosting my site in a shared hosting plan in US while I am in Saudi Arabia. I want to show the current datetime at my local. Should I use setlocale()? I mean is there a way which will give me the local datetime without cal

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote: For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it ou

Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote: As far as AddType goes for PHP this is what I have: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps

Re: [PHP] Suggestion on executing external programs from within php

2004-01-23 Thread John Clegg
xec('/usr/local/bin/process_file file1 &') Any ideas?? John Stuart wrote: John Clegg wrote: I would like to be able to execute 2 system calls simultaneously. I am not interested in the output and I would like to do the equivalent of a fork as these programs take a long time.

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Hello All, I am using php and Mysql in my application. The problem is that the system automatically logs the user out of the system after 24 minutes. I would like to extend the session lifetime to about 2-3 hrs. I know there is a way to do it using a .htaccess file kept

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Thanks John, I dont have rights t change this value for my webserver. I only want this value to be changed for my application. Is there a way to take care of this ? Thanks again !! Pushpinder Before you call session_start() ini_set ( "session.gc_maxlif

Re: [PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread John Nichel
Al wrote: I have a page that calls functions from two different include files. Unfortunately, some of the functions have the same name; but are slightly different. I know I can change the names of the conflicting functions; but, that is a bit of a chore. Is it possible to control from which in

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Thanks much John, I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages. You should only have to do it for the first time session_start() is called, but not

Re: [PHP] Re: simple ?- load page after submit

2004-01-23 Thread John Nichel
Matt Hedges wrote: That doesn't work... I think the problem may be because I don't have the id defined anywhere in the code (but it automatically writes it to MySQL). Huh? Is this from an auto increment field in MySQL...when a new user signs-up? When I put the code below, I get a "can't send he

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Actually the user is only allowed to get to any page if he has logged on. Thus all the remaining pages check to see if a session has been registered, if so then the person is allowed to to go on with his session. If the session did not exist he is redirected to a login p

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
John W. Holmes wrote: From: "John Nichel" <[EMAIL PROTECTED]> php_value session.gc_maxlifetime "number of seconds" I'm really curious to see if any of this really works. I know it _should_, but... Assuming a shared/virtual server where all session files for all

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
John W. Holmes wrote: If you just change the session.save_path variable for one site on your box to something like /tmp/onesite, do you still have to write your own garbage routine? Wont the autamatic php garbage collection know to only cleanup sessions in the /tmp/onesite directory? Is the

Re: [PHP] Re: simple ?- load page after submit

2004-01-23 Thread John Nichel
Matt Hedges wrote: John, yes, it's from an auto incremement field in MySQL the id comes from a new db entry... i really appreciate your help, Matt Please reply to the group, and not just me. This way, other people who may have the same problem can find the answer in the archives. If

Re: [PHP] what PHP really needs

2004-01-23 Thread John Nichel
> On Fri, 2004-01-23 at 12:42, PHP general wrote: > >> There's 1 really important thing missing in PHP as I see it, and it's the >> ability to keep variables in memory for as long as >> the programmer choose. If this was possible there could be some truly great >> optimizations done. Some things

[PHP] Apology (Re: what PHP really needs)

2004-01-23 Thread John Nichel
Seems I struck a cord with some of the people on this mailing list with my Cold Fussion, ASP/.NET comment. I forgot to put my little smirk ;) after the comment. To those that I offended, I'm sorry. Just a FYI though, it's in my contract that I must hack on the MS people at least once a day.

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread John Nichel
jon wrote: I'm not sure if it's obvious to you geeks, but for those who don't know trademark law, you need to defend your trademark or it falls into the public domain. Hence, if Canon's copiers refer to how well they xerox, then it's a problem. (Same way for Jello, Kleenex, etc...) Microsoft's law

Re: [PHP] what PHP really needs

2004-01-24 Thread John Nichel
Marlon Moyer wrote: Like Hamid Said, if the ColdFusion server has the query already in memory. It doesn't need to send traffic to another server to get the information again. Most systems I've worked on have the db and the web server on different areas of a firewall, so you're going through a lot

Re: [PHP] what PHP really needs

2004-01-24 Thread John Nichel
Chris Shiflett wrote: As for the ColdFusion versus PHP discussion, I'm not really interested. What about a Godzilla versus the Shrek dragon discussion? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] binary code, unreadable code etc

2004-01-24 Thread John Nichel
Ryan A wrote: server to use the files..BCompiler seems good but is still too young, and I dont know or have a C++ compiler to use BinaryPHP gcc can be a C++ compiler. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] include date

2004-01-25 Thread John Nichel
John Taylor-Johnston wrote: I want to include ("/home/myaccount/calendars/"+nameofmonth+".htm") How can I get the name of the current month? I'm sure this is an easy one, I'm too tired to see it. include ("/home/myaccount/calendars/"+date(f)+".htm&qu

Re: [PHP] Challenge: Sessions & Frames

2004-01-25 Thread John Nichel
Chris Shiflett wrote: Regardless of what you mean by that, it should be clear that nothing except client-side scripting is going to happen until your browser makes another request. PHP is sitting on the server, twiddling its thumbs. Thumbs? Holy cow, is that a new feature in PHP5? ;) -- By-Tor.

Re: [PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-09 Thread John Donagher
you have any opinion on the email I sent about language case discrepancies the other day? I was kind of surprised that no one responded. Thanks John -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.i

RE: [PHP] Shopping Carts

2001-01-10 Thread John Guynn
ild a cart from scratch. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, January 10, 2000 10:18 AM To: PHP User Group Subject: [PHP] Shopping Carts Hello, I am making a shopping cart. I am wo

RE: [PHP] PHP simulator

2001-01-10 Thread John Guynn
I just installed Apache, PHP, and MySQL onto my personal NT (ok Win2K) machine for testing and development. It was really simple...took less than an hour total to get working. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Todd Cary [mailto:[EMAIL

Re: [PHP] PHP simulator

2001-01-10 Thread John Meyerhofer
my website provider. Works pretty slick. John "Todd Cary" <[EMAIL PROTECTED]> on 01/10/2001 04:14:48 PM To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> cc: Subject: [PHP] PHP simulator Is there a PHP simulator for NT? One that can be used for testing a

Re: [PHP] PHP simulator

2001-01-11 Thread John Meyerhofer
p.net/manual/install-windows95-nt.php Apache install instructions on WinXX - http://httpd.apache.org/docs/windows.html Good luck! John "Todd Cary" <[EMAIL PROTECTED]> on 01/10/2001 05:10:50 PM To: "John Meyerhofer" <[EMAIL PROTECTED]> cc: [EMAIL PROTECTE

[PHP] Performance question

2001-01-11 Thread John Guynn
Do I pay a performance penality for calling a file that only contains html code .php or .php3? In otherwords what is the php parser overhead if there is no php code in the file? John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] apache+php4 error ..

2001-01-12 Thread John Meyerhofer
/php4apache.dll" ^ ^ John "Naresh Chafekar" <[EMAIL PROTECTED]> on 01/12/2001 01:58:50 AM To: [EMAIL PROTECTED] cc: Subject: [PHP] apache+php4 error .. I have windows98, apache 1.3.14, php4. After adding following line in httpd.conf file

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