Re: [PHP] security question

2006-11-23 Thread David Robley
Robert Cummings wrote: On Thu, 2006-11-23 at 09:56 +0530, Sumeet wrote: Western, Matthew wrote: where did u learn all the stuff?... ;-) Maybe reading the manual? thanks matthew, maybe we should all refer to forum and google Teach a man to fish... Cheers, Rob. Give a man a

Re: [PHP] what settings I have to use in php 5.1.2?

2006-11-23 Thread Jochem Maas
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: hi! the company I work for moves our web server to other hosting company (dedicated server). we use php 5.1.2, apache 2.2, mysql 5.0.18, and I wonder what else I have to change in php.ini settings? register_globals is Off magic_quotes_gpc

Re: [PHP] Powered by?

2006-11-23 Thread Jochem Maas
Richard Lynch wrote: On Tue, November 21, 2006 6:21 pm, Robert Cummings wrote: Personally, if the customer pays me money to make a site, I don't put dirty little ego fluffers on their pages... I put them in the HTML comments or meta tags *heheh*. Frequently, by the time the Customer and the

Re: [PHP] security question

2006-11-23 Thread Dave Goodchild
There are a few ways of working you should adpot early as they protect against a range of security problems. Some examples: 1. Always initialised your variables. 2. If you can, turn off register_globals, or code defensively if you can't. 3. Always mistrust incoming data, validate, check contents

Re: [PHP] what settings I have to use in php 5.1.2?

2006-11-23 Thread Dave Goodchild
Also, turn off display_errors before going into production, at which stage enable error logging. On 11/23/06, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: hi! the company I work for moves our web server to other hosting company (dedicated server).

