Re: [PHP] Accessing photos outside the web folder

2005-12-14 Thread Dave Carrera
Philip Hallstrom wrote: I'm writing a content management application which saves file paths in a database and allows users to search the database for those files. Problem I'm having is that although the PHP script that handles the database queries works fine, when the search results get to the

Re: [PHP] looking for php programmers in mumbai / bombay

2005-12-14 Thread mailing
Derek Williams wrote: not quite PC, but why do you need to be in mumbai or bombay, is the client located there? mailing wrote: we are looking for experienced php programemers in mumbai or bombay. full time or freelance... please contact at [EMAIL PROTECTED] sumeet shroff yes..i am th

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Robert Cummings
On Wed, 2005-12-14 at 21:34, Christopher Jordan wrote: > Rob, > > Thanks for responding. :) I have more questions. I hope that's okay. :) *lol* No problem :) > > You said: > "Share nothing" refers to the PHP philosophy of not tying any data > sharing system to the engine itself. > In this way

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Christopher Jordan
Rob, Thanks for responding. :) I have more questions. I hope that's okay. :) You said: "Share nothing" refers to the PHP philosophy of not tying any data sharing system to the engine itself. In this way developers are free to create applications in such a way that if they need more power, they

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Robert Cummings
On Wed, 2005-12-14 at 20:50, Christopher Jordan wrote: > > When you said: > > "...the strength and simplicity of PHP stem from the decision to make/keep > PHP a 'share nothing' architecture." > > What did you mean, by that? I've not heard of this "share nothing" > idea. What is the idea

Re: [PHP] Questions from a ColdFusion Developer

2005-12-14 Thread Christopher Jordan
Jochem, Thanks so much for your advice. In the end, I managed to find why that little EZSql tool wasn't working for me, and thus what I'm *really* putting into the session variable is an array. I understand also that each user would get a copy of the same session variables, but this is for a

Re: [PHP] i18n maybe?

2005-12-14 Thread Richard Lynch
UPDATE: What's actually in the database is: 3â¢16 So in this case, it's not i18n, and my function is doing the correct thing. Why the band wants those characters in their band name is beyond my ken, but you know those flaky musicians :-) Apologies for my failure to detect this sooner -- I w

[PHP] i18n maybe?

2005-12-14 Thread Richard Lynch
I have a table like this: artist_id | artistname | artistname_alpha 1 | The Doors | 2 | The The | 3 | 100 Monkeys | 4 | 3�16 | That last artistname is not in ASCII/English... Dunno what your email client is showing you, but it's: the digit 3 capital

[PHP] Re: XmlReader & XInclude

2005-12-14 Thread Rob Richards
Only the version of XMLReader in CVS HEAD does at the moment. Rob Jared Williams wrote: Hi, Does PHPs XmlReader support Xinclude ? Seems libxml does reading this post http://mail.gnome.org/archives/xml/2004-February/msg00190.html , but the corresponding constant seems missing in PHP

[PHP] XML Parsing german special chars

2005-12-14 Thread Norbert Wenzel
I did some easy xml parsing on the last.fm[1] recent tracklist. I do read in all the tracks and output them encoded with htmlentities(). A lot of german special chars like the Ä (Ä) are transfered to strange followings of an A with any sort of available accent. But it isn't replaced by Ä The

[PHP] XmlReader & XInclude

2005-12-14 Thread Jared Williams
Hi, Does PHPs XmlReader support Xinclude ? Seems libxml does reading this post http://mail.gnome.org/archives/xml/2004-February/msg00190.html , but the corresponding constant seems missing in PHP Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] Re: MIME E-mail message

