[PHP] Hosting +PHP

2003-10-24 Thread Mindaugas
Hi, How to do secure web server hosting +PHP? I don't want clients to see filesystem usage, processes, etc. - even readonly on filesystem root /, except on WWW CHROOT for example/home/user1. Thanks -- Mindaugas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2003-10-24 Thread Nathan Taylor
I am a recent fan of the single-quotes. I used to use double only but when some gurus told me the disadvantages I converted my entire project over to single quotes. Single quotes are ideal because as far coding goes it greatly decreases the time of development when you don't have to worry

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

2003-10-24 Thread Justin French
On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote: For example it is better to code: Code: echo 'td bgcolor='.$bgcolor2.'nbsp;/td/tr'; vs. Code: echo td bgcolor=\$bgcolor2\nbsp;/td/tr; Better is a very loose term, but I've adopted a coding style which uses

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

2003-10-24 Thread Richard Baskett
on 10/24/03 0:47, Nathan Taylor at [EMAIL PROTECTED] wrote: I am a recent fan of the single-quotes. I used to use double only but when some gurus told me the disadvantages I converted my entire project over to single quotes. Single quotes are ideal because as far coding goes it greatly

[PHP] limit to elements in an array?

2003-10-24 Thread Ian Truelsen
Is there an upper limit to the number of elements that can be in an array? If so, what is that limit? -- Ian Truelsen Email: [EMAIL PROTECTED] AIM: ihtruelsen Homepage: http://www.ihtruelsen.dyndns.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Regular expressions

2003-10-24 Thread Fernando Melo
Hi all, 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 include it in the replace. The way I

[PHP] php header function

2003-10-24 Thread Shaun van den Berg
Hi I have tried the net , googling ect. but i cannot get a good description of what the header function is al about ? Can anyone please define the header function. Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website: www.novtel.co.za -- PHP

RE: [PHP] php header function

2003-10-24 Thread chris . neale
http://uk.php.net/header Have a look at that. As it says, sends an HTTP header. Useful if you want to specify content type in the page that isn't HTML (maybe an image or a pdf). Read the above for more info. Regards Chris -Original Message- From: Shaun van den Berg [mailto:[EMAIL

[PHP] HTTP request contents

2003-10-24 Thread Hanuska Ivo
Hi everyone, I need to know, if there is a possibility to read full contents of HTTP request. I know, the response can be sent by header() function. But can I get the request of the client for server? Thank you, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] apache specific

2003-10-24 Thread dorgon
hi folks, i know it's not really php specific, but i think, you guys are the right ones to address anyhow i've been struggling all the evening with the followsymlinks option in httpd.conf. i've already used it before and it always worked... since i installed the gentoo distro last days. i

[PHP] open source/php research software

2003-10-24 Thread Angelo Zanetti
Hi all. I have heard about open source software that is used in tertiary institutions and other research institutions that handles all the management of the research articles. In other words, administrating the research articles - adding, editing, deleting, searching, etc... something similiar to

Re: [PHP] HTTP request contents

2003-10-24 Thread Nathan Taylor
Perhaps $_SERVER['REQUEST_URI'] in combination with $_SERVER['QUERY_STRING'] ? Nathan - Original Message - From: Hanuska Ivo To: [EMAIL PROTECTED] Sent: Friday, October 24, 2003 6:10 AM Subject: [PHP] HTTP request contents Hi everyone, I need to know, if there is a

Re: [PHP] HTTP request contents

2003-10-24 Thread Tom Rogers
Hi, Friday, October 24, 2003, 8:10:03 PM, you wrote: HI Hi everyone, HI I need to know, if there is a possibility to read full contents of HTTP HI request. I know, the response can be sent by header() function. But can I HI get the request of the client for server? HI Thank you, HI Ivo HI --

[PHP] including files from different sub directories

2003-10-24 Thread Allex
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 (../globals.php) makes problems Example: index.php:

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

2003-10-24 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Is there an upper limit to the number of elements that can be in an array? If so, what is that limit? That rather depends on available memory. How big is each array element? -- Quod subigo farinam A: Because it messes up the order in

[PHP] PHP 4.3.3 On Netscape WebServer

