[PHP] Re: Ive lost a zero somewhere

2003-11-06 Thread Lang Sharpe
You could use number_format.. $f = 25.50 * 3 $s = number_format($f,2,'.',NULL); Lang Richard Cook wrote: I have a problem with the following when i multiply for example 25 . 50 * 3 i get 76 . 5 how would i get PHP to recognise the last 0 ie make it 76 . 50 Any ideas? Regards

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

2003-11-06 Thread Jason Wong
On Thursday 06 November 2003 13:36, Chris Shiflett wrote: For example, if you store your sessions in a database, it's pretty trivial for another user to write a PHP script that allows him/her to navigate the filesystem, searching for your database access credentials. After all, if Apache/PHP

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

2003-11-06 Thread Jason Wong
On Thursday 06 November 2003 10:58, Robert Cummings wrote: It ABSOLUTELY amazes me how this list is so cyclic. Every couple of weeks or so the exact same questions rotate back to the head of the already been answered, but someone needs to ask it again list. Sure they get a wee bit of a

[PHP] [Newbie Guide] For the benefit of new members

2003-11-06 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. == 1. If you have any queries/problems about PHP

Re: [PHP] High bandwidth application tips

2003-11-06 Thread Eugene Lee
On Wed, Nov 05, 2003 at 05:17:29PM -0800, Chris W. Parker wrote: : : One thing you can do to make loops faster is the following: (yes I've : posted this in the past!!) : : Unoptimized: : : $upperlimit = 100; : : for($i = 0;$i $upperlimit; $++) : { : // your stuff : } : : Optimized: :

Re: [PHP] Ive lost a zero somewhere

2003-11-06 Thread Eugene Lee
On Thu, Nov 06, 2003 at 03:03:35AM -, Richard Cook wrote: : : when i multiply for example 25 . 50 * 3 i get 76 . 5 how would i get : PHP to recognise the last 0 ie make it 76 . 50 What's with the extra spaces before and after your decimal points? -- PHP General Mailing List

[PHP] php executable and environmental variables

2003-11-06 Thread Tom Diamond
Hello all, I am trying to implement a simple web server (in Java) and I want to add php support. For the moment I do a Process p = Runtime.getRuntime().exec(php /path/to/php/file), I grab the output, seperate headers from body and send it back to the client. For simple php pages this thing

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

2003-11-06 Thread Boyan Nedkov
[snip] ... Short of any severe bugs in PHP's core, there is no way for a user of your Web application to modify session data ... [/snip] It seems that statement is not completely correct considering the topic discussed in the paper 'Session Fixation Vulnerability in Web-based Applications'

Re: [PHP] php executable and environmental variables

2003-11-06 Thread Eugene Lee
On Thu, Nov 06, 2003 at 11:11:13AM +0200, Tom Diamond wrote: : : I am trying to implement a simple web server (in Java) and I want to add : php support. For the moment I do a Process p = : Runtime.getRuntime().exec(php /path/to/php/file), I grab the output, : seperate headers from body and

[PHP] MySQL Password Function

2003-11-06 Thread Shaun
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Site Security

2003-11-06 Thread Shaun
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 and the users data is held in the Users table of the MySQL database. However, due to the nature

[PHP] Job Vacancy

2003-11-06 Thread Ian Williams
Hi my company (the one I work for I mean) are looking for a Junior Web Developer. They are based in Berkshire, and would ideally like someone with 1-2 years experience. Skills to include: a firm grasp of HTML and JavaScript, experience of server-side scripting (any flavour, but ASP / PHP

[PHP] Strange problem with dbase_add_record

2003-11-06 Thread Nagib Abi Fadel
Hi, i'm doing the following operation: I'm reading multiple rows from a database then writing each row into a dbf file using dbase_add_record. I'm having the following problem : - some rows are beeing written other or not to the dbf file (sometimes). - if i repeat the operation all the rows are

[PHP] File creation date.

2003-11-06 Thread Carles Xavier Munyoz Bald
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 ? If not ... How may I obtain the creation date of a file in PHP ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP

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

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

[PHP] XML and PHP

2003-11-06 Thread Victor Spång Arthursson
Hi! I've been looking at the XML-parserfunctions in the manual, and they seems nice enough. But I'm currently in a project where there is need to read from, write to and edit in XML-files, in some smart way. Our ISP is supporting the following: xml XML Support active XML Namespace Support

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 ? Start here: http://us2.php.net/manual/en/ref.filesystem.php ---John Holmes... -- PHP General Mailing List

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

2003-11-06 Thread Boyan Nedkov
Yes, you are right, it was my misunderstanding, sorry guys. Anyway, hope that posting was useful concerning the subject of the discussion. Boyan -- CPT John W. Holmes wrote: From: Boyan Nedkov [EMAIL PROTECTED] [snip] ... Short of any severe bugs in PHP's core, there is no way for a user of

[PHP] Source code

2003-11-06 Thread PHPLover
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 feature (installed

[PHP] Website to fax

2003-11-06 Thread Denis L. Menezes
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. We want one gateway to server many web sites. Is there such a

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

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

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?

[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

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

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 website

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=701737s=Mike+Migurski+findsp=1 If you can get

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

[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

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 userPassword='123';

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

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

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:

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

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

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 nitty

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

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 under

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

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

[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

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

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 modified

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

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 and the users data is held

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

[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

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

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 while

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

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

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

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

[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 --- ?php function tpl2html($title, $images, $text, $tplfile = simple.tpl, $links = ) { $tpldata =

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

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

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 help Not that

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 browse

Re: [PHP] MySQL Password Function

2003-11-06 Thread John Nichel
Shaun wrote: John Nichel [EMAIL PROTECTED] wrote in message snip 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}',

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:

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 You

[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] 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=maincslot_1=2 -- 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 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

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

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] BTML 2.0 released!!!

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

[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. script language=JavaScript

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: input type=text name=10_Accounting_Unit size=1 maxlength=1 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 ?...?, ?php...?,

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

2003-11-06 Thread Chris W. Parker
Robert Cummings mailto:[EMAIL PROTECTED] 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

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

2003-11-06 Thread Jason
All, Trying to run an upload script. ?php if ($userfile==none) { echo Problem: no file uploaded; exit; } if (move_uploaded_file($userfile,..$userfile_name)) echo your file was loaded successfully; }

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 the

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 EndHTML html code EndHTML; So I can't do this then? Thanks, Jake - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Jake McHenry [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November

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

[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

RE: [PHP] $HTTP_Referer

2003-11-06 Thread Pablo Gosse
On Thursday, November 06, 2003 10:31 AM, Josephin wrote: snip 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

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

[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] 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 Donald. I

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

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

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 with it... and

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

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

2003-11-06 Thread Taylor York
Lets say im trying to replace every occurance of 'hello' with 'bhi/b'. heres a sample page html hello there! /html This would simply change to html bhi/b there! /html but what if it had an img? html hello there! img src=hello.jpg alt=well hello there /html It would then be, html bhi/b

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

[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

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

[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

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 Javascript

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

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

RE: [PHP] Replacing text on page, but not in img 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:

[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 4.2.2.

  1   2   >