[PHP] how to use pclzip class

2003-10-24 Thread David T-G
Hi, all -- The pclzip documentation is woefully slim, or at least it is for those of us who don't speak French, and I don't know much about class programming anyway. I got the sucker downloaded and am require()ing it (I will later go and be a little more graceful about it) but my feeble attempt a

[PHP] scrolling tables within a page

2003-10-24 Thread Denis L. Menezes
Hello friends. My query output is about 20 to 30 records only. Instead of making the visitors scroll the whole page, can I make a scrolling table with the page such that the visitor scroll the results output table only? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Trying to start a session

2003-10-24 Thread Jough Jeaux
The very simple following script: 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, O_RDWR) failed: No such

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 confi

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 " "; > 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 pain (waste of time)

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 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. Cheers, Pablo -Original Mes

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 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 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 for

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 (error_reporti

[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] 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 integ

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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

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 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+/

[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 Maili

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

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 th

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+)\

[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 probl

[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 follo

[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 Wha

[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 = mysql_list_fields($dbnam

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 httpd.conf

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 application

[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: http://www.php.net/u

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

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 fo

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 alre

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

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 dec

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 i

[PHP] Re: Regular expressions

2003-10-24 Thread Michael Mauch
Fernando Melo wrote: > I have the following statement: > > $text = ereg_replace > ("[live/]*content\.php\?[&]*Item_ID=([0-9]*)&Start=([0-9]*)&Category_ID=([0- > 9]*)[&]*", "content\\1start\\2CID\\3.php", $text); > > Basically what I'm trying to do is if the URL includes "live/" then I want > to

Re: [PHP] New line characters and carriage returns

2003-10-24 Thread Curt Zirzow
* Thus wrote Jonathan Villa ([EMAIL PROTECTED]): > Ok, don't know what I am doing wrong here...but for some reason I cannot > get new line or carriage return characters to work correctly... > > For example, > > When I send some emails, I try > > $msg .= "From: [EMAIL PROTECTED] > Content-

[PHP] Problem using Arrays

2003-10-24 Thread Geeta Rajaraman
Hi: I am trying to create a function that can store the user's info. Currently I have this: sessionInfo.inc === userid; } /** * Method that returns the available groups. */ function getgroups(){ return $this -> group; } /** * Method to set the user id. * @

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

2003-10-24 Thread Ray
snip from: http://www.php.net/manual/en/configuration.directives.php auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value no

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

2003-10-24 Thread Wouter van Vliet
Add: php_value auto_prepend_file "/path/to/file" To your .htaccess or VirutualHosts section. You might also want to use auto_append_file Wouter -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Friday 24 October 2003 22:00 To: [EMAIL PROTECTED

[PHP] prepend file to all scripts...

2003-10-24 Thread Jonathan Villa
I thought I read that this was possible once, but I can't find anything to substantiate/refute it... Is it possible to prepend a configuration file to my pages? For example, I have a app.config.inc file which contains an application specific include path as well as includes the classes my appli

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Ray Hunter
Yeah, http://gtk.php.net Also they have a mailing list that you can join and get help from those experienced users. HTH -- Ray On Fri, 2003-10-24 at 13:26, Matt Palermo wrote: > I don't know much about that, but it definitely sounds better, escpecially > since it's still PHP based. Do you k

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

2003-10-24 Thread Burhan Khalid
Chris Shiflett wrote: --- Timo Boettcher <[EMAIL PROTECTED]> wrote: I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. I find that

Re: [PHP] session_destroy causes backspace on IE

2003-10-24 Thread bill
Hi Eugene, Tried breaking up the echo, but still didn't work. "; echo "logout"; echo ""; echo ""; echo "Logout page"; $_SESSION = array(); session_destroy(); echo "Session destroyed\n"; echo " \n"; ?> I know it is the session_destroy() command because commenting it out the problem goes away. ki

Re: [PHP] uncompressing gz string

2003-10-24 Thread Ray
i had a similar problem, it seems that a .gz file had 10 bytes of header that inflate and uncompress didn't like, or something wierd like that. but i can't find the code that i had in the end. http://www.php.net/manual/en/function.gzinflate.php but depending on how your actually using the data,

Re: [PHP] Is it worth $49? - codeSECURE 1.0 released - - Protecting PHP code

2003-10-24 Thread Adam Zey
I'm sorry to say I must agree with the parent post. There are too many free programs out there to charge 50$ for a program that does the same thing. The free programs might even do more than your 50$ product. mmcache's primary function is to cache compiled opcodes to speed up code execution. It's

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
I don't know much about that, but it definitely sounds better, escpecially since it's still PHP based. Do you know of any websites or tutorials I can go to to learn more about it? It sounds like a much better option. Thanks, Matt "Ray Hunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

[PHP] Re: uncompressing gz string

2003-10-24 Thread Adam Zey
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 decompression. This is a big bug that's been around a

Re: [PHP] session_destroy causes backspace on IE

2003-10-24 Thread Eugene Lee
On Fri, Oct 24, 2003 at 01:24:32PM -0400, bill wrote: : : The following code causes IE to break the tag. : : : logout : : : Logout page"; : $_SESSION = array(); : session_destroy(); : echo "Session destroyed\n"; : echo " : \n"; : ?> : : View/Source in IE: displays this (note broken): : :

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

2003-10-24 Thread Chris Shiflett
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke > my app, which seems not to be getting any parameters over URL > anymore. I find that *very* hard

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread John Nichel
Frank Tudor wrote: John, Sorry I did use htpasswd... Override? Do you have a snip from a config file that I can look at? I don't mind editing the httpd.conf manually. Frank This controls which options the .htaccess files in directories can override. Can also be "All", or any combination of "O

[PHP] uncompressing gz string

2003-10-24 Thread Decapode Azur
I don't understand why gzinflate and gzuncompress don't work? but if I make it from bash the content is there : cat hello.txt.gz | gunzip Hello! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
http://us3.php.net/manual/en/function.addcslashes.php --- Bas <[EMAIL PROTECTED]> wrote: > A textarea. > "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > When you make a file using data from what source? > > --- Bas <[EMAIL PROTECTED]> wrote: > > > Any help appr

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Ray Hunter
Also, I would like to point out that you could possibly use php-gtk to do some gui applications. Since it has a windows and *nix port you can use that too. I have built a couple of apps with it that pull snmp data from routers with it that worked great. I also used a java installer to install the r

Re: [PHP] php IDEs

2003-10-24 Thread Daniel Guerrier
zend.com has one and PHPEdit use what you like. --- "Lai, Kenny" <[EMAIL PROTECTED]> wrote: > can anyone recommend a good, and -free- PHP ide? > > thanks > kenny > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Raditha Dissanayake
hi, Great to hear that PHP is your language of choice. There are several SOAP libraries available and they come with good docs. However if you are building an image gallery type application, you will be able to do mos of the work just by using java.net package has has been pointed out. all the

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
I don't neccessarily WANT to mix the 2 languages. I just have an application on my webserver that uses MySQL databases and the script is all written in PHP (which I am pretty good at). The only reason I want to use JAVA is so a user can download and install a program that I write (since JAVA is p

Re: [PHP] php IDEs

2003-10-24 Thread John Nichel
Lai, Kenny wrote: can anyone recommend a good, and -free- PHP ide? thanks kenny Check the mailing list archives. This is discussed almost weekly. -- 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.ne

Re: [PHP] Php/mysql error....why?

2003-10-24 Thread Tom Rogers
Hi, Saturday, October 25, 2003, 2:50:46 AM, you wrote: RA> Hi, RA> I am running a very simple query to the database, basically select all the RA> firms which start with 0-9, RA> eg. RA> 1stcompany RA> 3isgood RA> etc RA> using this: RA> $qry = "select cust_no,firm from companies where firm LIKE `

[PHP] php IDEs

2003-10-24 Thread Lai, Kenny
can anyone recommend a good, and -free- PHP ide? thanks kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread John Nichel
Frank Tudor wrote: I have to apologies about this posting in advance so please don't flame me too bad for being off topic. Question: I want to create an .htaccess file to protect my files I did the passwrd -c /directory/file frank The above is wrong, the below is right htpasswd -c /path/to/f

Re: [PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Tom Rogers
Hi, Friday, October 24, 2003, 9:37:07 PM, you wrote: S> Hello S> I wonder if anyone can help me with this problem or suggest an alternative S> strategy. S> I have two PHP boxes, one windows box running PHP version 4.2.1 and DOM XML S> version 2.4.9, and the other one a FreeBSD box running PHP ve

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread Raditha Dissanayake
Hi, It's htpasswd and not passwd. As many others on this group i don't use the redhat config system it's lame. You will be better off editing httpd.conf and adding an AllowOverrides directive. best regards Frank Tudor wrote: I have to apologies about this posting in advance so please don't fla

[PHP] session_destroy causes backspace on IE

2003-10-24 Thread bill
The following code causes IE to break the tag. logout Logout page"; $_SESSION = array(); session_destroy(); echo "Session destroyed\n"; echo " \n"; ?> View/Source in IE: displays this (note broken): logout Logout pageSession destroyed h1> Details: Works fine in other browsers I've tried

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Marek Kilimajer
stripslashes Bas wrote: A textarea. "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] When you make a file using data from what source? --- Bas <[EMAIL PROTECTED]> wrote: Any help appreciated. Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscr

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

2003-10-24 Thread Marek Kilimajer
Whoops. The first sentense should be a question. Marek Kilimajer wrote: It breaks your server side scripts. & should be translated to & by the browser and never get to php. Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Cha

RE: [PHP] using mail() - what is max number of email addresses I can specify in To field?

2003-10-24 Thread Wouter van Vliet
Here's some of my considerations ;) First of all, for the matter of anti-spam, please do not use the to for more people than, well .. Usually just one actually. Rather use the 'Bcc:' line. If there's no personalized information in the email (you might, for example, want to start with "Good Afterno

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

2003-10-24 Thread Pablo Gosse
Hi, Timo. Why can't use use hidden fields instead of appending the values to the url? It would be the same to access them via $_GET['para1'] $_GET['para2] (unless you were using post as your method, in which case it would simply be $_POST['varname']) if they were on the url or in hidden fields.

[PHP] .htaccess question protect my php test environment

2003-10-24 Thread Frank Tudor
I have to apologies about this posting in advance so please don't flame me too bad for being off topic. Question: I want to create an .htaccess file to protect my files I did the passwrd -c /directory/file frank the set a password and then confirmed the password I created a .htaccess file with

RE: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Chris W. Parker
Bas on Friday, October 24, 2003 10:06 AM said: > A textarea. Hey do us all a favor (or you can just do me a favor) and trim your posts and don't top post. thanks. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/sof

Re: [PHP] New line characters and carriage returns

2003-10-24 Thread Richard Baskett
on 10/24/03 10:00, Jonathan Villa at [EMAIL PROTECTED] wrote: > ok, I see, I have to use double quotes around it... > > why is that? Because they actually have to be evaluated.. when they are in single quotes php thinks they are the string \r\n and not newline or carriage returns that they are w

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Bas
A textarea. "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When you make a file using data from what source? > --- Bas <[EMAIL PROTECTED]> wrote: > > Any help appreciated. > > > > Regards, > > > > Bas > > > > -- > > PHP General Mailing List (http://www.php.net/) >

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

2003-10-24 Thread Marek Kilimajer
It breaks your server side scripts. & should be translated to & by the browser and never get to php. Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which

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

2003-10-24 Thread John Nichel
Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that infor

Re: [PHP] New line characters and carriage returns

2003-10-24 Thread Jonathan Villa
ok, I see, I have to use double quotes around it... why is that? On Fri, 2003-10-24 at 11:57, Jonathan Villa wrote: > Ok, don't know what I am doing wrong here...but for some reason I cannot > get new line or carriage return characters to work correctly... > > For example, > > When I send som

[PHP] w3c-compliant form-action parameters

2003-10-24 Thread Timo Boettcher
Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL t

[PHP] New line characters and carriage returns

2003-10-24 Thread Jonathan Villa
Ok, don't know what I am doing wrong here...but for some reason I cannot get new line or carriage return characters to work correctly... For example, When I send some emails, I try $msg .= "From: [EMAIL PROTECTED] Content-Type: text/plain\r\n" And it doesn't work correctly... the Conte

RE: [PHP] Php/mysql error....why?

2003-10-24 Thread Dan Joseph
> `%0123456789%'"; You have a ` instead a ' before the %0123. I believe that is what is causing your grief. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php/mysql error....why?

2003-10-24 Thread Ryan A
Hi, I am running a very simple query to the database, basically select all the firms which start with 0-9, eg. 1stcompany 3isgood etc using this: $qry = "select cust_no,firm from companies where firm LIKE `%0123456789%'"; It gives me this error: Error: Unknown column '0123456789%'' in 'where cla

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Daniel Guerrier
When you make a file using data from what source? --- Bas <[EMAIL PROTECTED]> wrote: > Any help appreciated. > > Regards, > > Bas > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!?

[PHP] DOM XML difference between PHP versions 4.2.1 and 4.3.3

2003-10-24 Thread Simon
Hello I wonder if anyone can help me with this problem or suggest an alternative strategy. I have two PHP boxes, one windows box running PHP version 4.2.1 and DOM XML version 2.4.9, and the other one a FreeBSD box running PHP version 4.3.3 and DOM XML version 2.5.11. What I need to do is to join

[PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Bas
Any help appreciated. Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 12:03, Marek Kilimajer wrote: > Robert Cummings wrote: > >>echo " "; > > > > Unless your $bgcolor2 variable has double quotes in it, then the above > > is poor HTML style. I don't think omission of double quotes has been > > considered valid HTML since version 3 (admittedly t

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

2003-10-24 Thread Marek Kilimajer
Robert Cummings wrote: echo " "; Unless your $bgcolor2 variable has double quotes in it, then the above is poor HTML style. I don't think omission of double quotes has been considered valid HTML since version 3 (admittedly though, as long as they let it render, people will use it :) Cheers, Rob. Si

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

2003-10-24 Thread Chris W. Parker
Justin French on Friday, October 24, 2003 12:57 AM said: > I also adapted wrapping all variables in {parenthesis} so that PHP has > no chance of being confused heh... actually those are {curly braces} and these are (parenthesis). > No special chars or vars: > echo

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Raditha Dissanayake
Hi, For this scenario, Ray's suggestion of SOAP is IMHO the best option. But just out of curiosity why do you want to mix the two languages? If you are familiar with java you might be better off doing your server side stuff using J2EE. Then you might be able to use Object Streams for your commu

Re: [PHP] limit to elements in an array?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 04:48, Ian Truelsen wrote: > Is there an upper limit to the number of elements that can be in an > array? If so, what is that limit? I think it is only limitted by your computer's memory or the size of a long integer (2.4 billion or so). I did a test one day to see just how m

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

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 03:57, Justin French wrote: > On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote: > > [--CLIPPETY CLIP CLIP--] > > Whereas this is clear and easy to work with: > echo " "; > Unless your $bgcolor2 variable has double quotes in it, then the above is poor HTML st

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

2003-10-24 Thread olinux
> No special chars or vars: > echo ' '; > > For cases with vars and special chars, I think these > look terrible: > echo ' '; I'm a fan of this style - works great with syntax highlighting in homesite. olinux > echo " "; > > Whereas this is clear and easy to work with: > echo " ";

[PHP] Re: PHP 4.3.3 On Netscape WebServer

2003-10-24 Thread Michael Mauch
Benard Jean-Philippe wrote: >I don't find anything about PHP module/integration for netscape > webserver. Does somebody has done it or know where I can found interesting > articles? (how to compile PHP, how to make a module, ...). What about

Re: [PHP] Setlocale() not working

2003-10-24 Thread Curt Zirzow
* Thus wrote Mauricio Cuenca ([EMAIL PROTECTED]): > Hello, > > I'm trying to print the full date in spanish using the following lines: > > setlocale(LC_TIME, 'es_ES'); > strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, 12, 31, 2002)); > > But my sysadmin tells me that the server doesn't have the spani

[PHP] imap_set_quota() function

2003-10-24 Thread dimon
Hello, I'm trying to use PHP's imap_set_quota() function to manage user's quotas. I can set user's quota to 0 with: imap_set_quota($mbox, "user/afif", none); or imap_set_quota($mbox, "user/afif", 0); And for sure I can set user's quota to any other value > 0 But when I'm trying to delete quota (s

[PHP] Setlocale() not working

2003-10-24 Thread Mauricio Cuenca
Hello, I'm trying to print the full date in spanish using the following lines: setlocale(LC_TIME, 'es_ES'); strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, 12, 31, 2002)); But my sysadmin tells me that the server doesn't have the spanish locale installed. Is there a way that I can write the date in o

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Ray Hunter
Sorry, i forgot to mention the package that you might really want to review... java.net is the java package that provides all these classes, like URLConnection and Sockets as mentioned by another person. -- Ray On Fri, 2003-10-24 at 08:24, Ray Hunter wrote: > You have various options and it de

Re: [PHP] Globals on/off , PHP.ini and .htaccess - Best solution?

2003-10-24 Thread Eugene Lee
On Fri, Oct 24, 2003 at 02:59:58PM +0200, Ryan A wrote: : : (we are on a shared host and so dont have access to our php.ini file) : we are planning to turn globals off via a .htaccess file...nearly all our : php files are in root (/www/) , but we are also running a third party : application 1 dire

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Ray Hunter
You have various options and it depends on how you want to accomplish it and what you are familiar with. Java has many capabilities of doing network io (class HttpUrlConnect). You can contact your php page on your server and pull down the information (similar to what a browser does). Another alt

Re: [PHP] Globals on/off , PHP.ini and .htaccess - Best solution?

2003-10-24 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > > They are fooling around with the default settings of their accounts and > giving us funny results and basically being a PITA, asking them nicely to Put in their .htaccess something like: php_value engine off :) > > all sub directories too went off.

[PHP] Re: Avoiding blank lines in HTML when field is empty

2003-10-24 Thread Robb Kerr
On Thu, 23 Oct 2003 12:46:29 -0500, Robb Kerr wrote: Thanx for all the help. Your suggestions worked beautifully. Robb > I'm a PhP /MySQL newbie so please excuse the simple question. I'm returning > results from a MySQL query on a webpage. My code includes... > > > $row_rsVandyDivAddre

RE: [PHP] Using PHP with JAVA

2003-10-24 Thread Gregory Kornblum
For this you will want to use a standard socket to port 80 with "GET yourscript.php?var=foo HTTP/1.0\r\n\r\n" in the send method and the recieve method will return the results. They have higher level APIs for HTTP but this is my preference. You should easily be able to find examples on using socket

Re: [PHP] including files from different sub directories

2003-10-24 Thread Curt Zirzow
* Thus wrote Allex ([EMAIL PROTECTED]): > Hi all, > > What's the syntax for including/requiring files located in directories > different than the root directory? Especially files from different sub > directories under the root? Going down ("classes/globals.php") is ok, > but going up ("../globa

[PHP] Re: get user attributes php/ldap/win2k active directory

2003-10-24 Thread Redmond Militante
hello thanks for replying. i think i'm almost there... here's what i've tried so far... ";} else {echo "error connecting";} //bind if ( [EMAIL PROTECTED]("my.domaincontroller.com")) { echo "bind successful";}

[PHP] Re: including files from different sub directories

2003-10-24 Thread Rob Adams
"Allex" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > What's the syntax for including/requiring files located in directories > different than the root directory? Especially files from different sub > directories under the root? Going down ("classes/globals.php") is ok, >

[PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
I have been searching the web for ways to execute remote PHP files through the use of JAVA code, but I haven't had any luck. I have found many ways to call JAVA functions from a PHP script, but not the other way around. What I'm trying to accomplish is I want to build a JAVA application that will

  1   2   >