Re: [PHP] Multiple Image Uploads

2003-11-06 Thread Jason Wong
On Friday 07 November 2003 12:05, Jay Fitzgerald wrote: > I tried posting my code to the list but there are around 800+ lines of code > and my email keeps bouncingi am open to suggestions? Distill your code down to as little code as possible that still illustrates your problem and post that.

RE: [PHP] Multiple Image Uploads

2003-11-06 Thread Justin MacLeod
Perhaps post the error message(s) that you are receiving and a snippet of the code in question. Also email me a copy of the code and I be glad to take a look at it. Justin -Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 8:05 PM To: Justin MacLeod

RE: [PHP] Multiple Image Uploads

2003-11-06 Thread Jay Fitzgerald
I tried posting my code to the list but there are around 800+ lines of code and my email keeps bouncingi am open to suggestions? Jay At 06:59 PM 11/6/2003 -0800, you wrote: I'm with Jason. I was curious as to the subject but I will not click on the link. Justin MacLeod -Original Messa

RE: [PHP] Multiple Image Uploads

2003-11-06 Thread Justin MacLeod
I'm with Jason. I was curious as to the subject but I will not click on the link. Justin MacLeod -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 5:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Multiple Image Uploads On Friday 07 November 2003 05:10

Re: [PHP] Printing from PHP

2003-11-06 Thread John W. Holmes
Peter Goggin wrote: Is it possible to have a php a script that will run on my server but let me print to my client network printer? No. PHP is server side, printing is client side. If php will not support access to a client printer is there any way of embedding a Form Feed in the display so tha

Re: [PHP] Printing from PHP

2003-11-06 Thread Marco Tabini
Depends on how your overall network is configured. If the server on which PHP is running is on the same internal network as the printer, then the short answer is yes--the way you implement it depends on which OS your system is running. If PHP is running on Windows, there is a subset of printing

[PHP] Printing from PHP

2003-11-06 Thread Peter Goggin
Is it possible to have a php a script that will run on my server but let me print to my client network printer? What I am doing is using php to generate html for a report from a data base which is displayed on the clients screen. I would like to offer the client the option of printing this repor

Re: [PHP] fopen url

2003-11-06 Thread Jason Wong
On Friday 07 November 2003 04:12, John Hagstrand wrote: > I'm trying to read a URL. > > this works: fopen( "http://www.google.com";) > > this does not work: fopen( "http://news.google.com";) As it stands, neither of the above will work. fopen() requires at least 2 parameters. When you post cod

Re: [PHP] Multiple Image Uploads

2003-11-06 Thread Jason Wong
On Friday 07 November 2003 05:10, Jay Fitzgerald wrote: > Can someone help me with this? I've been trying to get it to work all day > :( > > http://codedump.phpfreaks.com/viewcode.php?id=2061 Please include your code as inline text in your post. You'll reach a wider audience as many people will n

Re: [PHP] PHP Session passed to different sub domains

2003-11-06 Thread Mike Migurski
>Could someone tell me how to pass a session cookie to different sub >domains, without passing it in url. It's in the manaul... http://www.php.net/manual/en/function.setcookie.php "To make the cookie available on all subdomains of example.com then you'd set it to '.example

[PHP] PHP Session passed to different sub domains

2003-11-06 Thread Makarov, Gera
Hi there, Could someone tell me how to pass a session cookie to different sub domains, without passing it in url. For example if I have the following domains: mydomain.com investment.mydomain.com business.mydomain.com market.mydomain.com and want to users to stay logged in while browsi

RE: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Chris Hubbard
Bas, Looks interesting. But why would I use bhtml when I've got Smarty and 10,000 other templating systems to choose from? I'm not interested in the vauge promises of speed. I'm only interested in systems that make it easier for me to code. Smarty makes it easier for me to code. How does bhtml

Re: [PHP] Replacing text on page, but not in tags