2005-12-14 Thread Oli Howson
>> Oh and cheers for the info someone gave me the other day, it inspired >> me to just connect to the pop3 server using a raw socket, SO much easier!!! >share the code please, I'm interested :) Ok... It's a bit rough and ready, never expected anyone else to want to look at this (at least not

Re: [PHP] PHPEclipse vs TruStudio

2005-12-14 Thread dave
sry, dumb answer :) dave wrote: > I use PhpEdit and i'm very pleased, tryed eclipse .. and i must say i'm > not a fan :). Php developement never tryed. > > Chris Lott wrote: > >>Which of these are better Eclipse plugins for PHP Development? Or, >>which advantages do each provide? >> >>c >>-- >>C

Re: [PHP] PHPEclipse vs TruStudio

2005-12-14 Thread dave
I use PhpEdit and i'm very pleased, tryed eclipse .. and i must say i'm not a fan :). Php developement never tryed. Chris Lott wrote: > Which of these are better Eclipse plugins for PHP Development? Or, > which advantages do each provide? > > c > -- > Chris Lott > -- PHP General Mailing List (

[PHP] PHPEclipse vs TruStudio

2005-12-14 Thread Chris Lott
Which of these are better Eclipse plugins for PHP Development? Or, which advantages do each provide? c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array to object conversion

2005-12-14 Thread Cyril
Is there any way of converting an array to an object of a type/class other than stdClass? I have been using the new PDO system and have experimented with fetching rows with PDO::FETCH_CLASS I would quite like to do the same with a plain array. Any comments appreciated. Cyril -- PHP General Mailin

Re: [PHP] When using foreach(), how to use &$value in php 4??

2005-12-14 Thread comex
What? Why is this on the top of my email if it's two months old? Sorry everyone for replying to a dead topic, I think. That or the original poster has a messed up system clock. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] When using foreach(), how to use &$value in php 4??

2005-12-14 Thread comex
>XmlTreeCDataAsciiLoopThrough($value); This should work: >XmlTreeCDataAsciiLoopThrough($tree[$key]); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MIME E-mail message

2005-12-14 Thread M. Sokolewicz
hi, Oli Howson wrote: I'm working on a private webmail (and other) system, and am struggling a little with MIME mails. I've got a script to save all the attachments, but the thing I can't figure out is how I decide which "part" is the main email message itself (and hence which to display). Usual

[PHP] MIME E-mail message

2005-12-14 Thread Oli Howson
I'm working on a private webmail (and other) system, and am struggling a little with MIME mails. I've got a script to save all the attachments, but the thing I can't figure out is how I decide which "part" is the main email message itself (and hence which to display). Oh and cheers for the info

Re: [PHP] looking for php programmers in mumbai / bombay

2005-12-14 Thread Derek Williams
not quite PC, but why do you need to be in mumbai or bombay, is the client located there? mailing wrote: we are looking for experienced php programemers in mumbai or bombay. full time or freelance... please contact at [EMAIL PROTECTED] sumeet shroff -- PHP General Mailing List (http://www

[PHP] When using foreach(), how to use &$value in php 4??

2005-12-14 Thread Scott Fletcher
I have encountered a situation where I'm using the foreach() where I need to assign new data to the $value in the foreach loop, foreach($x as $key ==> $value). With PHP 5, you can do the ampersand to the $value but I'm using PHP 4? So, how do you guys do it? I tried this sample code but it only wor

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Michael Hulse
On Dec 14, 2005, at 9:31 AM, <[EMAIL PROTECTED]> wrote: I'm lazy so I don't tend to pre-define variable types although I should probably get into the practice when there's a security need to do so. So what was the original question again? hah Hehehe, looks like you answered it. :D Thanks

[PHP] looking for php programmers in mumbai / bombay

2005-12-14 Thread mailing
we are looking for experienced php programemers in mumbai or bombay. full time or freelance... please contact at [EMAIL PROTECTED] sumeet shroff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread tg-php
In the examples I saw, when you used $new_array = $value (without the []), you weren't going to get a proper copy of the array, as multiple people stated. I'm curious why I didn't see (or maybe I just missed it) something like this: $old_array = array('one', 'two', 'three', 'four'); $new_array

[PHP] php file upload permission query

2005-12-14 Thread Angelo Zanetti
Hi all. I've got a PHP script which does file uploads. the files get uploaded fine but I see that the permission of the files are: 600 IE: Owner read and write. In order for me to use the files, I would have to set the permissions on each file, now for best practise would I set the permissio

Re: [PHP] Declaring arrays? Good practice?

2005-12-14 Thread adriano ghezzi
imho I agree always declare all kinds of variables before using in the specific situation you have to consider that you are using two different variables rthe $foo inside the function and the $foo outside the function I think its' correct to declar both, imho you should use different names if y

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Al
What I said was that arrays can be handled two different ways for loops. 1] By assigning the variable prior to the loop [i.e., $new_array= array();] 2] Or, by using inside the loop: $new_array[]= $value Either one works. I've found, when the loop has lots of fancy stuff involving the $new_arra

