[PHP] page redirect question

2004-11-09 Thread Victor C.
Hi, Is there anyway to redirect php page other than using HEADER(LOCATION:URL) ? Header can only be called if nothing is written to HTML... Is there anyway around it? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php array question

2004-11-01 Thread Victor C.
Hi, I have a line of php that I don't really understand. foreach($this-orders as $OrderID = $value) { echo $OrderID.BR; $OrderObject =$this-orders[$OrderID=$value]; echo $OrderObject-OrderID.--all the sameBR; } I know that $this-orders is an array of order objects. the result i get

[PHP] Re: php array question

2004-11-01 Thread Victor C.
But why would the this line generate different OrderID on lines 1 and 3? Ben Ramsey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Victor C. wrote: $OrderObject =$this-orders[$OrderID=$value]; This line is confusing. $OrderID=$value is either a typo or is just plain wrong

[PHP] Re: php array question

2004-11-01 Thread Victor C.
PROTECTED] Ben Ramsey wrote: Victor C. wrote: $OrderObject =$this-orders[$OrderID=$value]; This line is confusing. $OrderID=$value is either a typo or is just plain wrong. It looks like what it's meant to say is: $OrderObject = $this-orders[$OrderID]; But this will just set

[PHP] Re: php array question

2004-11-01 Thread Victor C.
Hi Ben, I tried your portion of code and find out what was wrong... Apparently I used in adding order to the array and that was messing things up... Everything is working now. Thanks for all the help Victor C. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I did a print_r

[PHP] PHP and send XML

2004-10-28 Thread Victor C.
Hi, I'm trying to pass XML file from Site A to Site B for Site B to parse. Site B is maintained by other company, so I only need to worry about sending over the XML file. I've been hinted that fsockopen() can do the job. I've done the following through PHP: $port=80; $host=134.134.134.134

[PHP] Millisecond in PHP

2004-10-27 Thread Victor C.
Hi, I'm trying to get PHP to display the millisecond of current time. I can't find that option in Date().. Any hints? Thanks a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Millisecond in PHP

2004-10-27 Thread Victor C.
Thank you all for answering! Really appreciate it. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Victor C. wrote: Hi, I'm trying to get PHP to display the millisecond of current time. I can't find that option in Date().. Any hints? Thanks a lot http://us4

[PHP] Timezone

2004-10-27 Thread Victor C.
Is there a way to get PHP to display the full name of time zone? date(t) only displays in the format of 'EDT', 'PDT', etc.. But I need the full name of the timezone, ie. Pacific daylight saving time. I know I can hard code all of these using switch statemetns. I'm just wondering if there is a

[PHP] file upload

2004-10-25 Thread Victor C.
Hi, I'm trying to submit a file from index.php to index2.php. I know how to do file upload in PHP. On index.php I have: FORM ACTION=index2.php METHOD=POST ENCTYPE=multipart/form-data INPUT TYPE=file NAME=myfile SIZE=30 INPUT TYPE=submit NAME=Upload File /FORM The next page would only need to

Re: [PHP] file upload

2004-10-25 Thread Victor C.
, at least you SHOULDN'T. Just think about what you're asking for, you want to download a file from a users computer, without them knowing about it. Major security/privacy issues there that browsers try to prevent. Chris Victor C. wrote: Hi, I'm trying to submit a file from index.php

Re: [PHP] file upload

2004-10-25 Thread Victor C.
. Just 2 examples. And, you could even POST the file from one to the other. That solution seems a bit icky to me, but it all really depends on what you need. Pulling is generally easier than pushing. Chris Victor C. wrote: Thanks for answering Chris.. What if I want to send a file from my

[PHP] php, mySQL query character problem

2004-09-22 Thread Victor C.
... the value i have for $email is from: $email=explode(@,$emailAddress); $email=$email[0]; Thanks, Victor C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] syntax questoin

2004-09-16 Thread Victor C.
Hi, I just started with PHP. (I used to work on ASP a lot) What does the syntax .= do? i see a line of code that says $Msg .= Test is complete I'm thinking it means concatenate $Msg with Test is complete and then store the new string into $Msg Am I right? Thanks. -- PHP General Mailing