2003-11-06 Thread John W. Holmes
Taylor York wrote: Lets say im trying to replace every occurance of 'hello' with 'hi'. Here's something that's probably close to what you want. Something else you need to worry about besides tags is what if the word "hello" appears in a tag? within Javascript? This will match anything outside

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Marek Kilimajer
Jake McHenry wrote: I got everything working now. For some reason when I put it inside php, it wouldn't work with my variables with the numbers in front (1_Accounting_Unit) so I renamed all of them with the number at the end and they work fine. Jake The reason is here, notice the second paragraph:

Re: [PHP] Replacing text on page, but not in tags

2003-11-06 Thread Taylor York
Ya, i know it will be done with regular expressions, but how? I dont know how to format that kind of expression >> [snip] It would then be completely jacked up. Not only would it do the wrong img, but the tag in general would be screwed be cause of the bold tag. So what can I do? [/snip] Skip th

[PHP] Re: Issues with Mysql 4.0 and PHP in a production environment

2003-11-06 Thread Jeremy Zawodny
On Thu, Nov 06, 2003 at 02:10:27PM -0600, Luis Lebron wrote: > Are there any issues with running PHP 4.3.X and Mysql 4.0 in a production > environment? What sort of "issues" are you looking for? Jeremy -- Jeremy D. Zawodny | Perl, Web, MySQL, Linux Magazine, Yahoo! <[EMAIL PROTECTED]> | h

Re: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Burhan Khalid
Chris W. Parker wrote: Bas on Thursday, November 06, 2003 7:21 AM said: Okay, i am happy that BTML 2.0 is released(finally) You need to get a website and post a link to the site instead of posting a giant email with code that's not even indented and probably wrapp

Re: [PHP] Re: XML and PHP

2003-11-06 Thread Burhan Khalid
Victor Spång Arthursson wrote: 2003-11-06 kl. 13.42 skrev pete M: http://www.zend.com/zend/art/parsing.php http://www.zend.com/zend/tut/tutbarlach.php in fact a google search for php,xml, expat, tutorial Well, interesting articles but not really what I was searching for. I'm rather looking for

[PHP] fopen url

2003-11-06 Thread John Hagstrand
Hi, I'm trying to read a URL. this works: fopen( "http://www.google.com";) this does not work: fopen( "http://news.google.com";) If the URL does not start with "www", then fopen writes and error message that says "success" and returns false. What's up with that? Can you help? I'm using PHP

RE: [PHP] Replacing text on page, but not in tags

2003-11-06 Thread Jay Blanchard
[snip] It would then be completely jacked up. Not only would it do the wrong img, but the tag in general would be screwed be cause of the bold tag. So what can I do? [/snip] Skip the image tag by using regex. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
Well that's bizarre. I change it back to opening the new windows so that I can go test it on some other machines, and now it works on this machine!? Makes no sense... -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:31 PM To: Pablo Gos

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Jake McHenry
I got everything working now. For some reason when I put it inside php, it wouldn't work with my variables with the numbers in front (1_Accounting_Unit) so I renamed all of them with the number at the end and they work fine. Jake - Original Message - From: "Chuck Vose" <[EMAIL PROTECTED]

Re: [PHP] To format a number