RE: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Kilbride, James
The result of the echo is "four". Doing the same above with the [] after new_array returns the right result, a new array.(outputs Array). So what exactly where you saying 'Taint so' Al? I'm confused since Jochem's email about how to properly copy an array seems correct. James Kilbride > -Or

Re: [PHP] Re: Programming Query - Authentication - Multiple Logons

2005-12-14 Thread tg-php
Where I work, the system that was set up before I got here uses session ID and a timeout of a couple of hours. I'm pretty sure that there's a good chance that two people would not be issued the same session ID within a short period of time. Certainly not within say 4 hours. Maybe someone has

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Jochem Maas
WTF are you smoking Al? Al wrote: Jochem Maas wrote: Al wrote: However For loops: $new_array= array(); foreach($old array as $value){ $new_array= $value: } Otherwise, all you'll get it the last assignment of $new_array as a variable, not an array. which is exactly what you g

[PHP] Re: Programming Query - Authentication - Multiple Logons

2005-12-14 Thread Sarith Chandrasekaran
Hello there, Goal: Preventing multiple user login using the same username & password from different location ( Simoltanous Login) Options Available: 1) IP Checking: One way to prevent multiple people from using the same account to gain access to a restricted area of a site is to store their

RE: [PHP] Message Should be displayed based on Date ,Time and Eve nt name

