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
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
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
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
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
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
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
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
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
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
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
>> 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
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
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 (
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
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
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
>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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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:
[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
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
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
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
[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
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
[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.
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
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
/[..
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:
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
48 matches
Mail list logo