Re: [PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found soimething here that i did not know. I am using Smarty e it changes all ccedil; to ç in whole page. I am trying to found where it does the change but it has been very hard. Nuno Vaz Oliveira [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi I'm working on a site and

[PHP] [Smarty]How smarty name its combiled file?

2006-11-23 Thread John . H
It just like %%58^588^588C8934%%second.html.php. How does this filename be created?

RE: [PHP] [Smarty]How smarty name its combiled file?

2006-11-23 Thread Edward Kay
How about sending this to the Smarty list? http://smarty.php.net/resources.php?category=7 Edward -Original Message- From: John.H [mailto:[EMAIL PROTECTED] Sent: 23 November 2006 11:55 To: php-general Subject: [PHP] [Smarty]How smarty name its combiled file? It just like

Re: [PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
A point that i think is importanto to say is. The page which i just have ? echo joão; ? without using smarty works fine in any browser, the trouble is when the page is compiled by smarty. Nuno Vaz Oliveira [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi I'm working on a site

[PHP] PHP and XML

2006-11-23 Thread onewaylife
Dear All I am novice in PHP XML, while trying I am creating a small application i.e. Address Book. In this I am using Apache2, PHP5 and XML no database is used. I have FC5 machines. but I am unable to store the files in XML. If any one share their experience in this by providing Examples or

RE: [PHP] PHP and XML

2006-11-23 Thread Edward Kay
Hello, You say that you are unable to store the files in XML. Why is this? Are you getting an error message or do you just not know where to start? Edward Dear All I am novice in PHP XML, while trying I am creating a small application i.e. Address Book. In this I am using Apache2, PHP5

Re: [PHP] Powered by?

2006-11-23 Thread tedd
At 1:04 PM -0800 11/22/06, Paul Novitski wrote: I generally just say 'Website by' and allow that ambiguity to fill the available space. It works by itself and also in conjunciton with a separate 'Design by' credit. Regards, Paul Same here, I now use webmaster | designer at the bottom of

[PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found the trouble... Who change it is Dreamweaver. When i save my .tpl file it converts ccedil; to ç. Anyone know how can i change it in dreamweaver? João Cândido de Souza Neto [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] I am facing a trouble in my system in which i am

RE: [PHP] PHP and XML

2006-11-23 Thread Vincent DUPONT
Hi, what do you plan to do with XML? Store your adresses, etc? Then you can create an XML object with simpleXML (see http://be2.php.net/simplexml/) This will help you in adding nodes and attributes. Afterward, you can generate a output with $xml-asXML() and store this into a file with

Re: [PHP] Function Misbehaving

2006-11-23 Thread Jochem Maas
Beginners beware ... small, potential head-fryer coming up... Richard Lynch wrote: I personally would use is_null($url) to test if it was NULL. isset() is not the weapon of choice for that, imho... No idea if that will fix it as I've never tried to use isset() to test for NULL and have no

Re: [PHP] what settings I have to use in php 5.1.2?

2006-11-23 Thread Afan Pasalic
Thanks Dave, good one. -afan Dave Goodchild wrote: Also, turn off display_errors before going into production, at which stage enable error logging. On 11/23/06, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: hi! the company I work for moves our

Re: [PHP] security question

2006-11-23 Thread Robert Cummings
On Wed, 2006-11-22 at 22:45 -0600, Larry Garfield wrote: On Wednesday 22 November 2006 22:38, Robert Cummings wrote: maybe we should all refer to forum and google Teach a man to fish... And you lose your monopoly on fisheries. Yeah, but I got Park Place and Boardwalk!!! *nyah nyah*

[PHP] Re: Encoding

2006-11-23 Thread Jo�o C�ndido de Souza Neto
I found how to fix it in dreamweaver. You just must change the file: C:\Arquivos de programas\Macromedia\Dreamweaver MX\Configuration\DocumentTypes/MMDocumentTypes.xml Change the follow line adding tpl extension and it will works fine: documenttype id=HTML internaltype=HTML

[PHP] GD - Problem writing text

2006-11-23 Thread Fredrik Thunberg
Hi all This is my first attempt to wrie to this mailing list, so please bare with me. My problem is as follows I'm trying to generate a dynamic picture with some text on it. The code works fine on one of my servers, but not on the other one. The code I'm using: $im = imagecreatetruecolor

[PHP] RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS

2006-11-23 Thread sean-lezlie_allison
Hºp˜Y«!­í†‹CUZʹÒNŽÕ¸Jàáú _ë2-Y§Ãy¨ès‡\¬L¨ -Þ¢õ#Q“1æX*B²æfc¤¢LZFç^[F)DÖL¥WöfjÄHŒ l®¨bۃµ¢áÙۉ°nV Ʀy¿¤ Íñã3’›¹0žy|âíóŸÍÝ9DUyXÅN¾õ¢½\¤òõê¤÷6ãҚJCôvV#Fܶîn^0©÷°»f1±JwùbÓdxd,/⊠ñ òÖñ{W†ÎtÙ¬øKH†(uó(ÝÅÕcđ²æ{ï£ü¡Æ›Ur!þx›§aâqKäQÐËÎDó•ºßÞG¸¿9þ†št²ž{uZÑ9™ðQgågBØÁøªc¤›oחáØH—,~Z‚mœƒr•âÃrÂÜpF¢±‚5 

[PHP] Ftp a file--errors in rendered page, Ftp the file again--works fine. Huh?

2006-11-23 Thread Nicholas Crosby
Hello: I would appreciate any help on this that someone might have. A student of mine found this issue. He ftp's a file to a server and looks at it through a browser, there are errors. He uploads the file again, it works fine. I am stumped. Any ideas? Here is the text of the file that he is

[PHP] To install a small program from a web browser

2006-11-23 Thread Navid
Hello everyone, I have a client that wants me to build a membership-based website soon. He has small programs for his members to install. He wants to post a link for them so that when they click on it the program installs on their machine automatically. I tried to discourage him from doing

[PHP] Problems to login via POST on a external site.

2006-11-23 Thread Benny Pfitzner
Hallo, I know that this is a little bit of topic but I don't know any better place to post my Problem. I want to automatically POST values to the site: http://clever-tanken.de , a german site to view fuleprices of gas stations in your area. I watched the traffic I captured with wireshark an

Re: [PHP] Problems to login via POST on a external site.

2006-11-23 Thread Chris
It's your input type=image Those generate coordinatesd, so the numbers specify where on the image you clicked to submit the form. Chris Benny Pfitzner wrote: Hallo, I know that this is a little bit of topic but I don't know any better place to post my Problem. I want to automatically POST

Re: [PHP] To install a small program from a web browser

2006-11-23 Thread Navid
See that's the thing. It's a membership I don't think I would be inclined to do it at all. But then again he will reveal to me soon what he acsite. But he still wants to install programs without knowledge to the users of his membership site (and no it's not a pornography site...I don't do

[PHP] Re: Please hack my app

2006-11-23 Thread LuKreme
On 22-Nov-2006, at 04:20, Ryan A wrote: Hey there, I dont mean to be a total pri*k about this, but unless you have created something that you are willing to share with others and others can use/modify for their requirements, and you grant them this privilege...I think the norm is you

[PHP] Re: GD - Problem writing text

2006-11-23 Thread zerof
Fredrik Thunberg escreveu: Hi all . I'm trying to generate a dynamic picture with some text on it. The code works fine on one of my servers, but not on the other one. The code I'm using: ... The one things that differs between

Re: [PHP] Ftp a file--errors in rendered page, Ftp the file again--works fine. Huh?

2006-11-23 Thread Travis Doherty
Nicholas Crosby wrote: Hello: I would appreciate any help on this that someone might have. A student of mine found this issue. He ftp's a file to a server and looks at it through a browser, there are errors. He uploads the file again, it works fine. I am stumped. Any ideas? Here is the text of

Re: [PHP] security question

2006-11-23 Thread Rory Browne
Sorry didn't quite get that finished - hit send by accident ( and had it go to one person, instead of to the list ). Few quick tips - not all strictly security related, but may affect security.

[PHP] RE: PHP and XML

2006-11-23 Thread onewaylife
Hello Edward Just i don't now where to start. Edward Kay wrote: Hello, You say that you are unable to store the files in XML. Why is this? Are you getting an error message or do you just not know where to start? Edward Dear All I am novice in PHP XML, while trying I am

[PHP] Serving out a file to Firefox ... headers?

2006-11-23 Thread Brian Dunning
Sorry to revisit this issue YET ONE MORE TIME... :) :) My online store sends out the file for download upon purchase. Below are the headers I send, and I understood that it should work for all browsers. It does not work for Firefox. Suggestions? header('Content-Type:

[PHP] Attaching File to be Emailed

2006-11-23 Thread [EMAIL PROTECTED]
I need to take a word document or pdf file from either a MySQL db or from a directory, which will then be sent via php script. How can I go about doing this? Can anyone provide sample code or point me in the right direction.

Re: [PHP] Attaching File to be Emailed

2006-11-23 Thread Travis Doherty
[EMAIL PROTECTED] wrote: I need to take a word document or pdf file from either a MySQL db or from a directory, which will then be sent via php script. How can I go about doing this? Can anyone provide sample code or point me in the right direction. Brian Dunning started a thread about

Re: [PHP] Serving out a file to Firefox ... headers?

2006-11-23 Thread Travis Doherty
Brian Dunning wrote: Sorry to revisit this issue YET ONE MORE TIME... :) :) My online store sends out the file for download upon purchase. Below are the headers I send, and I understood that it should work for all browsers. It does not work for Firefox. Suggestions?