Re: Re[2]: [PHP] Scripts creating files and folders into un/grp Nobody on Apache

2004-03-11 Thread Jay
sorry but i'm trying to avoid putting my ftp login in password directly into my script. i should have mentioned that earlier. any other ideas? Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thursday, March 11, 2004, 5:52:08 PM, you wrote: Use the php ftp functions

[PHP] preg_split problem

2004-03-11 Thread [EMAIL PROTECTED]
I have a problem separting a text string with the preg_split function If somebody could help, it would be greatly appreciated. - The problem I have is that my code, so far, does the job, except it recognises ALL : and not only those following PAGE. This should be fairly easy to solve?

[PHP] Question on PDF upload

2004-03-11 Thread Jeffrey Lee
Hi all, I am new to this newsgroup, hello all! I've written a script for my collueages to upload PDF file to the web server (apache 2.0.40). I do it via a http form submit. Here's the form tag of it form name=fileUpload enctype=multipart/form-data action=upload.php method=POST onSubmit=return

Re: [PHP] Re: Listing for a specific list of files

2004-03-11 Thread David Robley
On 11 Mar 2004 at 10:18, Brent Clark wrote: Hi David Thanks for your feedback but im look not looking for the search to be based on the extension the fault it mine: im more looking for with the equivalent of ls -l 00* I basically just want all files with 00. Kind Regards Brent

[PHP] apache lookdown

2004-03-11 Thread Marc Greenstock
Hi all, A long time ago I became accustomed to writing my php navigation structure using what I think is called apache lookdown (correct me if im wrong). Basically what it does is when a user types in www.example.com/index.php/doc/1/ apache checks to see if there is a directory called

Re: [PHP] ASP to PHP language problems

2004-03-11 Thread Stuart
Richard Davey wrote: unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable, but if you are working in a Register Globals ON environment, it's a good safety measure). I've seen a few people recommending this type of thing. Please explain how this is any safer

Re: [PHP] How to make sure a redirect works

2004-03-11 Thread Christophe Chisogne
Vincent Jansen wrote: If you output a location header then I don't know what the browser will do with text sent after that. Hopefully nothing! Be carefull to exit() php code after header-location (and some text, see below): otherwise code following will be executed! It's a common error. I

[PHP] Trouble with ftp_get function

2004-03-11 Thread Benjamin
I'm sorry if this has already been asked before... I am trying to make a small ftp app using this line to download files: if( !ftp_get( $conn_id , C:\thefile.txt , $HTTP_GET_VARS['file'] , FTP_BINARY ) ) $error = true; I know I have a connection, and $HTTP_GET_VARS['file'] is the path of the

Re: [PHP] Question on PDF upload

2004-03-11 Thread Raditha Dissanayake
ifIf you can view the file in your reader (before uploading) , the most likely that you have exceeded the upload limit or something related to that. hope you find the artilce at http://www.radinks.com/upload/config.php usefull in configuring your php to handle large uploads. All the baest

Re: [PHP] Trouble with ftp_get function

2004-03-11 Thread Raditha Dissanayake
If you are using double quotes teh file name should be c:\\thefile.txt Benjamin wrote: I'm sorry if this has already been asked before... I am trying to make a small ftp app using this line to download files: if( !ftp_get( $conn_id , C:\thefile.txt , $HTTP_GET_VARS['file'] , FTP_BINARY ) )

Re: [PHP] Question on PDF upload

2004-03-11 Thread Jeffrey Lee
Hi, I am sorry about that I didn't mention about the file size of that pdf. It's less than 1MB and I have checked my php.ini that it allows post_max_size = 8M. So, in my little knowledge, I think it's alright. Thanks for your help. Jeffrey - Original Message - From: Raditha

Re: [PHP] Question on PDF upload

2004-03-11 Thread Raditha Dissanayake
There's more to it than that post_max_size have you looked at ALL the settings that could effect file uploads, some of them are not very obvious. Jeffrey Lee wrote: Hi, I am sorry about that I didn't mention about the file size of that pdf. It's less than 1MB and I have checked my php.ini that

