Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Nathan Taylor
This problem should be handled by modifying the php.ini. In my experience W3C is a whiney bitch that always gets it's way. Just throw this code on all your pages (or better yet, in a header) and the problem will go away. // The communists at W3C don't like the ampersand, so let's make sure it

Re: [PHP] Re: uncompressing gz string

2003-10-24 Thread Curt Zirzow
* Thus wrote Adam Zey ([EMAIL PROTECTED]): I've had the exact same problem. I get .html.gz files uploaded to me. My script does a file_get_contents on those, and then tried to use gzinflate or gzuncompress. Neither works. Instead I use a shell command to use the 'gzip' program to do the

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Chris Shiflett
--- Nathan Taylor [EMAIL PROTECTED] wrote: This problem should be handled by modifying the php.ini. In my experience W3C is a whiney bitch that always gets it's way. Just throw this code on all your pages (or better yet, in a header) and the problem will go away. // The communists at W3C

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Matt Babineau
All this aside what about using the ASCII value of the symbol. (I think its ASCII). You know how sometimes links with spaces in them are %20 instead of the actual space? I'm not sure what it is but I am pretty sure there is a %something for and ampersand symbol. That may workif its not

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Chris Shiflett
--- Matt Babineau [EMAIL PROTECTED] wrote: All this aside what about using the ASCII value of the symbol. (I think its ASCII). You know how sometimes links with spaces in them are %20 instead of the actual space? I'm not sure what it is but I am pretty sure there is a %something for and

RE: [PHP] prepend file to all scripts...

2003-10-24 Thread Jonathan Villa
It looks like auto_prepend_file will do this for all of my apps... I'll look into the .htaccess option On Fri, 2003-10-24 at 15:07, Wouter van Vliet wrote: Add: php_value auto_prepend_file /path/to/file To your .htaccess or VirutualHosts section. You might also want to

[PHP] install questions

2003-10-24 Thread rogue
i just installed php and when i try to load a php file into the browser through apache, the file downloads instead of being displayed. is this an apache problem or a problem with my php install? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] install questions

2003-10-24 Thread Jonathan Villa
What is your platform? Not that it mattes a whole lot... Make sure the httpd.conf file has #LoadModule php4_modulemodules/libphp4.so LoadModule php5_modulemodules/libphp5.so (whichever is the one you need, probably 4) AddType application/x-httpd-source .phps AddType

Re: [PHP] install questions