2003-11-06 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > I have a number for example 5 and I would it transform in 5,00. > I tried with round() but it doesn't add the numbers after comma with an interger number. > Does some funtion that make this exist? You mean some function that'll format a number? Hmmm... number_format()

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
I am downloading ethereal and I will post my findings. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:31 PM To: Pablo Gosse; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows --- Pablo Gosse <[EMAIL PROTE

Re: [PHP] restricting text fill on a text area

2003-11-06 Thread CPT John W. Holmes
From: "Ian Truelsen" <[EMAIL PROTECTED]> > I want to set up a sized div on my page and be able to fill it with text > from a text file. Easy enough, but I want to be able to 'sense' when the > text area fills, no matter what size text the browser has set. Client side issue, not PHP. Ask on a Java

[PHP] Compile on Mac OS X --with-java?

2003-11-06 Thread Karl Nelson
Has anyone managed to get PHP to compile on Mac OS X with the --with-java flag in the configure command? I've tried it with PHP 4.3.2, 4.3.3, and 4.3.4, all without any luck. I'm using Mac OS X Server 10.2.8, with Java 1.4.1. I've tried ./configure --with-mysql --with-apxs --with-xml --with-jav

[PHP] Multiple Image Uploads

2003-11-06 Thread Jay Fitzgerald
Can someone help me with this? I've been trying to get it to work all day :( http://codedump.phpfreaks.com/viewcode.php?id=2061 Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWD

[PHP] To format a number

2003-11-06 Thread phpziobudda
Hi, I have a little problem. I have a number for example 5 and I would it transform in 5,00. I tried with round() but it doesn't add the numbers after comma with an interger number. Does some funtion that make this exist? Thanks

[PHP] restricting text fill on a text area

2003-11-06 Thread Ian Truelsen
Here is what I want to do, but I have no idea if it is possible: I want to set up a sized div on my page and be able to fill it with text from a text file. Easy enough, but I want to be able to 'sense' when the text area fills, no matter what size text the browser has set. I don't really want to u

Re: [PHP] Send data Header Response

2003-11-06 Thread CPT John W. Holmes
From: "Jonathan Villa" <[EMAIL PROTECTED]> > I would like submit a form to a page, do some processing on that page, > then if need be, return to the referrer but also send the submitted data > along with it... and data is coming from a POST form, not a GET. I > tried > > header('location:'.$refer

[PHP] Replacing text on page, but not in tags

2003-11-06 Thread Taylor York
Lets say im trying to replace every occurance of 'hello' with 'hi'. heres a sample page hello there! This would simply change to hi there! but what if it had an img? hello there! It would then be, hi there! It would then be completely jacked up. Not only would it do the wrong

RE: [PHP] Sessions within new windows

2003-11-06 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked > fine, both via a javascript function and a standard link with the target > set to _blank. > > Anyone else have any idea why this would be happening? No, but it would really be n

Re: [PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
Thanks, I'll look into that. On Thu, 2003-11-06 at 14:31, CPT John W. Holmes wrote: > From: "Jonathan Villa" <[EMAIL PROTECTED]> > > > I would like submit a form to a page, do some processing on that page, > > then if need be, return to the referrer but also send the submitted data > > along wit

Re: [PHP] Issues with Mysql 4.0 and PHP in a production environment

2003-11-06 Thread CPT John W. Holmes
From: "Luis Lebron" <[EMAIL PROTECTED]> > Are there any issues with running PHP 4.3.X and Mysql 4.0 in a production > environment? Of course there is. If you write crappy code, your program will suffer. If you don't write crappy code, well, then you're fine. ---John Holmes... -- PHP General Ma

Re: [PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
Thanks... but that is something I wanted to avoid. If I put each POST var into the url, then it's as if I used a GET method type... If I serialize the array and pass it back in the URL, I get admin.login.php?data=a%3A3%3A%7Bs%3A8%3A%22username%22%3Bs%3A0%3A%22%22%3Bs%3A3%3A%22pwd%22%3Bs%3A7%3A%

Re: [PHP] Send data Header Response

2003-11-06 Thread Chris Shiflett
--- Jonathan Villa <[EMAIL PROTECTED]> wrote: > I would like submit a form to a page, do some processing on that page, > then if need be, return to the referrer but also send the submitted data > along with it... and data is coming from a POST form, not a GET. I > tried > > header('location:'.$r

[PHP] Issues with Mysql 4.0 and PHP in a production environment

2003-11-06 Thread Luis Lebron
Are there any issues with running PHP 4.3.X and Mysql 4.0 in a production environment? thanks, Luis R. Lebron Project Manager Sigmatech, Inc

RE: [PHP] Sessions within new windows

2003-11-06 Thread Pablo Gosse
On Thursday, November 06, 2003 5:51 AM, Donald wrote: > I no one has mentioned getting it to work on Windows XP. That is what I > am using, Windows XP Professional. Maybe the problem is confined to XP. > > Here is the EXACT IE version that I am using: > > 6.0.2800.1106.xpsp2.030422-1633 Hi Donal

[PHP] Send data Header Response

2003-11-06 Thread Jonathan Villa
I would like submit a form to a page, do some processing on that page, then if need be, return to the referrer but also send the submitted data along with it... and data is coming from a POST form, not a GET. I tried header('location:'.$referrer.'?data'.$_POST); or something to that effect...

Re: [PHP] $HTTP_Referer

2003-11-06 Thread Chris Shiflett
--- Josephin <[EMAIL PROTECTED]> wrote: > am a newbie as of yesterday. Welcome! > Can't figure out how to get the $HTTP_Referer (own domain) of the page > entering my form (html), convert it into a variable which is later > passed on to my formmailer.php for the $subject variable. > > xy.html --

RE: [PHP] $HTTP_Referer

2003-11-06 Thread Pablo Gosse
On Thursday, November 06, 2003 10:31 AM, Josephin wrote: xy.html --->form.html-->formmailer.php want the $HTTP_Referer or HTTP_URI, file only, (of xy.html) -->to be forwarded to form.html, -->to be converted in a variable, -->which is passed on to formmailer.php, which will use it as "s

[PHP] $HTTP_Referer

2003-11-06 Thread Josephin
Hi, am a newbie as of yesterday. Can't figure out how to get the $HTTP_Referer (own domain) of the page entering my form (html), convert it into a variable which is later passed on to my formmailer.php for the $subject variable. xy.html --->form.html-->formmailer.php want the $HTTP_Refer

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Jake McHenry
Will I have to change my entire page format? As I said, right now it's all being echo'd Jake - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 06, 2003 12:16 PM Subject: Re: [PHP] OT-Javas

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Jake McHenry
Yes, I'm not going in and out of php, the entire html output is php... echo << To: "Jake McHenry" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 06, 2003 12:16 PM Subject: Re: [PHP] OT-Javascript Question > --- Jake McHenry <[EMAIL PROTECTED]> wrote: > > > value="{$_SESSION['

Re: [PHP] MySQL Password Function

2003-11-06 Thread David Otton
On Thu, 6 Nov 2003 09:09:57 -0500, you wrote: >True, true. I actually use MD5() for the same reason, but, really, if >someone has access to the database to read the hashes, odds are they have >access to the rest of the database and your code. So what are you protecting >really? Many people use th

[PHP] upload_tmp_dir has no value... could that be the problem?

2003-11-06 Thread Jason
All, Trying to run an upload script. Looks like the problems is in the "if (move_uploaded_file.." line also a look at the configuration of PHP4.1.2 shows "no value" for upload_tmp_dir Any hints? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] anyway to return more than one value?

2003-11-06 Thread Chris W. Parker
Robert Cummings on Wednesday, November 05, 2003 6:59 PM said: > It ABSOLUTELY amazes me how this list is so cyclic. Do you think this list is more so than any other list? I'm on a few and it seems to be the same way everywhere. Unfortunately I don't think there's an

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Chris Shiflett
--- Jake McHenry <[EMAIL PROTECTED]> wrote: > value="{$_SESSION['10_Accounting_Unit']}" > onKeyUp="movefocus(10_Accounting_Unit,11_Accounting_Unit,1);"> This looks like you're trying to go in and out of PHP mode without using , , etc. Try something like this: Hope that helps. Chris = My

[PHP] OT-Javascript Question

2003-11-06 Thread Jake McHenry
Hi everyone, I know this is off topic, but I was hoping someone could explain this to me. It may be something with php, not sure though. I have this exact code on a regular html file and it works fine, copy paste to php file, and it doesn't work. *snip* and the movefocus function is basi

RE: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Chris W. Parker
Bas on Thursday, November 06, 2003 7:21 AM said: > Okay, i am happy that BTML 2.0 is released(finally) You need to get a website and post a link to the site instead of posting a giant email with code that's not even indented and probably wrapped in some places. -

RE: [PHP] PHP's own perl2exec converter?

2003-11-06 Thread Guillaume Dupuis
Thanks Jay, but I omitted that it was for Linux. Any others? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:36 AM To: Guillaume Dupuis; [EMAIL PROTECTED] Subject: RE: [PHP] PHP's own perl2exec converter? [snip] I am looking for the

Re: [PHP] High bandwidth application tips

2003-11-06 Thread David T-G
Eugene, et al -- ...and then Eugene Lee said... % ... % % Still, doing a greater-than or less-than comparison is a bit slow. % You could try this: % % $upperlimit = 100; % while ($up-- != 0) % { Hey, that's pretty slick. And does that reduce to while ($up--) as can be do

Re: [PHP] High bandwidth application tips

2003-11-06 Thread David T-G
Luis, et al -- ...and then Luis Lebron said... % % One of the things I have suggested to the customer is offloading some of the % work to a different server. For example, he wants to email a weekly message ... % Does this sound like a good idea? If you can afford more servers, it's almost always

RE: [PHP] PHP's own perl2exec converter?

2003-11-06 Thread Jay Blanchard
[snip] I am looking for the PHP-equivalent of Perl's "perl2exec" (script to binary converter). Where can I find this? [/snip] http://www.priadoblender.com/index.php?layout=main&cslot_1=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP's own perl2exec converter?

2003-11-06 Thread Guillaume Dupuis
Hi, I am looking for the PHP-equivalent of Perl's "perl2exec" (script to binary converter). Where can I find this? Thanks in advance, Guillaume Dupuis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > I guess there is a configuration option in my.cnf for logging slow > queries? There, or you can pass it in as a command line argument when you start the server. Here is a good URL for more information: http://www.mysql.com/doc/en/Slow_query_log.html Y

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Luis Lebron
I guess there is a configuration option in my.cnf for logging slow queries? Luis -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:11 AM To: Luis Lebron; 'Wouter van Vliet'; 'Jay Blanchard'; 'Marco Tabini'; [EMAIL PROTECTED] Cc: 'Php-Gen

Re: [PHP] MySQL Password Function

2003-11-06 Thread John Nichel
Shaun wrote: "John Nichel" <[EMAIL PROTECTED]> wrote in message Not that this would make your site more secure (well, I guess it would be more secure than plain text), but just use it in your query INSERT INTO someDB.someTable ( username, password ) VALUES ( '{$username}', PASSWORD('{$password

Re: [PHP] Source code

2003-11-06 Thread Chris Shiflett
> 1. Is it possible to download the entire PHP site so that i can learn > from the source code at my liesure. I know that source code of PHP can > be accessible through CVS but is there any anonymous FTP or a zip file > download? Not to my knowledge. If you don't like using CVS, you can always bro

Re: [PHP] MySQL Password Function

2003-11-06 Thread Shaun
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shaun wrote: > > > Hi, > > > > I am trying to make my site more secure, can anyone suggest a tutorial on > > using the mySQL password function with PHP. I can't find anything through > > google... > > > > Thanks for your h

Re: [PHP] MySQL Password Function

2003-11-06 Thread John Nichel
Shaun wrote: Hi, I am trying to make my site more secure, can anyone suggest a tutorial on using the mySQL password function with PHP. I can't find anything through google... Thanks for your help Not that this would make your site more secure (well, I guess it would be more secure than plain te

Re: [PHP] Source code

2003-11-06 Thread John Nichel
PHPLover wrote: I have two questions. 1. Is it possible to download the entire PHP site so that i can learn from the source code at my liesure. I know that source code of PHP can be accessible through CVS but is there any anonymous FTP or a zip file download ?? 2. How can i implement the new feat

[PHP] BTML 2.0 released!!!

2003-11-06 Thread Bas
Okay, i am happy that BTML 2.0 is released(finally) It is also known as BTML Template Edition. The 3 files(the parser, a simple template and a test BTML-file) btmltpl.php --- ' => $title, '<%text%>' => $text, '<%images%>' => $images, '<%links%>' => $links); $html = strtr($tpldata, $trans); ret

Re: [PHP] Site Security

2003-11-06 Thread Chris Shiflett
--- Shaun <[EMAIL PROTECTED]> wrote: > How could a cookie be changed maliciously? Cookies are sent by the client, so hopefully that alone illustrates the danger. A cookie's value is not guaranteed to be whatever you asked the client to set. The legitimate users of your site will likely be using a

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > Any good tools for benchmarking sql queries? This may not directly answer your question, but I find the mytop utility very helpful for seeing what is happening with a MySQL server. It's available here: http://jeremy.zawodny.com/mysql/mytop/ Another th

Re: [PHP] Re: XML and PHP

2003-11-06 Thread Victor Spång Arthursson
2003-11-06 kl. 13.42 skrev pete M: http://www.zend.com/zend/art/parsing.php http://www.zend.com/zend/tut/tutbarlach.php in fact a google search for php,xml, expat, tutorial Well, interesting articles but not really what I was searching for. I'm rather looking for something like the parser in Flas

Re: [PHP] Re: Input Validation of $_SESSION values

2003-11-06 Thread Chris Shiflett
--- Boyan Nedkov <[EMAIL PROTECTED]> wrote: > > ... Short of any severe bugs in PHP's core, there is no way for a > > user of your Web application to modify session data ... > > It seems that statement is not completely correct considering the topic > discussed in the paper 'Session Fixation Vu

Re: [PHP] binary or text file

2003-11-06 Thread David T-G
Pete -- ...and then pete M said... % % I'm doing a bit of data recovery using php as the scripting language.. How interesting. That's certainly a new twist. % % Is there a way to determine is a file is binary or text ? % all the files are recovered but the file names do not have extensions !

Re: [PHP] preg_replace ^M

2003-11-06 Thread Christophe Chisogne
Torsten Rosenberger wrote: ^M carachters in in Classical pblm of representing "end of line" in text files between OS: windows uses \r\n aka CRNL *nixuses \n aka NL (newline) mac uses \r aka CR (carriage return) Good text editors dont care (win: wordpad, not notepad) and can convert whil

Re: [PHP] preg_replace ^M

2003-11-06 Thread David T-G
Torsten, et al -- ...and then Torsten Rosenberger said... % % > So that program is writing \r\n as the newline instead of just \n. It's % > still just your editor that's displaying the ^M. Maybe you should get a new % > editor. % i use vim Good :-) % % and the input file don't have \r\n they

[PHP] binary or text file

2003-11-06 Thread pete M
I'm doing a bit of data recovery using php as the scripting language.. Is there a way to determine is a file is binary or text ? all the files are recovered but the file names do not have extensions ! eg chkdsk.exe would be dgfhgj5767363874 as a file name pete -- PHP General Mailing List (http:/

[PHP] Re: Concerning number_format()

2003-11-06 Thread pete M
$price = number_format( (int) $price, 2, '.', ''); Ed Curtis wrote: I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Than

Re: [PHP] Site Security

2003-11-06 Thread Shaun
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Dan Joseph" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > > > > I have created a site that allows users to schedule staff, make > > > appointments > > > etc. Users must log in to use the site a

Re: [PHP] High bandwidth application tips

2003-11-06 Thread Radu Manole
Hi all, I do have a question about optimizing the php for large applications. Many applications group the functions in files (eg. functions.inc.php) or build classes, and these files/classes are called with 'require' or 'include' on the top of each main file. What would be the speed penalty if we

RE: [PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
Duh. Yeah, works like a charm. Thanks, Ed On Thu, 6 Nov 2003, Jay Blanchard wrote: > [snip] > $price = "1234.567890"; > > $price = number_format($price, 2, '.', ''); > > echo $price; > > Returns 1234.567890 > > Should return 1234.57 correct? > [/snip] > > Use a new variable to hold the modif

RE: [PHP] Concerning number_format()

2003-11-06 Thread Jay Blanchard
[snip] $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? [/snip] Use a new variable to hold the modified information $price = "1234.567890"; $newPrice = number_format($price, 2, '.', ''); echo $newPrice; -- P

[PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
> So that program is writing \r\n as the newline instead of just \n. It's > still just your editor that's displaying the ^M. Maybe you should get a new > editor. i use vim and the input file don't have \r\n they look normal in vim after the preg_replace in php then they have the ^M BR/Torsten

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Wouter van Vliet
Yes, a filesystem hit is a filesystem hit .. And yes, be worried about the number of GIF files you serve. Less is always better in this. What I meant in my advice about the readfile() function is that it makes a big deal of a difference whether a file is sent directly to the client, or first also

Re: [PHP] preg_replace ^M

2003-11-06 Thread CPT John W. Holmes
From: "Torsten Rosenberger" <[EMAIL PROTECTED]> > > Those are \r characters from dos newline (\r\n). Generally they are not > > harmful and many editors can work with them without problems (vim). You > > can use some utility commands to convert to or from dos or unix newlines. > > But i'm working

Re: [PHP] preg_replace ^M

2003-11-06 Thread CPT John W. Holmes
From: "Torsten Rosenberger" <[EMAIL PROTECTED]> > i try to replace a string in a file > but if i have linefeeds in the string > the output file after the replacement has > ^M carachters in in Some text editors will display \r as ^M. So, if you're file uses \r\n as the newline, you'll see these ^M

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
Hello > Those are \r characters from dos newline (\r\n). Generally they are not > harmful and many editors can work with them without problems (vim). You > can use some utility commands to convert to or from dos or unix newlines. But i'm working under Linux. I made a test with HTML Template IT

Re: [PHP] MySQL Password Function

2003-11-06 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > >Oh, and this will do almost NOTHING to make your site more secure. Why do > >you think it will? > > You are partly right about this we had a nice flame war about this very > issue couple of weeks ago on the jabber lists. Anyone interested in the >

Re: [PHP] High bandwidth application tips

2003-11-06 Thread CPT John W. Holmes
From: "Luis Lebron" <[EMAIL PROTECTED]> > Excellent tips. I think I'm really going to have to polish my sql skills for > this task. Any good tools for benchmarking sql queries? If you've been following the "Load Stress Tool" thead, this program: http://jakarta.apache.org/jmeter/index.html was men

Re: [PHP] preg_replace ^M

2003-11-06 Thread Marek Kilimajer
Those are \r characters from dos newline (\r\n). Generally they are not harmful and many editors can work with them without problems (vim). You can use some utility commands to convert to or from dos or unix newlines. Torsten Rosenberger wrote: Hello i try to replace a string in a file but if

RE: [PHP] High bandwidth application tips

2003-11-06 Thread Luis Lebron
Excellent tips. I think I'm really going to have to polish my sql skills for this task. Any good tools for benchmarking sql queries? -Original Message- From: Wouter van Vliet [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 7:06 PM To: 'Luis Lebron'; 'Jay Blanchard'; 'Marco Tab

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
Windows update doesn't fix the problem. I keep my system updated 100% of the time. I no one has mentioned getting it to work on Windows XP. That is what I am using, Windows XP Professional. Maybe the problem is confined to XP. Here is the EXACT IE version that I am using: 6.0.2800.1106.xpsp2.030

Re: [PHP] MySQL Password Function

2003-11-06 Thread Raditha Dissanayake
Hi, Oh, and this will do almost NOTHING to make your site more secure. Why do you think it will? ---John Holmes... You are partly right about this we had a nice flame war about this very issue couple of weeks ago on the jabber lists. Anyone interested in the nitty gritty can google on the ja

[PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
Hello i try to replace a string in a file but if i have linefeeds in the string the output file after the replacement has ^M carachters in in if the $replacements[] = "test"; has no \n in it all is OK $fp = fopen ("draft.html", "r"); $incont = fread ($fp,filesize("draft.html")); fclose ($fp);

Re: [PHP] Building PHP source for Linux / Unix.

2003-11-06 Thread Raditha Dissanayake
Hi, Compiling stuff from source is one of the fun things that you get to do on linux. As with most things it takes a while to aquire the taste though. The best place to start usually is the README and INSTALL scripts that you tend to find with almost everything distributed as source. You will

Re: [PHP] MySQL Password Function

2003-11-06 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > From: "Shaun" > >I am trying to make my site more secure, can anyone suggest a tutorial on > >using the mySQL password function with PHP. I can't find anything through > >google... > > it's very simple intead of using > insert into users set userPas

[PHP] php function - netmask validity check

2003-11-06 Thread S H A N
hi, while using ipman php script and come accross this problem... function ip_mask_valid($mask) { $maskroot = (int)sqrt(abs(ip2long($mask))); return ( (float)$maskroot == sqrt(abs(ip2long($mask))) ); } this function is not returning true/successfull output when say given 255.255.254.0 netm

Re: [PHP] MySQL Password Function

2003-11-06 Thread Raditha Dissanayake
Hi, it's very simple intead of using insert into users set userPassword='123'; you say insert into users set userPassword=password('123'); Shaun wrote: Hi, I am trying to make my site more secure, can anyone suggest a tutorial on using the mySQL password function with PHP. I can't find anything t

Re: [PHP] File creation date.

2003-11-06 Thread CPT John W. Holmes
From: "Carles Xavier Munyoz Baldó" <[EMAIL PROTECTED]> > I want to write a PHP function for delete the files in a directory older than > 1800 seconds. > Is there any function for it ? Read this thread, too: http://www.phparch.com/mailinglists/msg.php?a=701737&s=Mike+Migurski+find&sp=1 If you can

Re: [PHP] Website to fax

2003-11-06 Thread Denis L. Menezes
yes, but we plan to route the faxes based on the zip code to various outlets in the city. Thanks Denis "Randum Ian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Won't converting it to a printer be simpler and cheaper? > > > Hello friends. > > > > I am trying to make a restaurant w

Re: [PHP] File creation date.

2003-11-06 Thread David T-G
Carles -- ...and then Carles Xavier Munyoz Baldó said... % % Hi, Hi! % I want to write a PHP function for delete the files in a directory older than % 1800 seconds. % Is there any function for it ? Not directly. I wouldn't build this into a web script, either (though if you're simply planni

[PHP] Re: XML and PHP

2003-11-06 Thread pete M
http://www.zend.com/zend/art/parsing.php http://www.zend.com/zend/tut/tutbarlach.php in fact a google search for php,xml, expat, tutorial pete Victor spång arthursson wrote: Hi! I've been looking at the XML-parserfunctions in the manual, and they seems nice enough. But I'm currently in a proje

RE: [PHP] Website to fax

2003-11-06 Thread Jay Blanchard
[snip] I am trying to make a restaurant website where we can order on the net. However, since the waiters cannot watch emails, I want to convert the mail() messages from the webpage to a fax using an appropriate gateway. We want one gateway to server many web sites. Is there such a possibility? I

RE: [PHP] Website to fax

2003-11-06 Thread M.A.Bond
See here: http://www.adslguide.org.uk/reviews/2003/q4/efax.asp For an e-mail to fax gateway service review. Mark -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED] Sent: 06 November 2003 12:31 To: menezesd Cc: php-general Subject: Re: [PHP] Website to fax Won't converting

Re: [PHP] Website to fax

2003-11-06 Thread Randum Ian
Won't converting it to a printer be simpler and cheaper? > Hello friends. > > I am trying to make a restaurant website where we can order on the net. > However, since the waiters cannot watch emails, I want to convert the > mail() messages from the webpage to a fax using an appropriate gateway. >

  1   2   >