[PHP] Inconv in PHP5 compile

2004-03-11 Thread electroteque
Hi there, sorry to repost this,i am still trying after 2 weeks to try and get PHP5 installed on solaris 9, it looks like it will try and install domxml via default, i installed libxml with packages and i think libxml or php is trying to get to this link grep: can't open /usr/local/lib/libiconv.la

Re[4]: [PHP] Scripts creating files and folders into un/grp Nobody on Apache

2004-03-11 Thread Richard Davey
Hello Jay, Thursday, March 11, 2004, 8:04:36 AM, you wrote: J sorry but i'm trying to avoid putting my ftp login in password directly into J my script. i should have mentioned that earlier. Unless you have the ability on the server to change the usergroup Apache runs under, the only way I've

Re: [PHP] Pspell Functions!! problem I explain in English

2004-03-11 Thread Kim Steinhaug
Hello, I completed the innstallation for the PSPELL on my Windows2000 on Apache. What you need to do is : 1. Download the win32 port from aspell.net 2. Download the dictionaries you need 3. Install the win32 port 4. Install the dictionaries 5. Edit the php.ini and comment out

Re: [PHP] Spelling without Aspell/Pspell

2004-03-11 Thread Justin French
On Thursday, March 11, 2004, at 01:48 PM, Evan Nemerson wrote: On Wednesday 10 March 2004 05:59 pm, Justin French wrote: Has anyone written/found a library (commercial/free/whatever) that can be used like Aspell/Pspell, but doesn't require a recompile of PHP? If modules are okay, there's an

RE: [PHP] If Using PHP CLI to Query Oracle8I DB, is Version Numbe r Critical?