2003-10-24 Thread Burhan Khalid
rogue wrote: i just installed php and when i try to load a php file into the browser through apache, the file downloads instead of being displayed. is this an apache problem or a problem with my php install? This is a problem with your php install (you need to make sure you edit your

[PHP] Weird problem when creating a db connection and trying to reference it in a function

2003-10-24 Thread Matt Babineau
Hey all- I found another strange problem. I am creating a mysql database connection like this: @ $db = mysql_pconnect(host, user, pass); mysql_select_db(dbname); Now, I have a function that inside uses mysql_list_fields() function getFields($table, $dbname) { $fields =

[PHP] usort

2003-10-24 Thread Shmuel
Hi, I'm trying sort an array. It has entries like this: file_1.ext file_2.ext file_3.ext file_10.ext file_40.ext and so on. I want to sort them alphabetically first and then by the numbers. If I sort them normally I get them like this: file_1.ext file_10.ext file_2.ext file_3.ext file_40.ext

[PHP] MysSQL db not restoring

2003-10-24 Thread Chris W. Parker
Sorry for the OT post but here goes... I do nightly dumps of a MySQL database and now I've finally mistakenly emptied some tables I shouldn't have. I'd like to restore last nights dump file. This is the command I'm using: mysql -u username -ppassword db_name db_name.dump I'm getting the

[PHP] Got myself confused

2003-10-24 Thread Tom Wollaston
I have been trying to write some code for a simple menu system. The idea was that every item on a menu should be tied to anouther to give a menu structure. To do this I have tried to use the following code. Some of it I have added in to try and understand why its not really working. My first

Re: [PHP] usort

2003-10-24 Thread Curt Zirzow
* Thus wrote Shmuel ([EMAIL PROTECTED]): file_1.ext file_2.ext file_3.ext file_10.ext file_40.ext function mycmp($a, $b) { if ($a == $b) { return 0; } $a_n = preg_match(/\D+(\d+)\D+/, $a, $a_out); $b_n = preg_match(/\D+(\d+)\D+/, $b,

Re: [PHP] MysSQL db not restoring

2003-10-24 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): I'm getting the following error: ERROR 1064 at line 118: You have an error in your SQL syntax near 'unique (email) ) TYPE=MyISAM' at line 21 You probably have a field name that is a keyword of some sort. Hard to tell without seeing the

Re: [PHP] Got myself confused

2003-10-24 Thread Curt Zirzow
* Thus wrote Tom Wollaston ([EMAIL PROTECTED]): $null=getinfo('0'); for ($i=1; $i=sizeof($null); $i++); { print_r($null); /* print $nul[$i]['name']; . This wont print (even uncommented) it should be $null! $j=$null[$i]['id']; . your sql statement doesn't fetch the 'id'

[PHP] Integrating interbase.so

2003-10-24 Thread Todd Cary
I have interbase integrated with php on my RH 9 server *BUT* I lost my notes on how I did it. What I do have is interbase.so and it is in the /usr/lib/php4 directory. I need to setup another server and I would like to know how to integrate interbase with php/apache. Todd -- PHP General

Re: [PHP] usort

2003-10-24 Thread Shmuel
Curt Zirzow wrote: * Thus wrote Shmuel ([EMAIL PROTECTED]): file_1.ext file_2.ext file_3.ext file_10.ext file_40.ext function mycmp($a, $b) { if ($a == $b) { return 0; } $a_n = preg_match(/\D+(\d+)\D+/, $a, $a_out); $b_n = preg_match(/\D+(\d+)\D+/,

Re: [PHP] session_destroy causes backspace on IE

2003-10-24 Thread David Otton
On Fri, 24 Oct 2003 15:42:45 -0400, you wrote: Tried breaking up the echo, but still didn't work. What PHP version are you using? 4.10, maybe? http://bugs.php.net/bug.php?id=14695 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] usort

2003-10-24 Thread David Otton
On Sat, 25 Oct 2003 04:03:12 +0300, you wrote: I don't know what the names are. I just know that there might be numbers. :) It still doesn't work. It gives very odd results with the $x_out variables. ?php function cmp ($a, $b) { if ($a == $b) {

Re: [PHP] Integrating interbase.so

2003-10-24 Thread Evan Nemerson
On Friday 24 October 2003 05:58 pm, Todd Cary wrote: I have interbase integrated with php on my RH 9 server *BUT* I lost my notes on how I did it. What I do have is interbase.so and it is in the /usr/lib/php4 directory. I need to setup another server and I would like to know how to integrate

[PHP] Post form variables to a frame

2003-10-24 Thread Luis Lebron
How can I post a form to the left frame of a frameset. I want to have an user submit a form that opens a frameset. The left frame contains the results of a query based on the posted parameters. What I want to create is a master detail page. Let's say a person is looking for a particular car. They

Re: [PHP] Weird problem when creating a db connection and trying to reference it in a function

2003-10-24 Thread Burhan Khalid
Matt Babineau wrote: I found another strange problem. I am creating a mysql database connection like this: @ $db = mysql_pconnect(host, user, pass); mysql_select_db(dbname); you forgot the $ ... should be mysql_select_db($dbname); If you had turned up your php error reporting level

Re: [PHP] Post form variables to a frame

2003-10-24 Thread Evan Nemerson
On Friday 24 October 2003 06:08 pm, Luis Lebron wrote: How can I post a form to the left frame of a frameset. I want to have an user submit a form that opens a frameset. The left frame contains the results of a query based on the posted parameters. Try setting the target attribute of the form

RE: [PHP] Post form variables to a frame

2003-10-24 Thread Luis Lebron
I tried that but it did not work. Luis -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:14 PM To: Luis Lebron; [EMAIL PROTECTED] Subject: Re: [PHP] Post form variables to a frame On Friday 24 October 2003 06:08 pm, Luis Lebron wrote:

Re: [PHP] Post form variables to a frame

2003-10-24 Thread Evan Nemerson
On Friday 24 October 2003 08:28 pm, Luis Lebron wrote: I tried that but it did not work. What about javascript? There are several ways- create a form then submit it w/ the js, build a URI and set the frame's location, etc. If you need help with this I suggest a javascript forum or usenet.

RE: [PHP] Post form variables to a frame

2003-10-24 Thread Pablo Gosse
On Friday, October 24, 2003 8:28 PM Luis Lebron wrote I tried that but it did not work. Can you post the html code you used? Setting form action=foo.php target=frame should do the trick. This is very standard, so if it's not working that's very strange. Post the code so we can take a look.

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread olinux
--- Chris W. Parker [EMAIL PROTECTED] wrote: I've always been a big fan of: echo td bgcolor=\$bgcolor2\nbsp;/td/tr; uggh - apparently you've never had to redesign a site/application that uses this style. This is one table cell, but when you work this style through a big app, it's a huge

Re: [PHP] Integrating interbase.so

2003-10-24 Thread Todd Cary
Evan - Many thanks for the help. I have very little experience with Linux, so the only time I have to get envolved is when I need to make some change (otherwise my Linux server just runs quietly behind my desk :-) ) If I remember correctly, I need to go to /usr/src/php-4.3.2 and run the

[PHP] Trying to start a session

2003-10-24 Thread Jough Jeaux
The very simple following script: ? session_start(); ? Produces an error that says it can't write the file for the session. The permissions for /tmp are rwxrwxrwt Any ideas on how I can fix this? Thanks! These are the exact errors: Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417,

<    1   2