2003-10-24 Thread BENARD Jean-philippe
Hi, 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, ...). Many thanks in advance. (o_ BENARD Jean-Philippe - Consultant STERIA

Re: [PHP] including files from different sub directories

2003-10-24 Thread Marek Kilimajer
including/requiring a file does not change the directory, the code is simply inserted into the current context. So you should have: index.php: include_once('classes/globals.php') dbase.php: include_once('classes/globals.php') controller.php:

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

2003-10-24 Thread Joachim Krebs
That style is also the one I use. It works well, it is clean, and it is straightforward. Joachim Richard Baskett wrote: on 10/24/03 0:47, Nathan Taylor at [EMAIL PROTECTED] wrote: I am a recent fan of the single-quotes. I used to use double only but when some gurus told me the disadvantages

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-24 Thread Burhan Khalid
Robert Sedlacek wrote: On Thu, 23 Oct 2003 18:36:20 -0500, John Nichel wrote: Scott Fletcher wrote: What does the word, 'parse' meant when you do a XML parse? What is it and what does it exactly do? Ummm...it parses the XML document. I think this would be a nice ~/.signature ;-) Even better

Re: [PHP] apache specific

2003-10-24 Thread Becoming Digital
I can't offer an answer but I can point you to some external resources. Hopefully they help. http://httpd.apache.org/docs-2.0/mod/core.html#directory http://httpd.apache.org/docs-2.0/mod/core.html#options Edward Dudlik Those who say it cannot be done should not interrupt the person doing it.

[PHP] Re: What does the word 'parse' meant when you do a XML parse...

2003-10-24 Thread Scott Fletcher
Basically what I was asking about is what is the true definition of the 'parse' when using XML parsing. I thought it had to do with data conversion, like something with the quote or double quote for example. But Chris pointed out a dictionary, I found better definition there at

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-24 Thread Scott Fletcher
:-) Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Robert Sedlacek wrote: On Thu, 23 Oct 2003 18:36:20 -0500, John Nichel wrote: Scott Fletcher wrote: What does the word, 'parse' meant when you do a XML parse? What is it and what does it exactly do?

Re: [PHP] Ways to break up XML into Arrays????

2003-10-24 Thread Scott Fletcher
Will do... [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try looking through http://pear.php.net for something. check out the xml functions, its an xml parser -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ways to break up XML into Arrays????

2003-10-24 Thread Scott Fletcher
I'll look into it. Thanks for the head-up! John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip On Thursday 23 October 2003 17:02, Scott Fletcher wrote: Hi Fellas! I don't want to use the PHP's XML feature at this moment because I found out that I need to

Re: [PHP] Ways to break up XML into Arrays????

2003-10-24 Thread Scott Fletcher
Will do... Ryan Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try looking through http://pear.php.net for something. On Thursday 23 October 2003 17:02, Scott Fletcher wrote: Hi Fellas! I don't want to use the PHP's XML feature at this moment because I found out that

Re: [PHP] Ways to break up XML into Arrays????

2003-10-24 Thread Scott Fletcher
I wonder about overwritting the same tag twice, like 'FirstName' and end up with one result when using hte XML parse... Does anyone know that PHP XML Parse can work without overwriting in this case and still get two different result? Scott F. Raditha Dissanayake [EMAIL PROTECTED] wrote in

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

2003-10-24 Thread Ryan A
Hi, we have a site that is catering to webhosts and programmers, as you can understand these people know computers and programs :-) 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 quit... we are sure

Re: [PHP] XML Parser

2003-10-24 Thread Ray Hunter
I would probably make this a new thread since it is a new question. Anyways, the answer to your question is no, unless you make that happen. When you use the xml parser in php you are using a expat parser (stream-oriented parser) that you set up (register) handlers for. So when the parser

Re: [PHP] Regular expressions

2003-10-24 Thread Curt Zirzow
* Thus wrote Fernando Melo ([EMAIL PROTECTED]): Hi all, 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

Re: [PHP] XML Parser

2003-10-24 Thread Scott Fletcher
Thanks! Oh Boy! :-) For the repeating of the same XML name tag, I guess one way to do it is to depend on the higher up XML name tag that group them together. Chopped them off and use it somehow. For ex. --snip-- Individual FirstName***/FirstName /Individual Joint FirstName***/FirstName

Re: [PHP] php header function

