RE: [PHP] PHP + FDF and Opera

2004-08-04 Thread Nicklas Bondesson
No, I'm not using any sessions. I read about that it might have something to to with it, but I'm not using it. Though, it is working in IE and Netscape browsers, but not in Opera. Could it have something to do with the MIME type extension or something like that? When I'm using Opera Adobe will l

Re: [PHP] Location header does not work?

2004-08-04 Thread Skippy
Quoting Justin Patrin <[EMAIL PROTECTED]>: > On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > > The latest message I got was 'Redirection limit for this URL exceeded. > > Unable to load the requested page.This may be caused by cookies that are > > blocked.'. > > Your p

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Craig Donnelly
Show the code you are using... Craig "Andy Loftus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have any ideas as to why $_POST would be empty when > submitting a form to php? > > I am running PHP5 as CGI in apache 1.3.22 on redhat linux. > I've also tried php4.3.8 CG

[PHP] script seize memory in while loop

2004-08-04 Thread Torsten Rosenberger
Hello i have a class to import files i read in a file (size 30 MB) line by line in the first example memory usage ist the same class myimp { function myimp() function Start() { fp = fopen (...) while ($buffer = fgets(fp, 500)) { // here i can check the data nothing wrong memory i

[PHP] Checking for form submission

2004-08-04 Thread Shaun
Hi, I am trying to create some code to check whether a form has been submitted. The following code seems to print evertime, whether a form has been submitted or not: if (isset($_POST)) { echo '(isset($_POST))'; } This seems most odd, could someone tell me why this happens? Thanks for your he

Re: [PHP] Checking for form submission

2004-08-04 Thread eoghan
I am trying to create some code to check whether a form has been submitted. The following code seems to print evertime, whether a form has been submitted or not: if (isset($_POST)) { echo '(isset($_POST))'; } why not just if( $_POST) { echo $_POST; } -- PHP General Mailing List (http://w

[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Hi Shaun, Your expression is evaluating, if you like does the $_POST superglobal exist and it does but might be empty, this would be the same for $_GET and other superglobals. If you did the following: if (isset($_POST) && !empty($_POST)) { echo '(isset($_POST))'; } This would only appear i

Re: [PHP] Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 17:25, Shaun wrote: > I am trying to create some code to check whether a form has been submitted. > The following code seems to print evertime, whether a form has been > submitted or not: > > if (isset($_POST)) { > echo '(isset($_POST))'; > } > > This seems most odd,

Re: [PHP] php5: configure --with-pear but there's no pear?

2004-08-04 Thread Jacob Friis Larsen
When I do configure --with-pear I would assume that pear would be available after make install, but it isn't. Any ideas? How is it 'not available'? Did the PEAR directory/files not install? Is your system not finding them? I got it now, I think I missed some Debian packages. Thanks, Jacob -- PHP G

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 17:34, Craig Donnelly wrote: > If you want to test to see if a form has been submitted, I would suggest > that you > use the name from the submit button. > > e.g - > > if(isset($_POST['sendform'])){ > echo "Form has been submitted!"; > } > > So basically this check

[PHP] Field name function in PHP 5

2004-08-04 Thread Mark van Beneden
Hi all, this function in PHP 5 does not work for me: msql_field_name (PHP 3>= 3.0.7, PHP 4 , PHP 5) msql_field_name -- Get field name Description string msql_field_name ( resource query_identifier, int field) msql_field_name() returns the name of the specified field from the result resource que

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt you agree Jason? Craig "Jason Wong" <[EMAIL PROTECTED]> wrote

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 18:02, Mark van Beneden wrote: > When I write: echo "".msql_field_name($result). ""; > I get the error message: > Fatal error: Call to undefined function msql_field_name() in c:\Program > Files\Apache Group\Apache\htdocs\mysqli_send.php on line 37 May I ask what DB you

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 18:21, Craig Donnelly wrote: > Ok, in simple form - If the submit button was clicked, > If some one hits enter this would be a problem, easy way to resolve > this would be to have a hidden form element flagged and to terst for that > instead of the > submit button, would

[PHP] Field name function in PHP 5

2004-08-04 Thread Mark
Hi all, this function in PHP 5 does not work for me: msql_field_name (PHP 3>= 3.0.7, PHP 4 , PHP 5) msql_field_name -- Get field name Description string msql_field_name ( resource query_identifier, int field) msql_field_name() returns the name of the specified field from the result resource que

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_name() in c:\Program Files\Apache Group\Apache\htdocs\mysqli_send.php on line 37 [/snip] If you are using (as has been pointed out before) MySQL the correct name

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
Thanks, but I have tried this one as well as many others. It did not help. Mark "Jay Blanchard" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_nam

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Thanks, but I have tried this one as well as many others. It did not help. Mark [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_name() in c:\Program Files\Apache Group\Apache\htdocs\mysqli_send.php on l

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Yes, it is. Other functions like mysqli_fetch_field work well. I have to use mysqli functions, but I cannot find the one for mysql_field_name. Normally I have to add the i for a function, but mysqli_field_name does not exist. [/snip] What about mysqli_fetch_field or mysqli_fetch_fields ? -

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Instead of the actual column name it gives Object id #3 as a default for the column name or header. See here: Database Selected: Query: SHOW DATABASES; Results [/snip] a. always reply beck to the list in the event that whoever may have responded hasn't disappeared for some reason, which m

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Please check my php file. [/snip] III. And never, ever send attachments unless requested to do so. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Old HTML convert to XHTML Class?

2004-08-04 Thread Jay
Hi! Is there any class, functions etc that will convert old HTML to XHTML. I want to send in some HTML text and get XHTML back. e.g: the following would be converted: in="hello" out="hello" or something like that. Any opensource, commercials? Thanx In Advance Jay -- PHP General Mailing List (http

RE: [PHP] Old HTML convert to XHTML Class?

2004-08-04 Thread Jay Blanchard
[snip] Is there any class, functions etc that will convert old HTML to XHTML. I want to send in some HTML text and get XHTML back. e.g: the following would be converted: in="hello" out="hello" [/snip] Have you searched phpclasses.org? Google? -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] mysql_connect and PHP 5.0

2004-08-04 Thread Jim Grill
Can you paste us your configure line for php? It sounds like you forgot to include mysql or perhaps you configured with mysqli instead. The two are very different. Regards, Jim Grill Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Michael Marold" <[EMAIL PROTECTED]

Re: [PHP] Old HTML convert to XHTML Class?

2004-08-04 Thread Christian Stocker
On Wed, 04 Aug 2004 14:57:45 +0200, Jay <[EMAIL PROTECTED]> wrote: > Hi! > > Is there any class, functions etc that will convert old HTML to XHTML. > > I want to send in some HTML text and get XHTML back. try tidy as external tool, or even better the tidy extension as native php extension chreg

Re: [PHP] Old HTML convert to XHTML Class?

2004-08-04 Thread Jay
Christian Stocker wrote: On Wed, 04 Aug 2004 14:57:45 +0200, Jay <[EMAIL PROTECTED]> wrote: Hi! Is there any class, functions etc that will convert old HTML to XHTML. I want to send in some HTML text and get XHTML back. try tidy as external tool, or even better the tidy extension as native php ext

RE: [PHP] Query Results Question

2004-08-04 Thread Ford, Mike [LSS]
-Original Message- From: Harlequin To: [EMAIL PROTECTED] Sent: 04/08/04 01:55 Subject: [PHP] Query Results Question I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy Type' FROM vacancy_details WHER

RE: [PHP] Query Results Question

2004-08-04 Thread Thijs Lensselink
It should be ` (back-ticks) not single quotes SELECT `ID`, `Vacancy Role`, `Vacancy Salary`, `Vacancy Location`, `Vacancy Type` FROM vacancy_details WHERE Publish = 'Yes' But you don't really need the back-ticks! Thijs Ford, Mike [LSS] wrote: > -Original Message- > From: Harlequin

[PHP] User IP

2004-08-04 Thread M
How can I get a user's IP who is behind a proxy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Request for Help/Information

2004-08-04 Thread Andy Baldwin
Would someone be willing to suggest a solution to a coding problem? After the following code (downloads a text file from the host server to my PC), how can I redirect the script to another one? I have tried without success: header("Location: Echo_UploadBatch.php?filename=" . $filena

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
Thanks for the tips. I do not know what you mean by a DESCRIBE table query. I hope that my "problem" is clear to you. I want to be able to use queries for MySQL. I am learning from the book PHP & MySQL for dummies. All the learning material uses PHP functions like mysql_field_name, but this does

RE: [PHP] User IP

2004-08-04 Thread Nicklas Bondesson
As far as I'm conserned you can't. The proxy will hide all it's client IP's and will only display it's own. Nicke -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of M Sent: den 4 augusti 2004 15:46 To: [EMAIL PROTECTED] Subject: [PHP] User IP How can I get a user's IP w

Re: [PHP] Request for Help/Information

2004-08-04 Thread John Holmes
Andy Baldwin wrote: Would someone be willing to suggest a solution to a coding problem? After the following code (downloads a text file from the host server to my PC), how can I redirect the script to another one? $user_agent = strtolower($_SERVER["HTTP_USER_AGENT"]); header("Content-

RE: [PHP] User IP

2004-08-04 Thread Ivan Kovalenko
Nicklas Bondesson wrote: Actually, there's way to determine real user's IP, checking $_SERVER["HTTP_CLIENT_IP"], $_SERVER["HTTP_X_FORWARDED_FOR"] and, finally, $_SERVER["REMOTE_ADDR"]. But this may not give certain and correct result. > As far as I'm conserned you can't. The proxy will hide all i

[PHP] single dimensional array questions

2004-08-04 Thread Adam Williams
Here is my snippet of code. It takes cardnum from the database, removes the duplicates for each individual date, and then counts how many discrete numbers there was. //database connect and selection here, now my sql statement: $sql = "select convert( varchar,eventime, 110) as date, cardnum f

RE: [PHP] User IP

2004-08-04 Thread Nicklas Bondesson
Your'e right. the $_SERVER["HTTP_X_FORWARDED_FOR"] should work in this case. Nicke -Original Message- From: Ivan Kovalenko [mailto:[EMAIL PROTECTED] Sent: den 4 augusti 2004 16:36 To: [EMAIL PROTECTED] Subject: RE: [PHP] User IP Nicklas Bondesson wrote: Actually, there's way to determ

Re: [PHP] User IP

2004-08-04 Thread John Nichel
On Wednesday 04 August 2004 09:45, M offered up the following tid-bit of information : > How can I get a user's IP who is behind a proxy? Ask them for it? ;) Seriously, there is no sure fire method to do this. Of course, 9 times out of 10 the IP of the system behind the proxy will be of no use

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
Craig Donnelly wrote: Show the code you are using... I'm having the same problem. Here is a test script that prints Array() regardless of what you enter and submit with the form: -- test.php -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jon Bertsch
Hi all, I have found a problem using the str_replace() function in PHP5. Over this past weekend we switched our production server to php5.0.0 running on apache 1.3.31 on SUSE9.1. Our development environment is identical. I have an application that runs a series of str_replace calls to drop in so

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jason Davidson
is it possbile $this->year isnt what you expect? Jason Jon Bertsch <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have found a problem using the str_replace() function in PHP5. Over this > past weekend we switched our production server to php5.0.0 running on > apache 1.3.31 on SUSE9.1. Our

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Jason Davidson
How about print_r($_REQUEST); Dan Phiffer <[EMAIL PROTECTED]> wrote: > > Craig Donnelly wrote: > > Show the code you are using... > > I'm having the same problem. Here is a test script that prints Array() > regardless of what you enter and submit with the form: > > -- test.php -- > > > >

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jon Bertsch
Jason wrote: >is it possbile $this->year isnt what you expect? If I hard code the value it makes no difference and it works fine in php4.3.x and in dev just not on php5 with some load on the server. It was tested on the same server before moving to live production and it worked then as well.

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jason Davidson
Yup, i understand not in php 5, there was some large OO changes in php 5, which is why i asked about $this->year. Ive been using php 5 for the last year, and havent had a problem with str_replace, and have used it a fair amount for loading email templates. So when you look at the source, the @@F

[PHP] what file holds my databases

2004-08-04 Thread Hull, Douglas D
Really stupid question. I set up apache, mysql, phpadmin etc., and started personal web sharing of course on my mac and created a couple of databases. My question is on my hard-drive, where and/or what file holds my databases? Thanks for any help, Doug -- PHP General Mailing List (http://www.

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jon Bertsch
Jason, This code is not using any OO the variable is $this_year not $this->year. Running it under php5 on my dev box the string replace function works and replaces the text as expected. Jon Bertsch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] what file holds my databases

2004-08-04 Thread John Nichel
On Wednesday 04 August 2004 11:53, Hull, Douglas D offered up the following tid-bit of information : > Really stupid question. I set up apache, mysql, phpadmin etc., and > started personal web sharing of course on my mac and created a couple of > databases. My question is on my hard-drive, where

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jason Davidson
My mistake on $this_year. Jon Bertsch <[EMAIL PROTECTED]> wrote: > > > Jason, > > This code is not using any OO the variable is $this_year not $this->year. > > Running it under php5 on my dev box the string replace function works and > replaces the text as expected. > > Jon Bertsch > >

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
I use MySQL: C:\mysql\bin>mysqladmin version status proc C:\MYSQL\BIN\MYSQLA~1.EXE Ver 8.40 Distrib 4.0.20a, for Win95/Win98 on i32 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to mod

[PHP] Combining two variables...

2004-08-04 Thread Tristan . Pretty
I'm trying to create a links page, and I wanna filter by category. Anyhoo, What I need to do, is have one block of code that I repeat ad neaseum, based on each category, so if I adda new category, I don't need to add new code... All good so far. So I have a variable $show_links but I wanna chan

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Curt Zirzow
* Thus wrote Jon Bertsch: > ... > > $html_output_1 .= $html_string[0]; > > $output = str_replace("@@FISCAL_YEAR@@", $this_year, $html_output_1 ); > > (I call it three times to do the replacements in the string). > > ... > > On our development box this little application runs fine. In productio

Re: [PHP] Combining two variables...

2004-08-04 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > I'm trying to create a links page, and I wanna filter by category. > Anyhoo, > What I need to do, is have one block of code that I repeat ad neaseum, based on each > category, so if I adda new category, I don't need to add new code... > > All good so far. > So

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Curt Zirzow
* Thus wrote Mark: > I use MySQL: C:\mysql\bin>mysqladmin version status proc > C:\MYSQL\BIN\MYSQLA~1.EXE Ver 8.40 Distrib 4.0.20a, for Win95/Win98 on i32 > Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB > This software comes with ABSOLUTELY NO WARRANTY. This is free software,

Re: [PHP] Combining two variables...

2004-08-04 Thread John Nichel
On Wednesday 04 August 2004 11:50, [EMAIL PROTECTED] offered up the following tid-bit of information : > I'm trying to create a links page, and I wanna filter by category. > Anyhoo, > What I need to do, is have one block of code that I repeat ad neaseum, > based on each category, so if I adda new

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Jon Bertsch
Jason, Thanks for looking. Very perplexing (to me at least). Jon Bertsch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] single dimensional array questions

2004-08-04 Thread Curt Zirzow
* Thus wrote Adam Williams: > ... > > And now my question. What I need to do is create a single > dimensional array that contains each number that > count(array_unique($value)) is counting. how would I do this? I can't > use the SQL query because I have to remove duplicate cardnums for each

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jon Bertsch
Assuming the snippet is correct, your function is not spelled correctly. You should be using mysql_field_name() or mssql_field_name() (MySQL or MS SQL respectively). Jon Bertsch [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined func

Re: [PHP] Old HTML convert to XHTML Class?

2004-08-04 Thread Jay
Jay Blanchard wrote: [snip] Is there any class, functions etc that will convert old HTML to XHTML. I want to send in some HTML text and get XHTML back. e.g: the following would be converted: in="hello" out="hello" [/snip] Have you searched phpclasses.org? Google? Yes i have searched but couldn´t

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
Jason Davidson wrote: How about print_r($_REQUEST); That also fails to reflect posted data. $_GET is working as expected. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread John W. Holmes
From: "Dan Phiffer" <[EMAIL PROTECTED]> > Jason Davidson wrote: > > > How about > > print_r($_REQUEST); > > That also fails to reflect posted data. $_GET is working as expected. There's nothing in PHP that would not let POST values get through. Are you sure this isn't a web server issue only allow

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Dan Phiffer
John W. Holmes wrote: There's nothing in PHP that would not let POST values get through. Well, I think there are means of disabling the registration of $_POST, but that's not relevent to this problem. Are you sure this isn't a web server issue only allowing GET requests to pages that it serves? I

[PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread Josh Acecool M
Any ideas? "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Josh Acecool M wrote: > > var $The_Template_Sys; > > > > $this -> The_Template_Sys = file_get_contents("$The_Template_File"); > > > > $this -> Sub_Template = TRUE; > > Please respond to the list and not me per

[PHP] Session Expire...

2004-08-04 Thread Scott Fletcher
Run that again about php.ini configuration on the session expiration. I looked up at http://www.php.net/manual/en/ref.session.php and it said --snip-- session.cache_limiter specifies cache control method to use for session pages (none/nocache/private/private_no_expire/public). Defaults to nocache

Re: [PHP] Request for Help/Information

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 09:04:33 -0500, Andy Baldwin <[EMAIL PROTECTED]> wrote: > Would someone be willing to suggest a solution to a coding problem? > > After the following code (downloads a text file from the host server to > my PC), how can I redirect the script to another one? > >$user_age

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 08:14:55 -0700, Jon Bertsch <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have found a problem using the str_replace() function in PHP5. Over this > past weekend we switched our production server to php5.0.0 running on > apache 1.3.31 on SUSE9.1. Our development environment is

[PHP] opposite of array_unique()?

2004-08-04 Thread Adam Williams
array_unique() removes duplicate values from an array. Is there an opposite function or way of keeping all values in a single dimentional array that are duplicates and removing all that are duplicates? for example if I have an array: array( [0] => 'dog', [1] => 'cat', [2] => 'rabbit', [3] => '

[PHP] Re: Session Expire...

2004-08-04 Thread Scott Fletcher
I think I'm looking at it the wrong way. Both of them are not related to the 1 hour session timeout that I set up with I think there is no such feature and that I would have to write a custom PHP script to manage that. Am I right?? FletchSOD "Scott Fletcher" <[EMAIL PROTECTED]> wrote in mes

Re: [PHP] opposite of array_unique()?

2004-08-04 Thread Afan Pasalic
$animals = array('dog', 'cat', 'rabbit', 'cat'); $duplicates = array_count_values($animals); foreach($duplicates as $key => $value) if($value > 1) $new_array[] = $key; print_r($new_array); afan At 02:20 PM 8/4/2004, Adam Williams wrote: array_unique() removes duplicate valu

Re: [PHP] opposite of array_unique()?

2004-08-04 Thread Curt Zirzow
* Thus wrote Adam Williams: > for example if I have an array: > > array( [0] => 'dog', [1] => 'cat', [2] => 'rabbit', [3] => 'cat') > > how do I make it just have array ( [0] => 'cat' )? i want to drop the > non-duplicates and trim the array to only have one of the duplicates? If you're pullin

Re: [PHP] opposite of array_unique()?

2004-08-04 Thread Jason Davidson
you could loop thru the array, and using a nested loop, test each value against all other values.. and keep ones that match in a new array. But as mentioned, SQL would be easier. Jason Curt Zirzow <[EMAIL PROTECTED]> wrote: > > * Thus wrote Adam Williams: > > for example if I have an array: >

[PHP] CMS Ideas Welcome

2004-08-04 Thread charles kline
Hi all, I could use some advice/pointers on a sold method for achieving this feature on a site I am building. One of the features is an event calendar. The events are listed by date, not in a calendar view, but a list with a short description of the event. This part is no problem. What I am not

[PHP] PHP log parser. Newbie help.

2004-08-04 Thread Gwadj
I have just succesfully installed PHP and need one script @ work. No idea how to do that and I have to have it about in two weeks. :) So please help! Anyways I want to parse some words from log file and then output the line wich contains this words. Simple script I think. Log file format: Mon Aug

RE: [PHP] CMS Ideas Welcome

2004-08-04 Thread Ed Lazor
http://www.interaktonline.com/products/KTML/ > -Original Message- > Hi all, > > I could use some advice/pointers on a sold method for achieving this > feature on a site I am building. One of the features is an event > calendar. The events are listed by date, not in a calendar view, but a

RE: [PHP] CMS Ideas Welcome

2004-08-04 Thread Vail, Warren
I am hosting a few sites on PHPNuke and have modified PHPNuke to use the HTMLArea JavaScript addon to allow textareas to be edited in wysiwyg fashion, without having to deal with HTML. Initial reaction seems to be very favorable, especially the htmlarea version with the image manager plugin. http

[PHP] Premature end of script headers

2004-08-04 Thread Kevin Schroeder
Hello, I'm having the weirdest problem. I'm trying to install PHP as a CGI program using SuExec and FastCGI but I keep on getting a "Premature end of script headers: php" error in my Apache error_log. I got it working when I set up PHP to run as a CGI program when there's no virtual hosts,

[PHP] Re: [SPAM] Re: [PHP] Old HTML convert to XHTML Class

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 19:02:41 +0200, Jay <[EMAIL PROTECTED]> wrote: > Jay Blanchard wrote: > > [snip] > > Is there any class, functions etc that will convert old HTML to XHTML. > > > > I want to send in some HTML text and get XHTML back. > > > > e.g: the following would be converted: > > in=" > size

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 13:20:00 -0400, John W. Holmes <[EMAIL PROTECTED]> wrote: > From: "Dan Phiffer" <[EMAIL PROTECTED]> > > Jason Davidson wrote: > > > > > How about > > > print_r($_REQUEST); > > > > That also fails to reflect posted data. $_GET is working as expected. > > There's nothing in PHP th

[PHP] HTTP POST then Redirect?

2004-08-04 Thread Jeff Oien
I'm using the code below to post form data to an ASP script. But I need to redirect to a "thank you" page when it all done or the person filling out the form sees what they're not supposed to see. Any way I can do this? If take out the last line and print a header(URL) it won't post the data. T

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > I'm using the code below to post form data to an ASP script. But I need > to redirect to a "thank you" page when it all done or the person filling > out the form sees what they're not supposed to see. Any way I can do > this

[PHP] Variable Variables adn Superglobals

2004-08-04 Thread ARico
Using Variable Variables works fine inside functions for global defined variables if you declare them as global inside the function. Suprinsingly, it does not seem to work with superglobals. Take the following example: // code $va

[PHP] Re: [Q] Converting SQL Datetimes to timestamps

2004-08-04 Thread Michael T. Peterson
Thanks, everyone. I appreciate this very much. Cheers, Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Evidently the strtotime() function will not convert an SQL datetime to a > timestamp. Am I missing something? Here's an example of what I mean: > >

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 23:15:03 +0200, ARico <[EMAIL PROTECTED]> wrote: > Using Variable Variables works fine inside functions for global > defined variables if you declare them as global inside the function. > Suprinsingly, it does not seem to work with superglobals. Take the > following example:

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
yeah, Dan's code fails as well. here's my code: ---START SNIP SNIP--- '); print_r($_POST); print('GET'); print_r($_GET); print('REQUEST'); print_r($_REQUEST); print(''); ?> POST FORM field one: field two: GET FORM field one: field two: ---END SNIP SNIP--- -- Andy On Wed,

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread AJL
I'm not sure if it is Apache or not. In fact, I wonder that it might be. However, I do not have any clue as to what it could be. We have 1 apache server running. It currently has php4.1.1 built as apache module. Code works fine for this build. In addition, I have php4.3.8 and php5.0.0 built a

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread ARico
Justin Patrin wrote: On Wed, 04 Aug 2004 23:15:03 +0200, ARico <[EMAIL PROTECTED]> wrote: Using Variable Variables works fine inside functions for global defined variables if you declare them as global inside the function. Suprinsingly, it does not seem to work with superglobals. Take the fol

[PHP] Re: [SPAM] Re: [PHP] Old HTML convert to XHTML Class

2004-08-04 Thread Jay
Justin Patrin wrote: On Wed, 04 Aug 2004 19:02:41 +0200, Jay <[EMAIL PROTECTED]> wrote: Jay Blanchard wrote: [snip] Is there any class, functions etc that will convert old HTML to XHTML. I want to send in some HTML text and get XHTML back. e.g: the following would be converted: in="hello" out="hell

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 16:47:45 -0500, AJL <[EMAIL PROTECTED]> wrote: > I'm not sure if it is Apache or not. In fact, I wonder that it might > be. However, I do not have any clue as to what it could be. > > We have 1 apache server running. It currently has php4.1.1 built as > apache module. Code w

Re: [PHP] Location header does not work?

2004-08-04 Thread Bing Du
Ok, now I'm confused and cannot understand the result of the following code snippet. After click the link that I want to redirect, the URL in the Address box of the browser changed from http to https fine (that's what I expected). But 'hello my friend' was also displayed. How come?

[PHP] Confused...need some programming logic

2004-08-04 Thread PHP Gen
Hi, I have 13 folders with a few thousand images each, now the client wants me to export the "gallerys" to another server that does not run phpso he wants plain .htm files. Below is how far I have come to "porting" this... the idea being: generate .html files then simply copy the images folder

Re: [PHP] Re: [SPAM] Re: [PHP] Old HTML convert to XHTML Class

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 23:55:12 +0200, Jay <[EMAIL PROTECTED]> wrote: > Justin Patrin wrote: > > On Wed, 04 Aug 2004 19:02:41 +0200, Jay <[EMAIL PROTECTED]> wrote: > > > >>Jay Blanchard wrote: > >> > >>>[snip] > >>>Is there any class, functions etc that will convert old HTML to XHTML. > >>> > >>>I wan

Re: [PHP] Location header does not work?

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 17:02:30 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > Ok, now I'm confused and cannot understand the result of the following > code snippet. After click the link that I want to redirect, the URL in > the Address box of the browser changed from http to https fine (that's > w

Re: [PHP] Re: Session Expire...

2004-08-04 Thread John Holmes
Scott Fletcher wrote: I think I'm looking at it the wrong way. Both of them are not related to the 1 hour session timeout that I set up with I think there is no such feature and that I would have to write a custom PHP script to manage that. Am I right?? A one hour timeout is better controlled

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 15:06:45 -0700 (PDT), PHP Gen <[EMAIL PROTECTED]> wrote: > Hi, > I have 13 folders with a few thousand images each, now > the client wants me to export the "gallerys" to > another server that does not run phpso he wants > plain .htm files. > > Below is how far I have come to

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-04 Thread John Holmes
Josh Acecool M wrote: >>> var $The_Template_Sys; >>> >>>$this -> The_Template_Sys = file_get_contents("$The_Template_File"); >>> >>>$this -> Sub_Template = TRUE; Any ideas? I have an idea I said in a previous email! you say you're getting a parse error. How could anyone possibly help you troublesh

[PHP] Problem Removing Text Updater Password

2004-08-04 Thread Chad Daniel
am new to PHP and I am having a problem removing a password restriction from a simple Text Updater script (below). I have a bunch of files that need to be protected and I am planning to use .htaccess, but this script calls for the password to be input before allowing the update (redundant for my

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Jeff Oien
Justin Patrin wrote: On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: I'm using the code below to post form data to an ASP script. But I need to redirect to a "thank you" page when it all done or the person filling out the form sees what they're not supposed to see. Any way

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread PHP Gen
--- Justin Patrin <[EMAIL PROTECTED]> wrote: > > 4: put 100 tags to call 100 images per page > > (confused here) > > I put some code inline below. Should work. If you > want a thumbnail > gallery, you could also create thumbnails using the > GD functions in > PHP, same them, and create an img

[PHP] webserver response-time, how?

2004-08-04 Thread Tobias Grønlund
Im trying to find a way of getting the responsetime from a remote webserver before it actually starts sending some output for your browser to read. Any ideas?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 17:39:51 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > > > Justin Patrin wrote: > > On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > > > >>I'm using the code below to post form data to an ASP script. But I need > >>to redirect to a "thank you" page wh

[PHP] Re: webserver response-time, how?

2004-08-04 Thread M. Sokolewicz
Tobias grønlund wrote: Im trying to find a way of getting the responsetime from a remote webserver before it actually starts sending some output for your browser to read. Any ideas?? try timing the fsockopen() or (whatever you use) call. :) That'll give you a reasonable estimate. - Tul -- PHP G

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 15:40:03 -0700 (PDT), PHP Gen <[EMAIL PROTECTED]> wrote: > > --- Justin Patrin <[EMAIL PROTECTED]> wrote: > > > > 4: put 100 tags to call 100 images per page > > > (confused here) > > > > I put some code inline below. Should work. If you > > want a thumbnail > > gallery, you c

  1   2   >