Re: [PHP] Arrays

2005-07-12 Thread Justin Gruenberg
On 12/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > How can i destroy an array? > I mean i have a loop and for each new value in the loop i want to destroy the > array. Something like that: > > while($row = mysql_fetch_array($result)) > { > > $product[] = $produ

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Justin Gruenberg
On 15/05/05, blackwater dev <[EMAIL PROTECTED]> wrote: > Hello, > > this works fine: > > $name="fido"; > $string="my dog's name is $name"; > echo $string;//prints my dog's name is fido > > but when I store the string "my dog's name is $name" in the db and pull it > out: > > //do the query > $r

Re: [PHP] radio buttons in $_POST

2005-04-23 Thread Justin Gruenberg
> None And if you didn't want it to show to the user (because they have to make a choice anyway) . . . you can use this css: input[value="None"] { display: none; } You should then always have a value to play with in PHP, and the user doesn't see any extra clutter. -- PHP General Mailin

Re: [PHP] image handling

2005-04-16 Thread Justin Gruenberg
On 4/16/05, Dasmeet Singh <[EMAIL PROTECTED]> wrote: > I have a form on my website that allows users to upload photographs.. > > 1. How to find out the file type they are uploading..like jpeg or png or > gif? > > 2. Also is there any way to find out size and resolution of the image? http://us3.p

Re: [PHP] (noob) listing folder content

2005-04-03 Thread Justin Gruenberg
On Apr 3, 2005 3:32 PM, p80 <[EMAIL PROTECTED]> wrote: > I have a folder let's call it "/rep" and would like to list all files in it > and for each file $f I would like to check if "$f == $some_value" and if it > does "echo $f" any idea how to do that? > > thanx in advance > > Pat See the direct

Re: [PHP] Changing numbers

2003-07-21 Thread justin gruenberg
Curt Zirzow wrote: * Thus wrote zavaboy ([EMAIL PROTECTED]): I have the following numbers: 12.400 666.75 23 369.2 3.234 How can I make them have at least 2 decimal places? So, they will output: 12.40 666.75 23.00 269.20 3.234 Thanks in advance! What I dont understand is that your examples are

Re: [PHP] Red Hat 9, Apache 2, and PHP

2003-07-03 Thread justin gruenberg
Jeff Schwartz wrote: The PHP site (under Servers-Apache 2.0) says "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows" but isn't clear whether Linux is included or whether it applies to all Apache 2 releases (such as 2.0.46) or just the original 2.0. And, Red

[PHP] Re: [PHP-DB] How to get PHP to download web contents

2003-07-03 Thread justin gruenberg
Steve B. wrote: How would you get PHP to download a file such as a web page and put it in a string? What keywords would relate to this (besides php download) I need a user to be able to put in a name and pass and have PHP go to a cetain site. The site can take the user/pass in the url so I do no

[PHP] Re: [PHP-DB] Re: XML to MySQL

2003-07-03 Thread justin gruenberg
I think starting with the XML parsing functions might be a logical step. For what you're doing, expat is going to be a more logical solution for parsing the xml. There is also DOMXML, which makes more sense to a lot of people, but will be slower at parsing your file.

Re: [PHP] Java Applet to PHP Communication

2003-07-02 Thread justin gruenberg
Sharat Hegde wrote: Hello, I need to be able to communicate from a Java Applet to a PHP program on the server to enable "Live Connect" for data. This is what I intend to do: In my web application, a Java Script program will call a Java Applet which then calls the PHP program on the server. The PH

Re: [PHP] TIP parsing form row data into variables

2003-06-22 Thread justin gruenberg
Nothing appears blatently wrong in the code you provided, but it's 4am here, so I might be off. This comes to my mind: 1. $_REQUEST was available from PHP 4.1.0 and later, are you using somthing before that? 2. I assume you're doing somthing with $e_id within your loop, or else you're just re

Re: [PHP] a question, need an answer

2003-06-22 Thread justin gruenberg
what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil Both accomplish the same thing, except how you are using it might not be what you expect. $_SESSIO

Re: [PHP] Embedding image a PHP file

2002-12-29 Thread justin gruenberg
yy.php should contain header("Content-type: image/jpeg"); /* or gif or whatever... you can also take a look at getimagesize() to get the type of the image automatically */ readfile(THE FILE); ?> it's extremely important that there is no whitespace before the tag. empty wrote: Hi Anybody kn