2004-03-11 Thread Ford, Mike [LSS]
-Original Message- From: Martin McCormick [mailto:[EMAIL PROTECTED] Sent: 10 March 2004 21:31 To: [EMAIL PROTECTED] Subject: [PHP] If Using PHP CLI to Query Oracle8I DB, is Version Number Critical? We use PHP 4.3.4 (cli) to query a Microsoft SQL database server with no

[PHP] refresh parent window after submit of child

2004-03-11 Thread Ryan A
Hi, I have an expiry_date field on a webpage, if the client wants to edit it he clicks on the Edit link and a small window pops up with the current expiry date, after he changes it and hits submit its changing it properly in the DB...but the parent window still shows the old expiry date... I have

[PHP] DOM XML and php

2004-03-11 Thread Tassos T
Hello, I face a problem. I have a php script and I send a xml request to a server. After I receive xml data but I have this data to an php string variable. How to create a xml dom with out to write a xml file ? I want to use a xslt to tranform that xml data. Any idea ? Thanks tassos --

RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-11 Thread XMG
On Wed, 10 Mar 2004, Shaunak Kashyap wrote: I downloaded the file from www.GaryKeith.com and set up the php.ini entry to point to it. Then I called get_browser() and it returned nothing. Once again, my configuration is as under: OS: Linux Red Hat Enterprise WS PHP: 4.2.3 Web server:

[PHP] $_GET, expressions and conditional statements

2004-03-11 Thread I.A. Gray
Hi everyone, I know this is probably really simple, but I am not very good at expressions and conditional statements. I am wanting to show a list from a MYSQL database. I am using the URL to store the variables that control the output. The variable $ORDER can be set to ASC (Ascending), DESC

[PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
?php $xmlstr = 'blabla1blabalabalab/bla1/bla'; if(!$dom = domxml_open_mem($xmlstr)) { echo Error while parsing the document\n; exit; } // The root domdocument node $root = $dom-document_element(); ///Dump the content back to string var_dump($dom-dump_mem()); ? Read the manual in the DOM XML

[PHP] creating prev next link

2004-03-11 Thread Awlad Hussain
I have a search page display results in the format Search results -- Product ID NameMore Info -- 1Egg

RE: [PHP] Re: DOM XML and php

2004-03-11 Thread Tassos T
Thanks for your reply but I have another problem I have an xml string if I use this code ? header(Content-Type: text/xml); echo $xml_string; ? I can see the xml tree but I cannot transform with te xslt. Eg. ? $xp = xslt_create(); $result_xsl = xslt_process($xp, $xml_string, 'myxsl.xsl');

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
The problem you have is that you do not use DOMXML tranformations, you use Sablotron tranformations (xslt extension). DOMXML and XSLT are 2 different extensions (and you cannot mix each-others' objects, you must use the same objects of DOM or XSLT). You should use DOMXML's functions (are faster,

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
If you really want to use Sablotron (although I tried it I not liked it as much as DOMXML, gimme a sign, and I'll debug you. Regards, Lucian COZMA @ InterAKT Tassos T [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for your reply but I have another problem I have an xml

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
It should look something like (pretty much extracted from manual): ?php // $xml and $xsl contain the XML and XSL data ($xsl = file_get_contents('myxsl.xsl') and $xml ='blabla1lalala/bla1/bla $arguments = array( '/_xml' = $xml, '/_xsl' = $xsl ); // Allocate a new XSLT processor $xh =

Re: [PHP] preg_split problem

2004-03-11 Thread Jason Wong
On Wednesday 10 March 2004 19:53, [EMAIL PROTECTED] wrote: I have a problem separting a text string with the preg_split function If somebody could help, it would be greatly appreciated. - The problem I have is that my code, so far, does the job, except it recognises ALL : and not only

Re: [PHP] If Using PHP CLI to Query Oracle8I DB, is Version Numbe r Critical?

2004-03-11 Thread Martin McCormick
A thousand thanks. This is all starting to make a bit of sense. Martin McCormick Ford, Mike [LSS] writes: For an Oracle 8i database you want the OCI extension, not the Oracle extension. OCI should be the extension of choice for Oracle version 7 and later. -- PHP General Mailing List

Re: [PHP] Back Button produces Parse Error

2004-03-11 Thread Jough P
Just in case anyone is interested, this problem with the BACK button happens with the Safari browser on a Mac OS X machine. I've discovered that the problem can be solved by emptying the browsers cache. On Mar 8, 2004, at 7:43 PM, Jough P wrote: Anyone else had this problem where one of your

Re: [PHP] How to make sure a redirect works

2004-03-11 Thread Henry Grech-Cini
Thankyou all, There's a lot of info here but I guess that I can summaries it as follows: 1) Do not redirect if the page is visited as the result of a POST 2) Keep text after header(Location: ...) to an absolute minimum. Namely a href=../a 3) Use absolute URLs not relative ones. 4) If you

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 21:15, I.A. Gray wrote: I know this is probably really simple, but I am not very good at expressions and conditional statements. I am wanting to show a list from a MYSQL database. I am using the URL to store the variables that control the output. The variable

[PHP] object oriented php game... how classes interact question

2004-03-11 Thread Adam Reiswig
Hello all. I am getting ready to write a simple online game using html php. Since I am learning about php classes I thought it would be fun to try my hand at writing all the scripting in object oriented style. I have done as much research as I can find just about and the only thing I have

[PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either through

RE: [PHP] creating prev next link

2004-03-11 Thread Jay Blanchard
[snip] Just say, Dave clicks on the apple to find out more info of this product.. on the product page how do i generate a prev link to take Dave to Egg details and next to take Dave to oil and once Dave is reading oil product details.. he should have prev link to Apple and next to meat any

RE: [PHP] Empty Post Variables

2004-03-11 Thread Jay Blanchard
[snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either

[PHP] how classes interact question clarification question

2004-03-11 Thread Adam Reiswig
To clarify my question, can one class directly call a function or change a variable of another class or is the main php file the only way to interact between the two or more classes? Thanks again!! -Adam R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Screen Res

2004-03-11 Thread Alex Hogan
I am trying to get the users screen res into a var for php. And I have the Javascript that gets the screen res. But when I try to put that into a var, it puts it in as a string, storing the javascript code instead of the results of that code. Is there a way to fix this? Here is a link that

Re: [PHP] Empty Post Variables

2004-03-11 Thread Richard Davey
Hello Trevor, Thursday, March 11, 2004, 2:24:03 PM, you wrote: TS Unpredictably, however, the variables that should contain the TS post data are sometimes empty. Register Globals is set to on, and TS Hitting the refresh button a couple of times seems to get the TS data into the variables, and

RE: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
I'll try that now. Trevor Jay Blanchard[EMAIL PROTECTED] 3/11/2004 9:37:48 AM [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are

Re: [PHP] Regexp Oddity

2004-03-11 Thread trlists
On 11 Mar 2004 Raditha Dissanayake wrote: print Matches: . preg_match('/((?i)rah)\s+\1/', RAH RAH) . \n; print Matches: . preg_match('/((?i)rah)\s+\1/', rah rah) . is what you should use. Oh. Of course -- I knew it was obvious! This also works: print Matches:

RE: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
When the $variableName is empty so is the $_POST['variableName']. When the data gets to the script, it's available from either method of access. Trevor Jay Blanchard[EMAIL PROTECTED] 3/11/2004 9:37:48 AM [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an

RE: [PHP] Re: DOM XML and php

2004-03-11 Thread Tassos T
Thanks I use this code and it works. tassos -Original Message- From: Lucian COZMA [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: DOM XML and php It should look something like (pretty much extracted from manual): ?php //

[PHP] Eregi question

2004-03-11 Thread Dave Carrera
Hi List, I Know this is basic and I am sorry to bother the list with this question but I am confused, probably working to hard :-) I want to end up with a part of a string returned by $_POST to work with in my function. The string might be put into the text box like so, its a domain name

[PHP] Get nice variables from POST

2004-03-11 Thread Mike Mapsnac
I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname = $_POST['name']; $city =

RE: [PHP] apache lookdown

2004-03-11 Thread Brian Paulson
I had the same problem when we just moved and were able to solve it with this Directory /path/to/httpdocs Options Indexes MultiViews AcceptPathInfo On /Directory Hth Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] www.chieftain.com 1-800-279-6397 x 207 -Original

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Marek Kilimajer
Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email']; $email2 = $_POST['email2']; $nickname =

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Teren
If you have register_globals on in your php.ini file, you don't need to do that. You just automatically have access to all of those variables like $username and $password etc. Whatever the name is on the field is what the string will be called and the action script can access those immediately by

[PHP] OOP Get Parent data

2004-03-11 Thread Rolf van de Krol
Hi everybody, In the code below are three x-char in the function parent_test of the class browser. What do I have to type there when I want to get the var $test from the session-object. class session { var $test=TEST; var $browser; function init() { $this-browser = new browser; } } class

Re: [PHP] Get nice variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Mike Mapsnac wrote: I'm looking for nice way to get variables from POST? Well you can do it easily with extract: extract($_POST); This has the same security risks as turning register_globals on, it allows hackers to set any variable they wish. A better method might

Re: [PHP] Get nice variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Teren wrote: If you have register_globals on in your php.ini file, you don't need to do that. You just automatically have access to all of those variables like $username and $password etc. Whatever the name is on the field is what the string will be called and the action script

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Mike Mapsnac
Thanks. It looks much nicer :) From: Marek Kilimajer [EMAIL PROTECTED] To: Mike Mapsnac [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Get nice variables from POST Date: Thu, 11 Mar 2004 15:59:07 +0100 Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fields

Re: [PHP] Get nice variables from POST

2004-03-11 Thread joel boonstra
On Thu, Mar 11, 2004 at 02:51:25PM +, Mike Mapsnac wrote: I have about 10 fields in the form. And I get the fields through POST: //Get Variable from the form $username = $_POST['username']; $password = $_POST['password']; $password2 = $_POST['password2']; $email = $_POST['email'];

Re: [PHP] Eregi question

2004-03-11 Thread Da Koenich
hi dave, try this: $temp = explode('.',$_POST['variable']); $domainname = $temp[1]; greetz da koenich Hi List, I Know this is basic and I am sorry to bother the list with this question but I am confused, probably working to hard :-) I want to end up with a part of a string returned by

[PHP] OT Kinda - Top Posting

2004-03-11 Thread Jay Blanchard
[rant] I know that I am going to seem the ultimate arse this morning, but I have grown tired of folks not using basic list etiquette. Can you all please stop top posting? It makes the posts harder to follow. Please break the habit right now. I know that some of the regulars have quit answering

Re: [PHP] Eregi question

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 22:50, Dave Carrera wrote: I want to end up with a part of a string returned by $_POST to work with in my function. The string might be put into the text box like so, its a domain name checker, http://www.domainname.com I have already got rid of the http:// and

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Ryan A
Does this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; Hi Marek, A bit confused...whats the meaning of the double $ for key...or is that a typo? Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: DOM XML and php

2004-03-11 Thread Lucian COZMA
I have a question please (I'm trying to clarify something for me): Why do you preffer Sablotron to DOMXML ? As I'm developping XML/XSLT framework applications, I'm trying to understand why would our clients use it instead of DOMXML and adapt to it if there is a good reason for it. I want to know

RE: [PHP] Eregi question

2004-03-11 Thread Dave Carrera
Thanks da koenich, Although $temp[0] gives me the domain name rather than the tld but thanks very much for your help, I knew it was easy :-) Yours Truly Dave C -Original Message- From: Da Koenich [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 15:19 To: Dave Carrera Cc: [EMAIL

Re[2]: [PHP] Get nice variables from POST

2004-03-11 Thread Richard Davey
Hello Ryan, Thursday, March 11, 2004, 3:29:32 PM, you wrote: Does this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; RA A bit confused...whats the meaning of the double $ for key...or is that a RA typo? It creates a variable

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
Inline braces or dropped braces? C versus Java? This is a highly subjective argument. Go look at the comments on the PHP site... they flow in reverse chronological order so you don't need to scroll to the bottom. Anyways I always seem the ass when I take the devil's advocate position on this, and

[PHP] Re: Get nice variables from POST

2004-03-11 Thread Michael Nolan
Ryan A wrote: Does this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; Hi Marek, A bit confused...whats the meaning of the double $ for key...or is that a typo? Thanks, -Ryan This manual page explains:

Re[2]: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Richard Davey
Hello Robert, Thursday, March 11, 2004, 3:43:24 PM, you wrote: RC flat, doesn't make it so. Anyways I'm not targeting you, I think too RC much time is wasted arguing about top versus bottom posting. Personally RC I respect the poster's decision to post how they feel is best. Although I don't do

Re: Re[2]: [PHP] Get nice variables from POST

2004-03-11 Thread Ryan A
Hey Richard, See Chapter 7 (Variables) of the PHP manual. I remember reading about variable variables and also remember not understanding them :-) Will go through ch.7 again. Thanks. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Neil Freeman
How about this - untested by the way: $order = ASC; if (isset($_GET[ORDER])) { $value = $_GET[ORDER]; if (($value == ASC) || ($value == DESC)) { $order = $value; } else if ($value == RAND) { $order = RAND();

Re: [PHP] OOP Get Parent data

2004-03-11 Thread Stuart
Rolf van de Krol wrote: class session { var $test=TEST; var $browser; function init() { $this-browser = new browser; } } class browser { function parent_test() { return xxx; } } I tried $this-parent-test but it doesn't work. Can anybody help me? There is no implicit reference created in

[PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Hello all, I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? The one workaround I've found is: http://www.phpbuilder.com/annotate/message.php3?id=1012940 But it's very inelegant

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Brian V Bonini
On Thu, 2004-03-11 at 10:19, Jay Blanchard wrote: [rant] I know that I am going to seem the ultimate arse this morning, but I have grown tired of folks not using basic list etiquette. Can you all please stop top posting? It makes the posts harder to follow. Please break the habit right now. I

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Stuart
Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? Not that I know of. I have several cli php scripts that access mysql databases on FreeBSD and Win2k. There must be

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread James E Hicks III
On Thursday 11 March 2004 10:47 am, Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? I ain't never heard anything like this before. I do it all the time. Just

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Adam Voigt
It's trivial, just as if you were compiling for Apache, you just use the --with-mysql flag, and it will just work. On Thu, 2004-03-11 at 10:47, Ian Firla wrote: Hello all, I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests

[PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
Hi All, I know this may be a bad time..., that whole top posting vs. bottom posting debate has got me riveted, (especially after getting a monitor full the other day), but I have a question. I have a page that displays a survey. 11 questions all separated in a switch statement on a page

[PHP] Generating Advanced Subheadings

2004-03-11 Thread Nicole
Can we take this one step further and make it so that if you're searching and you want to only see histories with the words parking in the title or only the histories between 1500 1550 it only puts the year headings for the years that actually have a history that meets this criteria? Thanks

[PHP] R: [PHP] Get nice variables from POST

2004-03-11 Thread Alessandro Vitale
hi, why don't you simple use the $_POST vars? they are already available to you, so why you should copy them? example: function show_function() { $query = SELECT * FROM user WHERE user_id = ${_POST['user_id']}; } at the same time: - you save a lot of time ( you don't need to write

RE: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, March 11, 2004 7:20 AM said: Can you all please stop top posting? It makes the posts harder to follow. Please break the habit right now. i agree. and for those of you that would like to stop top posting and you also use outlook, there's

Re: [PHP] Empty Post Variables

2004-03-11 Thread Trevor Shaw
Thanks to several people who replied. Yes, my initial tests confirm that this is a result of the IE post bug. Turning off HTTP_Keep_Alive in apache seems to have fixed the problem. Trevor Richard Davey[EMAIL PROTECTED] 3/11/2004 9:42:04 AM Hello Trevor, Thursday, March 11, 2004, 2:24:03 PM,

[PHP] Installation of 4.3.4

2004-03-11 Thread edwardspl
Dear All, Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? Very thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 00:15, Alex Hogan wrote: case 1: if(empty($_SESSION['sellocation'])){ $_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? redirect('cf_survey.php?cf=0'); If you want to set a session variable (and keep it set) when

Re: [PHP] Installation of 4.3.4

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 00:07, [EMAIL PROTECTED] wrote: Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? ./configure would do fine. If you want bells and whistles then read the output of ./configure

Re: [PHP] Question on PDF upload

2004-03-11 Thread Tom Dangler
Try manipulating these values in php.ini to get what you want: post_max_size = 8M upload_max_filesize = 2M max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit =

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 23:43, Robert Cummings wrote: Here we go again. Inline braces or dropped braces? C versus Java? This is a highly subjective argument. Go look at the comments on the PHP site... they flow in reverse chronological order so you don't need to scroll to the bottom.

RE: [PHP] Loosing redirect in if...else

2004-03-11 Thread Alex Hogan
$_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. If you want to set a session variable (and keep it set) when you do a redirect you need to the close the session first. Thanks..., alex

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Thanks everyone for your advice. The problem appears to be with the debian package which I was using. I tried compiling php from source as Adam suggested and the script now runs flawlessly. Ian On Thu, 2004-03-11 at 16:47, Ian Firla wrote: Hello all, I have a shellscript written in php

RE: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Ryan A
Now THIS is more like it. After a good arguement a solution was given that suits quite a few people (me included) I think its good to respect someone elses preferences or if you want them to change...give them something to do so not just tell them. BTW, the monster side of me insisted that I top

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
On Thu, 2004-03-11 at 12:28, Jason Wong wrote: On Thursday 11 March 2004 23:43, Robert Cummings wrote: Here we go again. Inline braces or dropped braces? C versus Java? This is a highly subjective argument. Go look at the comments on the PHP site... they flow in reverse chronological

Re: [PHP] Loosing redirect in if...else

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 01:32, Alex Hogan wrote: $_SESSION['selloction'] = '0'; 1) Are you sure you don't have a typo above? I checked the code and it's just in this post. Fat finger day. Please, in future, whenever you post code use copy and paste. It will save you, and people responding

[PHP] Re: creating prev next link

2004-03-11 Thread Justin Patrin
Awlad Hussain wrote: I have a search page display results in the format Search results -- Product ID NameMore Info -- 1

[PHP] Visit Counter through .htaccess

2004-03-11 Thread Sakitram
Excuse me Is there a way to count the visitors of my homepage without using any PHP scripts and LOG files? I mean is it possible through .htaccess file? If you have a solution, I kindly request you to answer precisly as I am a baby to PHP. Thank you.

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Rob Adams
Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Marek Kilimajer [EMAIL PROTECTED] $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key]; Thanks. It looks much nicer :) Along the same lines, I've found this helpful when

Re: [PHP] Visit Counter through .htaccess

2004-03-11 Thread Michal Migurski
Is there a way to count the visitors of my homepage without using any PHP scripts and LOG files? Sure: perl, cgi, shellscripts, etc. I mean is it possible through .htaccess file? If you mean solely through the .htaccess file, then no - something has to store that hit count someplace.

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Jason Wong
On Friday 12 March 2004 01:51, Robert Cummings wrote: sheeple == sheeple (the sheep like followers in both cases not necessarily thinking and choosing for themselves) I think this is a reference to the sheeple who accept unquestioningly what MS gave them? But sometimes being stubbornly

Re: [PHP] Get nice variables from POST

2004-03-11 Thread trlists
On 11 Mar 2004 Rob Adams wrote: Along the same lines, I've found this helpful when inserting into mysql. foreach($_POST as $key = $val) $$key = mysql_escape_string($val); I just wrote a cleanup routine which applies a number of transformations -- it's called at the start of every page

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Robert Cummings
On Thu, 2004-03-11 at 13:45, Jason Wong wrote: On Friday 12 March 2004 01:51, Robert Cummings wrote: sheeple == sheeple (the sheep like followers in both cases not necessarily thinking and choosing for themselves) I think this is a reference to the sheeple who accept unquestioningly

[PHP] Dumb

2004-03-11 Thread PHP
Hi, I have a dum question. I recently picked up a new RH9 dedicated server. Apache 2, Mysql 3 and php4 are all installed , via rpm I am assuming. I upgraded mysql to version 4, however, php is still using the version 3 client. (from php_info) How do I get php4 to use the mysql4 client? I

RE: [PHP] Dumb

2004-03-11 Thread Jonathan Villa
Go to rpmfind.net and see if you find one... Or see if you uninstall all the mysql RPMs and use the ones from mysql.com/downloads. They also have an RPM client. -Original Message- From: PHP [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:32 PM To: php Subject: [PHP]

RE: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 14:19 On Thursday 11 March 2004 21:15, I.A. Gray wrote: What I want the script to do is set $SPORDER to this value. If $_GET['ORDER'] is not set then it gets the default value (ASC), if

Re: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Michal Migurski
Anyway the last word I'll say on this is that top-posting usually results in your message going to the trash can unread (sometimes it may be read but it will still be thrown into the trash with digust!) Which is just as silly as being stubbornly wrong just because you don't want to be a sheep,

[PHP] Loosing $_SESSION vars somewhere...

2004-03-11 Thread Mark Henry
Hello everyone! I'm running PHP v4.3.3 on an Apache server. I'm using $_SESSIONS to track student information while they're in a course. Every once in a while some of the session vars suddenly go blank! What disappears is the information gathered and stored from the login - so it's the oldest

[PHP] Problem with PDFlib

2004-03-11 Thread Teren
Hi, I just moved a site to a new server. I haven't touched the site forever and i forgot how to use PDFlib (using fpdf now). Anyways, i'm getting this error: Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in

Re: [PHP] Visit Counter through .htaccess

2004-03-11 Thread Teren
What i would do is use fwrite() and fopen() and such and store count in a txt or whatever file if that's the way you want to do it. Teren - Original Message - From: Sakitram [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:20 PM Subject: [PHP] Visit Counter

  1   2   >