Re: [PHP] Re: How do you update multiple rows at the same time?

2003-01-27 Thread Richard Whitney
Steve! Could you be more specific and send some code you are using (even if it doesn't work). It may give some insight as to your specific need. That said, as far as I can tell, what you are trying to accomplish is this: $sql = "UPDATE tablename SET 1column = '$newvariable' WHERE 1column = '$ol

Re: [PHP] Making a file manager with PHP?

2003-01-27 Thread Jason Wong
On Monday 27 January 2003 15:34, Max Tappenden wrote: > Basically I'm trying to make a file manager with PHP. > Here's what I need to do > Ok I have artists and coders working for my site > No FTP > I want them to be able to upload/download files from me as and when they > please without having to

[PHP] autoconf bug leads to configure syntax error when running buildconf

2003-01-27 Thread Joshua Moore-Oliva
I am attempting to create an extension to php.. The only problem is, whenever I run buildconf after creating a skeletion with ./ext_skel --extname=my_module I receive the following output from buildconf ./buildconf using default Zend directory buildconf: checking installation... buildconf: au

php-general Digest 27 Jan 2003 09:31:45 -0000 Issue 1847

2003-01-27 Thread php-general-digest-help
php-general Digest 27 Jan 2003 09:31:45 - Issue 1847 Topics (messages 133193 through 133228): can't write and read on/from a file - Apache.exe access error 133193 by: phplam Re: Java call on object causes segfault. 133194 by: Philip Olson 133195 by: John Wells Re:

RE: [PHP] Adjusting Indexed Field After Deleting Entry

2003-01-27 Thread Jon Haworth
Hi, > I originally had a link #1, #2, and #3. I obviously deleted them. > I was wondering if there is a way to use PHP/MySQL to get the indexed numbers to re-assign so that the first link you see is always #1 the second link you see is always #2 and so on? Thanks in advance, Roger PS The orig

RE: [PHP] Adjusting Indexed Field After Deleting Entry

2003-01-27 Thread Jon Haworth
Hi, > I originally had a link #1, #2, and #3. I obviously deleted them. > I was wondering if there is a way to use PHP/MySQL to get the > indexed numbers to re-assign so that the first link you see is > always #1 the second link you see is always #2 and so on? (apologies for previous incomplet

[PHP] Update row problems

2003-01-27 Thread Steve Jackson
Hi all, I've been playing with this for a few hours now (over the course of a couple of days) and it's getting frustrating! All I want to do is to be able to make one row in the database set the order that my categories appear on my website. Now I can do this fine simply by using ORDER_BY but I w

Re: [PHP] Update row problems

2003-01-27 Thread Tim Ward
your query needs to be inside the foreach loop so that it runs for every item, at the moment it just runs after you've scanned through all the items so just does the last one. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Steve Jackson <[EMAIL PRO

[PHP] Strip_Tags @ php 4.3

2003-01-27 Thread George E. Papadakis
Hello, Has anyone noticed strange behaviour in strap_tags @ php 4.3? We did upgrade to the latest snap yet the problem remains. For some reason strip_tags acts weird.. -- georgep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSH change password!

2003-01-27 Thread David T-G
Mantas -- ...and then Mantas Kriauciunas said... % ... % And what I need this script for, is, not everyone knows how to use ssh % and I don't want to give access to 50 users that can run their % processes, my server will freeze. That's why I need to change it somehow Either your users plan to ru

RE: [PHP] Update row problems

2003-01-27 Thread Steve Jackson
I'm processing on a different page so what would I use instead of $_POST? print_r($_POST) Didn't display anything or diagnose anything. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Tim

RE: [PHP] Adjusting Indexed Field After Deleting Entry

2003-01-27 Thread John W. Holmes
> > I originally had a link #1, #2, and #3. I obviously deleted them. > > I was wondering if there is a way to use PHP/MySQL to get the indexed > numbers to re-assign so that the first link > you see is always #1 the second link you see is always #2 and so on? Keep your own count variable when yo

Re: [PHP] CRON?

2003-01-27 Thread David T-G
Nicole, et al -- BellSouth, eh? I'm in Atlanta :-) ...and then Nicole said... % % Thanks. But I would think if you can run cron jobs as certain users, you % could create cron jobs for those users only. I mean, if you can do it with % CPanel or these other Control Panels, then why not? It wouldn

Re: [PHP] Update row problems

2003-01-27 Thread Tim Ward
what version of PHP? try $HTTP_POST_VARS instead. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Steve Jackson <[EMAIL PROTECTED]> To: PHP General <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 1:14 PM Subject: RE: [PHP] Update row problems > I'

Re: [PHP] Transition Page?

2003-01-27 Thread David T-G
Lee -- ...and then Lee Herron said... % % >> I'm interested in how most would create a transition page.. % > % > One thing you might consider is using flush() to output % > what you have so far to the browser rather than sending % % The problem I'm having is that the uploading of the file takes

RE: [PHP] Update row problems

2003-01-27 Thread Steve Jackson
Thanks. That was the problem. Im using 4.0.6 so it's a bit out of date. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Tim Ward [mailto:[EMAIL PROTECTED]] > Sent: 27. tammikuuta

Re: [PHP] converting a Recorset into an XML string

2003-01-27 Thread Octavio Herrera
Thank you Sean , your comment was useful for me, I was having that problem and what I was doing is changing every record in my database that have an & or ' on it Thank you again -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting a Recorset into an XML string

2003-01-27 Thread Octavio Herrera
Sean, could you please send me how do you will do the function to convert a recordset into an XML string? Thank You OCTAVIO HERRERA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Files PHP in tmp ?

2003-01-27 Thread nico
No , it's not sessions, it's files with php545382 and into these files , there are piece of html of my sites Nico "Max Tappenden" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are they things like > php45a45s879a787g54a21s3a12g3a21s31a3a? > If so, yup i

[PHP] target for ftp_ssl_connect

2003-01-27 Thread Markus Boettger
Hello, I would like to make use of the function ftp_ssl_connect. Can anyone tell me an appropriate server for this function? WU-FTP with ssl-support does not exist anymore (I read); the openssl.9.6.g port 22 (of the default config) does not seem to work. Which server-deamon is the right one? Or

[PHP] slides

2003-01-27 Thread Ornella Fasolo
Hallo, does anybody knows where can I find a set of presentation sildes of the PHP language base(or PHP toghether with mysql)? . May be coming from any tutorial or previous course. Thank you very much Ornella

Re: [PHP] slides

2003-01-27 Thread Sterling Hughes
On Mon, 2003-01-27 at 10:20, Ornella Fasolo wrote: > Hallo, > does anybody knows where can I find a set of presentation > sildes of the PHP language base(or PHP toghether with mysql)? . > May be coming from any tutorial or previous course. > Thank you very much > http://talks.php.net/ > Ornella

[PHP] Re: Files PHP in tmp ?

2003-01-27 Thread nico
It's include files. Ex : in index.php i call index2.php , the content of index2.php 'll be written in /tmp Nico "Max Tappenden" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are they things like > php45a45s879a787g54a21s3a12g3a21s31a3a? > If so, yup i kn

[PHP] apache webprotect logout

2003-01-27 Thread Tommy Jensehaugen
Hi! I have protected a folder on my apache server with a username and password. When I browse to this folder I get a popup to type my name and password in( automatic popup by internet explorer or something ). My question is, how do I log out? I tried to destroy the session, but it didn't help. Tha

RE: [PHP] apache webprotect logout

2003-01-27 Thread Matt Schroebel
> -Original Message- > From: Tommy Jensehaugen [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 10:32 AM > To: [EMAIL PROTECTED] > Subject: [PHP] apache webprotect logout > > When I browse to this folder I get a popup to type my name > and password > in( automatic popup by in

Re: [PHP] apache webprotect logout

2003-01-27 Thread Chris Shiflett
--- Tommy Jensehaugen <[EMAIL PROTECTED]> wrote: > I have protected a folder on my apache server with a > username and password. When I browse to this folder > I get a popup to type my name and password in( > automatic popup by internet explorer or something ). > My question is, how do I log out? I

[PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Hi, I have a form with an IFRAME nested in it. When the form is submitted, I can't get the values of the checkboxes in the IFRAME, is there any way to do this? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] question about GD and colors

2003-01-27 Thread Jean-François Marseaut
With this script under, I get resized image in only 16 colors. with an old version of gd, I got 16 million colors images. Has someone a response ? filename jpg w [int] -> width / header("Content-type: image/png"); $file = urldecode($file); $file = "../".$file; $infofile =

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Chris Shiflett
--- Greg <[EMAIL PROTECTED]> wrote: > Hi, I have a form with an IFRAME nested in it. When > the form is submitted, I can't get the values of the > checkboxes in the IFRAME, is there any way to do > this? Well, I think (I could be wrong) you're looking at this wrong. Forms submit to resources iden

Re: [PHP] question about GD and colors

2003-01-27 Thread Philipp
Hi experienced the same problem with the new bundled version of GD. regards, philipp - Original Message - From: "Jean-François Marseaut" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 5:15 PM Subject: [PHP] question about GD and colors > With this script und

[PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
Hi, I've managed to get Windows IE to pick up on most of my $_SESSION variables once a user clicks the 'Back' button using the following code in the base form: 'value=' However, when I try this approach for a muliple SELECT dropdown box that is loaded by a 'require' statement, it doesn't pass

Re: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread 1LT John W. Holmes
> I've managed to get Windows IE to pick up on most of my $_SESSION variables > once a user clicks the 'Back' button using the following code in the base > form: > > 'value=' > > However, when I try this approach for a muliple SELECT dropdown box that is > loaded by a 'require' statement, it doesn'

Re: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
On Monday 27 January 2003 11:46 am, 1LT John W. Holmes wrote: > > I've managed to get Windows IE to pick up on most of my $_SESSION > > variables > > > once a user clicks the 'Back' button using the following code in the base > > form: > > > > 'value= > ?>' > > > > However, when I try this approach

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Here's the basic layout of my html page, this isn't the real html, just the basic idea. Now inside iframetest.php I have a few check boxes that I want test.php to be able to access. Is there any way to do this? Thanks!! "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PRO

Re: [PHP] question about GD and colors

2003-01-27 Thread adrian [EMAIL PROTECTED]
try imagecreatetruecolor() instead of imagecreate() - Original Message - From: "Philipp" <[EMAIL PROTECTED]> To: "Jean-François Marseaut" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 4:21 PM Subject: Re: [PHP] question about GD and colors > Hi experienced the

[PHP] Question about SSL/php globals

2003-01-27 Thread Wei Weng
Is there any environment/Global variable in PHP that indicates whether the server port you connect to is SSL port? Thanks! Wei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about SSL/php globals

2003-01-27 Thread Philip Olson
On Mon, 27 Jan 2003, Wei Weng wrote: > Is there any environment/Global variable in PHP that indicates whether the > server port you connect to is SSL port? $_SERVER['HTTPS'] Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strip_Tags @ php 4.3

2003-01-27 Thread Philip Olson
On Mon, 27 Jan 2003, George E. Papadakis wrote: > Hello, > > Has anyone noticed strange behaviour in strap_tags @ php 4.3? > We did upgrade to the latest snap yet the problem remains. For some reason > strip_tags acts weird.. Please be specific with a short self-contained example that demonstrat

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Sean Burlington
Greg wrote: Here's the basic layout of my html page, this isn't the real html, just the basic idea. Now inside iframetest.php I have a few check boxes that I want test.php to be able to access. Is there any way to do this? Thanks!! not directly .. the form does not 'contain' the

RE: [PHP] IFRAMES & PHP

2003-01-27 Thread John W. Holmes
> Here's the basic layout of my html page, this isn't the real html, just > the > basic idea. > > > > > > > > > > > > Now inside iframetest.php I have a few check boxes that I want test.php to > be able to access. Is there any way to do this? If you set a hidden form element in iframet

RE: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread John W. Holmes
> I tried to pick up the values from $_POST (as above). In Linux, it works: > (i.e. I can pick them up, display them, and manipulate them using the code > above), but in IE something like $_POST['bday'] never shows up. Any idea > why > there's such a difference between OS behavior? No. $_POST['b

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Unfortunatly, that gets rid of the reason I have the iframe in there to begin with. I need a scrollable iframe with a set of buttons that perform certain actions at the top, that have to always be at the top. -Greg "Sean Burlington" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Chris Boget
> It's probably an HTML thing. I don't know how iframes are interpreted, > but it's probably not really a part of your form, even though it looks > like it is when you view it. The contents of an IFRAME, by definition, is a totally different document. It behaves for all intents and purposes as a n

RE: [PHP] IFRAMES & PHP

2003-01-27 Thread John W. Holmes
> Unfortunatly, that gets rid of the reason I have the iframe in there to > begin with. I need a scrollable iframe with a set of buttons that perform > certain actions at the top, that have to always be at the top. > -Greg Then put the entire into the iframe. ---John W. Holmes... PHP Architect

Re: [PHP] Question about SSL/php globals

2003-01-27 Thread Wei Weng
Thanks for the prompt reply! One more question, do you know how PHP implements this variable? In other words, how does PHP detect whether the connection is SSLed or not? (Specific to apache) Thanks! Wei - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Wei Weng" <[EMAI

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
But the buttons are outside of the iframe, so that no matter how large the frame gets, the buttons are always in the same place :/ -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000501c2c629$f98c8590$7c02a8c0@coconut">news:000501c2c629$f98c8590$7c02a8c0@coconut... > > Unfortunatly, th

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Sean Burlington
Greg wrote: Unfortunatly, that gets rid of the reason I have the iframe in there to begin with. I need a scrollable iframe with a set of buttons that perform certain actions at the top, that have to always be at the top. -Greg in that case you either need to try getting some javascript to pas

Re: [PHP] question about GD and colors

2003-01-27 Thread Philipp
Hi Adrian, thank you very much, that solved my problem. Regards, Philipp - Original Message - From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: "Philipp" <[EMAIL PROTECTED]>; "Jean-François Marseaut" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 6:10 P

RE: [PHP] IFRAMES & PHP

2003-01-27 Thread Jon Haworth
Hi Greg, > But the buttons are outside of the iframe, so that no matter how > large the frame gets, the buttons are always in the same place :/ So stick an image of the button outside the , wrap it in an , and use the onclick handler to call a javascript function that submits the form. Of course

[PHP] Do php extension need to be thread-safe?

2003-01-27 Thread Joshua Moore-Oliva
Do php extension need to be thread-safe? I am running php on apache2. I would guess that since it's compiled in as a module, it would need to be thread-safe correct? Josh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread adrian [EMAIL PROTECTED]
hmm.. it'll get real ugly with javascript,but this works with newer browsers. ...iframe has a name ...main page has a hidden form field with id checkbox in the iframe has id also iframe.php function submit_form(){ if(frames["myiframe"].document.getElementById("one").checked == true){//see

[PHP] Simple Solution To Login And Upload

2003-01-27 Thread Randum Ian
Hi guys, I am looking for a very simple login script that logs a person in with a unique login username/password and then logs them into a very basic control panel where they can upload image files and delete them. Can anybody help me out that would be much appreciated. Cheers, Ian. -- PHP Gene

Re: [PHP] Simple Solution To Login And Upload

2003-01-27 Thread 1LT John W. Holmes
> Hi guys, I am looking for a very simple login script that logs a person > in with a unique login username/password and then logs them into a very > basic control panel where they can upload image files and delete them. > Can anybody help me out that would be much appreciated. www.hotscripts.com

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread Greg
Thank you guys for all the help, I'll try a few of these things, if not I'll just redesign the page. -Greg "Adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message 00e001c2c631$b402e160$1a8f43d9@ADE2">news:00e001c2c631$b402e160$1a8f43d9@ADE2... > hmm.. it'll get real ugly with javascript,bu

Re: [PHP] IE 'Back' Button problem + SELECT dropdowns

2003-01-27 Thread Andre Dubuc
Thanks John, I sort of thought that it should work. Will do as you suggest. Regards, Andre On Monday 27 January 2003 12:28 pm, John W. Holmes wrote: > > I tried to pick up the values from $_POST (as above). In Linux, it > > works: > > (i.e. I can pick them up, display them, and manipulate them

[PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with why PHP code failed to work with the month is August or September, so I have been playing around it and found the problem. I recently wrote a demo script for you all to play around with. Let me know which PHP version does

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Jason Wong
On Tuesday 28 January 2003 03:56, Scott Fletcher wrote: > Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with > why PHP code failed to work with the month is August or September, so I > have been playing around it and found the problem. I recently wrote a demo > script for y

RE: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Johnson, Kirk
> -Original Message- > From: Scott Fletcher [mailto:[EMAIL PROTECTED]] > > Found a PHP bug, I'm using PHP version 4.2.3. I have been > struggling with > why PHP code failed to work with the month is August or > September I stumbled into this one a short while ago myself. It is not a b

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I don't see why a string wouldn't work when I use "08" (string) and match it against the integer 8, or 08. "Kirk Johnson" <[EMAIL PROTECTED]> wrote in message B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef">news:B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef... > > > -Original Message- > > From

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Found a PHP bug ... > if ($month == 01) I guess you mean: if ($month == '01') If so, this is not a bug. Otherwise, please explain what you think is wrong. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Cal Evans
Scott, Because "8" != 8. "8" (and "08") is a string with the numerals representing the number eight. It is not the number eight. (think back to basic math, the difference between a number and a numeral) PHP does some conversions for you automatically but that just saves you from yourself. (Person

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Chris Hayes
>Re: [PHP] Found a PHP bug! uh oh... I don't see why a string wouldn't work when I use "08" (string) and match it against the integer 8, or 08. They're just different types. Normally PHP is veeery flexible with types, like javascript, but it just can't be flexible for you here becau

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I'm referring to '08' and '09' that don't work "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Found a PHP bug > ... > > if ($month == 01) > > I guess you mean: > > if ($month == '01') > > If

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I do know that integer, string, double, float, etc are different.. I have been using hte appropriate method like in javascript and c programming, like converting it to integer and so on But when I start using PHP, I find no such document of it and I have been using it for 3 years without

[PHP] phpMyAdmin for Microsoft SQL

2003-01-27 Thread Joshua E Minnie
Hey all, Does any body know of anything similar to phpMyAdmin for MS SQL? I have been doing some googling and haven't come across anything that would help me out. I have also checked out www.sourceforge.net and can't seem to come across anything either. I am looking for something that will b

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Whoop! FOund it, it is doubleval()... What does settype() do exactly "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I do know that integer, string, double, float, etc are different.. I > have been using hte appropriate method lik

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I would need to use intval() to solve this problem "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm referring to '08' and '09' that don't work > > "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Ray Hunter
U might want to do a type cast to integer from string... http://www.php.net/manual/en/language.types.type-juggling.php On Mon, 2003-01-27 at 13:47, Scott Fletcher wrote: > I would need to use intval() to solve this problem > > "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message > [EMAIL P

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread 1LT John W. Holmes
> Because "8" != 8. "8" (and "08") is a string with the numerals representing > the number eight. It is not the number eight. (think back to basic math, the > difference between a number and a numeral) Actually, "08" is equal to 8 in PHP. PHP will convert the string to an integer and the two will

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Leif K-Brooks
No, it's floatval. Doubleval is an alias left over from hwen floats were called doubles... Scott Fletcher wrote: Whoop! FOund it, it is doubleval()... What does settype() do exactly "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread 1LT John W. Holmes
Even doing a type cast won't make a difference for the original problem. Even if you cast "08" to an integer and compare it to 08 (invalid octal number), it'll still fail. The original solution was the best, remove the leading zero from the comparisons and let PHP handle the type casting. ---John

[PHP] Help with Filesize

2003-01-27 Thread Rodrigo Corrêa
How do i use the function filesize, because i´m using like: I just want associate the variable $body with a html file $file_name = 'c:/templates/resp_rep_efetiva_contrato.php'; $fd = fopen($file_name,"r"); line 27 $size = filesize($file_name); / Dá erro aqu

RE: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Cal Evans
John. > Actually, "08" is equal to 8 in PHP. PHP will convert the string to an >integer and the two will compare as equal. No they are not equal. Yes, PHP will do the conversion so that they are equal. That does not refute the fact that logically '08' != 8. > Someone already posted why the prob

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Yea, it's too bad that not many people know about it. I first asked and they told me it is done automatically. That was 3 years ago. I never had a problem for 3 years until now. So, I'm going back to the old way as I did in Javascript and C programming. I first started PHP 3 years ago, so it's

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Double and Float are not exactly the same thing. Double is ---> 11.123 Float is --> .00238823993 "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No, it's floatval. Doubleval is an alias left over from hwen floats > were called doubles... >

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Aw nut!!! The intval() doesn't work.. I had enough, I'm going to do what Kirk Johnson recommend. That one work better. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yea, it's too bad that not many people know about it. I first aske

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Another workaround to this problem is as an addition to Kirk Johnson's suggestion --clip-- $month = "08"; if (trim($month) == 8) { echo "You got it!!!"; } --clip-- "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECT

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Leif K-Brooks
doubleval doubleval -- Alias of floatval() Description This function is an alias of floatval() . Note: This alias is a left-over from a function-renaming. In older versions of

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Double and Float are not exactly the same thing. > > Double is ---> 11.123 > Float is --> .00238823993 They are the same thing. Please, read this: http://www.php.net/manual/en/language.types.php and this: http://www.php.net/manual/en/language

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread White Wolf
"Scott Fletcher" wrote: > Double and Float are not exactly the same thing. > > Double is ---> 11.123 > Float is --> .00238823993 I am absolutely new to PHP but what is above (since PHP seems to take most of its low-level terminology from C) is a fixed point number and the next is a floating po

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Okay, correction... Double --> 11.1237 Float --> 0. Cheers! It's the way it work in C Programming... Double won't be as long or as infinite as the floating point. "White Wolf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

[PHP] help needed with session variables

2003-01-27 Thread Pushpinder Singh Garcha
hello, I am making use of sessions in my PHp/MySQL Database application. When the user is successfully authenticated against the database, a session is created in following manner: session_register("valid_user","firstname","lastname"); $valid_user = $login; $firstname = $first_name;

[PHP] Help : I need modify a the header information in a JPEG image file

2003-01-27 Thread Patricio Vera S.
Hi, I new to the php world ant the image too, and I need modify the header information in a JPEG image file, is that possibly? How? I need put some information in the image at the instant when the user download this from the web site. Thanks in Advance. Saludos, Patricio Vera.

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread White Wolf
"Scott Fletcher": > Okay, correction... > > Double --> 11.1237 > Float --> 0. > > Cheers! It's the way it work in C Programming... Double won't be as long > or as infinite as the floating point. Absolutely wrong (if you would be in a C newsgrou

Re: [PHP] help needed with session variables

2003-01-27 Thread 1LT John W. Holmes
Are you sure $first_name and $last_name have a value? Double check... ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 4:44 PM Subject: [PHP] help needed with session variables hello, I am

Re: [PHP] Help : I need modify a the header information in a JPEG image file

2003-01-27 Thread Chris Shiflett
--- "Patricio Vera S." <[EMAIL PROTECTED]> wrote: > I new to the php world ant the image too, and I need > modify the header information in a JPEG image file, > is that possibly? How? Those are EXIF headers. I am not sure if there is support for modifying them (aside from doing it manually yoursel

Re: [PHP] Help : I need modify a the header information in a JPEG image file

2003-01-27 Thread Chris Shiflett
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > --- "Patricio Vera S." <[EMAIL PROTECTED]> wrote: > > I new to the php world ant the image too, and I need > > modify the header information in a JPEG image file, > > is that possibly? How? > > Those are EXIF headers. I am not sure if there is > supp

[PHP] multiple entry forms !!

2003-01-27 Thread scott
hi looking for some advice I have a site in progress. user to it have to enter a LOT of information (it will contain a club directory) in order to try and make it a less unpleasant experience for the user, I want to give them 7 smaller input forms, each one following the other what would be the

[PHP] output of fread() is blank

2003-01-27 Thread Guru Geek
Hello, I'm a recent convert from CGI/Perl and so am still getting my feet wet in PHP. Here's my code: $filename = "http://www.myserver.com/include/sometext.txt";; $handle = fopen ($filename, "rb"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); echo $contents; exit; The pro

[PHP] Re: multiple entry forms !!

2003-01-27 Thread Philip Hallstrom
Use several smaller forms and store the results of each into a session variable. Also store a "got-results-for-form-1" (through 7) that gets set for each of the 7 forms. Once all 7 are set you can do the final processing. Set the action of each form to say "save.php" and pass in a "saving_what"

Re: [PHP] output of fread() is blank

2003-01-27 Thread Jason Sheets
Hello, The PHP manual page for filesize (http://www.php.net/manual/en/function.filesize.php) mentions that it will not work on remote files. fread will stop once n number of bytes are read or EOF is received so you could set this to the maximum file size (in bytes) that you want to download. Jas

[PHP] Re: output of fread() is blank

2003-01-27 Thread Philip Hallstrom
I could be wrong, but I'd guess that filesize fails for remote files. If all you're doing is spitting out the text, why not use readfile()? -philip On Mon, 27 Jan 2003, Guru Geek wrote: > Hello, > > I'm a recent convert from CGI/Perl and so am still getting my feet wet > in PHP. > > Here's my c

Re: [PHP] output of fread() is blank

2003-01-27 Thread Philip Olson
On Mon, 27 Jan 2003, Guru Geek wrote: > Hello, > > I'm a recent convert from CGI/Perl and so am still getting my feet wet > in PHP. > > Here's my code: > $filename = "http://www.myserver.com/include/sometext.txt";; > $handle = fopen ($filename, "rb"); > $contents = fread ($handle, filesize ($fi

[PHP] Anyone?? file uploads received, but mangled

2003-01-27 Thread af
Hi all. Last try -- I know there's a lot of noise in this group, but could someone please offer an opinion? Is the following possible to work around, or is it a bug that I should be reporting? I'm having issues uploading files whose names don't necessarily end with the correct extension, in pa

[PHP] mail () format

2003-01-27 Thread Bruce Levick
I have a number of field entries that I am trying to send through to the body of an email. How can I format the mail() command to send these multiple fields. EG $name, $address, $comments. All to go into the body of an email. Cheers -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Re: mail () format

2003-01-27 Thread Philip Hallstrom
Something like... $body = "blah blah blah\n"; $body .= "Name = $name\n"; $body .= "Address = $address\n"; $body .= "Comments = $comments\n"; mail("[EMAIL PROTECTED]", "subject", $body); would do it. On Tue, 28 Jan 2003, Bruce Levick wrote: > I have a number of field entries that I am trying t

Re: [PHP] output of fread() is blank - FIXED

2003-01-27 Thread Guru Geek
Here's my code now: $filename = "/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt"; $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); echo readfile($filename); exit; now it displays the contents of the text.txt file. I ori

[PHP] PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Paul Chvostek
I have to write a swath of code to manage system-related stuff based on database content. Scripts will be run as root by cron, and determine what they have to do via user interaction and SQL lookups. Functions will include manipulation of system configuration files, legacy text file configs, and

Re: [PHP] output of fread() is blank - FIXED - updated

2003-01-27 Thread Guru Geek
Sorry, here is the code now ( I need a nap ) $filename ="/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt"; $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); echo $contents; exit; Guru Geek wrote: > Here's my code now: >

[PHP] HELP session cache limiters

2003-01-27 Thread Didier McGillis
I dont know where this came from. The site was working fine, unless someone else on my team made a fix in this file. Any thoughts on this error? Warning: Cannot send session cache limiter - headers already sent (output started at /home/sisource/public_html/stage/administration/config.php:19) i

  1   2   >