2003-10-24 Thread Chris Shiflett
--- Shaun van den Berg [EMAIL PROTECTED] wrote: I have tried the net , googling ect. but i cannot get a good description of what the header function is al about ? Can anyone please define the header function. It allows you to specify an HTTP header to be included in the response to the Web

Re: [PHP] HTTP request contents

2003-10-24 Thread Chris Shiflett
--- Hanuska Ivo [EMAIL PROTECTED] wrote: I need to know, if there is a possibility to read full contents of HTTP request. I know, the response can be sent by header() function. But can I get the request of the client for server? In a way, yes, although most of this information is nicely parsed

[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

[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, but going

[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... ? //connect if($ds = ldap_connect(my.domaincontroller.com)){ echo connected successfullybr;} else {echo error connectingbr;} //bind if (

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 (../globals.php)

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 sockets

[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... td valign=top ?php echo

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...so

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

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

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

[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

[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 (set

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 spanish

[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] Code optimization: single vs. double quotes?

2003-10-24 Thread olinux
No special chars or vars: echo 'td bgcolor=\'#ff\'nbsp;/td/tr'; For cases with vars and special chars, I think these look terrible: echo 'td bgcolor='.$bgcolor2.'nbsp;/td/tr'; I'm a fan of this style - works great with syntax highlighting in homesite. olinux echo td

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 td bgcolor='{$bgcolor2}'nbsp;/td/tr; Unless your $bgcolor2 variable has double quotes in it, then

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

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

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

2003-10-24 Thread Chris W. Parker
Justin French mailto:[EMAIL PROTECTED] 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 'td

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

2003-10-24 Thread Marek Kilimajer
Robert Cummings wrote: echo td bgcolor='{$bgcolor2}'nbsp;/td/tr; 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,

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 td bgcolor='{$bgcolor2}'nbsp;/td/tr; 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

[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

[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

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!? The New

[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

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

[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 FORM action=mypage.php?para1=val1para2=val2 Changing to amp; 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?

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 some

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 FORM action=mypage.php?para1=val1para2=val2 Changing to amp; got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore.

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

2003-10-24 Thread Marek Kilimajer
It breaks your server side scripts. amp; 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 FORM action=mypage.php?para1=val1para2=val2 Changing to amp; got my page

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/) To unsubscribe, visit:

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

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

2003-10-24 Thread Chris W. Parker
Bas mailto:[EMAIL PROTECTED] 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!

[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

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.

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

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. amp; 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

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 unsubscribe,

[PHP] session_destroy causes backspace on IE

2003-10-24 Thread bill
The following code causes IE to break the /h1 tag. ?php session_start(); header(Cache-control: private); echo html headtitlelogout/title /head body h1 align=\center\Logout page/h1; $_SESSION = array(); session_destroy(); echo pSession destroyed/p\n; echo /body /html\n; ? View/Source in IE:

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

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

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

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

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:

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

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

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

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 appreciated.

[PHP] uncompressing gz string

2003-10-24 Thread Decapode Azur
I don't understand why gzinflate and gzuncompress don't work? ?php $gz_content = file_get_contents('hello.txt.gz'); echo gzinflate($gz_content); // Warning: data error echo gzuncompress($gz_content); // Warning: data error ? but if I make it from bash the content is there : cat hello.txt.gz |

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

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 FORM action=mypage.php?para1=val1para2=val2 Changing to amp; got my page through the validator, but broke my app, which seems not to be getting any parameters over

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 /h1 tag. : : ?php : session_start(); : header(Cache-control: private); : echo html : headtitlelogout/title : /head : body : h1 align=\center\Logout page/h1; : $_SESSION = array(); :

[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

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

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

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. ?php session_start(); header(Cache-control: private); echo html; echo headtitlelogout/title; echo /head; echo body; echo h1 align=\center\Logout page/h1; $_SESSION = array(); session_destroy(); echo pSession destroyed/p\n; echo /body

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 FORM action=mypage.php?para1=val1para2=val2 Changing to amp; got my page through the validator, but broke my app, which seems not to be getting

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

[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

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]

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

[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 === ?php class sessionInfo { /* * @(#) sessionInfoBean.java * * A class to handle sessions. * * @version 10 1 Oct 2003 * * */ /** * Variables */ var $last_name;

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-Type:

[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 include it in the

  1   2   >