2005-12-14 Thread tg-php
This is a kinder, gentler Jay.. hey, don't look a gift horse in the mouth! But if anyone's still not satisfied... you can go RTFM if it makes you feel better. :) Happy holidays! (yeah, holidays.. christmas IS included in that.. jesus.. how did political correctness turn to bite everyone on the

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Al
Jochem Maas wrote: Al wrote: However For loops: $new_array= array(); foreach($old array as $value){ $new_array= $value: } Otherwise, all you'll get it the last assignment of $new_array as a variable, not an array. which is exactly what you get if yuou run the code above - after

Re: [PHP] Accessing photos outside the web folder

2005-12-14 Thread Jochem Maas
Philip Hallstrom wrote: I'm writing a content management application which saves file paths in a database and allows users to search the database for those files. Problem I'm having is that although the PHP script that handles the database queries works fine, when the search results get to the

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Jochem Maas
Al wrote: However For loops: $new_array= array(); foreach($old array as $value){ $new_array= $value: } Otherwise, all you'll get it the last assignment of $new_array as a variable, not an array. which is exactly what you get if yuou run the code above - after the foreach loop $new_

Re: [PHP] foreach $_FILES

2005-12-14 Thread Jochem Maas
Shaun wrote: Hi, I have a form on my site with many file fields for users to upload files. I am trying to verify that for each file uploaded it corresponds with the name of the file field i.e. File_1.CSV: File_2.CSV: However if I loop through the $_FILES array like this:

RE: [PHP] foreach $_FILES

2005-12-14 Thread Jay Blanchard
[snip] However if I loop through the $_FILES array like this: foreach( $_FILES as $key => $value ){ echo '$key = '.$key.''; echo '$value = '.$value.''; } $key = File_1_CSV $value['name'] = File_1.CSV $key = File_2_CSV $value['name'] = File_2.CSV The . is replaced with an underscore in the

[PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread Al
However For loops: $new_array= array(); foreach($old array as $value){ $new_array= $value: } Otherwise, all you'll get it the last assignment of $new_array as a variable, not an array. You can also use; foreach($old array as $value){ $new_array[]= $value: } But sometimes, if the

Re: [PHP] foreach $_FILES

2005-12-14 Thread David Grant
Shaun, That is the documented behaviour for form fields in PHP. See "Dots in incoming variable names" on the following page: http://php.net/variables.external Cheers, David Grant Shaun wrote: > Hi, > > I have a form on my site with many file fields for users to upload files. I > am trying t

[PHP] foreach $_FILES

2005-12-14 Thread Shaun
Hi, I have a form on my site with many file fields for users to upload files. I am trying to verify that for each file uploaded it corresponds with the name of the file field i.e. File_1.CSV: File_2.CSV: However if I loop through the $_FILES array like this: foreach( $_FILES

RE: [PHP] Message Should be displayed based on Date ,Time and Eve nt name

2005-12-14 Thread Jay Blanchard
[snip] > Your best bet may be AJAX. Google has tons of information. > > PHP is not well suited for triggering a client side pop-up event at a > precise time due to it being server side. > what is this??? invasion of the body snatchers? where is Jay 'RTFM' Blanchard? :-) [/snip] It is the holida

Re: [PHP] Message Should be displayed based on Date ,Time and Eve nt name

2005-12-14 Thread Jochem Maas
Jay Blanchard wrote: [snip] I am accepting event name,Date and time and saving the data in PostgeSQL table.. I have used PHP html Javascript and postgesql for this. Can anyone tell me how can I display a popup message when that particular event occurs on particular date and time. [/snip] You

RE: [PHP] Message Should be displayed based on Date ,Time and Eve nt name

2005-12-14 Thread Jay Blanchard
[snip] I am accepting event name,Date and time and saving the data in PostgeSQL table.. I have used PHP html Javascript and postgesql for this. Can anyone tell me how can I display a popup message when that particular event occurs on particular date and time. [/snip] Your best bet may be AJAX.

Re: [PHP] EXPORT DATA

2005-12-14 Thread Miles Thompson
First of all, check the PostgreSQL docs on loading data - there may be a native method you can call. Otherwise you normally export Excel to a .csv file and import that. How? Never done it, but how about a combination of fgetcsv() and pg_copy() or pg_insert()? There may be a tool out there o

[PHP] XSLT doesn't work anymore since PHP has been upgraded from 5.0.3 to 5.1.1

2005-12-14 Thread Tobi Reif
Hi My ISP upgraded from 5.0.3 to 5.1.1. Since then, XSLT (at least my script which uses it) doesn't work anymore. The first error message on http://www.pinkjuice.com/hayashi/materials/ is Warning: XSLTProcessor::importStylesheet() [function.importStylesheet]: Undefined variable in /[..

Re: [PHP] Problem: Distortion while saving text file.

2005-12-14 Thread David Grant
Could it be the other way around, i.e. Windows is stripping slashes, and Linux is not? How does $contents come to exist in the script? Check for any difference in your ini files for magic_quotes_runtime. Cheers, David Grant Janne Miettunen wrote: > What could be wrong when this is transformed:

[PHP] Problem: Distortion while saving text file.

2005-12-14 Thread Janne Miettunen
What could be wrong when this is transformed: "" to this form: "" The line is saved to text file with this function: function savesite($site, $lang, $contents){ if (check_session()){ $file=fopen('content/' . $site . '_' . $lang . '.txt', "w"); fwrite($file, $contents); fclose($file); } I