[PHP] (in spanish) a goog "whatever you want" editor
[sorry amigos, this is in spanish] hola Mauricio: bien, en esto de los gustos sobre soft cada uno tiene sus preferencias hay alguna web donde probar el Emacs este? lo que daria por unos buenos tacos y unos chapulines rebien tostaditos con una corona bien fria!!! ¿de Veracruz? (hace 5 años visite Mejico por 6 semanas, 5.000 km recorrí) salud Aniceto Lopez Barcelona Spain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Simple (I hope) updating contents question
Greetings. First of all I'm a PHP bginner so take it easy on me :) I'm trying to make a script that does the following: * open a text file * read its contents * For each line on the file make a input tag with its contents, like * Take the modified contents - modifyied in the input fields - and update the text file So, I've begun with: 1 One thing I didn't understood is the length part of the fgets command... Why use length with it? So, what I'm trying to do in lines 4 and 7 is to make sure it gets the contents by setting length = file size... Am I right on this? How do I split the contents of the file? Because I'm getting the content of both lines in the $content variable... I'm originally a Perl programmer so I know that the "split mark" must be the end of line, but I'm really lost here. Can someone help me? Thanks in advance, Er Galvão Abbott Webdeveloper [EMAIL PROTECTED] - To send me an e-mail just remove the CAPITAL TEXT. - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] redirect to another page in PHP???
On 20 Jul 01, at 0:03, Doug wrote: > Ok maybe I'm just retarded and can't find it but I'm looking for a way to > do a redirect in a php page to another page, similar to asp's > "response.redirect" function. Is there one in php??? No doubt there's plenty of options... here's what I'm using: I have the following function in one of my standard function libraries: function redirect($url, $timeout) { echo ""; } $url being where you want to redirect to and $timeout being the delay before the redirection takes place (set it to 0 for immediate redirect). Then when I want to do a redirection on a page I just use this: redirect("http://www.some.place.else/";, "5"); I've found this particularly useful in situations where you want to let people know you're doing a redirection somewhere or want to display some sort of message before the redirection takes place. No doubt there's other solutions, there usually is. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au mailto:[EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php hosting provider that supports libswf module?
> Does anyone know of a reputable PHP web hosting company that also > supports the libswf (i.e. Flash) module? > > And, specifically, does anyone know if Pair.com does/doesn't? (yes, I'm > going to ask them directly as well) Any provider which runs on a sane platform and doesn't disable the dl() function will do. Simply build your own swf.so PHP extension by doing: ./configure --with-swf=shared make Then you will get modules/swf.so which you can then dl() at the top of your script. You don't have to rely on your ISP to compile in all the features you need. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help..Parse error
Actually that is the default setting under 4, and the rest of the code works with the short tags, it's definately something code related... I don;t think it likes that code, but can't find anything to help me resolve the problem. I was hoping not to re-write the code just yet... Thanks Steve Edberg wrote: > My guess is that you have the short_open_tags option on in your PHP3 > config, but off in your PHP4 config. If it's off, PHP will only > recognize the tags, not . PHP config params can be > set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll > down to short_open_tag in > > http://www.php.net/manual/en/configuration.php#configuration.file > > for more info. You can also check your config via the phpinfo() function. > > - steve > > At 1:45 AM -0400 7/20/01, Jack Sasportas wrote: > >I have some code that runs under php3, but under 4 I get a parse error > >on this specific line, can't figure out how to resolve it. > > > >the code looks like this > > > > > > > > > >the error is in the middle line which is the end of a condition... > > > >Thanks in advance... > > > > > >-- > >___ > >Jack Sasportas > >Innovative Internet Solutions > >Phone 305.665.2500 > >Fax 305.665.2551 > >www.innovativeinternet.com > >www.web56.net > > > -- > +-- Factoid: Of the 100 largest economies in the world, 51 are --+ > | Steve Edberg University of California, Davis | > | [EMAIL PROTECTED] Computer Consultant | > | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | > +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php 4.0.6
Did you compile php using --with-readline ? On Thu, 19 Jul 2001, Adrian D'Costa wrote: > Hi, > > I am trying to use the socket or readline functions but get a message: > call to undefined function readline(). Why? Is this not implemented in > 4.0.6. > > Adrian > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Mcrypt Coding Problem
Hi Everyone, When I try to execute the code below, I don't get any errors, but the data is never decrypted. I have tried tons of different people's code, but to no avail. Any help would be appreciated. Here is my code: $data= mcrypt_ecb(MCRYPT_TripleDES, $key, $data, ENCRYPT); echo "data: $data"; $data= mcrypt_ecb(MCRYPT_TripleDES, $key, $data, DECRYPT); echo "data: $data"; And here is the output: Warning: attempt to use an empty IV, which is NOT recommend in ../../includes/scripts/admin_functions.inc on line 52 data is: áyp)l)©>¤IÔNþ&ñ¸«Ø¼{j<{Â]Ƹ«Ø¼{j<{Â]Ƹ«Ø¼{j<{ Â]Ƹ«Ø¼{j<{Â]Ƹ«Ø¼{j<{Â]Ƹ«Ø¼{j<{Â]ƶµßÛK á×½ÄeDÜ Warning: attempt to use an empty IV, which is NOT recommend in ../../includes/scripts/admin_functions.inc on line 55 data is: ©WYbdù 8ÊSQÝz-A|úyÕ»åu$Fz-A|úyÕ»åu$Fz-A|úyÕ»åu$Fz-A|úyÕ»åu$Fz-A|ú yÕ»åu$Fz-A|úyÕ»åu$FÇVæËúMËÞ=ÛÚ Even when I try to use an IV, it still doesn't ever decrypt, or sometimes it will give me an error about the key being too long. Thanks very much in advance, John Reply To This Message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help..Parse error
My guess is that you have the short_open_tags option on in your PHP3 config, but off in your PHP4 config. If it's off, PHP will only recognize the tags, not . PHP config params can be set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll down to short_open_tag in http://www.php.net/manual/en/configuration.php#configuration.file for more info. You can also check your config via the phpinfo() function. - steve At 1:45 AM -0400 7/20/01, Jack Sasportas wrote: >I have some code that runs under php3, but under 4 I get a parse error >on this specific line, can't figure out how to resolve it. > >the code looks like this > > > > >the error is in the middle line which is the end of a condition... > >Thanks in advance... > > >-- >___ >Jack Sasportas >Innovative Internet Solutions >Phone 305.665.2500 >Fax 305.665.2551 >www.innovativeinternet.com >www.web56.net > -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help..Parse error
I have some code that runs under php3, but under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this the error is in the middle line which is the end of a condition... Thanks in advance... -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Fonts with PDFlib
Chris, That did it! Thanks. That must have found its way in there from some of the example code I was looking at when initially creating the page. I greatly appreciate your help and keeping me from losing my mind :). Thanks, James Willard [EMAIL PROTECTED] -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 1:50 AM To: James Willard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Fonts with PDFlib Importance: High James, Have you set text rendering? I thought that the default was for solid text but maybe.. pdf_set_value($pdf, "textrendering", 1); will give you outline text, 0 for fill (default) or:- pdf_set_text_rendering -- Determines how text is rendered Description void pdf_set_text_rendering (int pdf document, int mode) The pdf_set_text_rendering() function determines how text is rendered. The possible values for mode are 0=fill text, 1=stroke text, 2=fill and stroke text, 3=invisible, 4=fill text and add it to clipping path, 5=stroke text and add it to clipping path, 6=fill and stroke text and add it to cliping path, 7=add it to clipping path. Chris James Willard wrote: > Chris, > > I already had: > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > > in the .php file. I went ahead and added the putenv() function in too, but > it didn't make a difference, the fonts are still hollow. I have copied the > fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable. > Do you have any other suggestions as to what could be wrong? > > Thanks, > > James Willard > [EMAIL PROTECTED] > > -Original Message- > From: Chris Fry [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 1:27 AM > To: James Willard > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Fonts with PDFlib > Importance: High > > Here's the magic code:- > > putenv("PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr"); > > This works well. > > Chris > > James Willard wrote: > > > Hello, > > > > I have what should be a fairly simple question, but it's something I've > been > > struggling with for the past couple of days. Whenever I create a PDF > > document in PHP, the font that is used is always an outline (not a solid > > letter). I have searched the mailing list archives and online help but to > no > > avail. I have even used the example code to produce something like: > > > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > > $font = pdf_findfont($pdf, "Times-Roman", "host", 0); > > if ($font) { > > pdf_setfont($pdf, $font, 10); > > } > > > > Could someone please provide a pointer to some useful information on PDF > > fonts? > > > > Thanks, > > > > James Willard > > [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > > Chris Fry > Quillsoft Pty Ltd > Specialists in Secure Internet Services and E-Commerce Solutions > 10 Gray Street > Kogarah > NSW 2217 > Australia > > Phone: +61 2 9553 1691 > Fax: +61 2 9553 1692 > Mobile: 0419 414 323 > eMail: [EMAIL PROTECTED] > http://www.quillsoft.com.au > > You can download our Public CA Certificate from:- > https://ca.secureanywhere.com/htdocs/cacert.crt > > ** > > This information contains confidential information intended only for > the use of the authorised recipient. If you are not an authorised > recipient of this e-mail, please contact Quillsoft Pty Ltd by return > e-mail. > In this case, you should not read, print, re-transmit, store or act > in reliance on this e-mail or any attachments, and should destroy all > copies of them. > This e-mail and any attachments may also contain copyright material > belonging to Quillsoft Pty Ltd. > The views expressed in this e-mail or attachments are the views of > the author and not the views of Quillsoft Pty Ltd. > You should only deal with the material contained in this e-mail if > you are authorised to do so. > > This notice should not be removed. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please
Re: [PHP] Fonts with PDFlib
James, Have you set text rendering? I thought that the default was for solid text but maybe.. pdf_set_value($pdf, "textrendering", 1); will give you outline text, 0 for fill (default) or:- pdf_set_text_rendering -- Determines how text is rendered Description void pdf_set_text_rendering (int pdf document, int mode) The pdf_set_text_rendering() function determines how text is rendered. The possible values for mode are 0=fill text, 1=stroke text, 2=fill and stroke text, 3=invisible, 4=fill text and add it to clipping path, 5=stroke text and add it to clipping path, 6=fill and stroke text and add it to cliping path, 7=add it to clipping path. Chris James Willard wrote: > Chris, > > I already had: > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > > in the .php file. I went ahead and added the putenv() function in too, but > it didn't make a difference, the fonts are still hollow. I have copied the > fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable. > Do you have any other suggestions as to what could be wrong? > > Thanks, > > James Willard > [EMAIL PROTECTED] > > -Original Message- > From: Chris Fry [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 1:27 AM > To: James Willard > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Fonts with PDFlib > Importance: High > > Here's the magic code:- > > putenv("PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr"); > > This works well. > > Chris > > James Willard wrote: > > > Hello, > > > > I have what should be a fairly simple question, but it's something I've > been > > struggling with for the past couple of days. Whenever I create a PDF > > document in PHP, the font that is used is always an outline (not a solid > > letter). I have searched the mailing list archives and online help but to > no > > avail. I have even used the example code to produce something like: > > > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > > $font = pdf_findfont($pdf, "Times-Roman", "host", 0); > > if ($font) { > > pdf_setfont($pdf, $font, 10); > > } > > > > Could someone please provide a pointer to some useful information on PDF > > fonts? > > > > Thanks, > > > > James Willard > > [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > > Chris Fry > Quillsoft Pty Ltd > Specialists in Secure Internet Services and E-Commerce Solutions > 10 Gray Street > Kogarah > NSW 2217 > Australia > > Phone: +61 2 9553 1691 > Fax: +61 2 9553 1692 > Mobile: 0419 414 323 > eMail: [EMAIL PROTECTED] > http://www.quillsoft.com.au > > You can download our Public CA Certificate from:- > https://ca.secureanywhere.com/htdocs/cacert.crt > > ** > > This information contains confidential information intended only for > the use of the authorised recipient. If you are not an authorised > recipient of this e-mail, please contact Quillsoft Pty Ltd by return > e-mail. > In this case, you should not read, print, re-transmit, store or act > in reliance on this e-mail or any attachments, and should destroy all > copies of them. > This e-mail and any attachments may also contain copyright material > belonging to Quillsoft Pty Ltd. > The views expressed in this e-mail or attachments are the views of > the author and not the views of Quillsoft Pty Ltd. > You should only deal with the material contained in this e-mail if > you are authorised to do so. > > This notice should not be removed. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material containe
RE: [PHP] Fonts with PDFlib
Chris, I already had: PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); in the .php file. I went ahead and added the putenv() function in too, but it didn't make a difference, the fonts are still hollow. I have copied the fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable. Do you have any other suggestions as to what could be wrong? Thanks, James Willard [EMAIL PROTECTED] -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 1:27 AM To: James Willard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Fonts with PDFlib Importance: High Here's the magic code:- putenv("PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr"); This works well. Chris James Willard wrote: > Hello, > > I have what should be a fairly simple question, but it's something I've been > struggling with for the past couple of days. Whenever I create a PDF > document in PHP, the font that is used is always an outline (not a solid > letter). I have searched the mailing list archives and online help but to no > avail. I have even used the example code to produce something like: > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > $font = pdf_findfont($pdf, "Times-Roman", "host", 0); > if ($font) { > pdf_setfont($pdf, $font, 10); > } > > Could someone please provide a pointer to some useful information on PDF > fonts? > > Thanks, > > James Willard > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Fonts with PDFlib
Here's the magic code:- putenv("PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr"); This works well. Chris James Willard wrote: > Hello, > > I have what should be a fairly simple question, but it's something I've been > struggling with for the past couple of days. Whenever I create a PDF > document in PHP, the font that is used is always an outline (not a solid > letter). I have searched the mailing list archives and online help but to no > avail. I have even used the example code to produce something like: > > PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); > $font = pdf_findfont($pdf, "Times-Roman", "host", 0); > if ($font) { > pdf_setfont($pdf, $font, 10); > } > > Could someone please provide a pointer to some useful information on PDF > fonts? > > Thanks, > > James Willard > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] redirect to another page in PHP???
Doug, Have you tried using a raw header? Something like this: header ("Location: http://www.site.com/newpage.php";); or header ("Location: newpage.php"); more details can be found at: http://www.php.net/manual/en/function.header.php Good Luck, -- Paul Strange Lead Programmer Level 67 LC --- eMail: [EMAIL PROTECTED] Office: 801.486.4686 Fax: 801.994.0467 On Thursday 19 July 2001 22:03, Doug wrote: > Ok maybe I'm just retarded and can't find it but I'm looking for a way to > do a redirect in a php page to another page, similar to asp's > "response.redirect" function. Is there one in php??? > > > Doug Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Fonts with PDFlib
Hello, I have what should be a fairly simple question, but it's something I've been struggling with for the past couple of days. Whenever I create a PDF document in PHP, the font that is used is always an outline (not a solid letter). I have searched the mailing list archives and online help but to no avail. I have even used the example code to produce something like: PDF_set_parameter($pdf, "resourcefile", "/usr/local/fonts/pdflib.upr"); $font = pdf_findfont($pdf, "Times-Roman", "host", 0); if ($font) { pdf_setfont($pdf, $font, 10); } Could someone please provide a pointer to some useful information on PDF fonts? Thanks, James Willard [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
FW: [PHP] php hosting provider that supports libswf module? OR MING!!
Sorry -- I should have said "supports either libswf or ming" Thanks. --kurt > -Original Message- > From: Kurt Lieber [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 9:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] php hosting provider that supports libswf module? > > > Does anyone know of a reputable PHP web hosting company that > also supports the libswf (i.e. Flash) module? > > And, specifically, does anyone know if Pair.com does/doesn't? > (yes, I'm going to ask them directly as well) > > Thanks. > > --kurt > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] redirect to another page in PHP???
Ok maybe I'm just retarded and can't find it but I'm looking for a way to do a redirect in a php page to another page, similar to asp's "response.redirect" function. Is there one in php??? Doug Henry
[PHP] split on whitespace, preserving whitespace...
Hi all, I'm trying to build a spell checker for a web form. What has got me stumped is being able to do a split so that whitespace and words are stored as seperate elements of the same array. ideally, I'd use some form of preg_split to put: "This contanswhite space ." into an array like: $wordsarr = ('This',' ','contans','','white',' ','space',' ','.') So that I can do a a loop as follows: for ($i = 0; $i < count($wordarr); $i++) { if (!trim($wordarr[$i]) == "" && !eregi(trim($wordarr[$i]),'.,/')) { //check spelling //correct errors } echo $wordarr[$i]; } and end up with: "This containswhite space ." can a split like this be accomplished using preg_split or do I need to go through the string one space at a time in a while loop? -Garth Northern.CA ===--- http://www.northern.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using mod_rewrite with PHP
I'm using this no problem on a server running apache, but we have one client who insists on IIS and I have not been able to get it to work. Has anyone been able to get this to work with IIS? If so, any words of wisdom? :) At 09:25 PM 7/19/01 -0700, rm wrote: >try this url, maybe it will help... > >http://www.zend.com/tips/tips.php?id=68&single=1 > > >--- Gawain <[EMAIL PROTECTED]> wrote: >> I've been wrestling with mod_rewrite and trying to >> understand how to >> use it for my particular purpose. I've got two php >> URLs I'd like to >> rewrite to make them search-engine friendly. >> Currently they look like: >> >> Example 1: >> http://mysite.com/foobar.html?c=23 >> >> Example 2: >> http://mysite.com/foobar.html?c=23&p=45 >> >> What I'd like to end up with is something like: >> >> Example 1: >> http://mysite.com/foobar/23 >> >> Example 2: >> http://mysite.com/foobar/23/45 >> >> I'm kind of new to mod_rewrite and regexp's, so can >> anybody give me a clue? >> >> Thanks! >> >> Gawain >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> To contact the list administrators, e-mail: >> [EMAIL PROTECTED] >> > > >__ >Do You Yahoo!? >Get personalized email addresses from Yahoo! Mail >http://personal.mail.yahoo.com/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > ___ [EMAIL PROTECTED] [EMAIL PROTECTED] http://miriland.com/ http://www.stigma.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions and linking
Try using theinbox.php? Adding to all your URLs will maintain session data if cookies are turned off. The session ID (a random 32 character string) is available in $PHPSESSID, so if you really wanted to you could do: theinbox.php?PHPSESSID=$PHPSESSID but is easier. Mick On Fri, 20 Jul 2001, Jome wrote: > I'm programming an easy webmail and I've tried to use sessions. It works perfectly >with cookies activated in the browser but I want it to be able for people which >doesn't like cookies. > > If I've understood this correctly I should be able to fetch the sessiondata if I >link something like theinbox.php?PHPSESSID=thesessionid - it won't work tho. I use >session_start() in theinbox.php > > Anyone who has any idea about what I'm doing wrong? Should I define the session id >for session_start or something? > > Best regards, > > Jome > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Michael Hall mulga.com.au [EMAIL PROTECTED] ph/fax (+61 8) 8953 1442 ABN 94 885 174 814 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php hosting provider that supports libswf module?
Does anyone know of a reputable PHP web hosting company that also supports the libswf (i.e. Flash) module? And, specifically, does anyone know if Pair.com does/doesn't? (yes, I'm going to ask them directly as well) Thanks. --kurt
Re: [PHP] Using mod_rewrite with PHP
try this url, maybe it will help... http://www.zend.com/tips/tips.php?id=68&single=1 --- Gawain <[EMAIL PROTECTED]> wrote: > I've been wrestling with mod_rewrite and trying to > understand how to > use it for my particular purpose. I've got two php > URLs I'd like to > rewrite to make them search-engine friendly. > Currently they look like: > > Example 1: > http://mysite.com/foobar.html?c=23 > > Example 2: > http://mysite.com/foobar.html?c=23&p=45 > > What I'd like to end up with is something like: > > Example 1: > http://mysite.com/foobar/23 > > Example 2: > http://mysite.com/foobar/23/45 > > I'm kind of new to mod_rewrite and regexp's, so can > anybody give me a clue? > > Thanks! > > Gawain > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php 4.0.6
Hi, I am trying to use the socket or readline functions but get a message: call to undefined function readline(). Why? Is this not implemented in 4.0.6. Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Confirmation Requester
I'm not sure if this solution is not what you want to do or not... but what I've done is to essentially send information identifying the info to be deleted to another page (which you could pop up using jscript or target="_blank"), which has yes or no buttons. If you click the yes button, it does its thing, then goes back to the original page. If you click no, it just goes back. I can send you the code if this fits, and sorry if it doesn't => Good luck, Ben -Original Message- From: Dave Freeman [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 5:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Confirmation Requester Hi All I'm really not sure if this is php or, perhaps, javascript. I have a php application in development. On one page I have a list of information extracted from a mysql database. I have links beside each line to edit or delete that informaiton (which calls a php function to carry out the actual work). I am trying to find a way to generate some sort of warning/confirmation on the delete link. ie. I want to give people a warning before they delete information out of the database. I know I can do this by using loading a form on the page and getting confirmation from it but I'm hoping to find a more elegant solution. What I'd really like to do is get a windows-style requester appearing with a warning and 'OK'/'Cancel' boxes. If they select OK then I'll go ahead and delete the data - if they select cancel I'll do nothing more. Mostly what I'm trying to do is have that ok/cancel take place before I do anything with the page currently being displayed. Can anyone offer pointers to a method of achieving this? CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au mailto:[EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] days
Could you please be quite a bit more specific? It's difficult to diagnose the problem without really knowing what it is => -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] days The employees here and I have noticed that we have a variable that works when it wants to... But for days at a time. One day it works fine all day. Another day it fills up with garbage instead of what its supposed toBut whats particular about this is that it lasts all day. Good or bad, the behavior lasts all dayCan anyone shed some light on this for us? We are really baffled! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Stoping Frame Breakers
hey, Does any one know how to stop people breaking frames?!? - James "ReDucTor" Mitchell
RE: [PHP] Force new page in browser and wait commands
You could do something like print()'ing or echo()'ing whatever you want into a file, and then sending a header("Location: newpage.php")... just in case you haven't already figured out a solution. By the way, this will not happen on the client end. PHP is server interpreted, so anything you do will be on the server. Hope this helps. Ben -Original Message- From: Hugh Danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 4:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Force new page in browser and wait commands Help, I'm new to php, and to writing software in general. Enough said on that. What I want to do, is to have my program wait for user input on a and once data is submitted, to have the browser (IE5) generate a new page. Right now, my program runs straight through input forms and appends everything to the existing page. I now accomplish this by running several connected php programs, but want to do it in one program. I've looked throughout the php manual and website but have yet to find the right commands. Your help is greatly appreciated. Hugh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Using mod_rewrite with PHP
I've been wrestling with mod_rewrite and trying to understand how to use it for my particular purpose. I've got two php URLs I'd like to rewrite to make them search-engine friendly. Currently they look like: Example 1: http://mysite.com/foobar.html?c=23 Example 2: http://mysite.com/foobar.html?c=23&p=45 What I'd like to end up with is something like: Example 1: http://mysite.com/foobar/23 Example 2: http://mysite.com/foobar/23/45 I'm kind of new to mod_rewrite and regexp's, so can anybody give me a clue? Thanks! Gawain -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can't think of a topic(but help)
There is something like a php compiler ( it's not really a compiler in the usual sense) that will turn php files into windows exec. filesfrankly I ran across it someplace, not sure where. Try the links at various php sites...that's how I ran across it. --- ReDucTor <[EMAIL PROTECTED]> wrote: > hey, > i am wonder if there is a way to turn my php files > into an executable or into a bunch of html files, so > if i where to send them to some one that isn't > running php they would be able to use them?!? > - James "ReDucTor" Mitchell > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Query.....
Solved my problem by - SELECT AccountHead FROM cash - stored the result in $acchead in PHP code - UPDATE $acchead SET - Original Message - From: "Deependra B. Tandukar" <[EMAIL PROTECTED]> To: "py_sympatico" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 09:25 Subject: Re: [PHP] MySQL Query. > Thanks but it is not working! > > My problem goes like this: > Frankly speaking I am trying to make web based accounting package for my > organization. > > I have talbes: > Voucher > Sales > Cash > Bank > Income > Expenses, etc. > > All are of the follwoing structure > VN Date AccountHead AccountType DrCr > Remarks > > Suppose there is a entry like in Voucher > 1012001-07-18 Sales FixedAsset 0 5000 > Monitor sold > 1012001-07-18 Cash CurrentAsset 5000 0 > Monitor sold > > In Sales > 1012001-07-18 Cash CurrentAsset 5000 0 > Monitor sold > > In Cash > 1012001-07-18 SalesFixedAssets 0 5000 > Monitor sold > > Now if I have to have Bank in place of Cash with VN=101, I simply go and > change in Voucher HTML form and press "Submit button", it takes effect in > all the required tables except in Sales (the entry should chage from Cash to > Bank in this case). ( for you info I am using > > while ($row=mysql_fetch_array($query)) { > $VN=$row["VN"]; > $Date=$row["Date"]; > $AH=$row["AccountHead"]; > $AT=$row["AccountType"]; > $Dr=$row["Dr"]; > $Cr=$row["Cr"]; > $Remarks=$row["Remarks"]; > echo " > > > > > "; > }; > > I am trying to select Sales table from TableCash.AccountHead. In fact I am > trying to select an AccountHead from Cash where VN=101 and converting the > AccountHead into Table name. In HTML, both the AccountHead are named as AH > > So is there any way that converts selected Cash.Sales from (Table)Cash into > (Table)Sales? I did something like "Update $AH.AccountHead (AccountHead) > values ($AH)"; > > By doing this the error I get is "Bank.Sales" table not exist. > > Looking forward to hearing from you. > > Warm Regards, > DT > - Original Message - > From: "py_sympatico" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 18, 2001 10:10 > Subject: Re: [PHP] MySQL Query. > > > > Try, > > "select '$TableItem'.list where id = 1"; > > > > py > > > > - Original Message - > > From: Deependra B. Tandukar <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 18, 2001 12:14 AM > > Subject: [PHP] MySQL Query. > > > > > > > Greetings ! > > > > > > I have following tables in MySQL: > > > > > > TableItem > > > idlist > > > 1 Banana > > > 2 Orange > > > 3 Mango > > > > > > Other tables are: > > > Banana, Orange, Mango > > > > > > Instead of selecting Table Banana directly I need to select it as > "select > > > $TableItem.list where id=1" or something like that for editing or > deleting > > > items in Table Banana . I tried to do like this but doesn't work. Does > it > > > work somehow? > > > > > > Looking forward to hearing from you. > > > > > > Warm Regards, > > > DT > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache on OS X insight?
Hi Michael, I run an OS X server with Apache, PHP, and MySQL. We have mostly Apple's in the office, with a few pc's scattered around. What reasons do you have for going with a Mac. I'll tell you this: its easier to deal with linux/unix as far as installation, upgrading, etc. However, there is an increasing amount of support for OS X Server out there. Also, you do mean OS X Server, and not OS X, correct? Jack -Original Message- From: Michael J. Seely [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:30 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache on OS X insight? Hello, I'm getting ready to buy OS X and try to setup Apache with PHP. Anyone have any words of wisdom. Everything I've seen so far make it seem like a hot setup. Is it worth getting OS X server? Thanks Much -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9949 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] System() and PGP
Thanks for reply, I'm using apache, so is there away to get the output sent to PHP? Someone suggested using system("pgp 2>&1"); but all I get is: Pretty Good Privacy(tm) Version 6.5.1i (c) 1999 Network Associates Inc. Export of this software may be restricted by the U.S. government. No configuration file found. Error!!! insufficient random bits Not quite what I had in mind but a step in the right direction. Any ideas? Thanks for the help David Price -Original Message- From: Maxim Derkachev [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 1:05 AM To: David Price Cc: [EMAIL PROTECTED] Subject: Re: [PHP] System() and PGP Hello David, Thursday, July 19, 2001, 8:48:17 AM, you wrote: DP> I can use this command to encrypt messages: DP> system("pgp -ea $plainTxt 'David Price <[EMAIL PROTECTED]>'"); DP> without any problems. But when I try, DP> system("pgp"); DP> I don't get any output. It should display the general help text. It does. But it sends the output to STDERR, which PHP doesn't have access to. If you do this with apache, the output will go straight to the apache, omitting PHP, if from a shell with PHP executable, the lines go to the shell's tty. -- Best regards, Maxim Derkachev mailto:[EMAIL PROTECTED] System administrator & programmer, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: More upload Problems
> That's an unusual location for php.ini? It might be worth checking > through phpinfo() that your installation is looking there and that it > thinks file_uploads is on. > phpinfo agree that /usr/local/php/lib/php.ini is the ini file location, and that file uploads are on. I know that when i submit the form, the value for $userfile is simply being set to the value passed in through the browse button. Any obvious mistake on my part there ? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] The Ultimate Collectors Software Program
Collector+ Is The Ultimate Collectors Software Program The only software tool that you will ever need to catalog, inventory, sort or group anything and everything you own. With this program you not only know what you have but what it's worth! Our software includes all the powerful features you want in a collecting program such as an easy to use input screen, item sorter, calendar program, contact manager with e-mail, web page URL addressing, an image attachment viewing tool and our easy to use folder system. Ability to print out each of your data bases in an easy to read format. You'll be hard pressed to find an easier to use software program that is as powerful as ours at a better price! The Open button, opens the data screen to the folder that you created and allows you to add, delete, edit or copy items in that folder. You can have as many items in a folder as you would like. In other words, if you have 10,000 items that belong in a folder start typing! After all, it's your collection. The Contact Manager allows you to store information about your collecting pen pals, club information, buyers, sellers or just about anyone you can think of. You can even include email addresses and web page URL's. The contact manager has two screens, the first for personal contacts and the second for business contacts. The attach image screen displays all the images that you have associated with an item in your collection. You can attach as many images as you want to an item and use the image button to make one of the images the current or attached image. Of course the rest of the images that you attached to the item are still there, just the one you like the best becomes the one displayed automatically when you click on the image button. To change an items image simply click on the image button, select the image that you want to make current and click on the attach picture button to make that image the current image The Image viewer allows you to view the image that you have attached to an item. You can attach as many images of an item to the item's record, but you can only make one image the primary image. We figured you want to put your "best foot forward" so to speak, and attach the best image to an item so you can quickly show the attached item from the items data screen. We have included a simple and easy to use calender program with our software. Simply click on the calendar option and then double click on a important date and fill in the information. The day will change color on the calender to indicate that their is an event scheduled or their is special note for something that you need to do that day. By clicking on the view all tab, you can view all the records you have in your data base for that folder of items. This gives you a quick and easy way to see the total items you have and their growing value. By clicking on the totals tab, you can get a quick snapshot of the items in that folder. This is a quick and easy item count with resulting value. By clicking on the quick sort tab, you can quickly sort the items in a folder, so if you want to list items by date, style, color etc. you can sort by those factors. As A Special Offer You Also Get A Notepad And A Calculator Built Right Into The Program Only $9.95. We accept checks or money orders. Please Mail Payment to: DRG Company PO Box 12541 Cincinnati Ohio 45212 System Requirements: Windows, 32 RAM, Cd-Rom. Collector+ Is Not Supported By Mac Computers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] The Ultimate Collectors Software Program
Collector+ Is The Ultimate Collectors Software Program The only software tool that you will ever need to catalog, inventory, sort or group anything and everything you own. With this program you not only know what you have but what it's worth! Our software includes all the powerful features you want in a collecting program such as an easy to use input screen, item sorter, calendar program, contact manager with e-mail, web page URL addressing, an image attachment viewing tool and our easy to use folder system. Ability to print out each of your data bases in an easy to read format. You'll be hard pressed to find an easier to use software program that is as powerful as ours at a better price! The Open button, opens the data screen to the folder that you created and allows you to add, delete, edit or copy items in that folder. You can have as many items in a folder as you would like. In other words, if you have 10,000 items that belong in a folder start typing! After all, it's your collection. The Contact Manager allows you to store information about your collecting pen pals, club information, buyers, sellers or just about anyone you can think of. You can even include email addresses and web page URL's. The contact manager has two screens, the first for personal contacts and the second for business contacts. The attach image screen displays all the images that you have associated with an item in your collection. You can attach as many images as you want to an item and use the image button to make one of the images the current or attached image. Of course the rest of the images that you attached to the item are still there, just the one you like the best becomes the one displayed automatically when you click on the image button. To change an items image simply click on the image button, select the image that you want to make current and click on the attach picture button to make that image the current image The Image viewer allows you to view the image that you have attached to an item. You can attach as many images of an item to the item's record, but you can only make one image the primary image. We figured you want to put your "best foot forward" so to speak, and attach the best image to an item so you can quickly show the attached item from the items data screen. We have included a simple and easy to use calender program with our software. Simply click on the calendar option and then double click on a important date and fill in the information. The day will change color on the calender to indicate that their is an event scheduled or their is special note for something that you need to do that day. By clicking on the view all tab, you can view all the records you have in your data base for that folder of items. This gives you a quick and easy way to see the total items you have and their growing value. By clicking on the totals tab, you can get a quick snapshot of the items in that folder. This is a quick and easy item count with resulting value. By clicking on the quick sort tab, you can quickly sort the items in a folder, so if you want to list items by date, style, color etc. you can sort by those factors. As A Special Offer You Also Get A Notepad And A Calculator Built Right Into The Program Only $9.95. We accept checks or money orders. Please Mail Payment to: DRG Company PO Box 12541 Cincinnati Ohio 45212 System Requirements: Windows, 32 RAM, Cd-Rom. Collector+ Is Not Supported By Mac Computers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: More upload Problems
On Thu, 19 Jul 2001 21:31, Jason Rennie wrote: > > Check your php.ini file to see if "file_uploads = on" - it is often > > turned off for security. > > Yep it is turned on. > > And php.ini is in /usr/local/php/lib/php.ini > > Any other ideas ? > > Jason That's an unusual location for php.ini? It might be worth checking through phpinfo() that your installation is looking there and that it thinks file_uploads is on. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Darth Vader sleeps with a Teddywookie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP and Apache on OS X insight?
Hello, I'm getting ready to buy OS X and try to setup Apache with PHP. Anyone have any words of wisdom. Everything I've seen so far make it seem like a hot setup. Is it worth getting OS X server? Thanks Much -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9949 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hack on Server.
I think the following link might shed some more light on the situation: http://news.cnet.com/news/0-1003-200-6604515.html HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] On Fri, 20 Jul 2001 10:12:25 +1000 Brian White <[EMAIL PROTECTED]> wrote: >Maybe the hacker got into the httpd.conf and set the auto-prepend setting >to a file that contained the message. > >Brian > >At 00:34 20/07/2001 +0300, [EMAIL PROTECTED] wrote: >>Hi Jean-Francois! >>On Thu, 19 Jul 2001, Jean-Francois Jauvin wrote: >> >> > Hi, my server with php on it has been "hacked" or something., what >> > appened is every PHP pages displayed a certain message like "Hacked by blah >> > blah blah...". >> > None of the HTML pages were affected, only the PHP ones >> > but the scripts were not altered, I've shut down IIS, reinstalled PHP, and >>Ah, IIS, the magic word. >> >>Maybe you have been hacked by the Bady worm, I saw it in action in the >>test lab :) >> >>-- teodor >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >>To contact the list administrators, e-mail: [EMAIL PROTECTED] > >- >Brian White >Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy >Phone: +612-93197901 >Web: http://www.steptwo.com.au/ >Email: [EMAIL PROTECTED] > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP and Apache on OS X insight?
Hello, I'm getting ready to buy OS X and try to setup Apache with PHP. Anyone have any words of wisdom. Everything I've seen so far make it seem like a hot setup. Is it worth getting OS X server? Thanks Much -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9949 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] SHA-1
Hi all- I searched the mailing list archive but without success. What I am looking for is a PHP implementation of the SHA-1 algorithm. Does anybody know if it is available somewhere? Cheers, Gianluca -- ALBASOFTWARE C/ Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) Tel. +34 93454009 - +34 934549324 Fax. +34 934541979 @@ ICQ 47323154 @@ [EMAIL PROTECTED] http://www.albasoftware.com http://www.phpauction.org http://www.gianlucabaldo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hack on Server.
Maybe the hacker got into the httpd.conf and set the auto-prepend setting to a file that contained the message. Brian At 00:34 20/07/2001 +0300, [EMAIL PROTECTED] wrote: >Hi Jean-Francois! >On Thu, 19 Jul 2001, Jean-Francois Jauvin wrote: > > > Hi, my server with php on it has been "hacked" or something., what > > appened is every PHP pages displayed a certain message like "Hacked by blah > > blah blah...". > > None of the HTML pages were affected, only the PHP ones > > but the scripts were not altered, I've shut down IIS, reinstalled PHP, and >Ah, IIS, the magic word. > >Maybe you have been hacked by the Bady worm, I saw it in action in the >test lab :) > >-- teodor > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] - Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Can't think of a topic(but help)
hey, i am wonder if there is a way to turn my php files into an executable or into a bunch of html files, so if i where to send them to some one that isn't running php they would be able to use them?!? - James "ReDucTor" Mitchell
[PHP] days
The employees here and I have noticed that we have a variable that works when it wants to... But for days at a time. One day it works fine all day. Another day it fills up with garbage instead of what its supposed toBut whats particular about this is that it lasts all day. Good or bad, the behavior lasts all dayCan anyone shed some light on this for us? We are really baffled! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] session problem
> When I open 1.php a 1K > file is created on the server and the contents > (my_session_variable|s:10:"some value";). > When I open 2.php afterwards a 0K file is created on the > server which is empty. This is the problem. For some reason, the 2nd page is creating a new session when it shouldn't. Now the question becomes one of: what is causing the new session to be created? in php.ini is session.use_cookies = 1 If not, try setting that then restarting apache. Else is using trans_sid, you need to make a link in 1.php that takes you to 2.php in order for the magic to occur where ?PHP_SESSID=... gets added to the URL automatically. If you just type in 1.php and then type in 2.php the session variable is not automatically sent along. -- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prevent user to close web browser
On 19-Jul-2001 Mihailo Dzigurski wrote: > Partly can help, but user cannot see report output in web browser. > > Mihailo. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 12:05 AM > To: Mihailo Dzigurski > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Prevent user to close web browser > > > Is this something that "ignore_user_abort" could help with? > > On Thu, 19 Jul 2001, Mihailo Dzigurski wrote: > >> I need it for my intranet web site, some of my users close browser on long >> lasting script and I need to prevent this. >> >> Thanks, >> Mihailo. >> Especially if they close the browser ... Sharp, heavy objects; get some. -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fopen() issue
Why would fopen() refuse to open this url with numbers in it: http://www.555-1212.com/ ? The same code has no issues with urls like http://www.yahoo.com/ or http://slashdot.org/. And it resolves ok on the same box: +-(greg@bajor) +-(~)> nslookup 555-1212.com Server: bajor Address: 0.0.0.0 Non-authoritative answer: Name:555-1212.com Address: 209.10.239.243 I'm running PHP 4.06/Zend Optimizer v1.1.0/Apache 1.3.19/RH 7.1 Any ideas? Thanks... destiney - (des-ti-ny) - n. 1. deity of all things "html", 2. common internet addict, 3. lover of late 80's heavy metal music, 4. Activist for the terminally un-elite; see also - cool guy, des, mr. php... It's 4:00am, your web site is still up, why are you? http://phplinks.org/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] encryption
One of my friends has a rsa key somethings, what it does is that at every few minutes it generate a random number so for login on his server he need this random key and his password to get in, the server generate the same key as his rsa key and has his password. SO the best things to do will be to make two program that use something to generate a random alphanumeric something on the server side and on your client side so when you connect to the server both have you has this key + your password, if it's OK it start a PHP session. And the key should be regenerated once you have login. SO even if somebody extract the clear text key+password from your connection he can't connect because this key+password is already passdue, the only possible attack then is to find the algorithm that you use+password, by changing your algorithm once in a while you can really limit this, they other attack could be a man in the middle attack, that could hurt. Good idea, I have to use this (let's put-it down on my project list,...), I could even put the generate stuff on my pda, I could login from anywhere... ;) Tom Malone wrote: > > I guess I should clarify - I'm just making a login for myself for the admin > section of my website, so I only need to be able to protect my own password. > I'm not sure if that information if helpful at all, but I haven't been able > to figure out how to do it. > > Tom > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 3:21 PM > To: Sheridan Saint-Michel > Cc: php-general > Subject: Re: [PHP] encryption > > Ahh, well then, another solution could be to use SSL, depends on your > application weather you can get away with using an unsigned certificate > (free) or > weather you will need to pay a company like verisign to prove your identity. > > With an unsigned certificate the browser will warn the user that the > certificate says > it's you, but it's not proven by a CA so it might not be you. > > The JavaScript MD5 tenique is an interesting way of doing it, but i don't > think it's > any more secure. If a hacker sniffs the md5 hash how is that any diffrent > than him > sniffing a plain text password? You're comparing hashes, so as long as he > has the hash > he's in. > > On Thu, Jul 19, 2001 at 01:58:43PM -0500, Sheridan Saint-Michel wrote: > > The problem he is addressing is that the password is sent plaintext to the > > server before it ever gets to MySQL. > > > > I would suggest using a JavaScript program like this > > http://pajhome.org.uk/crypt/md5/md5src.html > > > > and then using the PHP md5 function on the server side and comparing the > two > > results. > > That way the only thing that ever gets transmitted is an md5 hash =P > > > > Sheridan > > > > - Original Message - > > From: Jeff Bearer <[EMAIL PROTECTED]> > > To: Tom Malone <[EMAIL PROTECTED]> > > Cc: PHP Users <[EMAIL PROTECTED]> > > Sent: Thursday, July 19, 2001 12:17 PM > > Subject: Re: [PHP] encryption > > > > > > > I'd use the password function in mysql to store encrypted passwords, > I'd > > be interested to hear > > > if anyone has a reason that doing this is not a good idea. > > > > > > > > > > > > On Thu, Jul 19, 2001 at 12:52:55PM -0400, Tom Malone wrote: > > > > Hello! > > > > > > > > I have a small problem. On my website there is some information I > would > > like > > > > to protect. Right now I am using .htaccess to password-protect the > > > > directory, but I was thinking about using php and a form with > > > > usernames/passwords in a MySQL database. Thankfully, I read the > > following in > > > > the manual right before I was about to use the crypt() function to > > encrypt > > > > my password and compare it to the encrypted hash in the DB: > > > > > > > > "It seems that a lot of people don't understand the point of using > > one-way > > > > encryption. More importantly, a lot of web designers forget that PHP > > > > encryption is done entirely on the web server, not the client. > > > > > > > > > > > > > > > > Point being, if your form has a password input option and the user > > clicks > > > > SUBMIT, the password is then sent _as plain text_ over the Internet to > > the > > > > web server where it is then encrypted for comparison against a > password > > > > database. > > > > > > > > > > > > > > > > Do _not_ use these types of functions to add security to a form unless > > > > you're using an SSL or TLS (etc.) encrypted session. The only > potential > > way > > > > around this issue is for you to write a JavaScript program that does > the > > > > hashing on the client side before being sent over the Internet (which > > would > > > > make this function unnecessary)." > > > > > > > > I am pretty new to PHP and absolutely clueless as far as > > > > encryption/algorithims are concerned. Could anyone possibly point me > to > > a > > > > viable solution for this problem? > > > > > > > > Thanks in advance! > > > > > > > > Tom Malone > >
RE: [PHP] Prevent user to close web browser
Partly can help, but user cannot see report output in web browser. Mihailo. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 12:05 AM To: Mihailo Dzigurski Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Prevent user to close web browser Is this something that "ignore_user_abort" could help with? On Thu, 19 Jul 2001, Mihailo Dzigurski wrote: > I need it for my intranet web site, some of my users close browser on long > lasting script and I need to prevent this. > > Thanks, > Mihailo. > > -Original Message- > From: kath [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 2:39 PM > To: Mihailo Dzigurski > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Prevent user to close web browser > > > Not with PHP. Maybe some Javascript could. > > But why would you want this? Planning some infinite spawning pop up > website? > =) > > - k > > On Thursday 19 July 2001 08:28 am, you wrote: > > Hello, > > > > I need to prevent user to close the web browser on close button or by > > pressing ALT+F4. > > > > Is this possible? > > > > Thanks, > > Mihailo. > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > -- July 19, 2001: Thursday is a choice. Freedom lives best by ending in decision. --http://artwells.com/oracula/ _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prevent user to close web browser
Is this something that "ignore_user_abort" could help with? On Thu, 19 Jul 2001, Mihailo Dzigurski wrote: > I need it for my intranet web site, some of my users close browser on long > lasting script and I need to prevent this. > > Thanks, > Mihailo. > > -Original Message- > From: kath [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 2:39 PM > To: Mihailo Dzigurski > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Prevent user to close web browser > > > Not with PHP. Maybe some Javascript could. > > But why would you want this? Planning some infinite spawning pop up > website? > =) > > - k > > On Thursday 19 July 2001 08:28 am, you wrote: > > Hello, > > > > I need to prevent user to close the web browser on close button or by > > pressing ALT+F4. > > > > Is this possible? > > > > Thanks, > > Mihailo. > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > -- July 19, 2001: Thursday is a choice. Freedom lives best by ending in decision. --http://artwells.com/oracula/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] encryption
I guess I should clarify - I'm just making a login for myself for the admin section of my website, so I only need to be able to protect my own password. I'm not sure if that information if helpful at all, but I haven't been able to figure out how to do it. Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 3:21 PM To: Sheridan Saint-Michel Cc: php-general Subject: Re: [PHP] encryption Ahh, well then, another solution could be to use SSL, depends on your application weather you can get away with using an unsigned certificate (free) or weather you will need to pay a company like verisign to prove your identity. With an unsigned certificate the browser will warn the user that the certificate says it's you, but it's not proven by a CA so it might not be you. The JavaScript MD5 tenique is an interesting way of doing it, but i don't think it's any more secure. If a hacker sniffs the md5 hash how is that any diffrent than him sniffing a plain text password? You're comparing hashes, so as long as he has the hash he's in. On Thu, Jul 19, 2001 at 01:58:43PM -0500, Sheridan Saint-Michel wrote: > The problem he is addressing is that the password is sent plaintext to the > server before it ever gets to MySQL. > > I would suggest using a JavaScript program like this > http://pajhome.org.uk/crypt/md5/md5src.html > > and then using the PHP md5 function on the server side and comparing the two > results. > That way the only thing that ever gets transmitted is an md5 hash =P > > Sheridan > > - Original Message - > From: Jeff Bearer <[EMAIL PROTECTED]> > To: Tom Malone <[EMAIL PROTECTED]> > Cc: PHP Users <[EMAIL PROTECTED]> > Sent: Thursday, July 19, 2001 12:17 PM > Subject: Re: [PHP] encryption > > > > I'd use the password function in mysql to store encrypted passwords, I'd > be interested to hear > > if anyone has a reason that doing this is not a good idea. > > > > > > > > On Thu, Jul 19, 2001 at 12:52:55PM -0400, Tom Malone wrote: > > > Hello! > > > > > > I have a small problem. On my website there is some information I would > like > > > to protect. Right now I am using .htaccess to password-protect the > > > directory, but I was thinking about using php and a form with > > > usernames/passwords in a MySQL database. Thankfully, I read the > following in > > > the manual right before I was about to use the crypt() function to > encrypt > > > my password and compare it to the encrypted hash in the DB: > > > > > > "It seems that a lot of people don't understand the point of using > one-way > > > encryption. More importantly, a lot of web designers forget that PHP > > > encryption is done entirely on the web server, not the client. > > > > > > > > > > > > Point being, if your form has a password input option and the user > clicks > > > SUBMIT, the password is then sent _as plain text_ over the Internet to > the > > > web server where it is then encrypted for comparison against a password > > > database. > > > > > > > > > > > > Do _not_ use these types of functions to add security to a form unless > > > you're using an SSL or TLS (etc.) encrypted session. The only potential > way > > > around this issue is for you to write a JavaScript program that does the > > > hashing on the client side before being sent over the Internet (which > would > > > make this function unnecessary)." > > > > > > I am pretty new to PHP and absolutely clueless as far as > > > encryption/algorithims are concerned. Could anyone possibly point me to > a > > > viable solution for this problem? > > > > > > Thanks in advance! > > > > > > Tom Malone > > > -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] oracle
El código que tengo es el siguiente: $bdd="ORANT"; $lugar="D:\\Oracle"; PutEnv("ORACLE_SID=$bdd"); PutEnv("ORACLE_HOME=$lugar"); $conn=ocilogon("SYSTEM","MANAGER","ORANT"); OCICommit($conn); $consulta="select * from prueba"; $result1 = ociparse($conn,$consulta); ociexecute($result1,OCI_DEFAULT); while (ocifetch($result1)) { $NOMBRE=ociresult($result1,"NOMBRE"); echo "NOMBRE=$NOMBRE"; } OCIFreeStatement($result1); Por favor dime en que parte estoy equivocada. - Original Message - From: "Martin Marconcini" <[EMAIL PROTECTED]> To: "'Marisol Díaz E.'" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 4:11 PM Subject: RE: [PHP] oracle > Estas intentando declarar Environment Variables? > > No entendí muy bien... simplemente vi el error de la \ > > > Regards, > > Martin Marconcini > www.marconcini.com.ar > > "Life must be lived looking forward and can be understood only looking > backward." Soren Kierkegaard > > > -Original Message- > > From: Marisol Díaz E. [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, July 19, 2001 6:05 PM > > To: Martin Marconcini > > Subject: Re: [PHP] oracle > > > > Hola Martin, > > > > Ya le puse el \, pero igual me sale el mismo error: > > > > > > Warning: _oci_open_server: Error while trying to retrieve text for > error > > ORA-12154 in d:\inetpub\wwwroot\prueba.php on line 17 > > > > No se como declarar esas variables de ambiente, no se si tal vez de > las > > declara en algún otro lado? > > > > O las estoy declarando mal? > > > > > > Marisol > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 'cross site scripting' and 'insecure cookies'
any one know more about these than this article talks about? http://news.cnet.com/news/0-1007-202-2870712.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Image Submission into a Database & Updating
the function unlink() will delete your old file... http://www.php.net/manual/en/function.unlink.php - Original Message - From: "Brad R. C." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 3:01 PM Subject: [PHP] Image Submission into a Database & Updating > Ok.. I have created a submission form that works great just like what I > want.. > > but there is one minor detail if possible to figure out. When I let users > upload a photo to my site, the image will be stored on the server hdd and > the name of the image will be stored in the database. Works great!.. but > lets say they submit another image in the same form.. it will overwrite the > image name in the database, and uploads the new image.. but what about the > old one? It stays dorment unusable and taking up space on my hdd. So... my > question is.. what line can I add to delete the image before or after > uploading the new one. I mean you can make the old name value into a temp > value, and then it will overwrite the original value and you still have the > temp value.. I think.. here is what by submit code looks like. Hopefully > someone can figure this out. > > -code : > if ($submit) { > $connection = mysql_pconnect(SQL_SERVER, SQL_UID, SQL_PWD); > > mysql_select_db(SQL_DB, $connection); > > $sql = "UPDATE user SET > desc_one='".addslashes($desc_one)."',photo_one='".addslashes($picture_name). > "' WHERE userid='userid'"; > > mysql_query($sql); > > exec("cp $picture /root/lets/play/folder/tag/images/$picture_name"); > > return 0; > } > -code end. > > Thanks > BradC > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Image Submission into a Database & Updating
Ok.. I have created a submission form that works great just like what I want.. but there is one minor detail if possible to figure out. When I let users upload a photo to my site, the image will be stored on the server hdd and the name of the image will be stored in the database. Works great!.. but lets say they submit another image in the same form.. it will overwrite the image name in the database, and uploads the new image.. but what about the old one? It stays dorment unusable and taking up space on my hdd. So... my question is.. what line can I add to delete the image before or after uploading the new one. I mean you can make the old name value into a temp value, and then it will overwrite the original value and you still have the temp value.. I think.. here is what by submit code looks like. Hopefully someone can figure this out. -code : if ($submit) { $connection = mysql_pconnect(SQL_SERVER, SQL_UID, SQL_PWD); mysql_select_db(SQL_DB, $connection); $sql = "UPDATE user SET desc_one='".addslashes($desc_one)."',photo_one='".addslashes($picture_name). "' WHERE userid='userid'"; mysql_query($sql); exec("cp $picture /root/lets/play/folder/tag/images/$picture_name"); return 0; } -code end. Thanks BradC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hack on Server.
Hi Jean-Francois! On Thu, 19 Jul 2001, Jean-Francois Jauvin wrote: > Hi, my server with php on it has been "hacked" or something., what > appened is every PHP pages displayed a certain message like "Hacked by blah > blah blah...". > None of the HTML pages were affected, only the PHP ones > but the scripts were not altered, I've shut down IIS, reinstalled PHP, and Ah, IIS, the magic word. Maybe you have been hacked by the Bady worm, I saw it in action in the test lab :) -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Query
You wrote: "Ryan Fischer" <[EMAIL PROTECTED]> wrote in message 01d901c1101e$9cd43220$80c93fd0@ryan">news:01d901c1101e$9cd43220$80c93fd0@ryan... > You wrote: > > I have a table that looks like > > > > Name | Type | X | Y > > > > Foo| Ship | 9 | 29 > > Bar| Base | 9 | 29 > > > > Is there any way I can write a query that selects > > everything with Type = Base, and X and Y = Foo's X and Y? > > > > ie > > > > "Select * from table where type = Base and X = {Foo:X} and Y = > {Foo:Y}"; > > $result = mysql_query("select x, y from table where name = 'Foo'"); > $info = mysql_fetch_object($result); > $x = $info->x; > $y = $info->y; > mysql_free_result($result); > $result = mysql_query("select * from table where type = 'Base', x = 'x', > y = 'y'"); > $info = mysql_fetch_object($result); > // Use properties of $info here. > mysql_free_result($result); "Marcus Hartmann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... the statement should look like this: > $result = mysql_query("select * from table where type = 'Base' and x = 'x' and > y = 'y'"); Oops. And I see one other mistake here, too. The query really should be: $result = mysql_query("select * from table where type = 'Base' and x = '$x' and y = '$y'"); -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Variable dump on error
Read http://php.net/set_error_handler and http://php.net/trigger_error Pay particular attention to the user notes on the set_error_handler() page. -Rasmus On Thu, 19 Jul 2001, Randy Miller wrote: > Using mod_perl when an error is encountered, I have a customized error > screen that is defined in http.conf that is displayed to the user. This is > just a customized 500 page that then emails me which page crashed and all > of the local variables. > > I can't seem to find a way to do this in PHP 4.0.6. Mod_Perl on error > throws a 500 to the webserver, where PHP seems to just keep on > going. Suppressing the errors only seems to return an empty page with a > status of 200 as verified in my apache logs. I realize that I could have an > error handling statement around every possible place an error could occur, > but this doesn't seem very efficient to me. > > Does anybody know of a way to generate an email on error with all the > current variables? > > > Randy Miller -- Team Leader, Web Development > HighWired.com -- Your high school connection > http://www.highwired.com/ > [EMAIL PROTECTED] -- 617.393.2233 > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Query
the statement should look like this: $result = mysql_query("select * from table where type = 'Base' and x = 'x' and y = 'y'"); "Ryan Fischer" <[EMAIL PROTECTED]> wrote in message 01d901c1101e$9cd43220$80c93fd0@ryan">news:01d901c1101e$9cd43220$80c93fd0@ryan... > You wrote: > > I have a table that looks like > > > > Name | Type | X | Y > > > > Foo| Ship | 9 | 29 > > Bar| Base | 9 | 29 > > > > Is there any way I can write a query that selects > > everything with Type = Base, and X and Y = Foo's X and Y? > > > > ie > > > > "Select * from table where type = Base and X = {Foo:X} and Y = > {Foo:Y}"; > > $result = mysql_query("select x, y from table where name = 'Foo'"); > $info = mysql_fetch_object($result); > $x = $info->x; > $y = $info->y; > mysql_free_result($result); > $result = mysql_query("select * from table where type = 'Base', x = 'x', > y = 'y'"); > $info = mysql_fetch_object($result); > // Use properties of $info here. > mysql_free_result($result); > > I think your reasoning is a little jumbled, though. There may be some > way to do what you want to do with one query. There usually is for the > simple things. I'm not quite sure what you want to accomplish, though. > HTH. :) > > -- > -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] bug?
Does anybody know of a common bug where a variable contains what seems to be a generated random number instead of the input data that was given? I'm inputting all sorts of info and only one variable is acting strange..hmmm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] oracle
> $lugar="D:\Oracle"; "D:\\Oracle" I suppose. The escape character! Regards, Martin Marconcini www.marconcini.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Hack on Server.
Hi, my server with php on it has been "hacked" or something., what appened is every PHP pages displayed a certain message like "Hacked by blah blah blah...". None of the HTML pages were affected, only the PHP ones but the scripts were not altered, I've shut down IIS, reinstalled PHP, and everything is back to normal... kinda strange. Did anyone had a similar problem... Thanks JF -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] oracle
Hi, I'm working with php4 and oracle in windows2000, I have problems with this variables. $lugar="D:\Oracle"; $bdd="orant"; PutEnv("ORACLE_SID=$bdd"); PutEnv("ORACLE_HOME=$lugar"); It don't work, I don't know what is the value of $lugar. Thanks. Marisol
Re: [PHP] concatentation problems ...
Kenn Murrah wrote: > I need to concatenate several variables, some of which are text and > some of which are integers ... e.g. > > $desired_string = $number . $text . $number2 . $text > > always seems to truncate after first number ... Strange. If that's really the case, you might try to type-cast the numbers to strings by placing (string) in front of them. $desired_string = (string)$number . $text . (string)$number2 . $text regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] concatentation problems ...
never mind ... one lousy missing double quote on the form ... geez -Original Message- From: Kenn Murrah [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 3:00 PM To: [EMAIL PROTECTED] Subject: [PHP] concatentation problems ... Greetings. I've searched the manual and can't find what I need ... PLEASE point me in the right direction. I need to concatenate several variables, some of which are text and some of which are integers ... e.g. $desired_string = $number . $text . $number2 . $text where $text and $text2 are strings and $number and $number2 are integers ... always seems to truncate after first number ... i know this is elementary, but if someone could point me to the proper document, i'd really appreciate it. Thanks, kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] concatentation problems ...
Greetings. I've searched the manual and can't find what I need ... PLEASE point me in the right direction. I need to concatenate several variables, some of which are text and some of which are integers ... e.g. $desired_string = $number . $text . $number2 . $text where $text and $text2 are strings and $number and $number2 are integers ... always seems to truncate after first number ... i know this is elementary, but if someone could point me to the proper document, i'd really appreciate it. Thanks, kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Need some RegEx help
Okay, I've been asked to take a bunch of HTML pages and turn them into Excel spreadsheets by running them through a PHP script and outputting a semicolon-delimited text file. The pages are in this format: Name: LAST, FIRST MIDDLE Pilot's Address : ADDRESS LINE 1 ADDRESS LINE 2 (Some stuff that doesn't go on the final spreadsheet) Pilot Certificates : Pilot Certification Sub-certification Sub-certification : Pilot Certification Sub-certification Sub-certification I don't know ANY regex, being a somewhat new PHP programmer, but using some cut and paste, I've managed to get the name and address out like this: ",$pilotlist); for ($x = 0; $x < count($pilotarray); $x++) { ereg("Name: (.*), (.*) Pilot's Address : (.*) (.*) (.*):", $pilotarray[$x], $out); $firstmid = explode(" ",$out[2]); echo("$firstmid[0];"); if (count($firstmid)==2) echo($firstmid[1]); echo (";$out[1];$out[3];$out[4]"); } ?> Now, stop laughing. I can't figure out how to add the pilot certifications on there, since (.*) is just about the extent of my regex knowledge. Each pilot on the list has a different number of certifications and sub-certifications. If anyone can help at all, even if it's just pojnting me to a good Regex tutorial, I'd be much obliged. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Email Software
...and also a really sleazy way to annoy people. > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 3:35 PM > To: Wee Chua; PHP (E-mail) > Subject: Re: [PHP] Email Software > > > On Wednesday 18 July 2001 14:50, Wee Chua wrote: > > Hi all, > > I need a little help from you guys. Can anyone tell what is the best > > software for sending million emails at a time or something > > like that? Where can I buy email addresses from? Thank > > you! > > Note that spamming is the cheapest way to make millions of people really > mad at you. > > -- > Christian Reiniger > LGDC Webmaster (http://lgdc.sunsite.dk/) > > REALITY.SYS corrupted ... reboot Universe [Y,n]? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] displaying latest DB entries
Hi, I've got a MySQL database setup with several different tables. What I'd like to do is to display the last five records entered into the database. I can do this easily from one table just by listing the records with the five highest IDs, but how can I do this over several tables? I don't want to list the last 5 records entered from each table but from the whole database. Is there any easy way of doing this? Thanks. Jamie Saunders [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sessions and linking
I'm programming an easy webmail and I've tried to use sessions. It works perfectly with cookies activated in the browser but I want it to be able for people which doesn't like cookies. If I've understood this correctly I should be able to fetch the sessiondata if I link something like theinbox.php?PHPSESSID=thesessionid - it won't work tho. I use session_start() in theinbox.php Anyone who has any idea about what I'm doing wrong? Should I define the session id for session_start or something? Best regards, Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Paypal and PHP
I think this is the complete form i use for paypal, might be an old version. check the paypal.com website in the button generator section they give the variables to be passed. https://www.paypal.com/cgi-bin/webscr"; METHOD="POST"> http://www.yourhost.com/";> http://www.yourhost.com/";> - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: "chris schneck" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:49 AM Subject: Re: [PHP] Paypal and PHP > have you used paypal system before? > if so how did you set it up, because i don't wish to sort thro all the > includes, work out what does what, etc > - James "ReDucTor" Mitchell > - Original Message - > From: chris schneck <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 20, 2001 12:27 AM > Subject: Re: [PHP] Paypal and PHP > > > > theexchangeproject.org has a "module" built into their store that works > > directly with paypal, ive set up and succesfully used it to tie into a > > paypal account. Although it might be a little more powerful than what you > > want, the code there shows which variables to be passed to paypal to make > a > > transaction. That information is also on paypal's website. > > - Original Message - > > From: "ReDucTor" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, July 19, 2001 7:12 AM > > Subject: [PHP] Paypal and PHP > > > > > > Hey, > > does any one know a way to use paypal with php? > > - James "ReDucTor" Mitchell > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: array question
You wrote: > Also, consider using print or echo as opposed to printf. And lastly, you > really don't need to use mysql_free_result, PHP does this automagically > after the script dies. Sorry for picking on you, you may have your > reasons. ;-) Really? Then why was it that, when I neglected to use mysql_free_result() in some of my scripts, lots of memory was eaten up because of lingering results? -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Email Software
On Wednesday 18 July 2001 14:50, Wee Chua wrote: > Hi all, > I need a little help from you guys. Can anyone tell what is the best > software for sending million emails at a time or something > like that? Where can I buy email addresses from? Thank > you! Note that spamming is the cheapest way to make millions of people really mad at you. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] a good PHP editor
Chris Schneck wrote: > I've never heard windows 95 and great in the same sentence. > Funnily enough, I have heard the two in the same sentence: I've heard that Windows 95 turns perfectly good computers into great doorstops. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTML in XML???
On Wednesday 18 July 2001 16:10, Leon wrote: > Hi, > Is there some way to include HTML tags in a XML doc??? > I want to use a XML document to include HTML data for my > webpage. I have made a solution of replacing a special word to > the '<' and '>" of a HTML tag. > But I think my solution is very stupid. This should work: -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] encryption
Ahh, well then, another solution could be to use SSL, depends on your application weather you can get away with using an unsigned certificate (free) or weather you will need to pay a company like verisign to prove your identity. With an unsigned certificate the browser will warn the user that the certificate says it's you, but it's not proven by a CA so it might not be you. The JavaScript MD5 tenique is an interesting way of doing it, but i don't think it's any more secure. If a hacker sniffs the md5 hash how is that any diffrent than him sniffing a plain text password? You're comparing hashes, so as long as he has the hash he's in. On Thu, Jul 19, 2001 at 01:58:43PM -0500, Sheridan Saint-Michel wrote: > The problem he is addressing is that the password is sent plaintext to the > server before it ever gets to MySQL. > > I would suggest using a JavaScript program like this > http://pajhome.org.uk/crypt/md5/md5src.html > > and then using the PHP md5 function on the server side and comparing the two > results. > That way the only thing that ever gets transmitted is an md5 hash =P > > Sheridan > > - Original Message - > From: Jeff Bearer <[EMAIL PROTECTED]> > To: Tom Malone <[EMAIL PROTECTED]> > Cc: PHP Users <[EMAIL PROTECTED]> > Sent: Thursday, July 19, 2001 12:17 PM > Subject: Re: [PHP] encryption > > > > I'd use the password function in mysql to store encrypted passwords, I'd > be interested to hear > > if anyone has a reason that doing this is not a good idea. > > > > > > > > On Thu, Jul 19, 2001 at 12:52:55PM -0400, Tom Malone wrote: > > > Hello! > > > > > > I have a small problem. On my website there is some information I would > like > > > to protect. Right now I am using .htaccess to password-protect the > > > directory, but I was thinking about using php and a form with > > > usernames/passwords in a MySQL database. Thankfully, I read the > following in > > > the manual right before I was about to use the crypt() function to > encrypt > > > my password and compare it to the encrypted hash in the DB: > > > > > > "It seems that a lot of people don't understand the point of using > one-way > > > encryption. More importantly, a lot of web designers forget that PHP > > > encryption is done entirely on the web server, not the client. > > > > > > > > > > > > Point being, if your form has a password input option and the user > clicks > > > SUBMIT, the password is then sent _as plain text_ over the Internet to > the > > > web server where it is then encrypted for comparison against a password > > > database. > > > > > > > > > > > > Do _not_ use these types of functions to add security to a form unless > > > you're using an SSL or TLS (etc.) encrypted session. The only potential > way > > > around this issue is for you to write a JavaScript program that does the > > > hashing on the client side before being sent over the Internet (which > would > > > make this function unnecessary)." > > > > > > I am pretty new to PHP and absolutely clueless as far as > > > encryption/algorithims are concerned. Could anyone possibly point me to > a > > > viable solution for this problem? > > > > > > Thanks in advance! > > > > > > Tom Malone > > > -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP page will not load at all
I had a few problems installing php but finally got it, Apache and MySql installed. Or so I thought. The first time I tried to open a sample php page, I got the error saying I was missing odbc32.dll. So, I went ahead and put a copy of the dll where it belonged so, it should work now right? Wrong. Whenever I try to go to my sample php page now, it just sits forever until it times out. Help! Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Form verification
If you want it displayed by the missing fields try something like formA must be filled out!"; echo "formB"; if(isset($submit) && $submit != "" && (!isset($formB) || $formB == "") ) echo "formB must be filled out!"; echo "formB"; echo ""; ?> Hope that helps Sheridan - Original Message - From: King, Justin <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:31 PM Subject: [PHP] Form verification > I'm trying to come up with a general solution for validating data in > forms as far as empty fields. I've considered doing javascript, but > would prefer to do the method where the page shows the previous form, > with notes near fields that need to be filled out properly. > > My problem is I am trying to come up with a solution that will work in > several forms so I don't have to modify every form I create. Any > suggestions plus example code would be greatly appreciated. Thanks > > -Justin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Page Expired...!!!
Hi! Well I have a form page. WHen people submit the information, they and they go to the other page where form action is specified, they should not be able to come back to the form page. They should get a message saying the Page expired. The concept is used on http://www.mtnsms.com Please tell me how is this possible. Thank You Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] encryption
The problem he is addressing is that the password is sent plaintext to the server before it ever gets to MySQL. I would suggest using a JavaScript program like this http://pajhome.org.uk/crypt/md5/md5src.html and then using the PHP md5 function on the server side and comparing the two results. That way the only thing that ever gets transmitted is an md5 hash =P Sheridan - Original Message - From: Jeff Bearer <[EMAIL PROTECTED]> To: Tom Malone <[EMAIL PROTECTED]> Cc: PHP Users <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:17 PM Subject: Re: [PHP] encryption > I'd use the password function in mysql to store encrypted passwords, I'd be interested to hear > if anyone has a reason that doing this is not a good idea. > > > > On Thu, Jul 19, 2001 at 12:52:55PM -0400, Tom Malone wrote: > > Hello! > > > > I have a small problem. On my website there is some information I would like > > to protect. Right now I am using .htaccess to password-protect the > > directory, but I was thinking about using php and a form with > > usernames/passwords in a MySQL database. Thankfully, I read the following in > > the manual right before I was about to use the crypt() function to encrypt > > my password and compare it to the encrypted hash in the DB: > > > > "It seems that a lot of people don't understand the point of using one-way > > encryption. More importantly, a lot of web designers forget that PHP > > encryption is done entirely on the web server, not the client. > > > > > > > > Point being, if your form has a password input option and the user clicks > > SUBMIT, the password is then sent _as plain text_ over the Internet to the > > web server where it is then encrypted for comparison against a password > > database. > > > > > > > > Do _not_ use these types of functions to add security to a form unless > > you're using an SSL or TLS (etc.) encrypted session. The only potential way > > around this issue is for you to write a JavaScript program that does the > > hashing on the client side before being sent over the Internet (which would > > make this function unnecessary)." > > > > I am pretty new to PHP and absolutely clueless as far as > > encryption/algorithims are concerned. Could anyone possibly point me to a > > viable solution for this problem? > > > > Thanks in advance! > > > > Tom Malone > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > Jeff Bearer, RHCE > Webmaster > PittsburghLIVE.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Read and write
Thank i found number_format() that work find! -- --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- François Boucher [EMAIL PROTECTED] --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: array question
Simple change : mysql_fetch_object to : mysql_fetch_array or mysql_fetch_row By default, mysql_fetch_array will allow for : $row[2] and $row['fieldname'] And mysql_fetch_row will allow for : $row[2] And as you know, mysql_fetch_object allows for : $row->fieldname See the manual for examples and explanation : http://php.net/manual/en/function.mysql-fetch-array.php Also, consider using print or echo as opposed to printf. And lastly, you really don't need to use mysql_free_result, PHP does this automagically after the script dies. Sorry for picking on you, you may have your reasons. ;-) regards, Philip James W Greene wrote: > Hi All, > I am trying to pull info out of a table and assign a var name to each > field... I seem to be having trouble. I have tried to do $var = $row[0] > but that does not seem to do it. I have included what is working below. > I would like to have each element of the array stored in a seperate > variable > for use on a web page. Thanks > JG > > $stmt = 'SELECT * FROM custdata WHERE UserName like "fred"'; > mysql_connect($localhost,test,testme); > $result = mysql_db_query("test",$stmt) ; > while($row = mysql_fetch_object($result)) { > //** doing this now**// > printf("%s", > $row->UserName) ; > // **Would like to do something like**// > // $user = $row[0]; // > > } > mysql_free_result($result); > ?> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] set decimal
$var = round(2.3100, $var); - Original Message - From: Franky <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 4:38 AM Subject: [PHP] set decimal > Can i set the precision like 2 decimal or 4 decimal? > > 2.31 to 2.3100 > > Thanks > > -- > --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- > François Boucher >[EMAIL PROTECTED] >___ > _ ( hello... ) > Q _/\ __/ > > ¸L > --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] set decimal
Can i set the precision like 2 decimal or 4 decimal? 2.31 to 2.3100 Thanks -- --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- François Boucher [EMAIL PROTECTED] ___ _ ( hello... ) Q _/\ __/ ¸L --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Memory Leaks
I have a site that is doing moderate traffic (about 25 per day). The site is configured as follows: SuSE 7.2 distribution Linux 2.4.4 kernel PHP-4.0.4pl1 Apache 1.3.19 open_ssl Dell PowerApp 1200 with 1gig ram When we review the error_log from apache, we see the following alot: zend_hash.c(291) : Freeing 0x0812738C (65 bytes), script=/www/dmp/app/index.php Last leak repeated 152 times Here is the script refered to: I have searched the archives, as well as several forums regarding this issue and have not found anything that is helping. I would greatly appreciate your input on this matter. -- Paul Strange Lead Programmer Level 67 LC --- eMail: [EMAIL PROTECTED] Office: 801.486.4686 Fax: 801.994.0467 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP/mySQL Query....
Whoops.. do SELECT DISTINCT -Justin -Original Message- From: "Jeff Lewis" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 1:08 PM To: King, Justin; [EMAIL PROTECTED] Subject: Re: [PHP] PHP/mySQL Query Yes but for the first query all I want to do is list the locations and not multiple times Jeff - Original Message - From: "King, Justin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 1:46 PM Subject: RE: [PHP] PHP/mySQL Query I'm assuming you're trying to join them and show resumeID also with this SELECT r.resumeID,r.userID,u.location FROM resumes r,users u WHERE r.userID=u.userID; -Original Message- From: "Jeff Lewis" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/mySQL Query Ok, using PHP and mySQL have two tables that look something like this; Table 1 (users): userID location Table 2 (resumes): resumeID userID I am trying to form a query to pull all the locations and list them on the page. While I could only just select from the users one I do want to be able to pull up the resumes as well. What is the best query for this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP/mySQL Query....
Yes but for the first query all I want to do is list the locations and not multiple times Jeff - Original Message - From: "King, Justin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 1:46 PM Subject: RE: [PHP] PHP/mySQL Query I'm assuming you're trying to join them and show resumeID also with this SELECT r.resumeID,r.userID,u.location FROM resumes r,users u WHERE r.userID=u.userID; -Original Message- From: "Jeff Lewis" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/mySQL Query Ok, using PHP and mySQL have two tables that look something like this; Table 1 (users): userID location Table 2 (resumes): resumeID userID I am trying to form a query to pull all the locations and list them on the page. While I could only just select from the users one I do want to be able to pull up the resumes as well. What is the best query for this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Ocifreestatement() and shared memory error?
Michael Champagne wrote: > > We recently ran into Oracle error ORA-04031 which has something to do with > your shared memory being filled up or thrashed (I'm not a DBA so I'm vague on > this.) I noticed that a lot of the PHP code on the site is not using > ocifreestatement() or ocilogoff() after executing. Could this have caused > this problem? We restarted the database and now everything seems to work ok. Always close Ora connections or else ... -Stathis. > We ran into the error inserting some records into a table with some triggers > on it. > > Thanks in advance, > Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP mail() security hole on 4.0.5+
> > -Original Message- > > From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, July 19, 2001 9:39 AM > > To: PHP Mailing List > > Subject: [PHP] PHP mail() security hole on 4.0.5+ > > > > > > http://www.net-security.org/text/bugs/995534103,28541,.shtml > > Anyone have suggestions on a quick fix for this? Is there some sort of > validation on the user input that should be done? Note that it is only a problem on shared servers where safe-mode is turned on. For those servers a really quick-fix is to disable the mail function in your php.ini file. A better fix is to apply this patch: http://cvs.php.net/viewcvs.cgi/php4/ext/standard/mail.c.diff?r1=text&tr1=1.33&r2=text&tr2=1.38&diff_format=u -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP/mySQL Query....
I'm assuming you're trying to join them and show resumeID also with this SELECT r.resumeID,r.userID,u.location FROM resumes r,users u WHERE r.userID=u.userID; -Original Message- From: "Jeff Lewis" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/mySQL Query Ok, using PHP and mySQL have two tables that look something like this; Table 1 (users): userID location Table 2 (resumes): resumeID userID I am trying to form a query to pull all the locations and list them on the page. While I could only just select from the users one I do want to be able to pull up the resumes as well. What is the best query for this? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] array question
Try using mysql_fetch_array instead of mysql_fetch_object. You then then use a simple loop to assign your variables e.g. foreach($row as $k=>$v) { $GLOBALS[$k] = $v; // or $GLOBALS[$k][$i++] = $v if multiple records being read } This will result in a set of global variables matching your database fields names. -Stewart -Original Message- From: James W Greene [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 18:37 To: php-general Subject: [PHP] array question Hi All, I am trying to pull info out of a table and assign a var name to each field... I seem to be having trouble. I have tried to do $var = $row[0] but that does not seem to do it. I have included what is working below. I would like to have each element of the array stored in a seperate variable for use on a web page. Thanks JG UserName) ; // **Would like to do something like**// // $user = $row[0]; // } mysql_free_result($result); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP/mySQL Query....
Ok, using PHP and mySQL have two tables that look something like this; Table 1 (users): userID location Table 2 (resumes): resumeID userID I am trying to form a query to pull all the locations and list them on the page. While I could only just select from the users one I do want to be able to pull up the resumes as well. What is the best query for this? Jeff
RE: [PHP] a good PHP editor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I wonder if Emacs runs on win2k it ran on win95 great... Emacs/Windows runs fine on win2k. -BEGIN PGP SIGNATURE- Version: PGP 7.0.3- signed for information authentication and security Comment: Key ID: 0x51046CFD iQA/AwUBO1cb6daLYehRBGz9EQKthwCg9gbFE2rQwzsVuwYe2P6e0ZY+aAAAnA8r qeqqp7tiWClBmfRx4G/492rv =ScVo -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] a good PHP editor
I've never heard windows 95 and great in the same sentence. - Original Message - From: "Christopher Allen" <[EMAIL PROTECTED]> To: "Michael Champagne" <[EMAIL PROTECTED]>; "doug" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 10:26 AM Subject: Re: [PHP] a good PHP editor > I wonder if Emacs runs on win2k it ran on win95 great... > > -ca > - Original Message - > From: "Michael Champagne" <[EMAIL PROTECTED]> > To: "doug" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, July 19, 2001 12:16 PM > Subject: Re: [PHP] a good PHP editor > > > > VIM on Windows. Free and awesome. www.vim.org > > > > > Hiya everybody, > > > I'm relatively new to PHP and I'm looking for a good text editor on > > > win2k for creating/manipulating php pages. Notepad is great if your in a > > > bind, and I've tried phpedit and activestate's Komodo and both seem to > have > > > problems (crashing etc...). Anybody got any suggestions? Free/small fee > > > programs doesn't matter Thanks > > > > > > Doug Henry > > > > > > > > > > > > > -- > > Michael Champagne, Software Engineer > > Capital Institutional Services, Inc. > > wk: [EMAIL PROTECTED] > > hm: [EMAIL PROTECTED] > > > > > > > > ** > > This communication is for informational purposes only. It is not > > intended as an offer or solicitation for the purchase or sale of > > any financial instrument or as an official confirmation of any > > transaction, unless specifically agreed otherwise. All market > > prices, data and other information are not warranted as to > > completeness or accuracy and are subject to change without > > notice. Any comments or statements made herein do not > > necessarily reflect the views or opinions of Capital Institutional > > Services, Inc. Capital Institutional Services, Inc. accepts no > > liability for any errors or omissions arising as a result of > > transmission. Use of this communication by other than intended > > recipients is prohibited. > > ** > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] array question
Hi All, I am trying to pull info out of a table and assign a var name to each field... I seem to be having trouble. I have tried to do $var = $row[0] but that does not seem to do it. I have included what is working below. I would like to have each element of the array stored in a seperate variable for use on a web page. Thanks JG UserName) ; // **Would like to do something like**// // $user = $row[0]; // } mysql_free_result($result); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Form verification
I'm trying to come up with a general solution for validating data in forms as far as empty fields. I've considered doing javascript, but would prefer to do the method where the page shows the previous form, with notes near fields that need to be filled out properly. My problem is I am trying to come up with a solution that will work in several forms so I don't have to modify every form I create. Any suggestions plus example code would be greatly appreciated. Thanks -Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] a good PHP editor
I wonder if Emacs runs on win2k it ran on win95 great... -ca - Original Message - From: "Michael Champagne" <[EMAIL PROTECTED]> To: "doug" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 12:16 PM Subject: Re: [PHP] a good PHP editor > VIM on Windows. Free and awesome. www.vim.org > > > Hiya everybody, > > I'm relatively new to PHP and I'm looking for a good text editor on > > win2k for creating/manipulating php pages. Notepad is great if your in a > > bind, and I've tried phpedit and activestate's Komodo and both seem to have > > problems (crashing etc...). Anybody got any suggestions? Free/small fee > > programs doesn't matter Thanks > > > > Doug Henry > > > > > > > > -- > Michael Champagne, Software Engineer > Capital Institutional Services, Inc. > wk: [EMAIL PROTECTED] > hm: [EMAIL PROTECTED] > > > > ** > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction, unless specifically agreed otherwise. All market > prices, data and other information are not warranted as to > completeness or accuracy and are subject to change without > notice. Any comments or statements made herein do not > necessarily reflect the views or opinions of Capital Institutional > Services, Inc. Capital Institutional Services, Inc. accepts no > liability for any errors or omissions arising as a result of > transmission. Use of this communication by other than intended > recipients is prohibited. > ** > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using GnuPG with PHP
For anybody who cares I found the problem with the command below, the environment of the webserver user was set to the environment of the user who started it, so it could not find the ~/.gnupg directory so I added the --homedir switch and all is fine. Thanks for the imput however I'll examine popen further. On Thu, Jul 19, 2001 at 10:50:18AM -0400, Jeff Bearer wrote: > I saw examples of how to encrypt data with GnuPG in the list archives > but I'm having problems that aren't mentioned. I've installed the public > key in the web server users key ring, and if I run the command as the > web server user it works just fine. But when the script runs it I get > nothing returned and no errors. > > > $command="echo \"$plain\"|gpg -e -a --always-trust --no-secmem-warning --batch -r >public_key"; > $encrypted=`$command`; > > > I've tried with and without the --always-trust, --no-secmem-warning --batch > in just about any order. If i try to write it to a file with -o the script > does not create the file and there is still no error. > > I'm assuming that STDOUT is returned to $encrypted with the backtick operator, > how to I see what STDERR of gpg command is? I figure there has to be something > there. The only thing I can figure is that the environment for the web server > is different than when you su to the web server user. and that's messing things up. > > Any help is appreciated, Thanks. > > > -- > Jeff Bearer, RHCE > Webmaster > PittsburghLIVE.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] encryption
I'd use the password function in mysql to store encrypted passwords, I'd be interested to hear if anyone has a reason that doing this is not a good idea. On Thu, Jul 19, 2001 at 12:52:55PM -0400, Tom Malone wrote: > Hello! > > I have a small problem. On my website there is some information I would like > to protect. Right now I am using .htaccess to password-protect the > directory, but I was thinking about using php and a form with > usernames/passwords in a MySQL database. Thankfully, I read the following in > the manual right before I was about to use the crypt() function to encrypt > my password and compare it to the encrypted hash in the DB: > > "It seems that a lot of people don't understand the point of using one-way > encryption. More importantly, a lot of web designers forget that PHP > encryption is done entirely on the web server, not the client. > > > > Point being, if your form has a password input option and the user clicks > SUBMIT, the password is then sent _as plain text_ over the Internet to the > web server where it is then encrypted for comparison against a password > database. > > > > Do _not_ use these types of functions to add security to a form unless > you're using an SSL or TLS (etc.) encrypted session. The only potential way > around this issue is for you to write a JavaScript program that does the > hashing on the client side before being sent over the Internet (which would > make this function unnecessary)." > > I am pretty new to PHP and absolutely clueless as far as > encryption/algorithims are concerned. Could anyone possibly point me to a > viable solution for this problem? > > Thanks in advance! > > Tom Malone > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] a good PHP editor
VIM on Windows. Free and awesome. www.vim.org > Hiya everybody, > I'm relatively new to PHP and I'm looking for a good text editor on > win2k for creating/manipulating php pages. Notepad is great if your in a > bind, and I've tried phpedit and activestate's Komodo and both seem to have > problems (crashing etc...). Anybody got any suggestions? Free/small fee > programs doesn't matter Thanks > > Doug Henry > > > -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: [EMAIL PROTECTED] hm: [EMAIL PROTECTED] ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Ocifreestatement() and shared memory error?
We recently ran into Oracle error ORA-04031 which has something to do with your shared memory being filled up or thrashed (I'm not a DBA so I'm vague on this.) I noticed that a lot of the PHP code on the site is not using ocifreestatement() or ocilogoff() after executing. Could this have caused this problem? We restarted the database and now everything seems to work ok. We ran into the error inserting some records into a table with some triggers on it. Thanks in advance, Mike ** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]