Re: [PHP] File Upload

2002-12-13 Thread Jason Wong
On Saturday 14 December 2002 11:35, Tom Rogers wrote: > You are missing this bit: > > I am curious as to why so many people say this in response to file upload problems? In practice, none of my upload forms have that "missing bit" but they work perfectly well using a diverse range of browser

Re: [PHP] Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
Hi John, I'm using POST for the form. But it's the HTML form field itself that won't allow me to paste in a large amount of text. If I can get the field to accept the text, there's no problem sending it via POST to the PHP script. Are you behind the new PHP Architect magazine? I saw the site and w

[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread nofa
Yup, exactly > HI Nofa, > > When you say submit the file, do mean as a TXT file via a file upload field? > If so, not sure what to do with the file once it's been uploaded. Do I read > the file using fopen(), then just put this into a var that can be stored in > the DB? Hmmm... sounds like a good s

[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
HI Nofa, When you say submit the file, do mean as a TXT file via a file upload field? If so, not sure what to do with the file once it's been uploaded. Do I read the file using fopen(), then just put this into a var that can be stored in the DB? Hmmm... sounds like a good solution. Monty > From

Re: [PHP] Re: Google and php

2002-12-13 Thread Timothy Luoma
On Sat, 14 Dec 2002 01:48:21 -0500, Kyle Gibson <[EMAIL PROTECTED]> wrote: Long as there is a link *somewhere* that google can come across to get to each sub-page, it will index every page of your site, regardless of what the URL is unless you specifically state otherwise in the robots.txt fil

Re: [PHP] Google and php

2002-12-13 Thread Timothy Luoma
On Sat, 14 Dec 2002 07:25:23 +0200, Heikki Kniivilä <[EMAIL PROTECTED]> wrote: If i have made all my sub pages in my webpage by an include in index.php, like http://example.com/index,php?page=subpage34 How can i make google to recognize my subpages allso? The most reliable way is to make sure t

[PHP] Re: Upgrading GD to 2.1

2002-12-13 Thread Monty
Nofa, sorry, forgot to say Redhat Linux. What you mentioned seems pretty easy, actually. I'll give a try and keep my fingers crossed. Thanks! Monty > From: [EMAIL PROTECTED] (Nofa) > Reply-To: "nofa" <[EMAIL PROTECTED]> > Newsgroups: php.general > Date: Sat, 14 Dec 2002 20:13:20 +1300 > To: [EM

[PHP] Re: Upgrading GD to 2.1

2002-12-13 Thread nofa
what "linux" are you running? Redhat? Mandrake? ifso it should just be a matter of downloading the appropriate packages and doing a 'rpm -U ' as root. ( if redhat/mandrake/some other rpm managed dist ) > I've got GD 1.6 installed with PHP 4.2.2 on a Linux server. Is upgrading to > GD 2.1 tricky? I

RE: [PHP] Text Fields - How Big Can They Be?

2002-12-13 Thread John W. Holmes
Are you using GET or POST as the method of your form? GET will limit the amount of text you can submit because it appears in the URL. POST really doesn't have a limit, as far as I know. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www

[PHP] Upgrading GD to 2.1

2002-12-13 Thread Monty
I've got GD 1.6 installed with PHP 4.2.2 on a Linux server. Is upgrading to GD 2.1 tricky? I'm very new to Linux and have no clue where to start or how to do it. My server is remote, so, I access it using Webmin. I've look for instructions on how to do this online, but, nothing specific enough for

[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread nofa
Have you considered allowing them to submit the actual file? rather than all the text within. It may not be exactly what you're after, but its one way :] - Original Message - > Hi Guys... This is indirectly related to PHP: Does anyone know the max > amount of text a free-form HTML text fie

[PHP] Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
Hi Guys... This is indirectly related to PHP: Does anyone know the max amount of text a free-form HTML text field can handle? I noticed that for some longer articles we're storing in a content management system written with PHP, we were unable to paste the body of the article into the text field b

[PHP] Re: Google and php

2002-12-13 Thread Kyle Gibson
Hi! If i have made all my sub pages in my webpage by an include in index.php, like http://example.com/index,php?page=subpage34 How can i make google to recognize my subpages allso? Long as there is a link *somewhere* that google can come across to get to each sub-page, it will index every page

[PHP] Win32 EAPI - Not recognising preprocessor option.

2002-12-13 Thread nofa
Hi, Im trying to compile php under win32 with EAPI option, but it seems VC++ is not recoginising the preprocessor option. I dont even think it is going through the steps. Anyone have any ideas or know where i could possibly get a binary with EAPI enabled for 4.2.3 ? -- PHP General Maili

[PHP] script help please.

2002-12-13 Thread Ryan Smaglik
I got a generic ³text to png on the fly² script which works fine but I want to change it so that the image only the size of the text. (so the text has no border, or padding around it) For and example of what I want to do check out: http://www.spoono.com/font/?string=This is what i want to do&.png I

RE: [PHP] Odd Strpos Behavior

2002-12-13 Thread John W. Holmes
And here's a good example of why you should always test each solution and time it to see what's better. I was recommending a preg_replace_callback solution which I thought, as a lot of other people would also think, is a lot faster that your own "method" of doing it. So, I wrote the preg_replace_ca

[PHP] Google and php

2002-12-13 Thread Heikki Kniivilä
Hi! If i have made all my sub pages in my webpage by an include in index.php, like http://example.com/index,php?page=subpage34 How can i make google to recognize my subpages allso? -- =|---+---|= Heikki Kniivilä http://heikkikk.homelinux.com -- PHP General Mailing List (http://www.ph

RE: [PHP] Odd Strpos Behavior

2002-12-13 Thread John W. Holmes
> >Okay, so how do you know what to replace something like [author] with? > >What exactly are you doing again? I've forgotten the original question. > >:) > > Ok, got a sentence, like: > > a pile of [metal] 600 feet wide and 30 feet tall. On top of it is > a [monster]. > > The items in

[PHP] Is there any alternative to FuseBox?

2002-12-13 Thread Javier
I was reading FuseBox's beginners' guide but I didn't completely understood the way that framework works. How do you process the data obtained from forms? Is it the same script that displays the form? -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (

Re[2]: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:52:48 PM, you wrote: MK> Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile MK> variable at all in PHP script, even thought the globals are ON... Put phpinfo(32); at the top of your file and see what is being sent -- regards, Tom --

RE: [PHP] File Upload

2002-12-13 Thread Miro Kralovic
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile variable at all in PHP script, even thought the globals are ON... You are missing this bit: -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:03:05 PM, you wrote: MK> Hi everybody, MK> I'm trying to upload a file using the following scripts, but it doesn't MK> work, it actually doesn't get through the first line of PHP script at all MK> and displays "a problem has occured" message. I'm running the scr

[PHP] Mail Error

2002-12-13 Thread Manuel Ochoa
I have a Windows server running Apache 2 and PHP 4.3 I got the following error while using the mail() function: Warning: mail() [function.mail]: SMTP server response: 550 User not local. We don't relay in C:\Apache2\htdocs\mymail.php on line 22 Any ideas?

RE: [PHP] Re: File Upload

2002-12-13 Thread Miro Kralovic
Hi Bodgan.. yes, I have globals On, Uploads On and SafeMode=off.. no luck... I did it exactly by the book, damn it..:-( -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 22:09 To: [EMAIL PROTECTED] Subject: [PHP] Re: File Upload Glob

[PHP] GD Library script help please.

2002-12-13 Thread Ryan Smaglik
I got a generic ³text to png on the fly² script which works fine but I want to change it so that the image only the size of the text. (so the text has no border, or padding around it) For and example of what I want to do check out: http://www.spoono.com/font/?string=This is what i want to do&.png I

[PHP] Re: File Upload

2002-12-13 Thread Bogdan Stancescu
Globals on? File uploads allowed? Safe mode off? Miro Kralovic wrote: Hi everybody, I'm trying to upload a file using the following scripts, but it doesn't work, it actually doesn't get through the first line of PHP script at all and displays "a problem has occured" message. I'm running the scri

[PHP] File Upload

2002-12-13 Thread Miro Kralovic
Hi everybody, I'm trying to upload a file using the following scripts, but it doesn't work, it actually doesn't get through the first line of PHP script at all and displays "a problem has occured" message. I'm running the script on RH Linux/PHP4. Is there anything I'm missing here??? Many thanks

[PHP] Re: Using -> to access hash elements

2002-12-13 Thread Bogdan Stancescu
http://www.php.net/manual/en/language.oop.php William Martell wrote: Can someone shed some light on the '->' syntax seen below. Is this like similar to Perl '=>' syntax to access hash key value pairs? Thank you one and all. [snip] // print mailing list while($data = mysql_fetch_object($result)

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
I will try on the PHP-DB newsgroup as well, but I wanted to let you know about a link I found which shows the integration of SSL with MySQL and PHP. Here is the link: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html. Thanks for the help. -Josh "Brad Bonkoski" <[EMAIL PROTECTED

[PHP] Using -> to access hash elements

2002-12-13 Thread William Martell
Can someone shed some light on the '->' syntax seen below. Is this like similar to Perl '=>' syntax to access hash key value pairs? Thank you one and all. [snip] // print mailing list while($data = mysql_fetch_object($result)){ print($data->name . ", " . $data->address . ", " . $data->city .

[PHP] GD Library script help please.

2002-12-13 Thread Ryan Smaglik
I got a generic ³text to png on the fly² script which works fine but I want to change it so that the image has the same hight and width as the text string (so the text has no border around it) For and example of what I want to do check out: http://www.spoono.com/font/?string=This is what i want to

[PHP] Self Highlighting Code

2002-12-13 Thread Matt Hillebrand
Using some borrowed code from www.php.net, I came up with this chunk of code that can be included at the top of a PHP script to make it highlight itself in a web browser. However, the first opening PHP tag in the output has a space or two in front of it. Does anyone know why? .ln{color:#00;wid

Re: [PHP] printf %d

2002-12-13 Thread Brad Bonkoski
Read: http://www.php.net/manual/en/function.printf.php (On of the user contrib notes has an example) Or pick up a copy of "The C Programming Language" by Kernighan and Ritchie for a more complete description. -Brad William Martell wrote: > Hello All. > > Can anyone tell me what this '%d' refers

[PHP] Re: Fw: PHP script needs to timeout upon FOPEN to URL

2002-12-13 Thread Bogdan Stancescu
Try this: while ((!($file = @fopen("http://www.myurl.com";, "r"))) && (time() < $startTime + $time)); Here's why: http://www.php.net/manual/sk/language.operators.php Regards, Bogdan Phil Powell wrote: - Original Message - From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

[PHP] printf %d

2002-12-13 Thread William Martell
Hello All. Can anyone tell me what this '%d' refers to? A pointer would be great. Thanks [snip] if (!$result) die ("Query Failed\n"); else printf ("Number of rows returned: %d\n", <-HERE '%d' mysql_num_rows ($result)); while ($query_data = mysql_fetch_array ($result))

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Brad Bonkoski
I would say it really all depends on your network configuration. I am assuming that your Web server running PHP is running on one machine (SERVER A)and the MYSQL server running on another (SERVER B)outside of a common firewall? Is this accurate? If this is true, then I would presume that PHP on

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
What about utilizing an encrypted text file then. Would there be anything wrong with doing it that way? I really don't have too much of an option as far as the server specs go because I didn't set up the web hosting. -Josh Brad Bonkoski wrote: > I think you may need to read: > http://www.php.n

[PHP] Re: Shared Memory in PHP

2002-12-13 Thread Bogdan Stancescu
Hi Krishnan! I never tried using shared memory functions in PHP, but the problem is interesting in itself, and I do have a potential interest in the issue myself. So I went through the documentation on php.net and, since nobody else answered yet, I'll have a go at it. Apparently the second opt

Re: [PHP] SSL, PHP, & MySQL

2002-12-13 Thread Brad Bonkoski
I think you may need to read: http://www.php.net/manual/en/function.mysql-connect.php It appears that the SSL client flag for connecting to MYSQL is not available until 4.3.0, but you can pick up the 4.3.0RC3 version now, and test it out! I _think_ this is what you are looking for. HTH -Brad Jos

[PHP] Re: Fw: printf %d

2002-12-13 Thread Bogdan Stancescu
No big deal, mate. Here, let's take a look at the PHP printf() manual page. If you don't know how to reach it, go to http://www.google.com/, type "php", click on "I'm feeling lucky", and in the resulting page type "printf" in the search box (hint: top right) - complex, but not science rocket. A

[PHP] SSL, PHP, & MySQL

2002-12-13 Thread Joshua Minnie
Hi all, I was wondering if anyone could direct me to some good tutorials on how to utilize PHP to access a MySQL database behind SSL. I have been searching PHPBuilder.com, PHPClasses.org, and hotscripts.com, and I can't seem to find any good tutorials for a beginner when it comes to SSL. I do

[PHP] Fw: Paging / Navigation Question Solved!

2002-12-13 Thread William Martell
Thank you all for your input. Here is the answer that I was looking for. I am posting it here so that anyone else looking for this answer can benefit as well. Thank you all again for your responses. Merry Christmas!! William - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]

Re: [PHP] Parse out text

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 10:12:28 AM, you wrote: SM> I have a form that is submitting a Javascript to validate fields before the SM> form casn be submitted. The problem is that the field name has to be SM> prefixed with "required". So, if I have a field called email, it has to be SM> calle

Re: [PHP] File Handles?

2002-12-13 Thread Rasmus Lerdorf
They aren't really handles (whatever a handle might be) they are simply copies of the data from the $_FILES array so you can use $imageName instead of $_FILES['photo_file']['name'] everywhere throughout the rest of the script. -Rasmus On Fri, 13 Dec 2002 [EMAIL PROTECTED] wrote: > The following

[PHP] File Handles?

2002-12-13 Thread poliva
The following is a script from the php.net site for supposedly uploading files via ftp. My question is, why do we have to build handles, what is the purpose of creating this array? //Build handles for uploaded image $imageUpFile = $_FILES['photo_file']['tmp_name']; $imageType = $_FILES['photo_f

Re: [PHP] Newer version of PHP causing code incompatibilities

2002-12-13 Thread Brad Bonkoski
Check out the php.ini configuration file, or read about it at the website. I do believe there is an option there where you can declare what your script delimeter is. Most notable an option called "Short open tag" HTH -Brad Paul Keenan wrote: > All of our pages which were previously running on

[PHP] Newer version of PHP causing code incompatibilities

2002-12-13 Thread Paul Keenan
All of our pages which were previously running on a PSA 2.5 server which were done in php used the syntax . In PSA 5 (or the different install of PHP) you must use the proper syntax. We are now on PHP Version 4.1.2 Our server crashed and we have installed newer software, now most of the PHP does

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread vernon
I'm trying to do a mail function where if the date the email was posted was today then a "new message" would display, otherwise not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse out text

2002-12-13 Thread Shane McBride
I have a form that is submitting a Javascript to validate fields before the form casn be submitted. The problem is that the field name has to be prefixed with "required". So, if I have a field called email, it has to be called requiredemail in order for the javascript to work. How can I remove the

[PHP] Fw: PHP script needs to timeout upon FOPEN to URL

2002-12-13 Thread Phil Powell
- Original Message - From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 5:13 PM Subject: PHP script needs to timeout upon FOPEN to URL I have the following line: while (!($file = @fopen("http://www.myurl.com";, "r")) && time() < $start

[PHP] Fw: printf %d

2002-12-13 Thread William Martell
- Original Message - From: "William Martell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Friday, December 13, 2002 2:13 PM Subject: printf %d > Hello All. > > Can anyone tell me what this '%d' refers to? > > A pointer would be great. Thanks > > [snip] > if (!$result) > die (

[PHP] XML Parse Syntax Error

2002-12-13 Thread Tom Culpepper
I am working on an XML parser and trying to learn about them. All the scripts I get from the net in various tutorials and such all return nothing but "XML error: syntax error at line 1". I checked the variables with PHPINFO() and it says that XML support is on. I also know that keeping the P

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Jean-Marc Libs
On Fri, 13 Dec 2002, Colin Bossen wrote: > I have a similar problem. I am trying to figure out which of two dates > is greater. Both are in the -mm-dd format. Is there any easy > function that allows this sort of comparison or am I missing something? You have a simpler problem. -mm-dd i

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread DL Neil
Colin, > I have a similar problem. I am trying to figure out which of two dates > is greater. Both are in the -mm-dd format. Is there any easy > function that allows this sort of comparison or am I missing something? Treat the dates as strings not numbers: $DateOne = "2002-12-13"; $DateTw

[PHP] Shared Memory in PHP

2002-12-13 Thread Krishnan
Hi all, I am new to PHP and would like the expert opinion of this forum on something that I am trying to do I have about 500K entries (name,value pairs) for which I want ti implement a very fast lookup. I have access to an Oracle database server but I am afraid that it does not have any powe

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Kevin Stone
Again the solution is to convert the dates into timestamps for easy comparison. In your case you can use the strtotime() function. I believe that -mm-dd is a standard date format that the function will recognize, is it not? $ts1 = strtotime($date1); $ts2 = strtotime($date2); if ($ts1 > $ts2)

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Colin Bossen
I have a similar problem. I am trying to figure out which of two dates is greater. Both are in the -mm-dd format. Is there any easy function that allows this sort of comparison or am I missing something? On Friday, December 13, 2002, at 01:43 PM, vernon wrote: I found this code on the php.

[PHP] Reloading page in frame after SQL Insert

2002-12-13 Thread James Johnson
Hi, I'm building a frameset based app which displays a list of pages. The left hand frame contains a list of pages, the middle frame has a "New Page" page. After the new page information is inserted into the DB, how can I get the left hand frame to refresh itself, to show the new page. It must

[PHP] Java in PHP

2002-12-13 Thread Liquid Chaos
Hi there. Question. How do you access a custom java class in php that has its own define packages? meaning when I access a java class in php the java class calls other classes to do the job. But when I call the class I get an error: java.lang.NoClassDefFoundError: CaseManager (wrong name: com/com

Re: [PHP] Testing smtp server

2002-12-13 Thread Johannes Schlueter
On Friday 13 December 2002 21:30, Max Clark wrote: > I found the socket_create function that is listed as experimental and > requires a re-compile of php. Is there a built in way to perform this kind > of test? Based upon the second example on http://www.php.net/manual/en/ref.sockets.php : echo

[PHP] Testing smtp server

2002-12-13 Thread Max Clark
Hi- I would like to open a connection to tcp port 25 (smtp) as a conditional in a script (if succeeds to this, else to that). I found the socket_create function that is listed as experimental and requires a re-compile of php. Is there a built in way to perform this kind of test? Thanks in advanc

Re: [PHP] Date Formatting

2002-12-13 Thread Clint Tredway
thanks for all the replies. I was able to use the date_format() from MySQL. Clint - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Clint Tredway" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 1:13 PM Subject: Re: [PHP] Date Formatting > MYSQL w

Re: [PHP] real password value

2002-12-13 Thread Joseph Guhlin
The better strategy would be to generate a new random password and assign that as the password. MySQL's password function is one-way, meaning you can encrypt it, but not decrypt it. The way you test it is by taking what the user has entered, along with the salt, and encrypting that and seeing i

Re: [PHP] real password value

2002-12-13 Thread Johannes Schlueter
On Friday 13 December 2002 20:58, empty wrote: > do you know how to decrypt password('xxx'); value? You can't do this. The only thing you could do is to send the User who lost his password a new one with an activation link. The new Password is saved somewhere else. Then the user clicks on the li

[PHP] real password value

2002-12-13 Thread empty
Hi all; do you know how to decrypt password('xxx'); value? For example I have a function that mails password to user's mail address but result is here; User Name: xjunky Password :1ef781ad7c4b0dc2 Thanks. I've inserted the password as password('$passw'); and selected as belove function no

Fw: [PHP] Difference between 2 Dates

2002-12-13 Thread Kevin Stone
Oh dear. In what format are you storing the date in your database? If you can convert what you have into UNIX EPOCH then you can simply subtract your date against mktime(); then echo the result through getdate() and be done with it in three lines of code. -Kevin - Original Message - From

Fw: [PHP] Question about "if" statement evaluating (0=="string") as TRUE

2002-12-13 Thread Kevin Stone
When you define $no, you define it without quotes, so PHP assumes it is a numeral. What you're asking in your conditional statement is: Does the numeral 0 equal the integer evaluation of "string". The answer is True. But when you put $no into quotes you cast it as a string. Now what you're ask

[PHP] Difference between 2 Dates

2002-12-13 Thread vernon
I found this code on the php.net web site but am new to php and can't figure out how to dispaly the difference once calucuated. Belowis the code I'm using: # --- Date Difference --- #Date 1 from MySQL database recordset row $date1 = $row_rsMESSAGES['privmsgs_date']; #Date 2 - now $date2 = date("ym

Re: [PHP] Question about "if" statement evaluating (0=="string")as TRUE

2002-12-13 Thread Marco Tabini
I think this is happening because you're comparing apples to oranges. Your first comparison causes an integer to be compared to a string. Because the string "string" evaluates to the integer value 0, the comparison succeeds. The manual recommends the use of the identical comparison operator (===) i

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
I'm sorry, posted the wrong link. It is the number_format() function. http://www.php.net/number_format - Original Message - From: "Joseph W. Goff" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]>; "Max Clark" <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 1:31 PM Subject: Re:

Re: [PHP] FTP Listings for HTML page

2002-12-13 Thread Joseph W. Goff
As long as the script has reading capabilities for the directory then yes. - Original Message - From: "Randum Ian" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 1:25 PM Subject: RE: [PHP] FTP Listings for HTML page > Woul

Re: [PHP] Sesssion help

2002-12-13 Thread Sean Burlington
Hasan / Impex Holidays Maldives wrote: Hi all, I finally found a solution. When i session_register("cookie_agtuser"); instead of $cookie_agtuser = $_SESSION['cookie_agtuser']; the variable is seen. I don't know why but if anyone know why this could happen it would help a lot. thanks, Hasan wh

Re: [PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Joseph W. Goff
You can use the format() function for this. http://www.php.net/format - Original Message - From: "Max Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 1:10 PM Subject: [PHP] newbie - decimal places in arthimetic functions > Hi- > > How can I control th

[PHP] Re: newbie - decimal places in arthimetic functions

2002-12-13 Thread Scott Hurring
round it http://www.php.net/manual/en/function.round.php -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Max Clark" <[EMAIL PROTECTED]> wrote in message atdba1$2id$[EMAIL PROTECTED]">news:atdba1$2id$[EMAIL PROTECTED]... > Hi- > > How can I control the decimal places retu

[PHP] Question about "if" statement evaluating (0=="string") as TRUE

2002-12-13 Thread Scott Hurring
Erm... this seems a bit odd to me. I'm using PHPv4.2.2 on Win32 Is that becuase PHP is not properly comparing the numerical value with the string value? -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] FTP Listings for HTML page

2002-12-13 Thread Randum Ian
Would I be able to do this for an ftp server where I have to log in? -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: 13 December 2002 19:07 To: Randum Ian; [EMAIL PROTECTED] Subject: Re: [PHP] FTP Listings for HTML page Yes it is doable. see. open_dir(); @ www.php.n

[PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Max Clark
Hi- How can I control the decimal places returned by an arthimetic function? I would like this divsion function to only return two decimal places (rounded up). $calcsize = $value / $oneGig; Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Odd Strpos Behavior

2002-12-13 Thread 1LT John W. Holmes
Do you really want to pursue the solution you're using? A solution with preg_replace_callback() would probably be a lot faster and easier to manage. If that doesn't matter, just let me know and I'll look over your code to try and figure out what's going on. I don't have time right now, though, to d

Re: [PHP] Date Formatting

2002-12-13 Thread Rick Emery
MYSQL will do all the formatting that you need. Look up sect 6.3.4, "Date and Time Functions" in mysql manual. Look at the DATE_FORMAT(date,format) command - Original Message - From: "Clint Tredway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 11:55 AM Subj

Re: [PHP] Date Formatting

2002-12-13 Thread 1LT John W. Holmes
Use DATE_FORMAT() in your query, or UNIX_TIMESTAMP() to pull it out as a unix timestamp and use date() in PHP to format it. Chapter 6, Date and Time Functions in the MySQL Manual has the syntax for each of the MySQL functions. ---John Holmes... - Original Message - From: "Clint Tredway"

Re: [PHP] Date Formatting

2002-12-13 Thread Joseph W. Goff
Just a small question, but why not just do this through the SQL statement instead of using php? http://www.mysql.com/doc/en/Date_and_time_functions.html#IDX1295 [from the mysql manual] mysql> SELECT DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); -> 'Saturday October 1997' mysql> SELECT DAT

Re: [PHP] A little regex help

2002-12-13 Thread 1LT John W. Holmes
> I'm trying to work out the regex needed to split either one of the > following lines > > Windows 2000 Hotfix (Pre-SP4) See Q322842 for more information > Windows XP Hotfix (SP2) See Q327696 for more information > > Into one of these > > Windows 2000 Hotfix (Pre-SP4) See href='http://support.micr

Re: [PHP] FTP Listings for HTML page

2002-12-13 Thread Jason Wong
On Saturday 14 December 2002 02:38, Randum Ian wrote: > Hi guys, I am maintaining a list of files on an FTP server and it would > be great if I could get a very simple list of all the files and their > directory names so I can generate a HTML page with the information. > > Is this doable? Yep, eve

Re: [PHP] FTP Listings for HTML page

2002-12-13 Thread Kevin Stone
Yes it is doable. see. open_dir(); @ www.php.net You can also find a number of premade scripts on HotScripts.com or one of the class stores. Do a search on Google. -Kevin - Original Message - From: "Randum Ian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002

Re: [PHP] php4 / sessions

2002-12-13 Thread Kevin Stone
The variable must exist before you can register it in the session.. $client_filter = 'filter'; session_register('client_filter'); ..or simply.. $_SESSION['client_filter'] = 'filter'; -Kevin - Original Message - From: "Kevin Porter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Frid

[PHP] Re: A little regex help

2002-12-13 Thread Philip Hallstrom
Why not... $url = ereg_replace("See ([^ ]*) for", "See \1 for", $original_string) or something close to that. On Fri, 13 Dec 2002, Gareth Hastings wrote: > Hi, > > I'm trying to work out the regex needed to split either one of the > following lines > > Windows 2000 Hotfix (Pre-SP4) See Q322842

[PHP] RE: Paging / Navigation Help

2002-12-13 Thread Nikolai Devereaux
I'd appreciate it if you didn't email me personally for PHP related issues. That's what the php list is for. I would guess that most other people on the list feel the same way. Take care, Nik > -Original Message- > From: William Martell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, De

[PHP] FTP Listings for HTML page

2002-12-13 Thread Randum Ian
Hi guys, I am maintaining a list of files on an FTP server and it would be great if I could get a very simple list of all the files and their directory names so I can generate a HTML page with the information. Is this doable? Randum Ian [EMAIL PROTECTED] DJ / Reviewer / Webmaster, DancePortal (

Re: [PHP] php4 / sessions

2002-12-13 Thread Joseph Guhlin
I would set it with $HTTP_SESSION_VARS['client_filter'] = $client_filter; Maybe that will work? I think they are trying to get people to quit using the session_register? I could be wrong. Anyways, take out the session_register and do it like I showed you above. One way to see if it is set befor

[PHP] A little regex help

2002-12-13 Thread Gareth Hastings
Hi, I'm trying to work out the regex needed to split either one of the following lines Windows 2000 Hotfix (Pre-SP4) See Q322842 for more information Windows XP Hotfix (SP2) See Q327696 for more information Into one of these Windows 2000 Hotfix (Pre-SP4) See Q 322842 for more information Window

[PHP] php4 / sessions

2002-12-13 Thread Kevin Porter
Hi, I'm trying to get a session variable to work. Here's the code at the start of my script: session_name('CLIENTFILTER'); session_start(); session_register( 'client_filter' ); As I understand it, the variable $client_filter should now be available to me? But I can't see it with either just $cli

Re: [PHP] Date Formatting

2002-12-13 Thread Support @ Fourthrealm.com
Use this: function makedate($format, $indate) { $temp = explode("-", $indate); $fulldate = mktime(0, 0, 0, $temp[1], $temp[2], $temp[0]); $temp = date($format, $fulldate); return ($temp); } and call it with thi

RE: [PHP] Escaping '#' Sign

2002-12-13 Thread Ford, Mike [LSS]
>-Original Message- >From: Mike Smith > >Is this fundamentally flawed? You mentioned "...is probably invalid in >itself, but we'll come to that." Were you referring to the space or the >whole pasing of array variables in an URL. Yup, I meant the spaces, not the whole concept -- when I wrot

[PHP] [solved] Re: [PHP] my cgi version of php prints Content-type:text/html on web page

2002-12-13 Thread Lucas Rockwell
hi all, i solved this one. i was using an old php.ini file. -lucas On Thu, 12 Dec 2002, Lucas Rockwell wrote: > hi all, > > i have successfully run php as a cgi on Solaris and on another OS X > machine, but now, with php 4.2.3, my pages are spitting out "Content-type: > text/html" at the top. o

[PHP] Date Formatting

2002-12-13 Thread Clint Tredway
How can I format a date coming out of a MySQL? I know how to format today's date but not a date coming out of MySQL. I have looked through the manual, but I must be blind because I cannot figure it out. Thanks, Clint

[PHP] Encrypt and decrypt cookie

2002-12-13 Thread Titu Kim
Hi, I am using libmcrypt-2.5.3 to do encryption in php. I use exactly the steps provided in mcrypt_module_open available on php website http://php.benscom.com/manual/en/function.mcrypt-module-open.php I can encrypt and decrypt a string correctly. However, if i encrypt a cookie to write to user

[PHP] PostgeSQL LIMIT pg_numrows

2002-12-13 Thread ceo
In PostgreSQL, I'd like to be able to use a UNION and a LIMIT clause and have some kind of function to determine how many rows could have come back without the LIMIT clause. Is there some kind of function like pg_numrows() that IGNORES the LIMIT clause? I sure couldn't find it, but maybe I'm just

Re: [PHP] Don't get variable to be passed to the page on submit

2002-12-13 Thread Philip Olson
Read this: http://www.php.net/variables.external Pay special attention to the parts about the PHP directive register_globals. If on, both $_GET['nafn'] and $nafn will exist. If off, $nafn will not exist. As of PHP 4.2.0, the default for this in php.ini went from on to off. This applies to

[PHP] php and mysql4 connectivity

2002-12-13 Thread Ornella Fasolo
Hello, does anybody know how to make PHP work with MySQL4. ? I would like to use PHP version 4.0.6-7 and MySQL-4.0.5-0.i386.rpm on a Redhat 7.2 system. Well if somebody has allready done a rpm package of php-mysql.rpm please tell us where to find it. Otherwise any hint on how to compile php as

Re: [PHP] cookie expiring with session

2002-12-13 Thread John Nichel
Set it without a expire time, then it will expire whenever the user closes their browser windows. If the jsp that needs to read the cookie on the same domain for wich it's set, it shouldn't have any problem reading it, but yes, you won't be able to use php's $_SESSION in jsp. Andrea wrote: I u

  1   2   >